Originally posted by Merrill Higginson:
Show us your code and point out which line is throwing the exception.
Originally posted by Merrill Higginson:
The "Deprecated usage of direct JNDI lookup" message is a warning only. You can ignore it. The real problem is the NullPointerExectpion, and that appears to be in your code, not WebSphere's. Here's the important line in the stack trace:
Take a look at line 174 of your EdisLDAPSearch for a situation where you expect an object to have a value, but it may be null.
Originally posted by Paul Clapham:
From the server? No. All you can do is to send the ZIP file, it's up to the client to decide to do with it. And all the client is going to do with it is (1) save it to the client's disk -- most likely -- or (2) open it with some ZIP archive reader -- not very likely.
If you really want to display a page of images, by far the easiest way is to send an HTML page containing links to all the images. If that was your goal then you are doing it in entirely the wrong way.
Originally posted by Paul Clapham:
From the server? No. All you can do is to send the ZIP file, it's up to the client to decide to do with it. And all the client is going to do with it is (1) save it to the client's disk -- most likely -- or (2) open it with some ZIP archive reader -- not very likely.
If you really want to display a page of images, by far the easiest way is to send an HTML page containing links to all the images. If that was your goal then you are doing it in entirely the wrong way.
Originally posted by Madhu Bompaly:
Hi,
Iam calling an Applet from JSP.
but Iam getting following Exception.
[10/17/07 10:37:07:209 EDT] 000001ad WebContainer E SRVE0232E: Internal Server Error. <br> Exception Message: [java.lang.NullPointerException
at com.ibm.ws.webcontainer.srt.SRTServletResponse.setDefaultResponseEncoding(SRTServletResponse.java(Compiled Code))
at com.ibm.ws.webcontainer.srt.SRTServletResponse.start(SRTServletResponse.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.srt.SRTConnectionContext.start(SRTConnectionContext.java(Inlined Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCallback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java(Compiled Code))
]
below is my code:
<logic:equal name="elements" property="chartType" value="bar" >
<OBJECT classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93"
width="80" height="100" name="OutputOptionsObject"
codebase="https://webs1636.intra.daimlerchrysler.com/unprotected/edis/j2re-1_4_2_07-windows-i586-p.exe">
<!--
<param name=java_code value="com.sas.edis.viewers.EDISCaptureSnapShotApplet.class">
-->
<param name=java_code value="com.sas.edis.viewers.EDISCaptureSnapShotApplet">
<!--
<param name=java_codebase value="/DCXEDIS/assets/graph">
-->
<param name=java_codebase value="/EDIS/assets/graph">
<param name=java_archive value="EDISGraphApplet.jar">
<param name=java_type value="application/x-java-applet;version=1.4.2_01">
<param name=scriptable value="false">
<param name=useplugin value="yes">
<param name=fileName value="<%=elements.getImageName()%>">
<param name=fullImageLocation value="<%=elements.getFullImageLocation()%>">
<param name=SASImageLocation value="<%=elements.getSASImageLocation()%>">
<param name=applicationURL value="<%=elements.getApplicationURL()%>">
<COMMENT>
<EMBED type="application/x-java-applet;version=1.4.2_01"
java_code="com.sas.edis.viewers.EDISCaptureSnapShotApplet.class"
<!--
java_codebase="/DCXEDIS/assets/graph"
-->
java_codebase="/EDIS/assets/graph"
java_archive="EDISGraphApplet.jar"
width="100" height="100"
scriptable="false"
useplugin="yes"
pluginspage="http://webs1636.intra.daimlerchrysler.com/unprotected/edis/j2re-1_4_2_07-windows-i586-p.exe">
<NOEMBED>
</COMMENT>
No Java 2 SDK, Standard Edition v 1.4 support for applet!
Please install Java plug-in so that this applet works correctly.
If you are not prompted to download Java plug-in,
download it manually from <a href="https://webs1636.intra.daimlerchrysler.com/unprotected/edis/j2re-1_4_2_07-windows-i586-p.exe">here</a>
</NOEMBED>
</EMBED>
</OBJECT>
</logic:equal>
can some body please tell me what is wrong with my code.
Thanks,
Madhu
Originally posted by Tim Holloway:
The HTTP protocol is precisely defined as a request/response method of communication. One request, one response. Another request, another response. That's not a Java thing, it's an Internet thing.
Each response is a single "file" (data stream). When you display a web page that has several pictures on it, the initial request returns an HTML text stream response. Embedded in the returned HTML stream are links to the various pictures - each picture has its own URL. The user's browser program understands these IMG tags as an indication that it should do additional requests, one per picture - each image URL gets a response of the picture that goes with that URL.
If you actually want to send multiple files back in a single response, what you have to do is embed them in a container-type file such as a ZIP file.