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 150495 - [65cat] ClassCastException: java.io.File cannot be cast to org.netbeans.modules.j2ee.deployment.devmodules.spi.ArtifactListener$Artifact
Summary: [65cat] ClassCastException: java.io.File cannot be cast to org.netbeans.modul...
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Infrastructure (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Petr Hejl
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-17 09:21 UTC by rohitbrai
Modified: 2008-11-19 14:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 122078


Attachments
stacktrace (4.89 KB, text/plain)
2008-10-17 09:21 UTC, rohitbrai
Details
stacktrace (2.27 KB, text/plain)
2008-10-22 07:03 UTC, johnemmanuel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description rohitbrai 2008-10-17 09:21:39 UTC
Build: NetBeans IDE Dev (Build 200809100201)
VM: Java HotSpot(TM) Client VM, 1.6.0_01-b06, Java(TM) SE Runtime Environment, 1.6.0_01-b06
OS: Windows XP, 5.1, x86

User Comments:
rohitbrai: Saved a JSP file

GUEST: I am developing some internet application with jsp.
 When i want to sava .jsp file i get this exception.
primoz.grajzl@gmail.com

onthefloorr: Save file

rohitbrai: Saved a JSP file



Stacktrace: 
java.lang.ClassCastException: java.io.File cannot be cast to org.netbeans.modules.j2ee.deployment.devmodules.spi.ArtifactListener$Artifact
        at org.netbeans.modules.j2ee.deployment.impl.DeployOnSaveManager.submitChangedArtifacts(DeployOnSaveManager.java:245)
        at org.netbeans.modules.j2ee.deployment.impl.DeployOnSaveManager$CopyOnSaveListener.artifactsUpdated(DeployOnSaveManager.java:297)
        at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.fireArtifactChange(WebProject.java:1490)
        at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.handleCopyFileToDestDir(WebProject.java:1569)
        at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.handleCopyFileToDestDir(WebProject.java:1521)
        at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.fileChanged(WebProject.java:1382)
Comment 1 rohitbrai 2008-10-17 09:21:47 UTC
Created attachment 72091 [details]
stacktrace
Comment 2 Petr Hejl 2008-10-20 17:21:45 UTC
I believe this has been fixed. Are you able to reproduce in any recent version (RC for example)?
Comment 3 Exceptions Reporter 2008-10-22 07:00:41 UTC
This issue has already 5 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=122078
Comment 4 johnemmanuel 2008-10-22 07:03:42 UTC
Build: NetBeans IDE Dev (Build 200809060201)
VM: Java HotSpot(TM) Client VM, 11.0-b15, Java(TM) SE Runtime Environment, 1.6.0_10-rc2-b32
OS: Windows XP, 5.1, x86

User Comments: 
Mouse over project folder

Stacktrace: 
java.lang.ClassCastException: java.io.File cannot be cast to org.netbeans.modules.j2ee.deployment.devmodules.spi.ArtifactListener$Artifact
        at org.netbeans.modules.j2ee.deployment.impl.DeployOnSaveManager.submitChangedArtifacts(DeployOnSaveManager.java:245)
        at org.netbeans.modules.j2ee.deployment.impl.DeployOnSaveManager$CopyOnSaveListener.artifactsUpdated(DeployOnSaveManager.java:297)
        at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.fireArtifactChange(WebProject.java:1490)
        at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.handleCopyFileToDestDir(WebProject.java:1569)
        at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.handleCopyFileToDestDir(WebProject.java:1521)
        at org.netbeans.modules.web.project.WebProject$CopyOnSaveSupport.fileChanged(WebProject.java:1382)
Comment 5 johnemmanuel 2008-10-22 07:03:52 UTC
Created attachment 72443 [details]
stacktrace
Comment 6 Petr Hejl 2008-11-19 14:42:04 UTC
This issue should be already fixed (was just temporary during small rewrite).