voyent
"Network Connection Interrupted" crashes Glassfish... ?  XML
Forum Index -> General Help
Author Message
posnea

Joined: 11/Jan/2008 00:00:00
Messages: 23
Offline


I`m not asking about MessageBox, but about something which seems more serious - because after message my Glassfish server is crashing and I can`t do anything before restart.
Pressing "refresh" button in message is useless.
There are no errors in glassfish console nor in webappliactions monitor but after the message i can`t start any webproject.
I have correct connection timeout in web.xml, but it didn`t solve the problem.

Is there anybody familiar with that?

I`m working with ICEFaces v.1.6.2 on Netbeans 6.0 with Glassfish V2.

Please help!
rainwebs


Joined: 24/Jul/2007 00:00:00
Messages: 237
Offline


I don't know if I understood what your problem is, but maybe it helps to supress such messages with a parameter in your web.xml:

Code:
	<context-param>
 		<param-name>com.icesoft.faces.connectionTimeout</param-name>
 		<param-value>100000</param-value>
 	</context-param>
 
 


I can't remember if our first steps with ICEfaces and Glassfish produced the results you talk about. So, you may have a problem somewhere else.

The message comes up, because the integration of ICEfaces and Glassfish is missing something ;-).

ICEfaces book . ICEcube . ICEfusion . ICEfaces Technical Blog Award
Ragnarok

Joined: 27/Jan/2008 00:00:00
Messages: 12
Offline


This happens to me too, i can not start any project when "something happens" , any solution???
posnea

Joined: 11/Jan/2008 00:00:00
Messages: 23
Offline


Before my server crashes, i receive this error:

Cannot serialize session attribute 1com.icesoft.faces.sessionAuxiliaryData for session 1cbde0752b5f7085f620a1d89eb3

java.io.NotSerializableException: com.icesoft.faces.webapp.http.servlet.ServletExternalContext
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
at java.util.HashMap.writeObject(HashMap.java:1001)
at sun.reflect.GeneratedMethodAccessor520.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:945)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1461)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:416)
at java.util.Collections$SynchronizedMap.writeObject(Collections.java:2029)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
...
...
..
and so on.

I heard that there are some problems with sessionSerialization, but i don`t know how to fix it.
Also error appears most of the time when i deploy my project a lot. There could be some memory leaks of some sort - i don`t know if undeploy/deploy operation deletes all of project resources from server memory.



judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


Could it be that you have a Stateful Bean of some kind (probably Session?) that the container is trying to synchronize and there is some part that possibly shouild have been denoted as Transient? I have seen this type of error before when the container is not able to Serialize some part of a Stateful ejb3.
posnea

Joined: 11/Jan/2008 00:00:00
Messages: 23
Offline


Well, Im using WebServices clients, which are generated automatically by NetBeans from WSDL. But im getting this error also without them.
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


Did you check the knowledge base in regards to Glassfish to make sure you have all the correct jars for your deployment (is it war or ear deployment)? You could also check the packaging of the samples that are bundled with each release.

You may also want to try ICEfaces 1.7.0.rc1 (the latest download available)
posnea

Joined: 11/Jan/2008 00:00:00
Messages: 23
Offline


I have .war deployment - do you suggest that i have some .jar files missing? This strange couse Im able to deploy and run application - it just crashes after some time, especially when im deploying alot.
And yes, i didnt check out latest release yet.

Im still new to JSF related programming and this could be some major erros in code (possibly wrong app. configuration) or wrong server configuration; i really dont know. It makes me nervous, cause my project is growing and still im unable to repair this leak.
judy.guglielmin

Joined: 20/Feb/2007 00:00:00
Messages: 1396
Offline


I would suggest deploying the sample applications (and check out the latest release as well) to see if there is any issue there--although they have gone through rigorous QA. You might then be able to spot some difference (really check the configuration files like web.xml, faces-config.xml and your navigation rules).
posnea

Joined: 11/Jan/2008 00:00:00
Messages: 23
Offline


I will do that.
Thank you for your help.
Ragnarok

Joined: 27/Jan/2008 00:00:00
Messages: 12
Offline


I changed the com.icesoft.faces.synchronousUpdate context param to true, and glassfish dont crashes since, maybe some bad buggy asynchonous connection without closing on the re-deployment crashes glassfish, since i dont need asynchonous mode, this solves mi problem, i hope this help you.
posnea

Joined: 11/Jan/2008 00:00:00
Messages: 23
Offline


Ragnarok, you were right! It really works. But without asychronous update i cant use 'Rendering' mechanism... This isnt good when im trying to create i.e. 'chat' application.
So what else can we do? I read that asynchronous update requiers more resources, perhaps there is some way to turn up JVM for Glassfish.
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team