Eugenio,
So this error occurs when you are trying to build the "default" package
in Guvnor?
The process you are adding to Guvnor, which one is that? Could you share
that with us?
Also, if your process also contains references (imports) to other domain
objects, did you also upload the model jar to Guvnor?
Thx,
Kris
Quoting Eugenio Abello <eugenio.abello(a)gmail.com>:
Hello, my goal is to use and manage Drolls Flow (start, stop ,....)
through
the gwt-console.
I'm using Drools 5.1 M1.
1) Create the files users.properties, roles.properties in \drools
-5.1.0.M1-guvnor-standalone\jboss-4.2.3.GA
<
http://jboss-4.2.3.ga/>\server\default\conf.
also create the file 'testDS1-ds.xml' in \default\deploy
2) Download from
http://www.mvnbrowser.com/
gwt-console-drools-5.1.0.M1.war
and gwt-console-server-drools-5.1.0.M1.war.
. copy these files in
\drools-5.1.0.M1-guvnor-standalone\jboss-4.2.3.GA<http://jboss-4.2.3.ga/>
\server\default\deploy
3) Start the jboss and handed me the following errors
2009-10-28 10:28:28,937 ERROR [STDERR] 28-10-2009 10:28:28 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
setProviders
INFO: Adding listed @Provider class org.jboss.bpm.report.FileWriter
2009-10-28 10:28:29,000 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin register
INFO: Added built in provider DataSourceProvider
2009-10-28 10:28:29,015 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin register
INFO: Added built in provider DefaultTextPlain
2009-10-28 10:28:29,015 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.StringTextStar
2009-10-28 10:28:29,015 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.InputStreamProvider
2009-10-28 10:28:29,015 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.ByteArrayProvider
2009-10-28 10:28:29,031 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider
2009-10-28 10:28:29,031 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.FormUrlEncodedProvider
2009-10-28 10:28:29,031 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin register
INFO: Added built in provider
org.jboss.resteasy.plugins.providers.StreamingOutputProvider
2009-10-28 10:28:29,046 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.MultipartReader
2009-10-28 10:28:29,078 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.ListMultipartReader
2009-10-28 10:28:29,078 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.MultipartFormDataReader
2009-10-28 10:28:29,093 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.MapMultipartFormDataReader
2009-10-28 10:28:29,093 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.MultipartWriter
2009-10-28 10:28:29,109 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.MultipartFormDataWriter
2009-10-28 10:28:29,109 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.ListMultipartWriter
2009-10-28 10:28:29,109 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.MapMultipartFormDataWriter
2009-10-28 10:28:29,109 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalReader
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.MultipartFormAnnotationReader
2009-10-28 10:28:29,125 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin optionalWriter
INFO: Adding built in
providerorg.jboss.resteasy.plugins.providers.multipart.MultipartFormAnnotationWriter
2009-10-28 10:28:29,125 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin
optionalProvider
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.IIOImageProvider
2009-10-28 10:28:29,140 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.providers.RegisterBuiltin
optionalProvider
INFO: Adding built in provider
org.jboss.resteasy.plugins.providers.multipart.MimeMultipartProvider
2009-10-28 10:28:29,234 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Deploying javax.ws.rs.core.Application: class
org.jboss.bpm.console.server.ConsoleServerApplication
2009-10-28 10:28:29,250 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.InfoFacade from
Application javax.ws.rs.core.Application
2009-10-28 10:28:29,281 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.FormProcessingFacade from Application
javax.ws.rs.core.Application
2009-10-28 10:28:29,312 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.EngineFacade
from Application javax.ws.rs.core.Application
2009-10-28 10:28:29,328 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.ProcessMgmtFacade from Application
javax.ws.rs.core.Application
2009-10-28 10:28:29,343 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Adding singleton resource org.jboss.bpm.report.ReportFacade
from
Application javax.ws.rs.core.Application
2009-10-28 10:28:29,343 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.TaskMgmtFacade
from Application javax.ws.rs.core.Application
2009-10-28 10:28:29,359 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.UserMgmtFacade
from Application javax.ws.rs.core.Application
2009-10-28 10:28:29,375 ERROR [STDERR] 28-10-2009 10:28:29 AM
org.jboss.resteasy.plugins.server.servlet.ResteasyBootstrap
processApplication
INFO: Adding singleton resource
org.jboss.bpm.console.server.TaskListFacade
from Application javax.ws.rs.core.Application
4) Create 'default' package in Guvnor,
http://localhost:8080/drools-guvnor
,
user=krisv , pass= mypassword. OK
5) From eclipse add hellow_world.rf to Guvnor to 'default' package,
OK
6) Build package 'default' , THE FOLLOWING delivery errors:
2009-10-28 11:18:43,859 INFO [STDOUT] DEBUG 28-10 11:18:43,859
(ServiceImplementation.java:loadRuleAsset:495) Package: default,
asset:
hellow_world. Load time taken for asset: 906
2009-10-28 11:19:04,843 INFO [STDOUT] ERROR 28-10 11:19:04,843
(RepositoryServiceServlet.java:doUnexpectedFailure:76)
java.lang.NullPointerException
2009-10-28 11:19:04,843 ERROR [STDERR]
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public
abstract org.drools.guvnor.client.rpc.BuilderResult[]
org.drools.guvnor.client.rpc.RepositoryService.buildPackage(java.lang.String,java.lang.String,boolean)
throws com.google.gwt.user.client.rpc.SerializableException'
threw
an
unexpected exception: java.lang.NullPointerException
2009-10-28 11:19:04,843 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:360)
2009-10-28 11:19:04,843 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:546)
2009-10-28 11:19:04,843 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:164)
2009-10-28 11:19:04,843 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RemoteServiceServlet.doPost(RemoteServiceServlet.java:86)
>
> 2009-10-28 11:19:04,843 ERROR [STDERR] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>
> 2009-10-28 11:19:04,843 ERROR [STDERR] at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>
> 2009-10-28 11:19:04,843 ERROR [STDERR] at
> org.jboss.seam.web.ContextFilter$1.process(ContextFilter.java:42)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.servlet.ContextualHttpServletRequest.run(ContextualHttpServletRequest.java:53)
>
> 2009-10-28 11:19:04,843 ERROR [STDERR] at
> org.jboss.seam.web.ContextFilter.doFilter(ContextFilter.java:37)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:182)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
>
> 2009-10-28 11:19:04,843 ERROR [STDERR] at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
2009-10-28 11:19:04,843 ERROR [STDERR] at
java.lang.Thread.run(Thread.java:619)
2009-10-28 11:19:04,843 ERROR [STDERR] Caused by:
java.lang.NullPointerException
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.compiler.ProcessBuilder.buildProcess(ProcessBuilder.java:118)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.compiler.ProcessBuilder.addProcessFromFile(ProcessBuilder.java:222)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:468)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.compiler.PackageBuilder.addRuleFlow(PackageBuilder.java:440)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.guvnor.server.contenthandler.RuleFlowHandler.compile(RuleFlowHandler.java:167)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.guvnor.server.builder.ContentPackageAssembler.buildAsset(ContentPackageAssembler.java:197)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.guvnor.server.builder.ContentPackageAssembler.buildPackage(ContentPackageAssembler.java:184)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:104)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.guvnor.server.builder.ContentPackageAssembler.<init>(ContentPackageAssembler.java:117)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1434)
2009-10-28 11:19:04,843 ERROR [STDERR] at org.drools
.guvnor.server.ServiceImplementation.buildPackage(ServiceImplementation.java:1415)
>
> 2009-10-28 11:19:04,843 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2009-10-28 11:19:04,843 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2009-10-28 11:19:04,843 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>
> 2009-10-28 11:19:04,843 ERROR [STDERR] at
> java.lang.reflect.Method.invoke(Method.java:597)
>
> 2009-10-28 11:19:04,843 ERROR [STDERR] at
> org.jboss.seam.util.Reflections.invoke(Reflections.java:22)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:56)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.transaction.RollbackInterceptor.aroundInvoke(RollbackInterceptor.java:28)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.core.BijectionInterceptor.aroundInvoke(BijectionInterceptor.java:77)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2009-10-28 11:19:04,843 ERROR [STDERR] at
org.jboss.seam.core.MethodContextInterceptor.aroundInvoke(MethodContextInterceptor.java:44)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.security.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:157)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:68)
>
> 2009-10-28 11:19:04,859 ERROR [STDERR] at
> org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:107)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.JavaBeanInterceptor.interceptInvocation(JavaBeanInterceptor.java:166)
2009-10-28 11:19:04,859 ERROR [STDERR] at
org.jboss.seam.intercept.JavaBeanInterceptor.invoke(JavaBeanInterceptor.java:102)
2009-10-28 11:19:04,859 ERROR [STDERR] at org.drools
.guvnor.server.ServiceImplementation_$$_javassist_7.buildPackage(ServiceImplementation_$$_javassist_7.java)
2009-10-28 11:19:04,859 ERROR [STDERR] at org.drools
.guvnor.server.RepositoryServiceServlet.buildPackage(RepositoryServiceServlet.java:206)
>
> 2009-10-28 11:19:04,859 ERROR [STDERR] at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2009-10-28 11:19:04,859 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
2009-10-28 11:19:04,859 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
2009-10-28 11:19:04,859 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:597)
2009-10-28 11:19:04,859 ERROR [STDERR] at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:527)
2009-10-28 11:19:04,859 ERROR [STDERR] ... 27 more
What is the problem?
Thanks
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm