This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 73557 - EngineException when invoking Tranform
Summary: EngineException when invoking Tranform
Status: VERIFIED FIXED
Alias: None
Product: contrib
Classification: Unclassified
Component: Jackpot (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@contrib
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-13 20:32 UTC by _ alexlamsl
Modified: 2006-03-14 19:32 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Project Files (1.36 MB, application/x-compressed)
2006-03-13 21:30 UTC, _ alexlamsl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ alexlamsl 2006-03-13 20:32:00 UTC
NB6 200603121900, Mustang b75, project using JDK5u6

following the instructions to do a Transform --> Clean Up, Exception is thrown:

org.netbeans.jackpot.engine.EngineException: Error executing operator
	at org.netbeans.jackpot.builder.Engine.runScript(Engine.java:148)
	at org.netbeans.modules.jackpot.JackpotModule.runCommand
(JackpotModule.java:130)
	at org.netbeans.modules.jackpot.actions.JackpotAction$CommandRunner.run
(JackpotAction.java:77)
[catch] at java.lang.Thread.run(Thread.java:626)
Caused by: java.lang.AssertionError
	at org.netbeans.jackpot.pretty.ImportAnalysis.neededImports
(ImportAnalysis.java:81)
	at org.netbeans.jackpot.save.Commit.commit(Commit.java:316)
	at org.netbeans.jackpot.builder.DefaultEnvironment.toSource
(DefaultEnvironment.java:120)
	at org.netbeans.jackpot.transform.TransformResult.toSource
(TransformResult.java:74)
	at org.netbeans.jackpot.transform.TransformResult.makeSelection
(TransformResult.java:57)
	at 
org.netbeans.jackpot.transform.TransformResult$TransformerResultImpl.getElement
(TransformResult.java:88)
	at org.netbeans.modules.jackpot.ModuleContext.checkSourceFiles
(ModuleContext.java:128)
	at org.netbeans.modules.jackpot.ModuleContext.acceptResults
(ModuleContext.java:120)
	at org.netbeans.jackpot.transform.Transformer.show(Transformer.java:87)
	at org.netbeans.jackpot.query.Query.apply(Query.java:74)
	at org.netbeans.jackpot.builder.Engine.runScript(Engine.java:141)
	... 3 more
Comment 1 _ tball 2006-03-13 21:23:00 UTC
I cannot reproduce this problem:  did you run this on a publicly available
project I can look at?  If not, what project type was it?  At a minimum, I'll
enhance the assert message to display which file it is having problems with.
Comment 2 _ alexlamsl 2006-03-13 21:26:24 UTC
Yup - I'm playing it with NapkinLAF; I'll pack up the exact project here.

And by the way all the queries are disabled somehow with the same project.
Comment 3 _ alexlamsl 2006-03-13 21:30:28 UTC
Created attachment 29232 [details]
Project Files
Comment 4 _ tball 2006-03-14 00:33:50 UTC
Fixed, problem was due to no symbol for import statements which reference class
fields (ie, "import foo.bar.Class.SOME_CONSTANT;").  Few people import
individual constants, but since Ken Arnold helped write the Java Programming
Language book, I won't argue with him.

The fix should show up in tomorrow's daily build.  I haven't been able to test
updating yet, but unless the alpha update center's URL gets changed with each
build, you should be able to pull it down using the Daily Update Center.
Comment 5 _ alexlamsl 2006-03-14 19:32:42 UTC
I waited all day for the update, and discovered that the new module's version 
number stays the same as the old one. Oh well.

It is working now - thanks; I've got another EngineException when doing code 
transform, but I think I'll file it as a seperate issue.