[JBoss jBPM] - jBPM 3.1.1 Subprocess Problem
by XerXes_BPM
Hello everybody!
I'm using jBPM 3.1.1 and trying to use subprocesses.
When i started i always got nullpointer exceptions when entering the processstate. i looked up the userguide, wiki, forums and in the forums i found solutions. the first thing was to deploy the subprocess first, thats clear...
but i still got the exception. then i manually inserted a value the subprocess_ column of the node table and the problem was gone.
but i therefore again got a nullpointer exception, this time when leaving the processstate. then i figured out that i have to signal() the sub process at least once (so that ist really started, not only an instance is there) and then it works.
my question is now: is the first thing a bug and the second thing maybe strange standard behaviour of jBPM or did i do something wrong?
the bug was mentioned in http://jira.jboss.com/jira/browse/JBPM-895 (i at least suppose thats what i encountered).
but is it possible to configure the behviour of the sub/super process relation? i would say it should at least be possible to configure it so that the superprocess can only continue when the subprocess has ended...
best regards and thanks in advance
gregor
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076837#4076837
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076837
18Â years, 8Â months
[JBoss Portal] - Re: LDAP Authentication
by roth
I found the culprit. There is the string 'admin' hardcoded in cms/src/main/org/jboss/portal/cms/impl/jcr/JCRCMS.java.
Once I change this to an existing user, all my errors go away. Can we unhardcode this please?
| /** Loads content from sar and adds it to the repo. */
| public void createContent() throws Exception
| {
| log.info("Creating default CMS content.");
|
|
| // Get the content
| URL root = Thread.currentThread().getContextClassLoader().getResource(defaultContentLocation);
|
| //make the user executing these to create the default content, an 'Admin' user
| //without this, the fine grained security won't allow the creation
| UserModule userModule = getUserModule();
| if(userModule != null)
| {
| org.hibernate.Session session = org.jboss.portal.cms.hibernate.state.Tools.getOpenSession();
| org.hibernate.Transaction tx = session.beginTransaction();
| User user = userModule.findUserByUserName("admin"); // HERE
| if(user!=null)
| {
| JCRCMS.getUserInfo().set(user);
| }
| tx.rollback();
| org.jboss.portal.cms.hibernate.state.Tools.closeSession(session);
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076833#4076833
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076833
18Â years, 8Â months
[Messaging, JMS & JBossMQ] - Re: JBossMQ Remote Client receives java.io.EOFException
by alchemista
There are two things that may be related, but I haven't been able to completely rule them out yet:
1. O/S. In my case, Windows Server 2003 SP1. When I reviewed the SP2 bug fixes, there are a lot of TCP-related fixes done, and some of the bugs describe the issue as losing TCP connections. There was one bug that said Windows Server 2003 SP1 talking with a Linux system using sockets could have the connection drop as well. I'm planning on testing whether SP2 prevents these issues, but won't be able to test for a while.
2. HSQLDB - Are you using HSQLDB? I recently upgraded the included HSQLDB version with the latest JAR file from HSQLDB and so far it appears to be much more reliable. With JBoss 4.0.2, JBoss only included a release candidate version of HSQLDB because they didn't have time to get in the final version. Thus, upgrading HSQLDB (if you use it for the message store) is a worthwhile test.
I hope everyone will share what has/has not worked for them with this issue. There are several threads with this issue, and not all of them are covered by the FAQs that Adrian mentioned.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076832#4076832
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076832
18Â years, 8Â months
[JBoss Tools (users)] - Re: JBossTools and Eclipse 3.3.0 , does it work at all ?
by davidbalazic
I have jdk1.5.0_09.
There are a lot of errors. See below.
Are two functions I mentiond supported at all in JBossTools ?
For example when click in Preferences JBoss Tools / JBoss Servers / View I get a dialog "Could Not Accept Changes" "The currently displayed page contains invalid values."
The log entry is :
!ENTRY org.eclipse.osgi 2 1 2007-08-22 14:36:59.850
!MESSAGE NLS unused message: JBoss in: org.jboss.ide.eclipse.as.ui.Messages
!ENTRY org.eclipse.osgi 2 1 2007-08-22 14:36:59.850
!MESSAGE NLS unused message: The in: org.jboss.ide.eclipse.as.ui.Messages
!ENTRY org.eclipse.jface 4 2 2007-08-22 14:36:59.960
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
!STACK 0
java.lang.NullPointerException
at org.jboss.ide.eclipse.as.ui.views.server.extensions.ServerViewProvider.setEnabled(ServerViewProvider.java:105)
at org.jboss.ide.eclipse.as.ui.views.server.extensions.ServerViewProvider.(ServerViewProvider.java:40)
at org.jboss.ide.eclipse.as.ui.ExtensionManager.loadAllServerViewProviders(ExtensionManager.java:64)
at org.jboss.ide.eclipse.as.ui.ExtensionManager.getAllServerViewProviders(ExtensionManager.java:47)
at org.jboss.ide.eclipse.as.ui.JBossServerUIPlugin.getAllServerViewProviders(JBossServerUIPlugin.java:119)
at org.jboss.ide.eclipse.as.ui.preferencepages.ViewPreferencePage.addEnablementComposite(ViewPreferencePage.java:205)
at org.jboss.ide.eclipse.as.ui.preferencepages.ViewPreferencePage.createContents(ViewPreferencePage.java:137)
at org.eclipse.jface.preference.PreferencePage.createControl(PreferencePage.java:233)
at org.eclipse.jface.preference.PreferenceDialog.createPageControl(PreferenceDialog.java:1456)
at org.eclipse.jface.preference.PreferenceDialog$13.run(PreferenceDialog.java:1213)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at org.eclipse.jface.preference.PreferenceDialog.showPage(PreferenceDialog.java:1207)
at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.showPage(FilteredPreferenceDialog.java:433)
at org.eclipse.jface.preference.PreferenceDialog$9.selectionChanged(PreferenceDialog.java:698)
at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:857)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:193)
at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.eclipse.ui.internal.OpenPreferencesAction.run(OpenPreferencesAction.java:65)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076823#4076823
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076823
18Â years, 8Â months
[JBossWS] - Applet invoking a web service
by earniedyke
Greetings all!!
I have a problem I am hoping someone can help me solve. I have the following code in an APPLET
URL url = new URL(webRoot + "/" + JBPM_WEBSERVICE + "?WSDL");
| QName qname = new QName("http://webservice.jbpm.abc.org","JbpmBeanService");
| ServiceFactory factory = ServiceFactory.newInstance();
| Service remote = factory.createService(url,qname);
| Jbpm proxy = (Jbpm)remote.getPort(Jbpm.class);
| String[] xml = proxy.getWorkFlow(name);
|
When it is executed, I receive the following error in the Java Console:
Exception in thread "AWT-EventQueue-2" java.security.AccessControlException: access denied (java.util.PropertyPermission javax.xml.rpc.ServiceFactory read)
| at java.security.AccessControlContext.checkPermission(Unknown Source)
| at java.security.AccessController.checkPermission(Unknown Source)
| at java.lang.SecurityManager.checkPermission(Unknown Source)
| at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
| at java.lang.System.getProperty(Unknown Source)
| at javax.xml.rpc.ServiceFactory$PropertyAccessAction.run(ServiceFactory.java:189)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.xml.rpc.ServiceFactory.newInstance(ServiceFactory.java:77)
| at org.ebsinc.jbpm.applet.Diagrammer$DrawingCanvas.actionPerformed(Diagrammer.java:727)
| at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
| at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
| at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
| at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
| at javax.swing.AbstractButton.doClick(Unknown Source)
| at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
| at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
| at java.awt.Component.processMouseEvent(Unknown Source)
| at javax.swing.JComponent.processMouseEvent(Unknown Source)
| at java.awt.Component.processEvent(Unknown Source)
| at java.awt.Container.processEvent(Unknown Source)
| at java.awt.Component.dispatchEventImpl(Unknown Source)
| at java.awt.Container.dispatchEventImpl(Unknown Source)
| at java.awt.Component.dispatchEvent(Unknown Source)
| at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
| at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
| at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
| at java.awt.Container.dispatchEventImpl(Unknown Source)
| at java.awt.Component.dispatchEvent(Unknown Source)
| at java.awt.EventQueue.dispatchEvent(Unknown Source)
| at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
| at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
| at java.awt.EventDispatchThread.run(Unknown Source)
|
My research leads me to believe the ServiceFactory in jboss-jaxrpc.jar is attempting to read a system property and this is causing the error. Anyone think of a way around this?
Thanks in advance for any and all assistance!!!
Earnie!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076819#4076819
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076819
18Â years, 8Â months
[JBoss Seam] - Re: Conversational ?
by lcoetzee
I have the following in my pages.xml. The issue comes in that the method on the bean gets called (which requires all the injections to take place) way before we actually get to the navigation part.
| <page view-id="/public/content/view/viewContent.xhtml"
| no-conversation-view-id="/public/content/view/viewServicesHome.xhtml">
| <navigation
| from-action="#{contentManagementBean.editContent}">
| <rule if-outcome="edit">
| <redirect
| view-id="/secure/content/management/editContent.xhtml">
| </redirect>
| </rule>
| </navigation>
| .
| .
| .
| .
| </page>
|
| <page view-id="/secure/content/management/editContent.xhtml"
| conversation-required="true"
| no-conversation-view-id="/public/content/view/viewServicesHome.xhtml">
| .
| .
| .
|
|
L
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076814#4076814
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076814
18Â years, 8Â months