Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to create new native thread #84

Closed
navneetccna opened this issue Apr 7, 2014 · 2 comments
Closed

unable to create new native thread #84

navneetccna opened this issue Apr 7, 2014 · 2 comments

Comments

@navneetccna
Copy link

07-04-2014 15:22:58 DEBUG velocity - Created '20' parsers.
07-04-2014 15:22:58 DEBUG velocity - Velocimacro : "velocimacro.library" is not set. Trying default library: VM_global_library.vm
07-04-2014 15:22:58 DEBUG velocity - URLResourceLoader: Exception when looking for 'VM_global_library.vm' at 'file:/root/bimn/bimserver/home/templates/'
java.io.FileNotFoundException: /root/bimn/bimserver/home/templates/VM_global_library.vm (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.(FileInputStream.java:146)
at java.io.FileInputStream.(FileInputStream.java:101)
at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90)
at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188)
at org.apache.velocity.runtime.resource.loader.URLResourceLoader.getResourceStream(URLResourceLoader.java:115)
at org.apache.velocity.runtime.resource.loader.ResourceLoader.resourceExists(ResourceLoader.java:224)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getLoaderForResource(ResourceManagerImpl.java:629)
at org.apache.velocity.runtime.resource.ResourceManagerImpl.getLoaderNameForResource(ResourceManagerImpl.java:612)
at org.apache.velocity.runtime.RuntimeInstance.getLoaderNameForResource(RuntimeInstance.java:1595)
at org.apache.velocity.runtime.VelocimacroFactory.initVelocimacro(VelocimacroFactory.java:159)
at org.apache.velocity.runtime.RuntimeInstance.init(RuntimeInstance.java:274)
at org.apache.velocity.app.VelocityEngine.init(VelocityEngine.java:93)
at org.bimserver.templating.TemplateEngine.init(TemplateEngine.java:76)
at org.bimserver.BimServer.start(BimServer.java:337)
at org.bimserver.JarBimServer.start(JarBimServer.java:84)
at org.bimserver.JarBimServer.main(JarBimServer.java:53)
07-04-2014 15:22:58 DEBUG velocity - Could not load resource 'VM_global_library.vm' from ResourceLoader org.apache.velocity.runtime.resource.loader.URLResourceLoader: /root/bimn/bimserver/home/templates/VM_global_library.vm (No such file or directory)
07-04-2014 15:22:58 DEBUG velocity - Velocimacro : Default library not found.
07-04-2014 15:22:58 DEBUG velocity - Velocimacro : allowInline = true : VMs can be defined inline in templates
07-04-2014 15:22:58 DEBUG velocity - Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
07-04-2014 15:22:58 DEBUG velocity - Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
07-04-2014 15:22:58 DEBUG velocity - Velocimacro : autoload off : VM system will not automatically reload global library macros
07-04-2014 15:22:58 INFO org.bimserver.database.berkeley.BerkeleyKeyValueStore - Non-empty database directory found "/root/bimn/home/database"
07-04-2014 15:22:58 ERROR org.bimserver.BimServer -
org.bimserver.database.berkeley.DatabaseInitException: Environment locked exception. Another process is using the same database, or the current user has no write access (database location: "/root/bimn/home/database")
at org.bimserver.database.berkeley.BerkeleyKeyValueStore.(BerkeleyKeyValueStore.java:96)
at org.bimserver.BimServer.start(BimServer.java:339)
at org.bimserver.JarBimServer.start(JarBimServer.java:84)
at org.bimserver.JarBimServer.main(JarBimServer.java:53)

@rubendel
Copy link
Member

rubendel commented Apr 7, 2014

There is probably another BIMserver running, keeping the database locked. Or your user has no access rights on the filesystem. Almost literally what the log says ("Environment locked exception. Another process is using the same database, or the current user has no write access (database location: "/root/bimn/home/database")").

I see nothing about native threads in this log.

@rubendel rubendel closed this as completed Apr 7, 2014
@navneetccna
Copy link
Author

Sorry i think i put wrong log here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants