• Error message while logging in as okmAdmin

  • OpenKM has many interesting features, but requires some configuration process to show its full potential.
OpenKM has many interesting features, but requires some configuration process to show its full potential.
Forum rules: Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
 #12530  by LN-BEF
 
Hi all,

After getting the Office addin to work I was transferring my documents to OpenKM. So far so good. Now, when I log on as okmAdmin, I get these error messages:

Image

Image

I was browsing the new folders as admin. I got another error message (didn't manage to capture a screen shot). I think it was a "Unable to communicate with server (getUserRole)" something like that

After this, I lost contact with OpenKM. I rebooted the server, and after a while, I was logged in as okmAdmin.

Image

For each button I pressed, I got a different error message. Above is one of them.

What is going on here?
 #12537  by jllort
 
As indicates dandevnull that's a memory configuration problem in your OS, take a look at forum url he posts and tell us if it solves the problem.
 #12541  by LN-BEF
 
Worked well for a while.
When I clicked on 'Database query' (as okmAdmin) I got the following message:
Code: Select all
HTTP Status 500 - 

--------------------------------------------------------------------------------

type Exception report

message 

description The server encountered an internal error () that prevented it from fulfilling this request.

exception 

java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/compiler/codegen/CodeStream
	org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:508)
	org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:584)
	org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:214)
	org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:602)
	org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:411)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:405)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	com.openkm.servlet.admin.DatabaseQueryServlet.sendError(DatabaseQueryServlet.java:542)
	com.openkm.servlet.admin.DatabaseQueryServlet.doGet(DatabaseQueryServlet.java:110)
	com.openkm.servlet.admin.DatabaseQueryServlet.service(DatabaseQueryServlet.java:83)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

java.lang.ClassNotFoundException: Unexpected error during load of: org.eclipse.jdt.internal.compiler.codegen.CodeStream, msg=PermGen space
	org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:560)
	org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
	java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:508)
	org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:584)
	org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:214)
	org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:602)
	org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:411)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:405)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	com.openkm.servlet.admin.DatabaseQueryServlet.sendError(DatabaseQueryServlet.java:542)
	com.openkm.servlet.admin.DatabaseQueryServlet.doGet(DatabaseQueryServlet.java:110)
	com.openkm.servlet.admin.DatabaseQueryServlet.service(DatabaseQueryServlet.java:83)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


root cause 

java.lang.OutOfMemoryError: PermGen space
	java.lang.ClassLoader.defineClass1(Native Method)
	java.lang.ClassLoader.defineClass(ClassLoader.java:621)
	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
	java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
	java.net.URLClassLoader.access$000(URLClassLoader.java:56)
	java.net.URLClassLoader$1.run(URLClassLoader.java:195)
	java.security.AccessController.doPrivileged(Native Method)
	java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	org.jboss.mx.loading.RepositoryClassLoader.findClassLocally(RepositoryClassLoader.java:690)
	org.jboss.mx.loading.RepositoryClassLoader.findClass(RepositoryClassLoader.java:670)
	java.lang.ClassLoader.loadClass(ClassLoader.java:307)
	org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:200)
	org.jboss.mx.loading.ClassLoadingTask$ThreadTask.run(ClassLoadingTask.java:131)
	org.jboss.mx.loading.LoadMgr3.nextTask(LoadMgr3.java:399)
	org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:527)
	org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
	java.lang.ClassLoader.loadClass(ClassLoader.java:252)
	java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
	org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:508)
	org.eclipse.jdt.internal.compiler.ast.TypeDeclaration.generateCode(TypeDeclaration.java:584)
	org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration.generateCode(CompilationUnitDeclaration.java:214)
	org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:602)
	org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:411)
	org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:405)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)


note The full stack trace of the root cause is available in the JBossWeb/2.0.1.GA logs.
 #12666  by LN-BEF
 
jllort wrote:How much memory do you have on this server ?
1GB for now. I've ordered two more GBs. All this could be a memory problem?

Thank you both for the help :)
 #12682  by jllort
 
Yes it's a memory problem. The perm germ problem is solved changing jvm parameters at run.sh or .bat
Code: Select all
JAVA_OPTS="-Xms256m -Xmx1024m -XX:PermSize=64m -XX:MaxPermSize=128m -Djava.awt.headless=true"
On GB is few memory to run jboss, at least 2GB, one for OS and other for jboss. Better configuration is 2GB for jboss and 2GB for OS, that's good for almost installation.

About Us

OpenKM is part of the management software. A management software is a program that facilitates the accomplishment of administrative tasks. OpenKM is a document management system that allows you to manage business content and workflow in a more efficient way. Document managers guarantee data protection by establishing information security for business content.