Service Desk Practitioners Forum
cancel

Java error - unable to serialize...

Highlighted
Saxo Javier
Respected Contributor.

Java error - unable to serialize...

Hi

I have SD4.5 + SP17 and every now and then (at least once a day now) SD crashes with the following in the logserver.txt file:

******
logserver.txt
-------------------
Wed, 01/08/2007 12:52:10 Unknown error occured on connection: AppTcpConnection[AppEndPoint[itp://0.0.0.0/0.0.0.0:30998]->itp://10.0.8.8:2413]
Wed, 01/08/2007 12:52:10 ITPjava.lang.OutOfMemoryError
<>

Wed, 01/08/2007 12:52:14 java.lang.OutOfMemoryError
<>

Wed, 01/08/2007 12:52:14 load of repository items failed for id: 281482218438854
Wed, 01/08/2007 12:52:14 com.hp.ifc.io.AppStreamException: Unable to deserialize an object (com.hp.ifc.rep.views.AppFieldInfo).
null
at com.hp.ifc.io.AppStreamer.readValue(Unknown Source)
at com.hp.ifc.io.AppStreamer.readValue(Unknown Source)
at com.hp.ifc.rep.views.AppAbstractViewInfo.load(Unknown Source)
at com.hp.ifc.rep.views.AppTableViewInfo.load(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.hp.ifc.io.AppStreamer.readValue(Unknown Source)
at com.hp.ifc.io.AppDataStream.readObject(Unknown Source)
at com.hp.ifc.util.AppUtilities.serializedStringToObject(Unknown Source)
at com.hp.ifc.bus.AppSrvRepository.loadInfos(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.hp.ifc.bus.AppSrvDispatch.invoke(Unknown Source)
at com.hp.ifc.bus.AppSrvDispatch.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.hp.ifc.net.itp.AppItpRequest.localInvoke(Unknown Source)
at com.hp.ifc.net.itp.AppItpRequestHandler.process(Unknown Source)
at com.hp.ifc.net.tcp.AppTcpConnection.processRequest(Unknown Source)
at com.hp.ifc.net.tcp.AppTcpThread.run(Unknown Source)

Wed, 01/08/2007 12:52:14 com.hp.ifc.io.AppStreamException: Unable to deserialize an array of objects.
at com.hp.ifc.io.AppStreamer.readValue(Unknown Source)
at com.hp.ifc.rep.views.AppAbstractViewInfo.load(Unknown Source)
at com.hp.ifc.rep.views.AppTableViewInfo.load(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.hp.ifc.io.AppStreamer.readValue(Unknown Source)
at com.hp.ifc.io.AppDataStream.readObject(Unknown Source)
at com.hp.ifc.util.AppUtilities.serializedStringToObject(Unknown Source)
at com.hp.ifc.bus.AppSrvRepository.loadInfos(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.hp.ifc.bus.AppSrvDispatch.invoke(Unknown Source)
at com.hp.ifc.bus.AppSrvDispatch.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at com.hp.ifc.net.itp.AppItpRequest.localInvoke(Unknown Source)
at com.hp.ifc.net.itp.AppItpRequestHandler.process(Unknown Source)
at com.hp.ifc.net.tcp.AppTcpConnection.processRequest(Unknown Source)
at com.hp.ifc.net.tcp.AppTcpThread.run(Unknown Source)

Wed, 01/08/2007 12:52:14 load of repository items failed for id: 281481212723340
Wed, 01/08/2007 12:52:15 java.lang.OutOfMemoryError
<>

Wed, 01/08/2007 12:52:15 java.lang.OutOfMemoryError
<>

Wed, 01/08/2007 12:52:15 com.hp.ifc.io.AppStreamException: Unable to deserialize an array of objects.
at com.hp.ifc.io.AppStreamer.readValue(Unknown Source)


***

It then keeps going on like that until the server and tomcat services are restarted manually.

I got some indications of Java memory problems, but I am not sure how to pinpoint the issue. Our Java memory settings looks like this:

***
sd_server.bat
--------------
@ECHO OFF
if "%1"=="START" goto start
if "%1"=="start" goto start
if "%1"=="STOP" goto stop
if "%1"=="stop" goto stop
echo Syntax: sd_server [START/STOP]
pause
goto end
:start
cd ..
shift
rem use this options when you have memory problems
java -XX:MaxNewSize=2048M -XX:NewSize=1024M -Xms1536M -Xmx1536M -cp lib\classloader.jar com.hp.startup.Bootstrap com.hp.ifc.bus.AppServer -showconsoleoutput %1 %2 %3 %4 %5 %6 %7 %8 %9
java -cp lib\classloader.jar com.hp.startup.Bootstrap com.hp.ifc.bus.AppServer -showconsoleoutput %1 %2 %3 %4 %5 %6 %7 %8 %9
cd bin
goto end
:stop
cd ..
echo trying to stop local server
java -cp lib\classloader.jar com.hp.startup.Bootstrap com.hp.ifc.ui.AppServerManager localhost 30999
cd bin
goto end
:end
***

Would a jconsole maybe help figure out what the problem is?
Anybody with simmilar problems and suggestions?

Thanks in advance
5 REPLIES
Err_1
Acclaimed Contributor.

Re: Java error - unable to serialize...

It looks like you are having lack of memory issues.. I see your settings for sd_server.bat, but how are you starting your SD services?

If you start your SD services as Windows services, then you need to tune JVM as well under installservice.bat and reinstall the service.

More details in ITSM005569:
http://openview.hp.com/ecare/getsupportdoc?docid=ITSM005569
Randall Barrantes
SW Support Delivery Manager
Mark O'Loughlin
Acclaimed Contributor.

Re: Java error - unable to serialize...

Hi,

In the installservice.bat I think you need to rem the second "java -cp lib"

then as Randall suggests uninstall and reinstall the service using the appropiate .bat files and start the application server as a service.
Saxo Javier
Respected Contributor.

Re: Java error - unable to serialize...

thanks to both.

As unconvenient as it is, it seems like our support agreement has expired and I canoot login to check the article you included.

Would it be to ask too much if you email it to me in text? jfe@saxobank.com

thanks in advance
Err_1
Acclaimed Contributor.

Re: Java error - unable to serialize...

Javier,

ITSM005569 is about the memory Settings that need to be optimized, if you can not access the document you can also have this information (with more details) in the "SD installation guide", chapter 3, section: "Optimizing the Memory Settings".

Look for that document in your Service Desk installation CD.

Regards,
Randall Barrantes
SW Support Delivery Manager
Saxo Javier
Respected Contributor.

Re: Java error - unable to serialize...

Gotcha,

thanks :-)