0 Replies Latest reply on Dec 10, 2013 6:52 AM by Tomasz U

    Persistant problem in standalone app.

    Tomasz U Newbie

      Hi,

       

      My jbpm app is working as I want to in eclipse. But after export to runnable jar I'm getting the following error:

       

      Exception in thread "main" java.lang.reflect.InvocationTargetException
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
              at java.lang.reflect.Method.invoke(Unknown Source)
              at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
      Caused by: javax.persistence.PersistenceException: Unable to configure EntityManagerFactory
              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:265)
              at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:125)
              at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
              at org.jbpm.test.JBPMHelper.startTaskService(JBPMHelper.java:93)
              at com.sample.ProcessMain.startUp(ProcessMain.java:74)
              at com.sample.ProcessMain.main(ProcessMain.java:31)
              ... 5 more
      Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
              at java.lang.String.substring(Unknown Source)
              at org.hibernate.ejb.packaging.JarVisitorFactory.getJarURLFromURLEntry(JarVisitorFactory.java:34)
              at org.hibernate.ejb.Ejb3Configuration.getMainJarVisitor(Ejb3Configuration.java:272)
              at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:246)
              ... 10 more
      

       

      What could be a reason of this? Is there any solution?

      Thanks