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 57535 - Cannot move web project
Summary: Cannot move web project
Status: CLOSED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Web Project (show other bugs)
Version: 4.x
Hardware: All Windows XP
: P2 blocker (vote)
Assignee: Pavel Buzek
URL:
Keywords:
: 57580 57638 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-04-06 11:41 UTC by Lukas Jungmann
Modified: 2006-03-24 12:55 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (52.46 KB, text/plain)
2005-04-06 11:42 UTC, Lukas Jungmann
Details
tested application (ear targeted for app server) (40.15 KB, application/x-gzip)
2005-04-06 11:43 UTC, Lukas Jungmann
Details
diff (5.63 KB, text/plain)
2005-04-08 00:18 UTC, Pavel Buzek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-04-06 11:41:33 UTC
[build 200504051930]

-have web.app. with sources level set to 1.5 and move it to other computer with
the same version/build of NB

1. open App

=> NumberFormatException is thrown, nothing have been opened, but it seems
there's something hidden in memmory

2. restart IDE

=> NumberFormatException is thrown again
Comment 1 Lukas Jungmann 2005-04-06 11:42:35 UTC
Created attachment 21419 [details]
messages.log
Comment 2 Lukas Jungmann 2005-04-06 11:43:42 UTC
Created attachment 21420 [details]
tested application (ear targeted for app server)
Comment 3 Pavel Buzek 2005-04-07 21:09:27 UTC
The problem is that the location of userdir is not set in private properties
when the WebProjectProperties is first called. javac.source cannot be evaluated
when it is set to ${default.javac.source}, since ${default.javac.source} is
defined in build.properties.
WPP is created to check missing server, this can be avoided and call
evalutator.getProperty() instead of WPP.get(). Another call is in projectOpened
before the user.properties.file is called, this can be fixed by setting
user.properties.file as the first thing in projectOpened().
Comment 4 Pavel Buzek 2005-04-08 00:13:57 UTC
fixed in trunk:

/cvs/web/project/src/org/netbeans/modules/web/project/WebProject.java,v  <-- 
WebProject.java new revision: 1.82; previous revision: 1.81
src/org/netbeans/modules/web/project/ui/WebPhysicalViewProvider.java;
/cvs/web/project/src/org/netbeans/modules/web/project/ui/WebPhysicalViewProvider.java,v
 <--  WebPhysicalViewProvider.java new revision: 1.29; previous revision: 1.28
Comment 5 Pavel Buzek 2005-04-08 00:18:33 UTC
Created attachment 21477 [details]
diff
Comment 6 Lukas Jungmann 2005-04-08 10:16:18 UTC
v. in cont. build 20050408-0750, can be merged to release41 branch after code review
Comment 7 zikmund 2005-04-08 12:47:33 UTC
*** Issue 57638 has been marked as a duplicate of this issue. ***
Comment 8 Radko Najman 2005-04-08 15:41:26 UTC
I reviewed the fix and agree with it.
Comment 9 zikmund 2005-04-12 08:51:07 UTC
*** Issue 57580 has been marked as a duplicate of this issue. ***
Comment 10 Pavel Buzek 2005-04-14 19:13:27 UTC
Merged to 4.1 branch. 
Comment 11 zikmund 2005-04-29 14:00:45 UTC
Verified in release41 branch.