Looking at your stacktrace I found: "Caused by: java.lang.ClassFormatError:
Incompatible magic value 175137123 in class file com/rb/model/Contact"
Maybe the jar you are uploading was compiled using a newer jdk version that
the one used by guvnor. Can you check that?
Best,
2010/5/27 Mahalakshmi <mr2809(a)nyu.edu>
hi,
I am a new drools user.
I setup the guvnor standalone install from the drools website.
Problem occurs when i upload a .jar file while i created using eclipse.
It shows that the jar file has uploaded successfully but I am unable to
'save & validate'
I get error: "contact system administrator"
When I do 'Build Package' I get error: Pojos have loaded .class files using
java version 1.6 and guvnor is using java version 1.5
I am not understanding how I could change the java version used.
Does it have anything to do with my eclipse? I set my project settings
(when I create a new java project) as J2SE1.5 and JRE6.
Is that the issue???
Please help.
The stack trace I get is:
11:39:44,904 ERROR [STDERR]
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public
abstract org.drools.guvnor.client.modeldriven.SuggestionCompletionEngine
org.drools.guvnor.client.rpc.RepositoryService.loadSuggestionCompletionEngine(java.lang.String)
throws com.google.gwt.user.client.rpc.SerializableException' threw an
unexpected exception: java.lang.reflect.InvocationTargetException
11:39:44,904 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
11:39:44,904 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
11:39:44,904 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
11:39:44,904 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
11:39:44,904 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
11:39:44,904 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
11:39:44,904 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
11:39:44,904 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:39:44,904 ERROR [STDERR] at
org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
11:39:44,905 ERROR [STDERR] at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
11:39:44,905 ERROR [STDERR] at
org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:39:44,905 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
11:39:44,905 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
11:39:44,906 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
11:39:44,906 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
11:39:44,906 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
11:39:44,906 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
11:39:44,907 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
11:39:44,907 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
11:39:44,907 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
11:39:44,907 ERROR [STDERR] at java.lang.Thread.run(Thread.java:613)
11:39:44,907 ERROR [STDERR] Caused by:
java.lang.reflect.InvocationTargetException
11:39:44,907 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:39:44,907 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:39:44,907 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:39:44,907 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:585)
11:39:44,907 ERROR [STDERR] at
org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
11:39:44,907 ERROR [STDERR] at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
11:39:44,907 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
11:39:44,909 ERROR [STDERR] at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:157)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
11:39:44,910 ERROR [STDERR] at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
11:39:44,910 ERROR [STDERR] at
org.drools.guvnor.server.ServiceImplementation_$$_javassist_7.loadSuggestionCompletionEngine(ServiceImplementation_$$_javassist_7.java)
11:39:44,911 ERROR [STDERR] at
org.drools.guvnor.server.RepositoryServiceServlet.loadSuggestionCompletionEngine(RepositoryServiceServlet.java:193)
11:39:44,911 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:39:44,911 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:39:44,911 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:39:44,911 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:585)
11:39:44,911 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
11:39:44,911 ERROR [STDERR] ... 27 more
11:39:44,912 ERROR [STDERR] Caused by: java.lang.ClassFormatError:
Incompatible magic value 175137123 in class file com/rb/model/Contact
11:39:44,912 ERROR [STDERR] at java.lang.ClassLoader.defineClass1(Native
Method)
11:39:44,912 ERROR [STDERR] at
java.lang.ClassLoader.defineClass(ClassLoader.java:675)
11:39:44,912 ERROR [STDERR] at
org.drools.rule.MapBackedClassLoader.fastFindClass(MapBackedClassLoader.java:70)
11:39:44,912 ERROR [STDERR] at
org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:89)
11:39:44,912 ERROR [STDERR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
11:39:44,912 ERROR [STDERR] at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
11:39:44,912 ERROR [STDERR] at java.lang.Class.forName0(Native Method)
11:39:44,913 ERROR [STDERR] at java.lang.Class.forName(Class.java:242)
11:39:44,913 ERROR [STDERR] at
org.drools.rule.MapBackedClassLoader.loadClass(MapBackedClassLoader.java:94)
11:39:44,913 ERROR [STDERR] at
java.lang.ClassLoader.loadClass(ClassLoader.java:251)
11:39:44,913 ERROR [STDERR] at
org.drools.base.ClassTypeResolver.resolveType(ClassTypeResolver.java:144)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.rules.SuggestionCompletionLoader.loadClass(SuggestionCompletionLoader.java:387)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.rules.SuggestionCompletionLoader.populateModelInfo(SuggestionCompletionLoader.java:289)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.rules.SuggestionCompletionLoader.processPackageHeader(SuggestionCompletionLoader.java:180)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.rules.SuggestionCompletionLoader.getSuggestionEngine(SuggestionCompletionLoader.java:130)
11:39:44,913 ERROR [STDERR] at
org.drools.guvnor.server.util.BRMSSuggestionCompletionLoader.getSuggestionEngine(BRMSSuggestionCompletionLoader.java:52)
11:39:44,914 ERROR [STDERR] at
org.drools.guvnor.server.ServiceImplementation.loadSuggestionCompletionEngine(ServiceImplementation.java:1361)
11:39:44,914 ERROR [STDERR] ... 52 more
Please help me!!
Thank you
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users