[NEURE-132] Deleting objects from cards Created: 10/Feb/2009  Updated: 02/Jan/2014  Resolved: 04/Sep/2013

Status: Closed
Project: NEURE
Component/s: Task Designer
Affects Version/s: None
Fix Version/s: 1.6.7

Type: Bug Priority: Blocker
Reporter: user-7c936 (Inactive) Assignee: Oleksandr Maslov
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Microsoft Windows XP Professional, 5.1.2600 Service Pack 3 Build 2600
Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.6) Gecko/2009011913 Firefox/3.0.6
Java-version: (build 1.6.0_11-b03)


Attachments: File mylyn-context.zip    

 Description   

After deleting objects (labels, timers, sounds, images) from a card, saving/recompiling gives a following error:
*****
Trying to generate code for card loppukortti : null
Feb 10, 2009 7:58:27 PM com.caucho.hessian.io.SerializerFactory getDeserializer
WARNING: Hessian/Burlap: 'javax.ejb.EJBException' is an unknown class in sun.plugin2.applet.Applet2ClassLoader@139878d:
java.lang.ClassNotFoundException: javax.ejb.EJBException
Feb 10, 2009 7:58:27 PM fi.jyu.nmi.neure.taskeditor.TaskEditorDataController getNeureObject
SEVERE: getNeureObject : RemoteException
null
java.lang.NullPointerException
at fi.jyu.nmi.neure.taskcompiler.CardCodeGenerator.generateReaction(Unknown Source)
at fi.jyu.nmi.neure.taskcompiler.CardCodeGenerator.createObject(Unknown Source)
at fi.jyu.nmi.neure.taskcompiler.CardCodeGenerator.generateCode(Unknown Source)
at fi.jyu.nmi.neure.taskcompiler.CardCodeGenerator.getCode(Unknown Source)
at fi.jyu.nmi.neure.taskeditor.TaskEditorDataController.save(Unknown Source)
at fi.jyu.nmi.neure.taskeditor.MainFrame$4.construct(Unknown Source)
at javax.swing.swingutilities.SwingWorker$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
*****

The task in question was 'A Lukujen vertailu' (id 1047), and the card from where the deletions were made: 'loppukortti' (id 3829).



 Comments   
Comment by Oleksandr Maslov [ 20/Mar/2009 ]

might be fixed in last update.
if not reopen please.

Comment by user-7c936 (Inactive) [ 19/Mar/2009 ]

Following error when trying to delete an object (image) from task (Yhteenlasku 1-20, ID 992 and from task Vahennyslasku 1-20, ID 994)

Mar 19, 2009 9:31:26 AM com.caucho.hessian.io.SerializerFactory getDeserializer
WARNING: Hessian/Burlap: 'javax.ejb.EJBException' is an unknown class in sun.plugin.security.PluginClassLoader@71dfd7:
java.lang.ClassNotFoundException: javax.ejb.EJBException
java.lang.reflect.UndeclaredThrowableException
at $Proxy4.removeObject(Unknown Source)
at fi.jyu.nmi.neure.taskeditor.TaskEditorDataController.deleteObject(Unknown Source)
at fi.jyu.nmi.neure.taskeditor.utils.RemoveObjectAction$1.construct(Unknown Source)
at javax.swing.swingutilities.SwingWorker$2.run(Unknown Source)
at java.lang.Thread.run(Thread.java:619)
Caused by: com.caucho.hessian.io.HessianServiceException: RuntimeException; CausedByException is:
TaskEditorServicesEJB.removeObject :
NeureObjectEJB.ejbFindByPrimaryKey :
NeureObjectDAOImplDB2.findByPrimaryKey :
Primary key not found 51209
at com.caucho.hessian.io.Hessian2Input.prepareFault(Unknown Source)
at com.caucho.hessian.io.Hessian2Input.startReply(Unknown Source)
at com.caucho.hessian.client.HessianProxy.invoke(Unknown Source)
... 5 more

Comment by Oleksandr Maslov [ 13/Feb/2009 ]

some changes in r1788

there was a bug in actions generation (using already deleted actions to generate sources).
and because sources were generated before everything is saved exception prevented changes to be saved.

Now action generation uses only non removed actions and source generation happens after everything is saved.

Generated at Sat Dec 13 10:09:21 EET 2025 using Jira 9.12.12#9120012-sha1:9afad32836b39ea19f5a357a6aae8106be665a8f.