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 169352

Summary: IllegalArgumentException: TreePathHandle [/home/fs/NetBeansProjects/IOLUsers/src/test/java/pt/iol/services/mail/jerseyTest.java] was not created from /home/fs/NetBeansProjects/IOLUsers/src/test/java/p
Product: platform Reporter: fsoares <fsoares>
Component: FilesystemsAssignee: Jiri Skrivanek <jskrivanek>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: jlahoda, mgoe, petermount
Priority: P3 Keywords: RANDOM
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=154374
Issue Type: DEFECT Exception Reporter: 154374
Attachments: stacktrace

Description fsoares 2009-07-28 15:32:11 UTC
This issue was originally marked as duplicate of issue 130998, that is already resolved. This issue is still valid, so this seems to be another issue, but it might be related.

Build: NetBeans IDE 6.7 (Build 200906241340)
VM: Java HotSpot(TM) 64-Bit Server VM, 14.0-b16, Java(TM) SE Runtime Environment, 1.6.0_14-b08
OS: Linux, 2.6.28-13-generic, amd64

User Comments:
fsoares: Editing a file in the java editor

GUEST: not sure

tboudreau: Copying and pasting a block of code out of one method and into another

tboudreau: Occurred after I deleted a file called ClassicAppletX, copied a file called ExtendedAppletX and refactor-pasted it as ClassicAppletX1 (note the 1), then renamed it to ClassicAppletX



Stacktrace: 
java.lang.IllegalArgumentException: TreePathHandle [/home/fs/NetBeansProjects/IOLUsers/src/test/java/pt/iol/services/mail/jerseyTest.java] was not created from /home/fs/NetBeansProjects/IOLUsers/src/test/java/pt/iol/services/mail/jerseyTest.java
mine: id=1973656894, valid=true, url=file:/home/fs/NetBeansProjects/IOLUsers/src/test/java/pt/iol/services/mail/jerseyTest.java
remote: id=1108981677, valid=true, url=file:/home/fs/NetBeansProjects/IOLUsers/src/test/java/pt/iol/services/mail/jerseyTest.java
        at org.netbeans.api.java.source.TreePathHandle$TreeDelegate.resolve(TreePathHandle.java:402)
        at org.netbeans.api.java.source.TreePathHandle.resolve(TreePathHandle.java:144)
        at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeIntroduceMethod(IntroduceHint.java:482)
        at org.netbeans.modules.java.hints.introduce.IntroduceHint.computeError(IntroduceHint.java:453)
        at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:304)
        at org.netbeans.modules.java.hints.introduce.IntroduceHint.run(IntroduceHint.java:129)
Comment 1 fsoares 2009-07-28 15:32:23 UTC
Created attachment 85356 [details]
stacktrace
Comment 2 Exceptions Reporter 2009-07-28 15:32:29 UTC
This issue already has 7 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154374
Comment 3 Jan Lahoda 2009-08-18 10:03:28 UTC
Two valid FileObjects for one path.
Comment 4 Jiri Skrivanek 2009-08-18 11:03:51 UTC
I thought I fixed it in issue 130998. But apparently not. I have no idea why this is happening. Any reproducible test
case is highly welcome.
Comment 5 Exceptions Reporter 2009-08-18 13:09:14 UTC
This issue already has 9 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154374
Comment 6 Jiri Skrivanek 2009-09-09 10:57:48 UTC
*** Issue 171695 has been marked as a duplicate of this issue. ***
Comment 7 Exceptions Reporter 2009-09-24 13:29:01 UTC
This issue already has 12 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154374
Comment 8 Exceptions Reporter 2009-09-24 13:39:02 UTC
This issue already has 13 duplicates 
see http://statistics.netbeans.org/exceptions/detail.do?id=154374
Comment 9 Jiri Skrivanek 2009-12-15 02:56:06 UTC
No more reports from newer builds.