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 99393 - Parameter file was not normalized in UpdateTrackingFileOwnerQuery.getOwner
Summary: Parameter file was not normalized in UpdateTrackingFileOwnerQuery.getOwner
Status: RESOLVED FIXED
Alias: None
Product: apisupport
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Jesse Glick
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-03-29 15:29 UTC by Anton Chechel
Modified: 2007-06-25 23:46 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Chechel 2007-03-29 15:29:38 UTC
NetBeans IDE Dev (Build 070329)
1.6.0; Java HotSpot(TM) Client VM 1.6.0-b105
Windows XP version 5.1 running on x86
ru_RU (nb); Cp1251

Build trunk and mobility and get:

> java.lang.IllegalArgumentException: Parameter file was not normalized.
> Was E:\Projects\NetBeans\samson\nb_all\mobility\..\graph\lib instead
> of E:\Projects\NetBeans\samson\nb_all\graph\lib
>     at org.openide.filesystems.FileUtil.toFileObject(FileUtil.java:508)
>     at
>
org.netbeans.modules.apisupport.project.queries.UpdateTrackingFileOwnerQuery.getOwner(UpdateTrackingFileOwnerQuery.java:76)
>     at
>
org.netbeans.modules.apisupport.project.queries.UpdateTrackingFileOwnerQuery.getOwner(UpdateTrackingFileOwnerQuery.java:52)
>     at
> org.netbeans.api.project.FileOwnerQuery.getOwner(FileOwnerQuery.java:125)
>     at
>
org.netbeans.modules.java.project.ProjectSourceForBinaryQuery.findSourceRoots(ProjectSourceForBinaryQuery.java:43)
>     at
>
org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots(SourceForBinaryQuery.java:67)
>     at
>
org.netbeans.modules.retouche.source.GlobalSourcePath.createResources(GlobalSourcePath.java:235)
>     at
>
org.netbeans.modules.retouche.source.GlobalSourcePath.access$1200(GlobalSourcePath.java:64)
>     at
>
org.netbeans.modules.retouche.source.GlobalSourcePath$SourcePathImplementation.getResources(GlobalSourcePath.java:438)
>     at
> org.netbeans.api.java.classpath.ClassPath.entries(ClassPath.java:272)
>     at
>
org.netbeans.modules.retouche.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:670)
>     at
>
org.netbeans.modules.retouche.source.usages.RepositoryUpdater$CompileWorker$1.run(RepositoryUpdater.java:636)
>     at
>
org.netbeans.modules.retouche.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:58)
>     at
>
org.netbeans.modules.retouche.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:633)
>     at
>
org.netbeans.modules.retouche.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:610)
>     at
> org.netbeans.api.retouche.source.Source$CompilationJob.run(Source.java:1076)
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
>     at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>     at
>
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> [catch] at java.lang.Thread.run(Thread.java:619)
Comment 1 Martin Krauskopf 2007-03-29 15:53:29 UTC
Better to use default owner next time ;)

UpdateTrackingFileOwnerQuery.java; new revision: 1.7; previous revision: 1.6
Comment 2 Jesse Glick 2007-03-29 21:05:55 UTC
I think the fix is not so good. Better to normalize the File as soon as it is
created - I guess in NetBeansOrgEntry.getSourceLocation.

Root problem is a nonsense entry in cluster.properties which I will fix anyway.
Comment 3 Martin Krauskopf 2007-03-29 22:07:54 UTC
Yup, it was rather hotfix. I'll not have a time for it in the near future. If it
is the same with you feel free to throw it back.
Comment 4 Jesse Glick 2007-06-25 23:46:07 UTC
Checking in queries/UpdateTrackingFileOwnerQuery.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/queries/UpdateTrackingFileOwnerQuery.java,v
 <--  UpdateTrackingFileOwnerQuery.java
new revision: 1.8; previous revision: 1.7
done
Checking in universe/NetBeansOrgEntry.java;
/shared/data/ccvs/repository/apisupport/project/src/org/netbeans/modules/apisupport/project/universe/NetBeansOrgEntry.java,v
 <--  NetBeansOrgEntry.java
new revision: 1.9; previous revision: 1.8
done