Hi Martin, Looks like your REST initialization is occurring before EOF is completely initialized. Some things to check:
1) Does your Application constructor call super()? (I remember we talked about this at WOWODC) 2) Does your application manipulate EOF in the main method or before the REST initialization? Could you try to delay the REST initialization? Like moving the initRest method call to the didFinishLaunching method. Does it work? Cheers, Henrique On 29/07/2013, at 16:20, Martin B <syrinx2...@msn.com> wrote: > Hi everybody, > > I have a few Wonder applications that were deployed with Maven recently which > seem to be crashing randomly. Some are of these applications are completely > new, but others have been running for years (deployed with ANT) without such > problem. The stacktrace looks like this: > > 21951 [main] WARN NSLog - A fatal exception occurred: null > [2013-7-29 14:59:28 EDT] <main> java.lang.NullPointerException > at com.webobjects.eoaccess.EOModel.createPrototypeCache(EOModel.java:631) > at > com.webobjects.eoaccess.EOModel.prototypeAttributeNamed(EOModel.java:699) > at > com.webobjects.eoaccess.ERXModel.prototypeAttributeNamed(ERXModel.java:315) > at com.webobjects.eoaccess.EOAttribute.<init>(EOAttribute.java:367) > at com.webobjects.eoaccess.EOEntity.attributes(EOEntity.java:816) > at com.webobjects.eoaccess.EOEntity.attributeNamed(EOEntity.java:789) > at > com.webobjects.eoaccess.EOEntity.primaryKeyAttributes(EOEntity.java:1315) > at > er.rest.ERXEORestDelegate.__hasNumericPrimaryKeys(ERXEORestDelegate.java:33) > at > er.rest.routes.ERXRouteRequestHandler.addDefaultRoutes(ERXRouteRequestHandler.java:542) > at > er.rest.routes.ERXRouteRequestHandler.addDefaultRoutes(ERXRouteRequestHandler.java:519) > at com.oaciq.pfco.serveur.Application.initREST(Application.java:34) > at com.oaciq.pfco.serveur.Application.<init>(Application.java:26) > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at > sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at > sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at java.lang.Class.newInstance0(Class.java:355) > at java.lang.Class.newInstance(Class.java:308) > at com.webobjects.appserver.WOApplication.main(WOApplication.java:547) > at er.extensions.appserver.ERXApplication.main(ERXApplication.java:821) > at com.oaciq.pfco.serveur.Application.main(Application.java:21) > > I have tried many different things but I cannot find a solution. This is > driving me NUTS! Hints anyone? > > Thank you. > > Martin > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com > > This email sent to hpra...@gmail.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com