12 Replies Latest reply on Jun 17, 2010 3:35 AM by HuiSheng Xu

    jbpm4.3 - NumberFormatException on validateRepositoryCache

    Advanced Technology Newbie

      Hi,

       

      I am working with Wicket, Spring 3.0 and jBPM 4.3.

      I've successfull deploy a two processdefinitions but when it comes to start a process it throws a number  NumberFormatException :

       

      2010-01-25 15:49:36,849  INFO  [DefaultCommandService:54] exception while executing command org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd@71aeef97

      java.lang.NumberFormatException: For input string: "java.vm.version"

      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

      at java.lang.Long.parseLong(Long.java:410)

      at java.lang.Long.valueOf(Long.java:525)

      at org.jbpm.pvm.internal.repository.RepositorySessionImpl.validateRepositoryCache(RepositorySessionImpl.java:208)

      at org.jbpm.pvm.internal.repository.RepositorySessionImpl.findProcessDefinitionByKey(RepositorySessionImpl.java:162)

      at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:58)

      at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)

      at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)

      at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)

      at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)

      at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)

      at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)

      at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)

      at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)

      at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:70)

      at com.fnb.stfr.service.TransferService.saveOut(TransferService.java:100)

      at com.fnb.stfr.service.TransferService$$FastClassByCGLIB$$3a35c291.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)

      at com.fnb.stfr.service.TransferService$$EnhancerByCGLIB$$9bcb0419.saveOut(<generated>)

      at WICKET_com.fnb.stfr.service.TransferService$$FastClassByCGLIB$$3a35c291.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:319)

      at WICKET_com.fnb.stfr.service.TransferService$$EnhancerByCGLIB$$900d80a.saveOut(<generated>)

      at com.fnb.stfr.webapp.component.TransferFormPanel.onSaveOrUpdateStfr(TransferFormPanel.java:211)

      at com.fnb.stfr.webapp.component.TransferFormPanel$6.onSubmit(TransferFormPanel.java:200)

      at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1532)

      at org.apache.wicket.markup.html.form.Form.process(Form.java:925)

      at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:887)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)

      at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)

      at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)

      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)

      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)

      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

      at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)

      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)

      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

      at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:384)

      at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:183)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

      at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)

      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

      at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)

      at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:129)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)

      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)

      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)

      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

      at org.mortbay.jetty.Server.handle(Server.java:324)

      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)

      at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)

      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)

      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)

      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)

      at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)

      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

      2010-01-25 15:49:36,860  ERROR [RequestCycle:1521] Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = stfr-ordenador-form]] threw an exception

      org.apache.wicket.WicketRuntimeException: Method onFormSubmitted of interface org.apache.wicket.markup.html.form.IFormSubmitListener targeted at component [MarkupContainer [Component id = stfr-ordenador-form]] threw an exception

      at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:193)

      at org.apache.wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:73)

      at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92)

      at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250)

      at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)

      at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428)

      at org.apache.wicket.RequestCycle.request(RequestCycle.java:545)

      at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479)

      at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

      at org.jsecurity.web.servlet.JSecurityFilter.doFilterInternal(JSecurityFilter.java:384)

      at org.jsecurity.web.servlet.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:183)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

      at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)

      at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

      at org.mortbay.servlet.UserAgentFilter.doFilter(UserAgentFilter.java:81)

      at org.mortbay.servlet.GzipFilter.doFilter(GzipFilter.java:129)

      at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1115)

      at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:361)

      at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)

      at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)

      at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)

      at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:417)

      at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)

      at org.mortbay.jetty.Server.handle(Server.java:324)

      at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)

      at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)

      at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:741)

      at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:213)

      at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:403)

      at org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.java:228)

      at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:522)

      Caused by: java.lang.reflect.InvocationTargetException

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:597)

      at org.apache.wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:182)

      ... 32 more

      Caused by: java.lang.NumberFormatException: For input string: "java.vm.version"

      at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)

      at java.lang.Long.parseLong(Long.java:410)

      at java.lang.Long.valueOf(Long.java:525)

      at org.jbpm.pvm.internal.repository.RepositorySessionImpl.validateRepositoryCache(RepositorySessionImpl.java:208)

      at org.jbpm.pvm.internal.repository.RepositorySessionImpl.findProcessDefinitionByKey(RepositorySessionImpl.java:162)

      at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:58)

      at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:38)

      at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)

      at org.jbpm.pvm.internal.tx.SpringCommandCallback.doInTransaction(SpringCommandCallback.java:45)

      at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130)

      at org.jbpm.pvm.internal.tx.SpringTransactionInterceptor.execute(SpringTransactionInterceptor.java:55)

      at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)

      at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)

      at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55)

      at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:70)

      at com.fnb.stfr.service.TransferService.saveOut(TransferService.java:100)

      at com.fnb.stfr.service.TransferService$$FastClassByCGLIB$$3a35c291.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:692)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)

      at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)

      at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:625)

      at com.fnb.stfr.service.TransferService$$EnhancerByCGLIB$$9bcb0419.saveOut(<generated>)

      at WICKET_com.fnb.stfr.service.TransferService$$FastClassByCGLIB$$3a35c291.invoke(<generated>)

      at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

      at org.apache.wicket.proxy.LazyInitProxyFactory$CGLibInterceptor.intercept(LazyInitProxyFactory.java:319)

      at WICKET_com.fnb.stfr.service.TransferService$$EnhancerByCGLIB$$900d80a.saveOut(<generated>)

      at com.fnb.stfr.webapp.component.TransferFormPanel.onSaveOrUpdateStfr(TransferFormPanel.java:211)

      at com.fnb.stfr.webapp.component.TransferFormPanel$6.onSubmit(TransferFormPanel.java:200)

      at org.apache.wicket.markup.html.form.Form.delegateSubmit(Form.java:1532)

      at org.apache.wicket.markup.html.form.Form.process(Form.java:925)

      at org.apache.wicket.markup.html.form.Form.onFormSubmitted(Form.java:887)

      ... 37 more

      It seems that somehow the cachedIds are comming with system properties keys ([java.vm.version, sun.jnu.encoding, java.vendor.url, java.vm.info, user.dir, sun.cpu.isalist, java.awt.graphicsenv, sun.os.patch.level, user.home, java.io.tmpdir, java.awt.printerjob, java.version, file.encoding.pkg, java.vendor.url.bug, file.encoding, line.separator, java.vm.specification.vendor, java.vm.vendor, java.class.path, sun.io.unicode.encoding, user.language, user.name, os.arch, java.runtime.version, sun.boot.class.path, sun.desktop, sun.cpu.endian, sun.boot.library.path, java.home, java.vm.name, java.endorsed.dirs, sun.management.compiler, java.runtime.name, java.library.path, file.separator, java.specification.vendor, java.vm.specification.version, sun.java.launcher, user.timezone, os.name, path.separator, java.ext.dirs, sun.arch.data.model, os.version, java.specification.name, java.class.version, user.country, java.vendor, java.vm.specification.name, java.specification.version] )
      Any help would be appreciated?
      Thanks
      Azarias Tomás