Getting com.objectdb.o.UserException:

#1

I am using the object db version 2.x in a web application that runs on tomcat4. I am using the default configuration file.

I am getting the follwing error when I launch the application.
Please help.

com.objectdb.o.UserException: Failed to create a new file 'file:C:\Program Files (x86)\Apache Group\Tomcat 4.0\webapps\Expresso\WEB-INF\log\odb20120904.log'
at com.objectdb.o.MSG.d(MSG.java:74)
at com.objectdb.o.LFL.L(LFL.java:842)
at com.objectdb.o.LFL.I(LFL.java:782)
at com.objectdb.o.LFL.I(LFL.java:751)
at com.objectdb.o.LGM.<init>(LGM.java:120)
at com.objectdb.o.CFG.v(CFG.java:308)
at com.objectdb.o.CFG.<clinit>(CFG.java:59)
at com.objectdb.o.JEN.<init>(JEN.java:59)
at com.objectdb.Enhancer.enhance(Enhancer.java:66)
at com.anritsu.eu.database.ObjectDBJDOClassEnhancer.enhanceClasses(Unknown Source)
at com.anritsu.eu.database.JDOObjectEnhancerListener.contextInitialized(Unknown Source)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3188)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3404)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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:585)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Caused by: java.io.FileNotFoundException: file:C:\Program Files (x86)\Apache Group\Tomcat 4.0\webapps\Expresso\WEB-INF\log\odb20120904.log (The filename, directory name, or volume label syntax is incorrect)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at com.objectdb.o.LFL.L(LFL.java:829)
... 32 more

 

Is there any way to disable the object db logging to avoid this error or how do i solve the above issue?

#2

You can either:

Or:

  • Grant the ObjectDB process permission to write to:
    C:\Program Files (x86)\Apache Group\Tomcat 4.0\webapps\Expresso\WEB-INF\log\
ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#3

Cant we just disable to objectdb logging......is there any ways to disable the object db logging ?

#4

Currently not, but this option should be added in future versions.

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)
#5

You should be able to disable logging now with ObjectDB 2.4.3_01 by specifying an empty path.

 

ObjectDB Support
ObjectDB - Fast Object Database for Java (JPA/JDO)

Post Reply

To post a reply and/or subscribe to update notifications - please login