[JBoss jBPM] - NullPointerException in Eclipse Graph
by earniedyke
Greetings all.
I have searched the forum and I can find no problem similar to mine.
I am in Eclipse, I have added a node-leave event with an action. If I right click on the action in the outline and click properties then click Handler,I can add the java class just fine but no matter what combinations I enter for Configuration Type and Field Value I get this:
anonymous wrote : java.lang.NullPointerException
| at org.jbpm.ui.properties.ActionHandlerPropertyPage.performOk(Unknown Source)
| at org.eclipse.jface.preference.PreferenceDialog$11.run(PreferenceDialog.java:862)
| at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java:1044)
| at org.eclipse.core.runtime.Platform.run(Platform.java:783)
| at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
| at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
| at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:842)
| at org.eclipse.ui.internal.dialogs.FilteredPreferenceDialog.okPressed(FilteredPreferenceDialog.java:296)
| at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:227)
| at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:556)
| at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
| at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
| at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
| at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
| at org.eclipse.jface.window.Window.runEventLoop(Window.java:809)
| at org.eclipse.jface.window.Window.open(Window.java:787)
| at org.eclipse.ui.dialogs.PropertyDialogAction.run(PropertyDialogAction.java:157)
| at org.jbpm.ui.action.PropertyDialogActionDelegate.run(Unknown Source)
| at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
| at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:538)
| at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:488)
| at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:400)
| at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:843)
| at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3125)
| at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2758)
| at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1699)
| at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1663)
| at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:367)
| at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
| at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:103)
| at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:226)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:376)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:163)
| 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.core.launcher.Main.invokeFramework(Main.java:334)
| at org.eclipse.core.launcher.Main.basicRun(Main.java:278)
| at org.eclipse.core.launcher.Main.run(Main.java:973)
| at org.eclipse.core.launcher.Main.main(Main.java:948)
|
I am using jBPM 3.0.8 and this is a snippet of my processdefinition.xml:
<process-definition
| xmlns="" name="EmployerRegistration">
| <start-state name="start">
| <transition name="toWaitingToValidateMember" to="WaitingToValidateMember"></transition>
| </start-state>
| <state name="WaitingToValidateMember">
| <event type="node-leave">
| <action name="ValidateMember" class="com.vrs.selfserv.workflowaction.ValidateMember">
| <ssn>000000000</ssn>
| <lastName>test</lastName>
| <dob>01/01/1960</dob>
| <employerCode>99999</employerCode>
| </action>
| </event>
| </state>
|
Anyone run into this before?
Earnie!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969557#3969557
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969557
19 years, 7 months
[EJB 3.0] - Re: How to know when entity is removed?
by A_titov82
Well perhaps, I really do not need to throw an EntityManager to send JMS. But I would like to use local beans (because they work faster) in entity listener.
I need JMS (or some thing like this) to notify remote clients when something happens with entity (insert, update or remove). So, I have to code this logic in life cycle methods.
After some researches I found the way to do that.
| @EntityListeners(EntityListener.class)
| public class RelatedEntity implements Serializable {
| ...
| }
|
| public class EntityListener{
| @PostLoad
| public void onLoad(Object obj){
| try {
| InitialContext ctx=new InitialContext();
| EntityLocalHome localHome=(EntityLocalHome) ctx.lookup("Entity1Home/local");
| localHome.onLoad(obj);
| } catch (NamingException e) {
| e.printStackTrace();
| }
| }
|
| public EntityListener() {
| System.out.println("Creating entity listener");
| }
| }
|
May be there is a way to do it better (and more elegant)?
I was disappointed, that I could not use dependency injection here (instead of lookup). But it works.
There is only one thing, that confuses me. Why the constructor of the EntityListener is never invoked?
I think that EJB 3.0 is not designed for remote clients, only for web interfaces...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969551#3969551
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969551
19 years, 7 months
[EJB 3.0] - BindingManager not found when installing EJB3 with installer
by mtedone1
Hi, I've installed JBoss 4.0.4GA with the installer since I wanted to try EJB3. I chose 'ejb3' as configuration. It appears as if I can't use the ServiceBindingManager in order to run different configurations of JBoss. I renamed 'default' as ports-01. Then I looked in the conf/jboss-service.xml for the binding elements but these were not there.
I then tried to add the following service in the above file:
| <mbean code="org.jboss.services.binding.ServiceBindingManager"
| name="jboss.system:service=ServiceBindingManager">
| <attribute name="ServerName">ports-01</attribute>
| <attribute name="StoreURL">${jboss.home.url}/docs/examples/binding-manager/sample-bindings.xml</attribute>
| <attribute name="StoreFactoryClassName">
| org.jboss.services.binding.XMLServicesStoreFactory
| </attribute>
| </mbean>
|
But I got the following exception:
| Failed to boot JBoss:
| org.jboss.deployment.DeploymentException: No ClassLoaders found for: org.jboss.services.binding.ServiceBindingManager; - nested throwable: (java.
| lang.ClassNotFoundException: No ClassLoaders found for: org.jboss.services.binding.ServiceBindingManager)
| etc.
|
|
| Could somebody help? Shall I install the clustered version?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969548#3969548
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969548
19 years, 7 months