[JBoss jBPM] - Exception raised while reading jBPM data
by TechNadd
Hello,
JBOSS JBPM is used as Workflow manager in our project.
The below exception is being resulted on Production Environment. This was not encountered in any other environments like Developmen, System Testing, Operations Acceptance Tesing, UAT, Beta Testing.
The below are the details about project servers / frameworks:
Frameworks used: Spring, Hibernate
DB server: Oracle
App Server: WebSphere6.1
Workflow: JBPM-3.1.3
Please find the below error encountered and advise for any further information required.
Can you please advise how to go about on this
Error Message Logged in the log files:
======================================
7052008 11:14:56 INFORMATION 95 TOPSWorkflowManager : getComcDashboardQueues() : Entered
using jbpm configuration resource 'jbpm.cfg.xml'
org.jbpm.graph.def.NodeCache: Could not create disk store
java.io.FileNotFoundException: /var/tmp/org.jbpm.graph.def.Node.data (Permission denied)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.(RandomAccessFile.java:212)
at net.sf.ehcache.store.DiskStore.initialiseFiles(DiskStore.java:199)
at net.sf.ehcache.store.DiskStore.(DiskStore.java:151)
at net.sf.ehcache.Cache.initialise(Cache.java:269)
at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:333)
at net.sf.ehcache.CacheManager.addCache(CacheManager.java:325)
at net.sf.ehcache.CacheManager.addCache(CacheManager.java:310)
at org.hibernate.cache.EhCacheProvider.buildCache(EhCacheProvider.java:104)
at org.hibernate.cache.CacheFactory.createCache(CacheFactory.java:61)
at org.hibernate.impl.SessionFactoryImpl.(SessionFactoryImpl.java:203)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1176)
at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
at org.jbpm.JbpmContext.getSession(JbpmContext.java:464)
at com.reuters.tops.workflow.WorkflowUtils.getOrganisationsInQueuesforReutersDashboard(WorkflowUtils.java:699)
at com.reuters.tops.integration.workflow.TOPSWorkflowManager.getComcDashboardQueues(TOPSWorkflowManager.java:509)
at com.reuters.tops.service.dashboard.DashBoardServiceImpl.getReutersDashBoardDetails(DashBoardServiceImpl.java:629)
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:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:287)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:181)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:148)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:170)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:176)
at $Proxy15.getReutersDashBoardDetails(Unknown Source)
at com.reuters.tops.web.controller.dashboard.ReutersDashboardController.setReferenceData(ReutersDashboardController.java:205)
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:585)
at org.springframework.web.servlet.mvc.multiaction.MultiActionController.invokeNamedMethod(MultiActionController.java:393)
at org.springframework.web.servlet.mvc.multiaction.MultiActionController.handleRequestInternal(MultiActionController.java:331)
at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)
at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:44)
at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:723)
at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:663)
at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:394)
at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:348)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:989)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:930)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:145)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:174)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
at com.ibm.ws.webcontainer.filter.FilterInstanceWrapper.doFilter(FilterInstanceWrapper.java:190)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain.doFilter(WebAppFilterChain.java:130)
at com.ibm.ws.webcontainer.filter.WebAppFilterChain._doFilter(WebAppFilterChain.java:87)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:761)
at com.ibm.ws.webcontainer.filter.WebAppFilterManager.doFilter(WebAppFilterManager.java:673)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:498)
at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:464)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3163)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:254)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:100)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:195)
at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:743)
at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:873)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
org.jbpm.graph.def.ExceptionHandlerCache: Could not create disk store
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151931#4151931
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151931
18 years, 1 month
[EJB 3.0] - Re: OneToMany Unidirectional EntityManager remove() problem
by jaikiran
"rkiran81" wrote : Hi JaiKiran,
|
| Still am getting the same error.
|
Please post the latest exception stacktrace and the code changes that you have done. While posting the logs or xml content or code, remember to wrap it in a code block using the Code button in the message editor window and please hit the Preview button to make sure your post is correctly formatted. Also, are you sure that your changes were picked up?
"rkiran81" wrote :
| CascadeType.ALL takes care of deleting refrenced child entries also know, then how does org.hibernate.annotations.CascadeType.DELETE_ORPHAN help.
Well, that's what i thought earlier. I expected the child to be deleted from the DB when you remove it from a collection and save the parent. But thinking more about it and reading through this thread http://forum.hibernate.org/viewtopic.php?p=2376122, i understand that the org.hibernate.annotations.CascadeType.DELETE_ORPHAN is required in this case. In the scenario, we are discussing, we remove the child from a collection of the parent and persist the parent. While persisting the parent Hibernate sees that the "association" between the parent and the child has been removed and hence tries to set the parent id in the child table to NULL. If that column allows NULL then you won't see any exception but if it doesn't (which means that the child cannot exist without a parent) then it throws the constraint violation. So if you want Hibernate to remove the child when the "association" with its parent is removed then you have to add the org.hibernate.annotations.CascadeType.DELETE_ORPHAN annotation (Thinking more about this common scenario, i don't know why JPA does not provide an annotation for this instead of relying on vendor specific annotation).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4151911#4151911
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4151911
18 years, 1 month