[JBoss Tools] - JBDS 5.0 Beta 3 : JPA Tooling throwing exception
by Vimal Kansal
Vimal Kansal [https://community.jboss.org/people/vimalkansal] created the discussion
"JBDS 5.0 Beta 3 : JPA Tooling throwing exception"
To view the discussion, visit: https://community.jboss.org/message/737328#737328
--------------------------------------------------------------
Hi,
I created a JEE6 webapp using integrated maven with its Jee6 web app plugin. I checked in the generated project, JPA 2.0 facet is set. I edited the hibernate console configuration and actually able to ping the database and see the tables in hibernate perspective. Now when I invoke, "Generate Entities From tables", I get the following exception (My environment in RHEL 6.2, jdk 1.6, JBDS 5 Beta3) :
org.eclipse.core.runtime.CoreException: java.lang.IllegalStateException: zip file closed
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:145)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
at org.jboss.tools.hibernate.jpt.ui.wizard.GenerateEntitiesWizard.performFinish(GenerateEntitiesWizard.java:74)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.jboss.tools.hibernate.jpt.ui.internal.platform.HibernateJpaPlatformUi.generateEntities(HibernateJpaPlatformUi.java:56)
at org.eclipse.jpt.jpa.ui.internal.actions.GenerateEntitiesAction.execute(GenerateEntitiesAction.java:24)
at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.execute(ProjectAction.java:87)
at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.execute(ProjectAction.java:63)
at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.run(ProjectAction.java:55)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:415)
at java.util.zip.ZipFile.getEntry(ZipFile.java:160)
at java.util.jar.JarFile.getEntry(JarFile.java:208)
at java.util.jar.JarFile.getJarEntry(JarFile.java:191)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:757)
at sun.misc.URLClassPath.getResource(URLClassPath.java:169)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$5$1.findClass(HibernateExtension4_0.java:167)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$5$1.loadClass(HibernateExtension4_0.java:178)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$5$1.loadClass(HibernateExtension4_0.java:186)
at org.postgresql.Driver.getDefaultProperties(Driver.java:85)
at org.postgresql.Driver.connect(Driver.java:231)
at org.jboss.tools.hibernate4_0.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:42)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:173)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:121)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:60)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:860)
at org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:124)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:92)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:75)
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0$3.execute(ConsoleExtension4_0.java:269)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:211)
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.buildConfiguration(ConsoleExtension4_0.java:237)
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.runExporters(ConsoleExtension4_0.java:167)
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:126)
... 49 more
Contains: java.lang.IllegalStateException: zip file closed
java.lang.IllegalStateException: zip file closed
at java.util.zip.ZipFile.ensureOpen(ZipFile.java:415)
at java.util.zip.ZipFile.getEntry(ZipFile.java:160)
at java.util.jar.JarFile.getEntry(JarFile.java:208)
at java.util.jar.JarFile.getJarEntry(JarFile.java:191)
at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:757)
at sun.misc.URLClassPath.getResource(URLClassPath.java:169)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$5$1.findClass(HibernateExtension4_0.java:167)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$5$1.loadClass(HibernateExtension4_0.java:178)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0$5$1.loadClass(HibernateExtension4_0.java:186)
at org.postgresql.Driver.getDefaultProperties(Driver.java:85)
at org.postgresql.Driver.connect(Driver.java:231)
at org.jboss.tools.hibernate4_0.FakeDelegatingDriver.connect(FakeDelegatingDriver.java:42)
at java.sql.DriverManager.getConnection(DriverManager.java:582)
at java.sql.DriverManager.getConnection(DriverManager.java:154)
at org.hibernate.service.jdbc.connections.internal.DriverManagerConnectionProviderImpl.getConnection(DriverManagerConnectionProviderImpl.java:173)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getConnection(AbstractMetaDataDialect.java:121)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.getMetaData(AbstractMetaDataDialect.java:60)
at org.hibernate.cfg.reveng.dialect.AbstractMetaDataDialect.caseForSearch(AbstractMetaDataDialect.java:163)
at org.hibernate.cfg.reveng.dialect.JDBCMetaDataDialect.getTables(JDBCMetaDataDialect.java:22)
at org.hibernate.cfg.reveng.JDBCReader.processTables(JDBCReader.java:476)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:74)
at org.hibernate.cfg.reveng.JDBCReader.readDatabaseSchema(JDBCReader.java:860)
at org.hibernate.cfg.JDBCBinder.readDatabaseSchema(JDBCBinder.java:124)
at org.hibernate.cfg.JDBCBinder.readFromDatabase(JDBCBinder.java:92)
at org.hibernate.cfg.JDBCMetaDataConfiguration.readFromJDBC(JDBCMetaDataConfiguration.java:75)
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0$3.execute(ConsoleExtension4_0.java:269)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:63)
at org.jboss.tools.hibernate4_0.HibernateExtension4_0.execute(HibernateExtension4_0.java:211)
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.buildConfiguration(ConsoleExtension4_0.java:237)
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.runExporters(ConsoleExtension4_0.java:167)
at org.jboss.tools.hibernate4_0.console.ConsoleExtension4_0.launchExporters(ConsoleExtension4_0.java:126)
at org.hibernate.eclipse.launch.CodeGenerationLaunchDelegate.launch(CodeGenerationLaunchDelegate.java:270)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:854)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:703)
at org.eclipse.debug.internal.core.LaunchConfiguration.launch(LaunchConfiguration.java:696)
at org.jboss.tools.hibernate.jpt.ui.wizard.GenerateEntitiesWizard.performFinish(GenerateEntitiesWizard.java:74)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:827)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:432)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.jboss.tools.hibernate.jpt.ui.internal.platform.HibernateJpaPlatformUi.generateEntities(HibernateJpaPlatformUi.java:56)
at org.eclipse.jpt.jpa.ui.internal.actions.GenerateEntitiesAction.execute(GenerateEntitiesAction.java:24)
at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.execute(ProjectAction.java:87)
at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.execute(ProjectAction.java:63)
at org.eclipse.jpt.jpa.ui.internal.actions.ProjectAction.run(ProjectAction.java:55)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:251)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3588)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3209)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737328#737328]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[JBoss Tools] - JBossTools Beta3 causing error on JunoM7
by Jesper Skov
Jesper Skov [https://community.jboss.org/people/jskovjyskebankdk] created the discussion
"JBossTools Beta3 causing error on JunoM7"
To view the discussion, visit: https://community.jboss.org/message/737198#737198
--------------------------------------------------------------
We see a problem on JunoM7 with our existing JPA projects (the problem does not occur with Eclipse 3.7.sr2).
When the projects are checked out from Subversion, we get the below exceptions - and a modal error dialog.
I first filed it as an issue against JPA (see https://bugs.eclipse.org/bugs/show_bug.cgi?id=380254 here), because there is no mention of JbossTools in the stack trace.
But they pointed a finger at your plugin.
So I tried reproducing the problem in a clean Juno7 installation (no custom plugins). And couldn't.
I then added the JBoss Hibernate plugin, and switched the JPA platform to Hibernate. And got the error again.
So I have to concur with the JPA folks. The problem appears to be triggered by JbossTools Hibernate, somehow.
Hope you can find the cause.
Thanks,
Jesper
!ENTRY org.eclipse.jface 4 0 2012-05-23 08:41:02.641
!MESSAGE java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/eclipse/jpt/jpa/core/JpaAnnotationProvider
!STACK 0
java.lang.RuntimeException: java.lang.NoClassDefFoundError: org/eclipse/jpt/jpa/core/JpaAnnotationProvider
at org.eclipse.jpt.common.ui.internal.properties.JptProjectPropertiesPage.performOk(JptProjectPropertiesPage.java:258)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:965)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:945)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:448)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:233)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.eclipse.jface.window.Window.open(Window.java:801)
at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:158)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.commands.ActionHandler.execute(ActionHandler.java:119)
at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:76)
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.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:229)
at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:210)
at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:131)
at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:171)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.executeCommand(KeyBindingDispatcher.java:276)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.press(KeyBindingDispatcher.java:494)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.processKeyEvent(KeyBindingDispatcher.java:545)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.filterKeySequenceBindings(KeyBindingDispatcher.java:366)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher.access$0(KeyBindingDispatcher.java:313)
at org.eclipse.e4.ui.bindings.keys.KeyBindingDispatcher$KeyDownFilter.handleEvent(KeyBindingDispatcher.java:82)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1262)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1052)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1077)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1062)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1104)
at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1100)
at org.eclipse.swt.widgets.Widget.wmSysChar(Widget.java:2448)
at org.eclipse.swt.widgets.Control.WM_SYSCHAR(Control.java:5179)
at org.eclipse.swt.widgets.Control.windowProc(Control.java:4604)
at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:5958)
at org.eclipse.swt.widgets.Display.windowProc(Display.java:4976)
at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2545)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3756)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1017)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:911)
at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:582)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:537)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
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.equinox.launcher.Main.invokeFramework(Main.java:629)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jpt/jpa/core/JpaAnnotationProvider
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.eclipse.jpt.common.core.internal.utility.XPointTools.instantiate(XPointTools.java:46)
at org.eclipse.jpt.common.core.internal.utility.XPointTools.instantiate(XPointTools.java:38)
at org.eclipse.jpt.jpa.core.internal.platform.JpaPlatformDescriptionImpl.buildJpaPlatform(JpaPlatformDescriptionImpl.java:99)
at org.eclipse.jpt.jpa.core.internal.platform.JpaPlatformManagerImpl.buildJpaPlatformImplementation(JpaPlatformManagerImpl.java:236)
at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.buildJpaProjectConfig(InternalJpaProjectManager.java:627)
at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.buildJpaProject(InternalJpaProjectManager.java:601)
at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.addJpaProject(InternalJpaProjectManager.java:582)
at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.rebuildJpaProject_(InternalJpaProjectManager.java:515)
at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager$RebuildJpaProjectCommand.execute(InternalJpaProjectManager.java:504)
at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.waitToExecute(InternalJpaProjectManager.java:926)
at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.waitToExecute(InternalJpaProjectManager.java:906)
at org.eclipse.jpt.jpa.core.internal.InternalJpaProjectManager.rebuildJpaProject(InternalJpaProjectManager.java:491)
at org.eclipse.jpt.jpa.core.internal.ProjectAdapterFactory$JpaProjectReference.rebuild(ProjectAdapterFactory.java:108)
at org.eclipse.jpt.jpa.ui.internal.properties.JpaProjectPropertiesPage.rebuildProject_(JpaProjectPropertiesPage.java:842)
at org.eclipse.jpt.jpa.ui.internal.properties.JpaProjectPropertiesPage.rebuildProject(JpaProjectPropertiesPage.java:835)
at org.eclipse.jpt.common.ui.internal.properties.JptProjectPropertiesPage.performOk_(JptProjectPropertiesPage.java:317)
at org.eclipse.jpt.common.ui.internal.properties.JptProjectPropertiesPage$OkRunnableWithProgress$OkWorkspaceRunnable.run(JptProjectPropertiesPage.java:300)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2344)
at org.eclipse.jpt.common.ui.internal.properties.JptProjectPropertiesPage$OkRunnableWithProgress.run(JptProjectPropertiesPage.java:280)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: java.lang.ClassNotFoundException: org.eclipse.jpt.jpa.core.JpaAnnotationProvider
at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:501)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:421)
at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:412)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 25 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737198#737198]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[JBoss Messaging] - Setting up Messaging Bridge to access Remote Clustered Server
by krhiggins
krhiggins [https://community.jboss.org/people/krhiggins] created the discussion
"Setting up Messaging Bridge to access Remote Clustered Server"
To view the discussion, visit: https://community.jboss.org/message/737188#737188
--------------------------------------------------------------
Trying to setup bridge between JBos-5.2 (/production) and JBoss-4.2 (/all). We have jbossmq jar installed and everything works great when connecting from JBoss-5.2 to JBoss-4.2 on port 1099 for lookup. However, when JBoss-4.2 is on 1100, we are not able to find the remote queue ("/queue/MyQueueRemote" below), resulting in NameNotFoundException for the remote queue. In fact, it appears it is attempting to locate "/queue/MyQueueRemote" on the LOCAL server, even though we have the provider url pointing to the remote host and HAJNDI port (java.naming.provider.url=jnp://233......:1100).
We created a standalone (command line) client that *can* do the 1100 HAJNDI lookup from the local to the remote OK and get a connection to the "/queue/MyQueueRemote", so we know it's running on the remote. It's just when we try to connect using a Bridge that we keep getting NameNotFoundException.
Again, the bridge works if hitting 1099 for the lookup on the remote. It's failing when trying to do HAJNDI on 1100 (and again, it appears when we do this, it's looking in the LOCAL server to locate it instead of the jndi provided remote host IP and 1100 port).
Any suggestions/assistance would be greatly appreciated. Thanks in advance.
*Local jms-ds.xml File*
<mbean code="org.jboss.jms.jndi.JMSProviderLoader" name="jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider">
<depends>jboss.messaging.destination:service=Queue,name=MyQueueLocal</depends>
<attribute name="ProviderName">LocalJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
<attribute name="FactoryRef">java:/ConnectionFactory</attribute>
<attribute name="QueueFactoryRef">java:/ConnectionFactory</attribute>
<attribute name="TopicFactoryRef">java:/ConnectionFactory</attribute>
</mbean>
<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name="jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider">
<attribute name="ProviderName">RemoteJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
<attribute name="FactoryRef">SSLUIL2ConnectionFactory</attribute>
<attribute name="QueueFactoryRef">SSLUIL2ConnectionFactory</attribute>
<attribute name="TopicFactoryRef">SSLUIL2ConnectionFactory</attribute>
<attribute name="Properties">
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=jnp://233......:1100
</attribute>
</mbean>
<mbean code="org.jboss.jms.server.bridge.BridgeService"
name="jboss.messaging:service=Bridge,name=MyQueueBridge"
xmbean-dd="xmdesc/Bridge-xmbean.xml">
<depends optional-attribute-name="SourceProviderLoader">jboss.messaging:service=JMSProviderLoader,name=LocalJMSProvider</depends>
<depends optional-attribute-name="TargetProviderLoader">jboss.messaging:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
<attribute name="SourceDestinationLookup">/queue/MyQueueLocal</attribute>
<attribute name="TargetDestinationLookup">/queue/MyQueueRemote</attribute>
<attribute name="TargetUsername">remoteUsername</attribute>
<attribute name="TargetPassword">remotePassword</attribute>
<attribute name="QualityOfServiceMode">0</attribute>
<attribute name="MaxBatchSize">50</attribute>
<attribute name="MaxBatchTime">5000</attribute>
<attribute name="FailureRetryInterval">60000</attribute>
<attribute name="MaxRetries">-1</attribute>
<attribute name="AddMessageIDInHeader">false</attribute>
</mbean>
Local destinations-service.xml File
<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=MyQueueLocal"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
<depends>jboss.messaging:service=PostOffice</depends>
</mbean>
*
*
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737188#737188]
Start a new discussion in JBoss Messaging at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[jBPM] - How to run through Human Task
by TC ONG
TC ONG [https://community.jboss.org/people/devilkazuya99] created the discussion
"How to run through Human Task"
To view the discussion, visit: https://community.jboss.org/message/737172#737172
--------------------------------------------------------------
I have a process
(start) ---> [Human Task 1] -----> [Human Task 2] ----> [Human Task 3] ----> (End)
Here are the steps in my program.
1. Starting the process is no problem
ksession.startProcess("humanTaskFlow", params);
2. Looking for the task is no problem too
List<TaskSummary> taskSummaryList = localTaskService.getTasksAssignedAsPotentialOwner(actor, "en-UK");
3. Starting the task is no problem
localTaskService.start(taskSummary.getId(), actor);
4. Completing the task is no problem
localTaskService.complete(taskSummary.getId(), actor, contentData);
2. Looking for next task GOT PROBLEM. :(
List<TaskSummary> taskSummaryList = localTaskService.getTasksAssignedAsPotentialOwner(actor, "en-UK");
5. Dispose knowledge session
My logic is like this:
step 1
while(has_more_task) {
step 2
step 3
step 4
}
step 5
The result is [Human Task 1] started and completed. Then the program jump to step 5 and exit. But when I check the database, [Human Task 2] was created and at 'Reserved' state.
I changed my logic to:
step 1
while(has_more_task) {
step 2
step 3
step 4
Thread.sleep(1000);
}
step 5
and I can run through all the Human Tasks.
Am I doing something very stupid here??? :((
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737172#737172]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[jBPM] - Problem with triggering JBPM process from external source
by Sachin Chandra
Sachin Chandra [https://community.jboss.org/people/chandrasachin16] created the discussion
"Problem with triggering JBPM process from external source"
To view the discussion, visit: https://community.jboss.org/message/737180#737180
--------------------------------------------------------------
Hi All,
I am new to JBPM.I had installed JBPM 5.2 on my system and I am able to create JBPM process and deploy it manually on JBOSS 7.I had also tried the same through eclipse.I had explored with custom work item handlers and sending emails.Also did JBPM integration with SQL Server 2008 database.But the point where I am stuck up is I want to create a Process and start the process from external web application.For example.In case of our HR evaluation process the employee goes and logs into the JBPM console and starts the process .The HR and the Manger the logs into the JBPM console with their credential and approves it.What I want to do is I want to start the process from an external web application(which is actually initiated by the employee by logging into the JBPM console and explicitly starting the process) and let the approvers log into to the JBPM console with their credentials and approve it.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/737180#737180]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months