Weird startup error when testing - orgm.jbpm.msg.Message.hbm
pjodev Apr 14, 2007 12:29 PMWhen I try to retrieve the GraphSession, I am getting this error
07:29:41,078 [main] INFO JbpmConfiguration : using jbpm configuration resource 'jbpm.cfg.xml' 07:29:41,078 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context' 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml' 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar' 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules' 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter' 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types' 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types' 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers' 07:29:41,203 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping' 07:29:41,218 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.mail.templates' 07:29:41,218 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size' 07:29:41,218 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.smtp.host' 07:29:41,218 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory' 07:29:41,218 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver' 07:29:41,218 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver' 07:29:41,218 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.job.executor' 07:29:41,234 [main] DEBUG JbpmConfiguration : loading specific configuration... 07:29:41,234 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpmConfiguration' 07:29:41,265 [main] DEBUG JbpmContextInfo : creating jbpm context with service factories '[message, tx, scheduler, authentication, persistence, logging]' 07:29:41,265 [main] DEBUG JbpmContext : creating org.jbpm.JbpmContext@15fadcf 07:29:41,281 [main] DEBUG DbPersistenceServiceFactory : creating persistence service 07:29:41,281 [main] DEBUG DbPersistenceServiceFactory : building hibernate session factory 07:29:41,343 [main] INFO Environment : Hibernate 3.2.1 07:29:41,359 [main] INFO Environment : hibernate.properties not found 07:29:41,359 [main] INFO Environment : Bytecode provider name : cglib 07:29:41,375 [main] INFO Environment : using JDK 1.4 java.sql.Timestamp handling 07:29:41,453 [main] DEBUG HibernateHelper : creating hibernate configuration resource 'hibernate.cfg .xml' 07:29:41,453 [main] INFO Configuration : configuring from resource: hibernate.cfg.xml 07:29:41,453 [main] INFO Configuration : Configuration resource: hibernate.cfg.xml 07:29:41,562 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/action/Scr ipt.hbm.xml 07:29:41,687 [main] INFO Configuration : Reading mappings from resource : org/jbpm/identity/User.hb m.xml 07:29:41,765 [main] INFO HbmBinder : Mapping class: org.jbpm.identity.User -> JBPM_ID_USER 07:29:41,796 [main] INFO HbmBinder : Mapping collection: org.jbpm.identity.User.permissions -> JBPM_ID_PERMISSIONS 07:29:41,796 [main] INFO Configuration : Reading mappings from resource : org/jbpm/identity/Group.h bm.xml 07:29:41,843 [main] INFO HbmBinder : Mapping class: org.jbpm.identity.Group -> JBPM_ID_GROUP 07:29:41,953 [main] INFO HbmBinder : Mapping collection: org.jbpm.identity.Group.permissions -> JBPM_ID_PERMISSIONS 07:29:41,953 [main] INFO Configuration : Reading mappings from resource : org/jbpm/identity/Members hip.hbm.xml 07:29:41,968 [main] INFO HbmBinder : Mapping class: org.jbpm.identity.Membership -> JBPM_ID_MEMBERSHIP 07:29:41,984 [main] INFO HbmBinder : Mapping collection: org.jbpm.identity.Membership.permissions -> JBPM_ID_PERMISSIONS 07:29:41,984 [main] INFO Configuration : Reading mappings from resource : org/jbpm/db/hibernate.que ries.hbm.xml 07:29:42,015 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/def/Proces sDefinition.hbm.xml 07:29:42,031 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.ProcessDefinition -> JBPM_PROCESSDEFINITION 07:29:42,062 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/def/Node.h bm.xml 07:29:42,093 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.Node -> JBPM_NODE 07:29:42,109 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/def/Transi tion.hbm.xml 07:29:42,140 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.Transition -> JBPM_TRANSITION 07:29:42,140 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/def/Event. hbm.xml 07:29:42,156 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.Event -> JBPM_EVENT 07:29:42,171 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/def/Action .hbm.xml 07:29:42,187 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.Action -> JBPM_ACTION 07:29:42,187 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/def/SuperS tate.hbm.xml 07:29:42,250 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.def.SuperState -> JBPM_NODE 07:29:42,250 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/def/Except ionHandler.hbm.xml 07:29:42,265 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.def.ExceptionHandler -> JBPM_EXCEPTIONHANDLER 07:29:42,281 [main] INFO Configuration : Reading mappings from resource : org/jbpm/instantiation/De legation.hbm.xml 07:29:42,296 [main] INFO HbmBinder : Mapping class: org.jbpm.instantiation.Delegation -> JBPM_DELEGATION 07:29:42,296 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/node/Start State.hbm.xml 07:29:42,312 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.StartState -> JBPM_NODE 07:29:42,312 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/node/EndSt ate.hbm.xml 07:29:42,328 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.EndState -> JBPM_NODE 07:29:42,328 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/node/Proce ssState.hbm.xml 07:29:42,343 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.ProcessState -> JBPM_NODE 07:29:42,343 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/node/Decis ion.hbm.xml 07:29:42,359 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Decision -> JBPM_NODE 07:29:42,359 [main] INFO HbmBinder : Mapping collection: org.jbpm.graph.node.Decision.decisionCondi tions -> JBPM_DECISIONCONDITIONS 07:29:42,359 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/node/Fork. hbm.xml 07:29:42,390 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Fork -> JBPM_NODE 07:29:42,406 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/node/Join. hbm.xml 07:29:42,406 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.Join -> JBPM_NODE 07:29:42,406 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/node/State .hbm.xml 07:29:42,421 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.State -> JBPM_NODE 07:29:42,421 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/node/TaskN ode.hbm.xml 07:29:42,437 [main] INFO HbmBinder : Mapping subclass: org.jbpm.graph.node.TaskNode -> JBPM_NODE 07:29:42,453 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/def/Cont extDefinition.hbm.xml 07:29:42,453 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/def/Vari ableAccess.hbm.xml 07:29:42,468 [main] INFO HbmBinder : Mapping class: org.jbpm.context.def.VariableAccess -> JBPM_VARIABLEACCESS 07:29:42,468 [main] INFO Configuration : Reading mappings from resource : org/jbpm/taskmgmt/def/Tas kMgmtDefinition.hbm.xml 07:29:42,484 [main] INFO Configuration : Reading mappings from resource : org/jbpm/taskmgmt/def/Swi mlane.hbm.xml 07:29:42,562 [main] INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.Swimlane -> JBPM_SWIMLANE 07:29:42,562 [main] INFO Configuration : Reading mappings from resource : org/jbpm/taskmgmt/def/Tas k.hbm.xml 07:29:42,578 [main] INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.Task -> JBPM_TASK 07:29:42,593 [main] INFO Configuration : Reading mappings from resource : org/jbpm/taskmgmt/def/Tas kController.hbm.xml 07:29:42,609 [main] INFO HbmBinder : Mapping class: org.jbpm.taskmgmt.def.TaskController -> JBPM_TASKCONTROLLER 07:29:42,609 [main] INFO Configuration : Reading mappings from resource : org/jbpm/module/def/Modul eDefinition.hbm.xml 07:29:42,625 [main] INFO HbmBinder : Mapping class: org.jbpm.module.def.ModuleDefinition -> JBPM_MODULEDEFINITION 07:29:42,625 [main] INFO Configuration : Reading mappings from resource : org/jbpm/bytes/ByteArray. hbm.xml 07:29:42,625 [main] INFO HbmBinder : Mapping class: org.jbpm.bytes.ByteArray -> JBPM_BYTEARRAY 07:29:42,625 [main] INFO HbmBinder : Mapping collection: org.jbpm.bytes.ByteArray.byteBlocks -> JBPM_BYTEBLOCK 07:29:42,625 [main] INFO Configuration : Reading mappings from resource : org/jbpm/file/def/FileDef inition.hbm.xml 07:29:42,640 [main] INFO HbmBinder : Mapping subclass: org.jbpm.file.def.FileDefinition -> JBPM_MODULEDEFINITION 07:29:42,640 [main] INFO Configuration : Reading mappings from resource : org/jbpm/scheduler/def/Cr eateTimerAction.hbm.xml 07:29:42,656 [main] INFO HbmBinder : Mapping subclass: org.jbpm.scheduler.def.CreateTimerAction -> JBPM_ACTION 07:29:42,656 [main] INFO Configuration : Reading mappings from resource : org/jbpm/scheduler/def/Ca ncelTimerAction.hbm.xml 07:29:42,671 [main] INFO HbmBinder : Mapping subclass: org.jbpm.scheduler.def.CancelTimerAction -> JBPM_ACTION 07:29:42,671 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/exe/Commen t.hbm.xml 07:29:42,687 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.exe.Comment -> JBPM_COMMENT 07:29:42,687 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/exe/Proces sInstance.hbm.xml 07:29:42,703 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.exe.ProcessInstance -> JBPM_PROCESSINSTANCE 07:29:42,718 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/exe/Token. hbm.xml 07:29:42,734 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.exe.Token -> JBPM_TOKEN 07:29:42,750 [main] INFO Configuration : Reading mappings from resource : org/jbpm/graph/exe/Runtim eAction.hbm.xml 07:29:42,750 [main] INFO HbmBinder : Mapping class: org.jbpm.graph.exe.RuntimeAction -> JBPM_RUNTIMEACTION 07:29:42,765 [main] INFO Configuration : Reading mappings from resource : org/jbpm/module/exe/Modul eInstance.hbm.xml 07:29:42,781 [main] INFO HbmBinder : Mapping class: org.jbpm.module.exe.ModuleInstance -> JBPM_MODULEINSTANCE 07:29:42,781 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/Cont extInstance.hbm.xml 07:29:42,796 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.ContextInstance -> JBPM_MODULEINSTANCE 07:29:42,796 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/Toke nVariableMap.hbm.xml 07:29:42,812 [main] INFO HbmBinder : Mapping class: org.jbpm.context.exe.TokenVariableMap -> JBPM_TOKENVARIABLEMAP 07:29:42,812 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/Vari ableInstance.hbm.xml 07:29:42,812 [main] INFO HbmBinder : Mapping class: org.jbpm.context.exe.VariableInstance -> JBPM_VARIABLEINSTANCE 07:29:42,828 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/vari ableinstance/ByteArrayInstance.hbm.xml 07:29:42,843 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.ByteAr rayInstance -> JBPM_VARIABLEINSTANCE 07:29:42,843 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/vari ableinstance/DateInstance.hbm.xml org.hibernate.MappingNotFoundException: resource: org/jbpm/msg/Message.hbm.xml not found at org.hibernate.cfg.Configuration.addResource(Configuration.java:563) at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1584) at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1552) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1531) at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1505) at org.hibernate.cfg.Configuration.configure(Configuration.java:1425) at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91) at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory .java:69) at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactor y.java:91) at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:94) at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:98) at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:334) at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:571) at com.rco.bpm.util.JBPMAccessor.startEfileDestructionProcess(JBPMAccessor.java:37) at com.rco.TestJBPMEfileProcess.testSimpleProcess(TestJBPMEfileProcess.java:19) 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 junit.framework.TestCase.runTest(TestCase.java:154) at junit.framework.TestCase.runBare(TestCase.java:127) at junit.framework.TestResult$1.protect(TestResult.java:106) at junit.framework.TestResult.runProtected(TestResult.java:124) at junit.framework.TestResult.run(TestResult.java:109) at junit.framework.TestCase.run(TestCase.java:118) at junit.framework.TestSuite.runTest(TestSuite.java:208) at junit.framework.TestSuite.run(TestSuite.java:203) at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:12 8) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196) 07:29:42,859 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.DateIn stance -> JBPM_VARIABLEINSTANCE 07:29:42,859 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/vari ableinstance/DoubleInstance.hbm.xml 07:29:42,859 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.Double Instance -> JBPM_VARIABLEINSTANCE 07:29:42,875 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/vari ableinstance/HibernateLongInstance.hbm.xml 07:29:42,875 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.Hibern ateLongInstance -> JBPM_VARIABLEINSTANCE 07:29:42,875 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/vari ableinstance/HibernateStringInstance.hbm.xml 07:29:42,890 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.Hibern ateStringInstance -> JBPM_VARIABLEINSTANCE 07:29:42,890 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/vari ableinstance/LongInstance.hbm.xml 07:29:42,906 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.LongIn stance -> JBPM_VARIABLEINSTANCE 07:29:42,906 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/vari ableinstance/NullInstance.hbm.xml 07:29:42,921 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.NullIn stance -> JBPM_VARIABLEINSTANCE 07:29:42,921 [main] INFO Configuration : Reading mappings from resource : org/jbpm/context/exe/vari ableinstance/StringInstance.hbm.xml 07:29:43,000 [main] INFO HbmBinder : Mapping subclass: org.jbpm.context.exe.variableinstance.String Instance -> JBPM_VARIABLEINSTANCE 07:29:43,000 [main] INFO Configuration : Reading mappings from resource : org/jbpm/msg/Message.hbm. xml 07:29:43,000 [main] DEBUG JbpmContext : closing JbpmContext 07:29:43,000 [main] DEBUG Services : closing service 'persistence': org.jbpm.persistence.db.DbPersis tenceService@8a548b
Here is my code that is calling it:
public long startSampleProcess(String orgNumber, String suborgNumber) throws RMSException{ long processID = -1; //Check if the jbpmConfiguration has been setup if( jbpmConfiguration == null ){ //retrieve it jbpmConfiguration = JbpmConfiguration.getInstance(); } //Doing a try and catch for all so the RMSException can contain the relevant info // Lookup the pojo persistence context-builder that is configured above JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext(); try { GraphSession graphSession = jbpmContext.getGraphSession(); ...
It blows up on GraphSession graphSession = jbpmContext.getGraphSession()
I searched around these forums, but no idea on this one...