Issue227

Title NPE during saving of composition
Project Composer
Priority bug Status chatting
Superseder (list) Nosy List mhgrove (list)
Assigned To Topics (list)

Created on 2005-09-15.20:48:55 by mhgrove, last changed 2005-09-15.22:13:05 by mhgrove.

Messages
msg507 (view) Author: mhgrove Date: 2005-09-15.22:13:05
this code seems to be the culprit?
this is the only place showFormWidget is called in the code, and it returns the
result of the input created by the user.  that result doesnt seem to be used
anywhere...that might be the cause of the NPE

                    enumBox.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            if (updateInProgress)
                                return;
                            JComboBox box = (JComboBox) e.getSource();
                            String str = (String) box.getSelectedItem();
                            if (str.startsWith("- Create") ||
!((List)box2list.get(box)).contains(str))
                            {
                                if (DEBUG)
                                    System.out.println("--- selected User Create");

                                String aInstanceType = c.getURI().toString();
                                showFormWidget(aInstanceType);
                            }
                        }
                    });
msg506 (view) Author: mhgrove Date: 2005-09-15.20:54:41
i was making a composition using the price converter again.  i think this time i
had specifed some user input before i tried to save, that might be what
triggered the problem.
msg505 (view) Author: mhgrove Date: 2005-09-15.20:48:55
I got this exception when saving a service.

java.lang.NullPointerException
	at impl.owls.process.BindingImpl.setValue(BindingImpl.java:75)
	at impl.owls.process.PerformImpl.addBinding(PerformImpl.java:34)
	at
org.mindswap.composer.ServiceComposer.createSequenceProcess(ServiceComposer.java:1443)
	at
org.mindswap.composer.ServiceComposer.createSequenceService(ServiceComposer.java:1241)
	at
org.mindswap.composer.ServiceComposer.saveCompositionToFile(ServiceComposer.java:1207)
	at
org.mindswap.composer.SaveCompositionDialog$1.actionPerformed(SaveCompositionDialog.java:59)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
	at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
	at
javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:245)
	at java.awt.Component.processMouseEvent(Component.java:5100)
	at java.awt.Component.processEvent(Component.java:4897)
	at java.awt.Container.processEvent(Container.java:1569)
	at java.awt.Component.dispatchEventImpl(Component.java:3615)
	at java.awt.Container.dispatchEventImpl(Container.java:1627)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
	at java.awt.Container.dispatchEventImpl(Container.java:1613)
	at java.awt.Window.dispatchEventImpl(Window.java:1606)
	at java.awt.Component.dispatchEvent(Component.java:3477)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
ERROR: Cannot save composition to file: java.lang.NullPointerException
History
Date User Action Args
2005-09-15 22:13:05mhgrovesetmessages: + msg507
2005-09-15 20:54:41mhgrovesetstatus: unread -> chatting
messages: + msg506
2005-09-15 20:48:55mhgrovecreate