Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Service Oriented Architecture Tools Platform (STP) » problem with the activity painter
problem with the activity painter [message #620082] Tue, 23 September 2008 11:51 Go to next message
faroun is currently offline farounFriend
Messages: 41
Registered: July 2009
Member
Hi everybody ,

i'm getting the following when i'm trying to open my file editor input .

java.lang.NullPointerException
at
org.eclipse.stp.bpmn.figures.activities.ActivityPainter$4.ge tToolTipText(ActivityPainter.java:1246)
at
org.eclipse.stp.bpmn.figures.WrapLabelWithToolTip.updateTool Tip(WrapLabelWithToolTip.java:91)
at
org.eclipse.stp.bpmn.figures.WrapLabelWithToolTip.getTruncat ionString(WrapLabelWithToolTip.java:79)
at
org.eclipse.stp.gmf.runtime.draw2d.ui.figures.WrappingLabel. getTruncationStringSize(WrappingLabel.java:998)
at
org.eclipse.stp.gmf.runtime.draw2d.ui.figures.WrappingLabel. getMinimumSize(WrappingLabel.java:921)
at
org.eclipse.draw2d.StackLayout.calculateMinimumSize(StackLay out.java:44)
at
org.eclipse.draw2d.AbstractHintLayout.getMinimumSize(Abstrac tHintLayout.java:68)
at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:707)
at
org.eclipse.draw2d.StackLayout.calculateMinimumSize(StackLay out.java:44)
at
org.eclipse.draw2d.AbstractHintLayout.getMinimumSize(Abstrac tHintLayout.java:68)
at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:707)
at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:697)
at
org.eclipse.gmf.runtime.diagram.ui.layout.FreeFormLayoutEx.l ayout(FreeFormLayoutEx.java:49)
at org.eclipse.draw2d.Figure$LayoutNotifier.layout(Figure.java: 1808)
at org.eclipse.draw2d.Figure.layout(Figure.java:1029)
at org.eclipse.draw2d.Figure.validate(Figure.java:1735)
at
org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareF reeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:169 )
at
org.eclipse.draw2d.FreeformViewport$FreeformViewportLayout.c alculatePreferredSize(FreeformViewport.java:28)
at
org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractL ayout.java:93)


it seems like the getToolTip is not getting the objects created in the
diagram.
I checked the source code and i don't now why it throws this.


Best Regards ,


