[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details

strang error when running developed JAVA software with ServletExec and JSP

Asked by regis_ee in Java Server Pages (JSP), Java Servlets, New to Java Programming

Tags: JAVA, ServletExec, JSP

We have a random error when running JAVA software using ServletExec and JSP. It seems that response is sometime null which cause the error.
The following is ServletExec Log and Java console Log:
ServletExec:
streamtheCommand = null strRequestXML = <REQUEST service="Cadastral" identifier="BJv+q4TFZEdU8H8bjuPPxcmAksY_1255542980848" user="jaind" password="" > <KEEPALIVE/></REQUEST>ServletExec: caught exception - java.lang.IllegalStateException: reset() failed - data has already been sent to client
[Wed Oct 14 14:02:26 EDT 2009] java.lang.IllegalStateException: reset() failed - data has already been sent to client.

Java Console:
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at com.ema.viewer.MphModel.init(MphModel.java:152)
at com.ema.viewer.EmaViewer.init(EmaViewer.java:212)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
USER NAME: xxx Auth Tag
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<AUTHENTICATE service="xxx" user="xxx" password="xxx" />
</REQUEST>REQUEST DUMP
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<AUTHENTICATE service="Cadastral" user="pavlaks" password="" />
</REQUEST>RESPONSE DUMP EmaServerLink
[RESPONSE: null]MphModel.init()...REQUEST DUMP
<?xml version="1.0" encoding="UTF-8"?>
<REQUEST>
<INIT service="xxx" user="xxx" password="xxx">
<MAP height="-92" width="-180" ovheight="125" ovwidth="150">
<ENVELOPE xmin="1.2775226E7" ymin="464353.4375" xmax="1.2807205E7" ymax="496453.625"/>
</MAP>
</INIT>
</REQUEST>RESPONSE DUMP EmaServerLink
[RESPONSE: null]getting map....null
java.net.MalformedURLException
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at com.ema.viewer.gui.LegendPanel.getLegendIcon(LegendPanel.java:63)
at com.ema.viewer.gui.LegendPanel.<init>(LegendPanel.java:39)
at com.ema.viewer.gui.LayerPanel.<init>(LayerPanel.java:86)
at com.ema.viewer.MapView.buildGui(MapView.java:234)
at com.ema.viewer.MapView.init(MapView.java:287)
at com.ema.viewer.MphView.init(MphView.java:86)
at com.ema.viewer.EmaViewer.init(EmaViewer.java:213)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at javax.swing.ImageIcon.<init>(Unknown Source)
at com.ema.viewer.MphModel.init(MphModel.java:152)
at com.ema.viewer.EmaViewer.init(EmaViewer.java:212)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)


Any idea for this? Thanks
[+][-]11/05/09 12:40 AM, ID: 25747626Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625