Wrox Home  
Search P2P Archive for: Go

  Return to Index  

pro_java thread: Can't get input stream on some servers.


Message #1 by John Heffernan <jheffern@j...> on Mon, 12 Nov 2001 00:53:44 -0500
> This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--B_3088372068_615909
Content-type: text/plain; charset="US-ASCII"
Content-transfer-encoding: 7bit

I found the problem.  Dumb mistake in the URL I was using...





> From: John Heffernan <jheffern@j...>
> Reply-To: "Professional Java" <pro_java@p...>
> Date: Mon, 12 Nov 2001 00:53:44 -0500
> To: "Professional Java" <pro_java@p...>
> Subject: [pro_java] Can't get input stream on some servers.
> 
> 
> Code failing on one server - W2K.  Works fine on Solaris with same XML app
> that takes XML request and returns XML output.
> 
> Fails on the following lines.
> 
>       jl.logger (jl.LOG_ALL, "Reconnected for read" ) ;
>       urlReader = new BufferedReader (new InputStreamReader
> (jasmineConnection.getInputStream() )) ;
> 
> [xxx is for security]
> 
> Any suggestions or what to try.  I tried changing the order of gettting the
> input stream and a delay.  No luck...
> 
> Connected to Jasmine:  http://208.131.xxx.xxx/portal/xml-api
> Output Stream established
> Closed Writer 
> Read started.  Writing to temporary file xxxyyyzzz0.txt
> Reconnected for read
> Could not connect to or read from  :  http://208.131.xxx.xxx/portal/xml-api
> java.io.FileNotFoundException: http://208.131.xxx.xxx/portal/xml-api
>     at 
> sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.j
> ava)
>     at JasmineTalk.writeResponse(Compiled Code)
>     at JasmineTalk.queryUser(JasmineTalk.java:232)
>     at ProcessExport.loadJasmineInfo(ProcessExport.java:1477)
>     at ProcessExport.processExport(Compiled Code)
>     at ContentLoad.main(ContentLoad.java:116)
>     at 
> com.apple.mrj.JManager.JMStaticMethodDispatcher.run(JMAWTContextImpl.java)
>     at java.lang.Thread.run(Thread.java)
> SAX Exception trying to parse xxxyyyzzz
>  0 PARAMNodes found:  0
>  Object Key not found
> 
> 
> 
> 
> ---
> SIGS Conference for Java Development
> Targeted, focused classes, expertise level classes
> taught by Java gurus, rigorous tutorials, and
> exhibit floor makes SIGS Conference for Java
> Development a learning experience unlike any
> other. Join over 10,000 developers and programmers
> from across the U.S. and around the world who
> have benefited from attending SIGS/101 Conferences.
> http://www.javadevcon.com
> 




  Return to Index