[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: problems solved restarting tomcat
From:       David Smith <dns4 () cornell ! edu>
Date:       2009-02-26 15:41:52
Message-ID: 49A6B840.40103 () cornell ! edu
[Download RAW message or body]

Your options are pretty limited -- 1. Talk to the developer of your
webapp, 2. Hire another developer if the original isn't available, or 3.
Learn Java and web application development with Struts (that's the
framework your webapp is using), then look at the source code and debug
it yourself.

Sorry, but there isn't a lot we can do to help with what I see is
clearly a bug in the applicaiton.  My impression is tomcat is working
normally but can't generate a result on the request because of this
NumberFormatException.  If you have any other webapps working on that
tomcat instance, I'll bet they are still working. 

Some null value is getting into the system and isn't properly checked
for being not null.  Maybe it's not a form submission -- maybe it's some
string value the whole webapp depends on erroneously being set to null
by code elsewhere.

--David

Laura Bartolomé wrote:
> ok... :(
>
> some idea of where can I get information about this problem? I mean the
> problem that leaves Tomcat without working
>
> David Smith escribió:
>   
>> Normally no, but then again I don't know a lot about your software. 
>> Anything I suggest would be pure conjecture.
>>
>> --David
>>
>> Laura Bartolomé wrote:
>>   
>>     
>>> Ok, and the question is: is possible than this error makes Tomcat
>>> doesn't work and we need to restart it???
>>>
>>> Thanks for your help
>>>
>>> David Smith escribió:
>>>   
>>>     
>>>       
>>>> It looks like your web application is trying to convert a string to a
>>>> long (a type of number similar to an integer, but bigger) at line 49 in
>>>> se.purpur.roach.web.pub.action.PublicArticleAction, but the string it's
>>>> trying to convert is null.  On a guess, this is related to a form
>>>> submission and a required field wasn't filled in.  I'd recommend you
>>>> contact the developer if possible and have him/her fix the code.  There
>>>> should be a check for null and appropriate handling before any attempt
>>>> to convert the string to another type.
>>>>
>>>> --David
>>>>
>>>> Laura Bartolomé wrote:
>>>>   
>>>>     
>>>>       
>>>>         
>>>>> Hi again...
>>>>>
>>>>> We have problems with our webpage, suddenly it doens't load and an error
>>>>> message appears (I can't told you the exact error showed cause I
>>>>> couldn't see it, but I have to believe the boss... ). If we restart
>>>>> Tomcat then it turns on again working correctly! We have Tomcat 6 like a
>>>>> service on Windows 2003 Server.
>>>>>
>>>>> We have checked logs but we don't know java and we don't know if there
>>>>> are applications errors of tomcat errors. We have a lot of messages in
>>>>> catalina but we don't known what it means :( Here you are some of them.
>>>>> We have copied too some messages of stdout at the bottom
>>>>>
>>>>> 26-Feb-2009 10:16:42 org.apache.catalina.core.ApplicationDispatcher invoke
>>>>> SEVERE: Servlet.service() for servlet action threw exception
>>>>> java.lang.NumberFormatException: null
>>>>>     at java.lang.Long.parseLong(Unknown Source)
>>>>>     at java.lang.Long.parseLong(Unknown Source)
>>>>>     at
>>>>> se.purpur.roach.web.pub.action.PublicArticleAction.execute(PublicArticleAction.java:49)
>>>>>     at
>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
>>>>>     at
>>>>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
>>>>>     at
>>>>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>>>>>     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>>>     at
>>>>>
>>>>>       
>>>>>         
>>>>>           
>> .... snip ...
>>
>>   
>>     
>>>>> 26-Feb-2009 10:19:18 org.apache.coyote.http11.Http11AprProtocol pause
>>>>> INFO: Pausing Coyote HTTP/1.1 on http-192.168.100.49-80
>>>>> 26-Feb-2009 10:19:18 org.apache.coyote.ajp.AjpAprProtocol pause
>>>>> INFO: Pausing Coyote AJP/1.3 on ajp-8009
>>>>> 26-Feb-2009 10:19:19 org.apache.catalina.core.StandardService stop
>>>>> INFO: Stopping service Catalina
>>>>> 26-Feb-2009 10:19:20 org.apache.catalina.session.StandardSession writeObject
>>>>> WARNING: Cannot serialize session attribute articleForm for session
>>>>> 948D031E75C6C7F03384305D28EC3D83
>>>>> java.io.NotSerializableException:
>>>>> se.purpur.roach.core.sess.ContentTypeProperty
>>>>>     at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>>     at java.util.ArrayList.writeObject(Unknown Source)
>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>     at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.writeObject0(Unknown Source)
>>>>>     at java.io.ObjectOutputStream.writeObject(Unknown Source)
>>>>>     at
>>>>> org.apache.catalina.session.StandardSession.writeObject(StandardSession.java:1517)
>>>>>     at
>>>>> org.apache.catalina.session.StandardSession.writeObjectData(StandardSession.java:959)
>>>>>     at
>>>>> org.apache.catalina.session.StandardManager.doUnload(StandardManager.java:517)
>>>>>     at
>>>>> org.apache.catalina.session.StandardManager.unload(StandardManager.java:463)
>>>>>     at
>>>>> org.apache.catalina.session.StandardManager.stop(StandardManager.java:667)
>>>>>     at
>>>>> org.apache.catalina.core.StandardContext.stop(StandardContext.java:4519)
>>>>>     at
>>>>> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:924)
>>>>>     at
>>>>> org.apache.catalina.startup.HostConfig.undeployApps(HostConfig.java:1191)
>>>>>     at org.apache.catalina.startup.HostConfig.stop(HostConfig.java:1162)
>>>>>     at
>>>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:313)
>>>>>     at
>>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>>>>     at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1086)
>>>>>     at org.apache.catalina.core.ContainerBase.stop(ContainerBase.java:1098)
>>>>>     at org.apache.catalina.core.StandardEngine.stop(StandardEngine.java:448)
>>>>>     at
>>>>> org.apache.catalina.core.StandardService.stop(StandardService.java:584)
>>>>>     at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
>>>>>     at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
>>>>>     at org.apache.catalina.startup.Catalina.start(Catalina.java:603)
>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>     at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>     at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>>>     at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>     at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>>>>     at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>>>> 26-Feb-2009 10:19:20 org.apache.coyote.http11.Http11AprProtocol destroy
>>>>> INFO: Stopping Coyote HTTP/1.1 on http-192.168.100.49-80
>>>>> 26-Feb-2009 10:19:20 org.apache.coyote.ajp.AjpAprProtocol destroy
>>>>> INFO: Stopping Coyote AJP/1.3 on ajp-8009
>>>>>
>>>>> These are the last lines of stdout before restarting:
>>>>>
>>>>> 10:09:00,474  INFO LocaleFilter:61 - Set default locale [en_EN].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [bg_BG].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [hr_HR].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [en_EN].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [fi_FI].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [fr_FR].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [de_DE].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [hu_HU].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [it_IT].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [no_NO].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [pt_PT].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [ro_RO].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [ru_RU].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [es_ES].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [sv_SE].
>>>>> 10:09:00,490  INFO LocaleFilter:73 - Added supported locale [cz_CZ].
>>>>> 10:09:03,865  INFO LocaleFilter:61 - Set default locale [en_EN].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [bg_BG].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [hr_HR].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [en_EN].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [fi_FI].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [fr_FR].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [de_DE].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [hu_HU].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [it_IT].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [no_NO].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [pt_PT].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [ro_RO].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [ru_RU].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [es_ES].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [sv_SE].
>>>>> 10:09:03,880  INFO LocaleFilter:73 - Added supported locale [cz_CZ].
>>>>> 10:09:07,068  INFO LocaleFilter:61 - Set default locale [en_EN].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [bg_BG].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [hr_HR].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [en_EN].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [fi_FI].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [fr_FR].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [de_DE].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [hu_HU].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [it_IT].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [no_NO].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [pl_PL].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [pt_PT].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [ro_RO].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [ru_RU].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [es_ES].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [sv_SE].
>>>>> 10:09:07,084  INFO LocaleFilter:73 - Added supported locale [cz_CZ].
>>>>> 10:09:10,193  INFO LocaleFilter:61 - Set default locale [en_EN].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [bg_BG].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [hr_HR].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [en_EN].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [fi_FI].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [fr_FR].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [de_DE].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [hu_HU].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [it_IT].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [no_NO].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [pt_PT].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [ro_RO].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [ru_RU].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [es_ES].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [sv_SE].
>>>>> 10:09:10,209  INFO LocaleFilter:73 - Added supported locale [cz_CZ].
>>>>> javax.servlet.ServletException: java.lang.NumberFormatException: null
>>>>>     at
>>>>> org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:545)
>>>>>     at
>>>>> org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:486)
>>>>>     at
>>>>> org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
>>>>>     at
>>>>> org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
>>>>>     at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:507)
>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>>>>     at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>>>>     at
>>>>>       
>>>>>         
>>>>>           
>> ... snip ...
>>
>>     


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic