[jboss-jira] [JBoss JIRA] (GPD-141) IType.getCompilationUnit() can be null if handler class is in jar, leads to event loop exception
Koen Aers (JIRA)
issues at jboss.org
Mon Sep 5 11:01:00 EDT 2016
[ https://issues.jboss.org/browse/GPD-141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Koen Aers resolved GPD-141.
---------------------------
Resolution: Out of Date
> IType.getCompilationUnit() can be null if handler class is in jar, leads to event loop exception
> ------------------------------------------------------------------------------------------------
>
> Key: GPD-141
> URL: https://issues.jboss.org/browse/GPD-141
> Project: jBPM GPD
> Issue Type: Bug
> Components: jpdl
> Affects Versions: jBPM JPDL Designer 3.1.0.CR
> Environment: Eclipse 3.2 on Windows 2000
> Reporter: Matthias Hanisch
> Assignee: Koen Aers
> Fix For: jBPM jPDL Designer 3.2
>
> Attachments: gpd-141.diff
>
>
> Following part of my processdefinition.xml:
> <event type="node-leave">
> <action class="x.y.z.MyClass" name="An Action">
> <arg>
> anArg
> </arg>
> </action>
> </event>
> MyClass is in a jar which is added to the classpath of the Process Project. Saving throws an event loop exception in Error Log View with the following stack.
> Caused by: org.eclipse.jface.util.Assert$AssertionFailedException: null argument;
> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:150)
> at org.eclipse.jface.util.Assert.isNotNull(Assert.java:126)
> at org.eclipse.jface.viewers.StructuredViewer.assertElementsNotNull(StructuredViewer.java:577)
> at org.eclipse.jface.viewers.CheckboxTreeViewer.setCheckedElements(CheckboxTreeViewer.java:431)
> at org.jbpm.gd.jpdl.deployment.IncludeInDeploymentTreeViewer.setCheckedElements(IncludeInDeploymentTreeViewer.java:61)
> at org.jbpm.gd.jpdl.deployment.DeploymentForm$17.run(DeploymentForm.java:635)
> at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
> at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:123)
> The problem is, that DeploymentForm.getElementsToCheckFor() does not respect that MyClass returns null for getCompilationUnit(). As a consequence, setCheckedElements is called with null in the Object[].
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list