java - Weblogic send file through ssl -
i have following problem: need send request attached file ip. use jsp page send data. here code example:
httpurlconnection connection = (httpurlconnection)url.openconnection(); connection.setdoinput( true ); connection.setdooutput( true ); url url = new url("%myurl"); connection.setrequestmethod( "post" ); connection.setrequestproperty( "content-type", "text/xml" ); connection.setrequestproperty( "accept", "text/xml" ); connection.setrequestproperty( "user-agent", "agent" ); connection.setconnecttimeout( 100000 ); connection.setreadtimeout( 100000 ); outputstream outputstream = null; bufferedreader reader = null; stringbuilder result = new stringbuilder(); outputstream = connection.getoutputstream(); outputstream.write( data );
when use https connection (%myurl=https://url) error :
java.net.sockettimeoutexception: read timed out @ jrockit.net.socketnativeio.readbytespinned(native method) @ jrockit.net.socketnativeio.socketread(socketnativeio.java:32) @ java.net.socketinputstream.socketread0(socketinputstream.java) @ java.net.socketinputstream.read(socketinputstream.java:129) @ weblogic.socket.jssefilterimpl.readfromnetwork(jssefilterimpl.java:404) @ weblogic.socket.jssefilterimpl.read(jssefilterimpl.java:383) @ weblogic.socket.jssesocket$jsseinputstream.read(jssesocket.java:58) @ java.io.bufferedinputstream.fill(bufferedinputstream.java:218) @ java.io.bufferedinputstream.read1(bufferedinputstream.java:258) @ java.io.bufferedinputstream.read(bufferedinputstream.java:317) @ weblogic.net.http.messageheader.ishttp(messageheader.java:224) @ weblogic.net.http.messageheader.parseheader(messageheader.java:148) @ weblogic.net.http.httpclient.parsehttp(httpclient.java:468) @ weblogic.net.http.httpurlconnection.getinputstream(httpurlconnection.java:377) @ weblogic.net.http.soaphttpsurlconnection.getinputstream(soaphttpsurlconnection.java:37) @ com.abak.portal.sip.mfitestclass.testcall(mfitestclass.java:120) @ jsp_servlet._templates._template0007._avcsfbrfbwcsqvxdrrxfywwrfqubyaqc.__vats_manage._jspservice(__vats_manage.java:404) @ weblogic.servlet.jsp.jspbase.service(jspbase.java:34) @ weblogic.servlet.internal.stubsecurityhelper$servletserviceaction.run(stubsecurityhelper.java:227) @ weblogic.servlet.internal.stubsecurityhelper.invokeservlet(stubsecurityhelper.java:125) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:300) @ weblogic.servlet.internal.servletstubimpl.onaddtomapexception(servletstubimpl.java:416) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:326) @ weblogic.servlet.internal.tailfilter.dofilter(tailfilter.java:26) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:54) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:54) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:54) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ weblogic.servlet.internal.requestdispatcherimpl.invokeservlet(requestdispatcherimpl.java:524) @ weblogic.servlet.internal.requestdispatcherimpl.include(requestdispatcherimpl.java:444) @ com.epicentric.servlets.servletutils.include(servletutils.java:189) @ com.epicentric.template.style.execute(style.java:384) @ com.epicentric.template.style.execute(style.java:206) @ jsp_servlet._templates._template0032._zvbyracvzyuyeurwyvsdazsqfqubyaqc.__jsp_include_page._jspservice(__jsp_include_page.java:135) @ weblogic.servlet.jsp.jspbase.service(jspbase.java:34) @ weblogic.servlet.internal.stubsecurityhelper$servletserviceaction.run(stubsecurityhelper.java:227) @ weblogic.servlet.internal.stubsecurityhelper.invokeservlet(stubsecurityhelper.java:125) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:300) @ weblogic.servlet.internal.tailfilter.dofilter(tailfilter.java:26) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:54) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:54) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:54) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ weblogic.servlet.internal.requestdispatcherimpl.invokeservlet(requestdispatcherimpl.java:524) @ weblogic.servlet.internal.requestdispatcherimpl.include(requestdispatcherimpl.java:444) @ weblogic.servlet.jsp.pagecontextimpl.include(pagecontextimpl.java:163) @ com.epicentric.servlets.servletutils.include(servletutils.java:153) @ com.epicentric.template.style.execute(style.java:381) @ com.epicentric.template.style.execute(style.java:245) @ com.epicentric.taglib.html.includepagecontenttag.dostarttag(includepagecontenttag.java:99) @ jsp_servlet._templates._template0005._zrrrzryxrbvwvbvstvcvtbsrfqubyaqc.__secondary_sip._jsp__tag12(__secondary_sip.java:634) @ jsp_servlet._templates._template0005._zrrrzryxrbvwvbvstvcvtbsrfqubyaqc.__secondary_sip._jspservice(__secondary_sip.java:215) @ weblogic.servlet.jsp.jspbase.service(jspbase.java:34) @ weblogic.servlet.internal.stubsecurityhelper$servletserviceaction.run(stubsecurityhelper.java:227) @ weblogic.servlet.internal.stubsecurityhelper.invokeservlet(stubsecurityhelper.java:125) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:300) @ weblogic.servlet.internal.servletstubimpl.onaddtomapexception(servletstubimpl.java:416) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:326) @ weblogic.servlet.internal.tailfilter.dofilter(tailfilter.java:26) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.enduser.filters.jspaccessfilter.dofiltersingleinvocation(jspaccessfilter.java:46) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:52) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:54) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:54) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ weblogic.servlet.internal.requestdispatcherimpl.invokeservlet(requestdispatcherimpl.java:524) @ weblogic.servlet.internal.requestdispatcherimpl.include(requestdispatcherimpl.java:444) @ com.epicentric.servlets.servletutils.include(servletutils.java:189) @ com.epicentric.template.style.execute(style.java:384) @ com.epicentric.template.style.execute(style.java:206) @ com.vignette.portal.website.enduser.internal.requestprocessing.system.defaultrequestprocessor.executestyle(defaultrequestprocessor.java:288) @ com.vignette.portal.website.enduser.internal.requestprocessing.system.defaultrequestprocessor.process(defaultrequestprocessor.java:194) @ com.vignette.portal.website.enduser.internal.controllerservlet.service(controllerservlet.java:200) @ javax.servlet.http.httpservlet.service(httpservlet.java:820) @ weblogic.servlet.internal.stubsecurityhelper$servletserviceaction.run(stubsecurityhelper.java:227) @ weblogic.servlet.internal.stubsecurityhelper.invokeservlet(stubsecurityhelper.java:125) @ weblogic.servlet.internal.servletstubimpl.execute(servletstubimpl.java:300) @ weblogic.servlet.internal.tailfilter.dofilter(tailfilter.java:26) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.enduser.filters.siteresolutionfilter.dofilter(siteresolutionfilter.java:204) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.enduser.filters.authenticationfilter.dofilter(authenticationfilter.java:46) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.enduser.filters.initportalcontextfilter.dofilter(initportalcontextfilter.java:52) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.startupprotectionfilter.dofiltersingleinvocation(startupprotectionfilter.java:102) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:52) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.vignette.portal.website.internal.environmentalwrapperfilter.dofiltersingleinvocation(environmentalwrapperfilter.java:56) @ com.vignette.portal.website.internal.singleinvocationfilter.dofilter(singleinvocationfilter.java:52) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ com.ttk.abak.portal.servlet.charsetfilter.dofilter(charsetfilter.java:40) @ weblogic.servlet.internal.filterchainimpl.dofilter(filterchainimpl.java:56) @ weblogic.servlet.internal.webappservletcontext$servletinvocationaction.wraprun(webappservletcontext.java:3715) @ weblogic.servlet.internal.webappservletcontext$servletinvocationaction.run(webappservletcontext.java:3681) @ weblogic.security.acl.internal.authenticatedsubject.doas(authenticatedsubject.java:321) @ weblogic.security.service.securitymanager.runas(securitymanager.java:120) @ weblogic.servlet.internal.webappservletcontext.securedexecute(webappservletcontext.java:2277) @ weblogic.servlet.internal.webappservletcontext.execute(webappservletcontext.java:2183) @ weblogic.servlet.internal.servletrequestimpl.run(servletrequestimpl.java:1454) @ weblogic.work.executethread.execute(executethread.java:209) @ weblogic.work.executethread.run(executethread.java:178)
but:
- if submit text data without file - ok
- if submit without ssl (%myurl=http://url) - ok
if try run code without weblogic, through terminal - ok
how can fix this?
Comments
Post a Comment