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+q4TFZEdU8H
8bjuPPxcmA
ksY_125554
2980848" user="jaind" password="" > <KEEPALIVE/></REQUEST>Serv
letExec: caught exception - java.lang.IllegalStateExce
ption: reset() failed - data has already been sent to client
[Wed Oct 14 14:02:26 EDT 2009] java.lang.IllegalStateExce
ption: reset() failed - data has already been sent to client.
Java Console:
java.lang.NullPointerExcep
tion
at javax.swing.ImageIcon.<ini
t>(Unknown
Source)
at com.ema.viewer.MphModel.in
it(MphMode
l.java:152
)
at com.ema.viewer.EmaViewer.i
nit(EmaVie
wer.java:2
12)
at sun.plugin2.applet.Plugin2
Manager$Ap
pletExecut
ionRunnabl
e.run(Unkn
own Source)
at java.lang.Thread.run(Unkno
wn 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()...REQ
UEST 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.MalformedURLExcep
tion
at java.net.URL.<init>(Unknow
n Source)
at java.net.URL.<init>(Unknow
n Source)
at java.net.URL.<init>(Unknow
n Source)
at com.ema.viewer.gui.LegendP
anel.getLe
gendIcon(L
egendPanel
.java:63)
at com.ema.viewer.gui.LegendP
anel.<init
>(LegendPa
nel.java:3
9)
at com.ema.viewer.gui.LayerPa
nel.<init>
(LayerPane
l.java:86)
at com.ema.viewer.MapView.bui
ldGui(MapV
iew.java:2
34)
at com.ema.viewer.MapView.ini
t(MapView.
java:287)
at com.ema.viewer.MphView.ini
t(MphView.
java:86)
at com.ema.viewer.EmaViewer.i
nit(EmaVie
wer.java:2
13)
at sun.plugin2.applet.Plugin2
Manager$Ap
pletExecut
ionRunnabl
e.run(Unkn
own Source)
at java.lang.Thread.run(Unkno
wn Source)
java.lang.NullPointerExcep
tion
at javax.swing.ImageIcon.<ini
t>(Unknown
Source)
at com.ema.viewer.MphModel.in
it(MphMode
l.java:152
)
at com.ema.viewer.EmaViewer.i
nit(EmaVie
wer.java:2
12)
at sun.plugin2.applet.Plugin2
Manager$Ap
pletExecut
ionRunnabl
e.run(Unkn
own Source)
at java.lang.Thread.run(Unkno
wn Source)
Any idea for this? Thanks