Empty Entities-Files causes Runtimeproblems

Errortrigger: empty entitiefiles. (change\<file>.xml & requirement\<file>.xml
It is unknown what, had caused the empty entities.

Errorbehavior: No Login is possible.
Rarly: Display of a Null-Pointerexeption instead a Login Window
Rarly: autolgin works but the entitys are displayed onlay partialy. Actions canĀ“t be triggerd, they induce runtime-errors
(like: Calling service RequestComments failed.
ilarkesto.persistence.EntityDoesNotExistException: EntityDoesNotExistException: Entity does not exist: 3abbfb52-b1a0-46ff-9dca-c47018a8ca25-3)

ErrorLog:
Di, 24. Juli 2012, 10:09 -> 
    FATAL AHttpServlet         Init failed: scrum.server.common.StartServlet -> 
java.lang.RuntimeException: java.lang.RuntimeException: Application startup failed.
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:64)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.RuntimeException: Application startup failed.
    at ilarkesto.di.app.AApplication.start(AApplication.java:106)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.RuntimeException: Loading object from /var/lib/tomcat6/webapps/kunagi-data/entities/change/acc1603a-13c6-4b01-b898-93d13952459b.xml failed
    at ilarkesto.persistence.FileEntityStore.load(FileEntityStore.java:243)
    at ilarkesto.persistence.DaoService.addDao(DaoService.java:49)
    at ilarkesto.persistence.DaoService.initialize(DaoService.java:167)
    at ilarkesto.di.app.AApplication.getDaoService(AApplication.java:342)
    at ilarkesto.di.app.AApplication.ensureIntegrity(AApplication.java:65)
    at scrum.server.ScrumWebApplication.ensureIntegrity(ScrumWebApplication.java:147)
    at ilarkesto.di.app.AApplication.start(AApplication.java:102)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: com.thoughtworks.xstream.io.StreamException:  : Premature end of file.
    at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:105)
    at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:77)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
    at ilarkesto.integration.xstream.XStreamSerializer.deserialize(XStreamSerializer.java:85)
    at ilarkesto.persistence.FileEntityStore.loadObject(FileEntityStore.java:265)
    at ilarkesto.persistence.FileEntityStore.load(FileEntityStore.java:241)
    at ilarkesto.persistence.DaoService.addDao(DaoService.java:49)
    at ilarkesto.persistence.DaoService.initialize(DaoService.java:167)
    at ilarkesto.di.app.AApplication.getDaoService(AApplication.java:342)
    at ilarkesto.di.app.AApplication.ensureIntegrity(AApplication.java:65)
    at scrum.server.ScrumWebApplication.ensureIntegrity(ScrumWebApplication.java:147)
    at ilarkesto.di.app.AApplication.start(AApplication.java:102)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: org.xml.sax.SAXParseException; Premature end of file.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:98)
    at com.thoughtworks.xstream.io.xml.DomDriver.createReader(DomDriver.java:77)
    at com.thoughtworks.xstream.XStream.fromXML(XStream.java:895)
    at ilarkesto.integration.xstream.XStreamSerializer.deserialize(XStreamSerializer.java:85)
    at ilarkesto.persistence.FileEntityStore.loadObject(FileEntityStore.java:265)
    at ilarkesto.persistence.FileEntityStore.load(FileEntityStore.java:241)
    at ilarkesto.persistence.DaoService.addDao(DaoService.java:49)
    at ilarkesto.persistence.DaoService.initialize(DaoService.java:167)
    at ilarkesto.di.app.AApplication.getDaoService(AApplication.java:342)
    at ilarkesto.di.app.AApplication.ensureIntegrity(AApplication.java:65)
    at scrum.server.ScrumWebApplication.ensureIntegrity(ScrumWebApplication.java:147)
    at ilarkesto.di.app.AApplication.start(AApplication.java:102)
    at ilarkesto.di.app.ApplicationStarter.startApplication(ApplicationStarter.java:58)
    at ilarkesto.di.app.WebApplicationStarter.startWebApplication(WebApplicationStarter.java:32)
    at scrum.server.ScrumWebApplication.get(ScrumWebApplication.java:340)
    at scrum.server.common.AHttpServlet.init(AHttpServlet.java:86)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4187)
    at org.apache.catalina.core.StandardContext.start(StandardContext.java:4496)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:526)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637)
    at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563)
    at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498)
    at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277)
    at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321)
    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:593)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:616)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:289)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
 | app:kunagi

Statement from Kunagi Team

We recommend to stop Tomcat and create a backup of the whole data directory. Then you can delete the empty xml file. Start Tomcat again.

Change entities are for history. Therefore it will be a minor loss of data.

Status

Issue is closed.

Comments

Tue, Jul 24, 2012, 15:57 by Witek (SM,T)

Could you please tell us on which operating system you are running Kunagi?

Thu, Jul 26, 2012, 10:07 by anonymous

Kunagi version: 0.23.1
OS: Ubuntu 10.04.2
Tomcat: 6.0.24

Post a comment



optional
optional