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 10673 - Problem mounting TimerBean.jar in multiuser first start
Summary: Problem mounting TimerBean.jar in multiuser first start
Status: CLOSED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: David Strupl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-03-26 11:00 UTC by Jesse Glick
Modified: 2008-12-22 20:47 UTC (History)
3 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 Jesse Glick 2001-03-26 11:00:12 UTC
Sorry for the P1, but we are trying to fix problems surrounding mounting of
filesystems during module restoration, and the form module does not work
correctly with it. Specifically TimerBean.jar is (probably) mounted during form
module's restore, but then this filesystem is not retained with the project. It
should use a filesystem marked as global. Please see
org.apache.tools.ant.module.AntModule.restored for an example of how to mount a
global filesystem; this mounts ant-apis.zip and this seems to work reliably.

Without the fix, a ClassNotFoundException is thrown by InstanceDataObject during
first user start, since the timerbean classes are not mounted.
Comment 1 _ ttran 2001-03-26 13:09:31 UTC
what is the build number?  I've fixed this bug last week.  All jars in
{netbeans.home}/beans and {netbeans.user}/beans are mounted during restored()
using GlobalJarFileSystem.  I actually stole the code from the ant module.
Beans' jar files also are mounted globally when beans are installed into
component palette.

Still does not work?
Comment 2 _ ttran 2001-03-27 10:13:42 UTC
this must be a bug in core because by inserting tracing println in my code I am
sure that the jar is mounted _globally_ during restored().  BTW this used to
work a few days back.  Now indeed I never see the jar in the list of mounted
filesystems under Project Settings

*** Mounting
/heim/ttran/work/release32/ide/beans/TimerBean.jar[org.netbeans.modules.form.palette.GlobalJarFileSystem]
Comment 3 Tomas Pavek 2001-03-27 10:58:20 UTC
The jar is added by BeanInstaller, but then removed by project.
Got following stack when it happened:

[snip]
at org.netbeans.modules.projects.PSupport.clearRepository(PSupport.java:914)
at org.netbeans.modules.projects.PSupport.updateRepository(PSupport.java:895)
at org.netbeans.modules.projects.PSupport.projectOpen(PSupport.java:227)
at org.netbeans.core.NbProjectOperation.setProject(NbProjectOperation.java:129)
at org.netbeans.core.NbProjectOperation.openOrCreateProject
(NbProjectOperation.java:176)
at org.netbeans.core.NonGui.run(NonGui.java:476)
at org.netbeans.core.Main.run(Main.java:168)
at org.openide.TopManager.initializeTopManager(TopManager.java:120)
at org.openide.TopManager.getDefault(TopManager.java:81)
at org.netbeans.core.Main.main(Main.java:255)
at org.netbeans.core.TopThreadGroup.run(TopThreadGroup.java:90)
at java.lang.Thread.run(Thread.java:484)
Comment 4 David Strupl 2001-03-27 12:35:12 UTC
will examine - thanks for the stack trace.
Comment 5 David Strupl 2001-03-28 09:02:49 UTC
Fixed in [dev] and [release32].
Comment 6 Jan Chalupa 2001-05-05 20:50:21 UTC
Target milestone 3.2
Comment 7 Quality Engineering 2003-07-01 16:51:58 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.