Dali
Re: problem with the activity painter [message #620085 is a reply to message #620082] Tue, 23 September 2008 12:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Please check that the activity has an activity type.

Thanks,

Antoine

Dali wrote:
> Hi everybody ,
>
> i'm getting the following when i'm trying to open my file editor input .
>
> java.lang.NullPointerException
> at
> org.eclipse.stp.bpmn.figures.activities.ActivityPainter$4.ge tToolTipText(ActivityPainter.java:1246)
>
> at
> org.eclipse.stp.bpmn.figures.WrapLabelWithToolTip.updateTool Tip(WrapLabelWithToolTip.java:91)
>
> at
> org.eclipse.stp.bpmn.figures.WrapLabelWithToolTip.getTruncat ionString(WrapLabelWithToolTip.java:79)
>
> at
> org.eclipse.stp.gmf.runtime.draw2d.ui.figures.WrappingLabel. getTruncationStringSize(WrappingLabel.java:998)
>
> at
> org.eclipse.stp.gmf.runtime.draw2d.ui.figures.WrappingLabel. getMinimumSize(WrappingLabel.java:921)
>
> at
> org.eclipse.draw2d.StackLayout.calculateMinimumSize(StackLay out.java:44)
> at
> org.eclipse.draw2d.AbstractHintLayout.getMinimumSize(Abstrac tHintLayout.java:68)
>
> at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:707)
> at
> org.eclipse.draw2d.StackLayout.calculateMinimumSize(StackLay out.java:44)
> at
> org.eclipse.draw2d.AbstractHintLayout.getMinimumSize(Abstrac tHintLayout.java:68)
>
> at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:707)
> at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:697)
> at
> org.eclipse.gmf.runtime.diagram.ui.layout.FreeFormLayoutEx.l ayout(FreeFormLayoutEx.java:49)
>
> at org.eclipse.draw2d.Figure$LayoutNotifier.layout(Figure.java: 1808)
> at org.eclipse.draw2d.Figure.layout(Figure.java:1029)
> at org.eclipse.draw2d.Figure.validate(Figure.java:1735)
> at
> org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareF reeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:169 )
>
> at
> org.eclipse.draw2d.FreeformViewport$FreeformViewportLayout.c alculatePreferredSize(FreeformViewport.java:28)
>
> at
> org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractL ayout.java:93)
>
>
> it seems like the getToolTip is not getting the objects created in the
> diagram.
> I checked the source code and i don't now why it throws this.
>
>
> Best Regards ,
>
>
> Dali
>
>
>
Re: problem with the activity painter [message #620088 is a reply to message #620085] Tue, 23 September 2008 12:47 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Also check that the activity is not null. If it is null, you probably
have an issue during the generation.

Thanks,

Antoine

Antoine Toulme wrote:
> Please check that the activity has an activity type.
>
> Thanks,
>
> Antoine
>
> Dali wrote:
>> Hi everybody ,
>>
>> i'm getting the following when i'm trying to open my file editor input .
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.stp.bpmn.figures.activities.ActivityPainter$4.ge tToolTipText(ActivityPainter.java:1246)
>>
>> at
>> org.eclipse.stp.bpmn.figures.WrapLabelWithToolTip.updateTool Tip(WrapLabelWithToolTip.java:91)
>>
>> at
>> org.eclipse.stp.bpmn.figures.WrapLabelWithToolTip.getTruncat ionString(WrapLabelWithToolTip.java:79)
>>
>> at
>> org.eclipse.stp.gmf.runtime.draw2d.ui.figures.WrappingLabel. getTruncationStringSize(WrappingLabel.java:998)
>>
>> at
>> org.eclipse.stp.gmf.runtime.draw2d.ui.figures.WrappingLabel. getMinimumSize(WrappingLabel.java:921)
>>
>> at
>> org.eclipse.draw2d.StackLayout.calculateMinimumSize(StackLay out.java:44)
>> at
>> org.eclipse.draw2d.AbstractHintLayout.getMinimumSize(Abstrac tHintLayout.java:68)
>>
>> at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:707)
>> at
>> org.eclipse.draw2d.StackLayout.calculateMinimumSize(StackLay out.java:44)
>> at
>> org.eclipse.draw2d.AbstractHintLayout.getMinimumSize(Abstrac tHintLayout.java:68)
>>
>> at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:707)
>> at org.eclipse.draw2d.Figure.getMinimumSize(Figure.java:697)
>> at
>> org.eclipse.gmf.runtime.diagram.ui.layout.FreeFormLayoutEx.l ayout(FreeFormLayoutEx.java:49)
>>
>> at org.eclipse.draw2d.Figure$LayoutNotifier.layout(Figure.java: 1808)
>> at org.eclipse.draw2d.Figure.layout(Figure.java:1029)
>> at org.eclipse.draw2d.Figure.validate(Figure.java:1735)
>> at
>> org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemsAwareF reeFormLayer.validate(BorderItemsAwareFreeFormLayer.java:169 )
>>
>> at
>> org.eclipse.draw2d.FreeformViewport$FreeformViewportLayout.c alculatePreferredSize(FreeformViewport.java:28)
>>
>> at
>> org.eclipse.draw2d.AbstractLayout.getPreferredSize(AbstractL ayout.java:93)
>>
>>
>>
>> it seems like the getToolTip is not getting the objects created in the
>> diagram.
>> I checked the source code and i don't now why it throws this.
>>
>>
>> Best Regards ,
>>
>>
>> Dali
>>
>>
>>
Re: problem with the activity painter [message #620089 is a reply to message #620088] Tue, 23 September 2008 14:25 Go to previous message
faroun is currently offline farounFriend
Messages: 41
Registered: July 2009
Member
Hi Antoine ,

i got it . i can now display my diagram (extending the
DiagramInputDocumentProvider as document provider and DiagramEditorInput
as EditorInput ) but i can't do any modification in the diagram


Best Regards.

Dali
Previous Topic:error opening the editor
Next Topic:BPMN modeler newsgroup
Goto Forum:
  


Current Time: Fri Mar 29 13:50:59 GMT 2024

Powered by FUDForum. Page generated in 0.03594 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top