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 174631 - java.lang.ClassCastException for Test File
Summary: java.lang.ClassCastException for Test File
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Maven (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P4 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks: 188913
  Show dependency tree
 
Reported: 2009-10-15 11:17 UTC by Jiri Sedlacek
Modified: 2010-10-07 17:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE logfile (31.09 KB, text/plain)
2009-10-15 11:18 UTC, Jiri Sedlacek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Sedlacek 2009-10-15 11:17:51 UTC
Product Version: NetBeans IDE Dev (Build 091014)
Java: 1.6.0_16; Java HotSpot(TM) Client VM 14.2-b01
System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb)


1/ Get the sample projects attached to Issue 164368
2/ Open project mavenproject6, select AppTest.java in Test Packages
3/ Invoke Test File from popup menu

The test invokes and finishes without problems, everything seems to work fine. However, there's a CCE in logfile:

INFO [org.netbeans.modules.maven.execute.MavenJavaExecutor]: Error removing shutdown hook originated from Maven build.
[Ljava.lang.Runnable; cannot be cast to java.util.Collection
java.lang.ClassCastException: [Ljava.lang.Runnable; cannot be cast to java.util.Collection
        at org.netbeans.modules.maven.execute.MavenJavaExecutor.doRemoveAllShutdownHooks(MavenJavaExecutor.java:450)
        at org.netbeans.modules.maven.execute.MavenJavaExecutor.run(MavenJavaExecutor.java:380)
[catch] at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:151)
Comment 1 Jiri Sedlacek 2009-10-15 11:18:41 UTC
Created attachment 89514 [details]
IDE logfile
Comment 2 Antonin Nebuzelsky 2010-07-30 15:17:35 UTC
Reassigning to default owner.
Comment 3 Jesse Glick 2010-10-07 17:34:10 UTC
21bb0d0defeb apparently fixed this. Anyway in-IDE execution is no longer supported.