7 Replies Latest reply on Feb 3, 2015 3:43 PM by sanjay05222

    Trouble building projects with Custom Work Items

    sammeek

      Dear Board,

       

      I cannot get my project to build in the web editor, it uses a Custom Work Item class with many external dependencies. Having tried and failed to get the Maven POM to manage the dependencies, I unpacked the jbpm-console.war, added the jars in /WEB-INF/lib and then repacked the war, which deploys no problem.

       

      I have imported a project from Eclipse that runs perfectly in the development environment. I can view the BPMN diagram, the java files, and the work item .wid, the custom work items appear as service tasks in the diagram editor. However, the editor always shows an error in the problems window, but this error has no level, text, file, column or line record. When I attempt to build the project anyway, I get the following in the server log.

       

      2015-01-15 16:39:24,706 INFO  [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (Thread-95) Incremental build request received for: default://master@jbpm-test/jbpm-WPS-client/pom.xml (updated).

      2015-01-15 16:39:25,008 INFO  [org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder] (EJB default - 4) Incremental build request being processed: PathImpl{uri='default://master@jbpm-test/jbpm-WPS-client', fileName='jbpm-WPS-client', attrs={}} (updated).

      2015-01-15 16:39:25,084 INFO  [org.guvnor.inbox.backend.server.MailboxService] (Thread-95) mailbox service is up

      2015-01-15 16:39:26,194 ERROR [org.guvnor.common.services.builder.Builder] (EJB default - 4) null: java.lang.NullPointerException

        at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:121) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:201) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2176) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.rawTypeReference(ProblemReporter.java:6568) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:160) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:204) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.resolveTypeFor(SourceTypeBinding.java:1439) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.fields(SourceTypeBinding.java:717) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.faultInTypesForFieldsAndMethods(SourceTypeBinding.java:695) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:420) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:763) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470) [ecj-4.3.1.jar:]

        at org.drools.compiler.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:409) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.drools.compiler.commons.jci.compilers.AbstractJavaCompiler.compile(AbstractJavaCompiler.java:49) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.drools.compiler.kie.builder.impl.KieBuilderImpl.compileJavaClasses(KieBuilderImpl.java:532) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.drools.compiler.kie.builder.impl.KieBuilderImpl.compileJavaClasses(KieBuilderImpl.java:523) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:175) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.Builder.build(Builder.java:129) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.BuildServiceImpl.doBuild(BuildServiceImpl.java:146) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.BuildServiceImpl.build(BuildServiceImpl.java:78) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.build(Unknown Source) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.ResourceChangeIncrementalBuilder$3.execute(ResourceChangeIncrementalBuilder.java:233) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.IncrementalBuilderExecutorManager.execute(IncrementalBuilderExecutorManager.java:58) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_11]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_11]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_11]

        at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_11]

        at org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53)

        at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

        at org.jboss.as.ejb3.concurrency.ContainerManagedConcurrencyInterceptor.processInvocation(ContainerManagedConcurrencyInterceptor.java:104) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:407)

        at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:55) [weld-core-impl-2.1.2.Final.jar:2014-01-09 09:23]

        at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) [wildfly-weld-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) [wildfly-ee-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

        at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.singleton.SingletonComponentInstanceAssociationInterceptor.processInvocation(SingletonComponentInstanceAssociationInterceptor.java:52) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInNoTx(CMTTxInterceptor.java:260) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.as.ejb3.tx.CMTTxInterceptor.notSupported(CMTTxInterceptor.java:324) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:237) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:43) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:95) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:55) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

        at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:448)

        at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:326)

        at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61)

        at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:185)

        at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:182)

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.interceptors.LogDiagnosticContextRecoveryInterceptor.processInvocation(LogDiagnosticContextRecoveryInterceptor.java:79) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:309)

        at org.jboss.as.ejb3.component.interceptors.AsyncFutureInterceptorFactory$1$2.runInvocation(AsyncFutureInterceptorFactory.java:97) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at org.jboss.as.ejb3.component.interceptors.AsyncInvocationTask.run(AsyncInvocationTask.java:73) [wildfly-ejb3-8.1.0.Final.jar:8.1.0.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]

        at org.jboss.threads.JBossThread.run(JBossThread.java:122)

       

       

      2015-01-15 16:39:42,443 ERROR [org.guvnor.common.services.builder.Builder] (default task-19) null: java.lang.NullPointerException

        at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:121) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.problem.ProblemHandler.handle(ProblemHandler.java:201) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.handle(ProblemReporter.java:2176) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.problem.ProblemReporter.rawTypeReference(ProblemReporter.java:6568) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.ast.TypeReference.internalResolveType(TypeReference.java:160) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.ast.TypeReference.resolveType(TypeReference.java:204) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.resolveTypeFor(SourceTypeBinding.java:1439) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.fields(SourceTypeBinding.java:717) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.lookup.SourceTypeBinding.faultInTypesForFieldsAndMethods(SourceTypeBinding.java:695) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope.faultInTypes(CompilationUnitScope.java:420) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.Compiler.process(Compiler.java:763) [ecj-4.3.1.jar:]

        at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470) [ecj-4.3.1.jar:]

        at org.drools.compiler.commons.jci.compilers.EclipseJavaCompiler.compile(EclipseJavaCompiler.java:409) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.drools.compiler.commons.jci.compilers.AbstractJavaCompiler.compile(AbstractJavaCompiler.java:49) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.drools.compiler.kie.builder.impl.KieBuilderImpl.compileJavaClasses(KieBuilderImpl.java:532) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.drools.compiler.kie.builder.impl.KieBuilderImpl.compileJavaClasses(KieBuilderImpl.java:523) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.drools.compiler.kie.builder.impl.KieBuilderImpl.buildAll(KieBuilderImpl.java:175) [drools-compiler-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.Builder.build(Builder.java:129) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.BuildServiceImpl.doBuild(BuildServiceImpl.java:146) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.BuildServiceImpl.buildAndDeploy(BuildServiceImpl.java:95) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at org.guvnor.common.services.builder.BuildServiceImpl$Proxy$_$$_WeldClientProxy.buildAndDeploy(Unknown Source) [guvnor-project-builder-6.1.0.Final.jar:6.1.0.Final]

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.8.0_11]

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) [rt.jar:1.8.0_11]

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.8.0_11]

        at java.lang.reflect.Method.invoke(Method.java:483) [rt.jar:1.8.0_11]

        at org.jboss.errai.bus.server.io.AbstractRPCMethodCallback.invokeMethodFromMessage(AbstractRPCMethodCallback.java:48) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.bus.server.io.ValueReplyRPCEndpointCallback.callback(ValueReplyRPCEndpointCallback.java:22) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.bus.server.io.RemoteServiceCallback.callback(RemoteServiceCallback.java:54) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.cdi.server.CDIExtensionPoints$3.callback(CDIExtensionPoints.java:499) [errai-weld-integration-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.bus.server.DeliveryPlan.deliver(DeliveryPlan.java:47) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.bus.server.ServerMessageBusImpl.sendGlobal(ServerMessageBusImpl.java:284) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.bus.server.SimpleDispatcher.dispatchGlobal(SimpleDispatcher.java:46) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:97) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.bus.server.service.ErraiServiceImpl.store(ErraiServiceImpl.java:114) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at org.jboss.errai.bus.server.servlet.DefaultBlockingServlet.doPost(DefaultBlockingServlet.java:140) [errai-bus-2.4.4.Final.jar:2.4.4.Final]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jboss-servlet-api_3.1_spec-1.0.0.Final.jar:1.0.0.Final]

        at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:130) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at org.jboss.solder.servlet.exception.CatchExceptionFilter.doFilter(CatchExceptionFilter.java:65) [solder-impl-3.2.1.Final.jar:3.2.1.Final]

        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at org.jboss.solder.servlet.event.ServletEventBridgeFilter.doFilter(ServletEventBridgeFilter.java:74) [solder-impl-3.2.1.Final.jar:3.2.1.Final]

        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [jbpm-designer-backend-6.1.0.Final.jar:6.1.0.Final]

        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:283) [uberfire-security-server-0.4.0.Final.jar:0.4.0.Final]

        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at org.uberfire.security.server.UberFireSecurityFilter.doFilter(UberFireSecurityFilter.java:283) [uberfire-security-server-0.4.0.Final.jar:0.4.0.Final]

        at io.undertow.servlet.core.ManagedFilter.doFilter(ManagedFilter.java:60) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:132) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.FilterHandler.handleRequest(FilterHandler.java:85) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:113) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.server.handlers.DisableCacheHandler.handleRequest(DisableCacheHandler.java:27) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:51) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:61) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:56) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:58) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:70) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.security.handlers.SecurityInitialHandler.handleRequest(SecurityInitialHandler.java:76) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61)

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:25) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:240) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:227) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:73) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:146) [undertow-servlet-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727) [undertow-core-1.0.15.Final.jar:1.0.15.Final]

        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [rt.jar:1.8.0_11]

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [rt.jar:1.8.0_11]

        at java.lang.Thread.run(Thread.java:745) [rt.jar:1.8.0_11]

       

      Any help would be appreciated as I am pulling my hair out.

        • 1. Re: Trouble building projects with Custom Work Items
          sanjay05222

          Hi maciejz  ( Please see this and help ) I am also pulling my hair out

          Sorry I have no solution though but I am also facing similar issue today .

          I have done following though.

          1. created the workitem and packed it in jar

          2. Uploaded the jar kie work bench in repository

          3 configured the kmodule.xml to this

           

          https://bugzilla.redhat.com/show_bug.cgi?id=1078337

           

          <kmodule xmlns="http://jboss.org/kie/6.0.0/kmodule" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

            <kbase name="defaultKieBase" default="true" eventProcessingMode="cloud" equalsBehavior="identity" declarativeAgenda="disabled" scope="javax.enterprise.context.ApplicationScoped" packages="*">

            <ksession name="defaultKieSession" type="stateful" default="true" clockType="realtime" scope="javax.enterprise.context.ApplicationScoped">

            <workItemHandlers>

            <workItemHandler type="new com.oasis.workitem.MyWebServiceWorkItemHandler()" name="WebService"/>

            </workItemHandlers>

            </ksession>

            </kbase>

          </kmodule>

           

          4. When to Project builder and added this jar as dependency and then tried to deploy the process.

          No Luck my error was once time the one you shared but that time I place the work item class and checked in by git into the my process kjar .

           

          ####   Error ###

          05:29:49,058 ERROR [stderr] (FileRepositoryConnector-1) Exception in thread "FileRepositoryConnector-1" java.lang.IllegalArgumentException: number of transferred bytes cannot

          05:29:49,088 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:123)

          05:29:49,088 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:299)

          05:29:49,115 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)

          05:29:49,116 ERROR [stderr] (FileRepositoryConnector-1)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          05:29:49,144 ERROR [stderr] (FileRepositoryConnector-1)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          05:29:49,145 ERROR [stderr] (FileRepositoryConnector-1)         at java.lang.Thread.run(Thread.java:745)

          05:29:50,081 ERROR [org.guvnor.common.services.builder.Builder] (default task-2) number of transferred bytes cannot be negative: java.lang.IllegalArgumentException: number of

          be negative

                  at org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:123) [aether-util-1.13.1.jar:]

                  at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:299) [aether-connector-file-1.13.1.jar:]

                  at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60) [aether-util-1.13.1.jar:]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]

                  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

           

           

          05:29:50,082 ERROR [stderr] (FileRepositoryConnector-1) Exception in thread "FileRepositoryConnector-1" java.lang.IllegalArgumentException: number of transferred bytes cannot

          05:29:50,114 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:123)

          05:29:50,141 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:299)

          05:29:50,163 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)

          05:29:50,164 ERROR [stderr] (FileRepositoryConnector-1)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          05:29:50,164 ERROR [stderr] (FileRepositoryConnector-1)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          05:29:50,173 ERROR [stderr] (FileRepositoryConnector-1)         at java.lang.Thread.run(Thread.java:745)

          05:29:53,985 ERROR [stderr] (FileRepositoryConnector-1) Exception in thread "FileRepositoryConnector-1" java.lang.IllegalArgumentException: number of transferred bytes cannot

          05:29:53,987 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:123)

          05:29:54,015 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:299)

          05:29:54,015 ERROR [stderr] (FileRepositoryConnector-1)         at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60)

          05:29:54,017 ERROR [stderr] (FileRepositoryConnector-1)         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

          05:29:54,021 ERROR [stderr] (FileRepositoryConnector-1)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

          05:29:54,031 ERROR [stderr] (FileRepositoryConnector-1)         at java.lang.Thread.run(Thread.java:745)

          05:29:53,986 ERROR [org.guvnor.common.services.builder.BuildServiceImpl] (default task-2) number of transferred bytes cannot be negative: java.lang.IllegalArgumentException: n

          s cannot be negative

                  at org.sonatype.aether.util.listener.DefaultTransferEvent.setTransferredBytes(DefaultTransferEvent.java:123) [aether-util-1.13.1.jar:]

                  at org.sonatype.aether.connector.file.FileRepositoryWorker.run(FileRepositoryWorker.java:299) [aether-connector-file-1.13.1.jar:]

                  at org.sonatype.aether.util.concurrency.RunnableErrorForwarder$1.run(RunnableErrorForwarder.java:60) [aether-util-1.13.1.jar:]

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_71]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_71]

                  at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_71]

          • 2. Re: Trouble building projects with Custom Work Items
            sanjay05222

            Can you share the log where it says "Caused By ......"

            • 3. Re: Trouble building projects with Custom Work Items
              sanjay05222

              Please share the details of the steps you performed in order to create the custom work item. actually I tried two ways once which I replied in the earlier post . and then i tried the way you have tried .

              I was able to make it work. Please share exactly the steps you performed and the configuration you did in order for me to find out the issue. - Thanks .I think I have some success which I can share. so please share steps you follow so that I can troubleshoot.

              • 4. Re: Trouble building projects with Custom Work Items
                sammeek

                Hi Sanjay,

                 

                Thank you for your offer of help, this has been a problem that I have been stuck on for some time.

                 

                I don't upload any JARs for the custom work items, I upload the Java files in the jbpm-console via github and I am trying to manage the dependencies via the project pom file. Some dependencies seem to work and produce no errors, however some of them produce the "number of transferred bytes cannot be negative" error.

                 

                I know that my project actually runs because I developed it Eclipse and it works fine.

                 

                Thanks

                 

                Sam

                • 5. Re: Trouble building projects with Custom Work Items
                  sanjay05222

                  Sam Meek wrote:

                   

                  Hi Sanjay,

                   

                  Thank you for your offer of help, this has been a problem that I have been stuck on for some time.

                   

                  I don't upload any JARs for the custom work items, I upload the Java files in the jbpm-console via github and I am trying to manage the dependencies via the project pom file. Some dependencies seem to work and produce no errors, however some of them produce the "number of transferred bytes cannot be negative" error.

                   

                  I know that my project actually runs because I developed it Eclipse and it works fine.

                   

                  Thanks

                   

                  Sam

                  So actually you have now resolved all the problems looks like. ? I was not able to deploy and run the workflow items via first method where I manage dependency through the project pom file.

                  But I did solved the problem by creating a pom project just for the work items class packing it in jar file and droping it in the jbpm-Console\WEB-Inf\lib.  and configuring the new Work Item in the .conf file instead of kmodule of the BPMN project.

                  so to summarize I have one bpm project , second workitems project (jar) and third have to update the jbpm-console.war with conf file update and droping jar inside the web-inf\lib folder of jbpm-console.

                   

                  Thanks

                  Sanjay Gautam

                  • 6. Re: Trouble building projects with Custom Work Items
                    sammeek

                    Hi Sanjay,

                     

                    Thank you so much for your instructions, they have allowed me to compile and build my project. FYI I deployed the jbpm-console.war with the required libraries in the WEB-INF/lib folder and it seems take care all of the dependencies. I have also changed the CustomWorkItemHanders.conf file in the WEB-INF/classes/META-INF folder, but I am now getting the error:

                     

                    "Process instances failed to start [name of process] Could not find work item handler for Pillar4PointInPolygon"

                     

                    My CustomWorkItemHandlers.conf file is as follows:

                     

                    [

                      "Log": new org.jbpm.process.instance.impl.demo.SystemOutWorkItemHandler(),

                      "WebService": new org.jbpm.process.workitem.webservice.WebServiceWorkItemHandler(ksession),

                      "Rest": new org.jbpm.process.workitem.rest.RESTWorkItemHandler(),

                      "Service Task" : new org.jbpm.process.workitem.bpmn2.ServiceTaskHandler(ksession),

                      "Pillar4PointInPolygon": new cobweb.m24.GenericWorkItemHandlerClient()

                    ]

                     

                    where cobweb.m24.GenericWorkItemHandlerClient() implements WorkItemHandler

                     

                    and WEB-INF/classes/META-INF/drools.session.conf is:

                     

                    drools.workItemHandlers = CustomWorkItemHandlers.conf


                    Any ideas?


                    Thank you for all of your help so far.


                    Sam

                    • 7. Re: Trouble building projects with Custom Work Items
                      sanjay05222

                      Did you added the information into the JBPM project xxxx.wid file ? If now you will have to add and configure the custom work item there as well. Hope this helps - Sanjay