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 10327 - Basic parsing problem with Java classes
Summary: Basic parsing problem with Java classes
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 10336 10709 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-03-15 01:45 UTC by mzaun
Modified: 2007-09-26 09:14 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
explorer screenshot with FFJ IE build 010313 (26.24 KB, image/jpeg)
2001-07-20 20:36 UTC, mzaun
Details
explorer screenshot with FFJ IE build 010312_3 (52.00 KB, image/jpeg)
2001-07-20 20:36 UTC, mzaun
Details
some java example files (extract and mount as directory) (7.97 KB, application/octet-stream)
2001-07-20 20:36 UTC, mzaun
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mzaun 2001-03-15 01:45:55 UTC
Any FFJ IE builds >= 010313 (010314) are definitely broken (and unusable) 
under Windows NT but not under Solaris.

The problem is that Java files cannot be parsed correctly; no class members 
but an 'error' icon is shown.  I have a screenshot, which I unfortunately 
do not know how to attach with Bugzilla.

Any builds <= 010312_3 do not have this problem.

Looking at the console output (see below), I've found that the Java 
module cannot find some essential Java classes because it is working with a 
wrong CLASSPATH:

WARNING: F:\Programs\jdk1.3.0_01\jre\classes cannot be opened
WARNING: F:\ffj\010313\lib\ext\jaxp.jar cannot be opened
org.netbeans.lib.javac.v8.util.FatalError: Fatal Error: Unable to locate package 
java.lang in classpath or bootclasspath
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.importAll(Enter.java:678)
        ...

The problem: the directory F:\Programs\jdk1.3.0_01\jre\classes doesn't exist at 
all!

And I'm sure that this directory isn't supposed to exist by the Java Runtime 
Environment, since the JRE operates on .jar files in its own lib directory.

See entire console log below.

Regards, Martin


-- System info ----------------------------------------------------------------
  Product Version       = Forte for Java, IE v. 3.0 (Build 010313)
  IDE Versioning        = IDE/1 spec=1.2 impl=010313
  Operating System      = Windows NT version 4.0 running on x86
  Java; VM; Vendor      = 1.3.0_01; Java HotSpot(TM) Client VM 1.3.0_01; Sun 
Microsystems Inc.
  Java Home             = F:\Programs\jdk1.3.0_01\jre
  System Locale         = en_US (f4j_ie)
  Home Dir; Current Dir = C:\WINNT\Profiles\Administrator; F:\ffj\010313\bin
  IDE Install; User Dir = F:\ffj\010313; F:\temp
  CLASSPATH             = 
F:\ffj\010313\lib\patches\openide-compat.jar;F:\ffj\010313\lib\locale\core_f4j.j
ar;F:\ffj\010313\lib\locale\core_f4j_ie.jar;F:\ffj\010313\lib\core.jar;F:\ffj\01
0313\lib\openide-fs.jar;F:\ffj\010313\lib\openide-nodes.jar;F:\ffj\010313\lib\op
enide-util.jar;F:\ffj\010313\lib\openide.jar;F:\ffj\010313\lib\ext\AbsoluteLayou
t.jar;F:\ffj\010313\lib\ext\bsh-1_0-fj.jar;F:\ffj\010313\lib\ext\cmd.jar;F:\ffj\
010313\lib\ext\corbaext.jar;F:\ffj\010313\lib\ext\cosnaming.jar;F:\ffj\010313\li
b\ext\dd2beans.jar;F:\ffj\010313\lib\ext\ddl.jar;F:\ffj\010313\lib\ext\fjscript.
jar;F:\ffj\010313\lib\ext\flute.jar;F:\ffj\010313\lib\ext\fscontext.jar;F:\ffj\0
10313\lib\ext\idlcompilers.jar;F:\ffj\010313\lib\ext\jaas.jar;F:\ffj\010313\lib\
ext\jaxp.jar;F:\ffj\010313\lib\ext\jh.jar;F:\ffj\010313\lib\ext\jndi.jar;F:\ffj\
010313\lib\ext\ldap.jar;F:\ffj\010313\lib\ext\ldapbp.jar;F:\ffj\010313\lib\ext\l
ogger.jar;F:\ffj\010313\lib\ext\nis.jar;F:\ffj\010313\lib\ext\parser.jar;F:\ffj\
010313\lib\ext\pbembeddedeval.jar;F:\ffj\010313\lib\ext\providerutil.jar;F:\ffj\
010313\lib\ext\regexp.jar;F:\ffj\010313\lib\ext\rmi-ext.jar;F:\ffj\010313\lib\ex
t\rmiregistry.jar;F:\ffj\010313\lib\ext\sac.jar;F:\ffj\010313\lib\ext\sax2.jar;F
:\ffj\010313\lib\ext\servlet.jar;F:\ffj\010313\lib\ext\xerces.jar;F:\ffj\010313\
lib\ext\jdbc20x.zip;F:\Programs\jdk1.3.0_01\lib\dt.jar;F:\Programs\jdk1.3.0_01\l
ib\tools.jar
-------------------------------------------------------------------------------
[INFO] Loaded modules: org.netbeans.core/1 (1.0/unspec); 
com.sun.forte4j.modules.pointbase/1 (1.1/010313); org.apache.tools.ant.module/2 
(2.3/010313); org.netbeans.modules.autoupdate/1 (2.0/010313); 
org.netbeans.modules.clazz/1 (1.7/010313); org.netbeans.modules.db/1 
(1.3/010313); com.sun.forte4j.modules.dbmodel.jdbcimpl/1 (1.1/010313); 
org.netbeans.modules.debugger.core/1 (2.1/010313); org.netbeans.modules.applet/1 
(1.7/010313); org.netbeans.modules.debugger.debug/1 (1.9/010313); 
org.netbeans.modules.debugger.jpda/1 (1.9/010313); org.netbeans.modules.editor/1 
(1.8/010313); org.netbeans.modules.corba.idl.editor/1 (1.1/010313); 
org.netbeans.modules.filecopy/1 (1.3/010313); org.netbeans.modules.html/1 
(1.8/010313); org.netbeans.modules.httpserver/1 (1.7/010313); 
org.netbeans.modules.icebrowser/1 (1.7/010313); org.netbeans.modules.image/1 
(1.7/010313); org.netbeans.modules.java/1 (1.7/010313); 
org.netbeans.modules.beans/1 (1.7/010313); org.netbeans.modules.corba/1 
(1.3/010313); org.netbeans.modules.jndi/1 (1.3/010313); 
org.netbeans.modules.logger/1 (1.2/010313); org.netbeans.modules.objectbrowser/1 
(1.7/010313); org.netbeans.modules.properties/1 (1.7/010313); 
org.netbeans.modules.i18n/1 (1.7/010313); 
org.netbeans.modules.properties.syntax/1 (1.7/010313); 
org.netbeans.modules.text/1 (1.7/010313); org.netbeans.modules.web.core/1 
(1.3/010313); org.netbeans.modules.web.core.syntax/1 (1.3/010313); 
org.openidex.util/1 (1.8/010313); org.netbeans.modules.form/2 (1.7/010313); 
org.netbeans.modules.i18n.form/2 (1.7/010313); org.netbeans.modules.j2eeserver/1 
(1.1/010313); org.netbeans.modules.jarpackager/1 (1.6/010305_2); 
org.netbeans.modules.javadoc/1 (1.7/010313); org.netbeans.modules.jdbc/1 
(1.1/010313); org.netbeans.modules.projects/1 (1.7/010313); 
org.netbeans.modules.scripting/1 (1.4/010313); org.netbeans.modules.utilities/1 
(1.7/010313); com.sun.forte4j.j2ee.lib/1 (0.2/010313); 
org.netbeans.modules.rmi/1 (1.3/010313); org.netbeans.modules.vcscore/1 
(1.5/010313); org.netbeans.modules.cvsclient/1 (1.4/010313); 
org.netbeans.modules.vcs.advanced/1 (1.4/010313); 
org.netbeans.modules.vcs.cmdline/1 (1.8/010313); org.netbeans.modules.xml/1 
(1.4/010313); org.netbeans.modules.extbrowser/1 (0.3/010313)
Type Groups Level Module Name
---- ------ ----- -----------
err    *     255   * 
(Default)

loading -
loading \
loading |
loading /
loading 
loading -
loading \
loading |
l
oading /
loading 
loading -
loading \
loading |
loading /
loading 
loading done.
path="" :jsp: init
Internal HTTP server running on port 8082
Type Groups Level Module Name
---- ------ ----- -----------
err    *     255   * 
(Default)

WARNING: F:\Programs\jdk1.3.0_01\jre\classes cannot be opened
WARNING: F:\ffj\010313\lib\ext\jaxp.jar cannot be opened
org.netbeans.lib.javac.v8.util.FatalError: Fatal Error: Unable to locate package 
java.lang in classpath or bootclasspath
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.importAll(Enter.java:678)
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter._case(Enter.java:793)
	at 
org.netbeans.lib.javac.v8.comp.ParsingEnter$ClazzMemberEnter._case(ParsingEnter.
java:364)
	at org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit(Tree.java:326)
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.memberEnter(Enter.java:759)
	at 
org.netbeans.lib.javac.v8.comp.Enter$CompleteEnter.complete(Enter.java:926)
	at org.netbeans.lib.javac.v8.code.Symbol.complete(Symbol.java:344)
	at org.netbeans.lib.javac.v8.comp.Enter.main(Enter.java:636)
	at 
org.netbeans.modules.java.gj.ParserEngine.parseObject(ParserEngine.java:137)
	at 
org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngine.java:87)
	at 
org.netbeans.modules.java.parser.ParseSourceRequest.process(ParseSourceRequest.j
ava:222)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(Parsing
Support.java:589)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.jav
a:527)
	at org.openide.util.Task.run(Task.java:124)
	at 
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:567)
org.netbeans.lib.javac.v8.util.FatalError: Fatal Error: Unable to locate package 
java.lang in classpath or bootclasspath
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.importAll(Enter.java:678)
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter._case(Enter.java:793)
	at 
org.netbeans.lib.javac.v8.comp.ParsingEnter$ClazzMemberEnter._case(ParsingEnter.
java:364)
	at org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit(Tree.java:326)
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.memberEnter(Enter.java:759)
	at 
org.netbeans.lib.javac.v8.comp.Enter$CompleteEnter.complete(Enter.java:926)
	at org.netbeans.lib.javac.v8.code.Symbol.complete(Symbol.java:344)
	at org.netbeans.lib.javac.v8.comp.Enter.main(Enter.java:636)
	at 
org.netbeans.modules.java.gj.ParserEngine.parseObject(ParserEngine.java:137)
	at 
org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngine.java:87)
	at 
org.netbeans.modules.java.parser.ParseSourceRequest.process(ParseSourceRequest.j
ava:222)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(Parsing
Support.java:589)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.jav
a:527)
	at org.openide.util.Task.run(Task.java:124)
	at 
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:567)
org.netbeans.lib.javac.v8.util.FatalError: Fatal Error: Unable to locate package 
java.lang in classpath or bootclasspath
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.importAll(Enter.java:678)
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter._case(Enter.java:793)
	at 
org.netbeans.lib.javac.v8.comp.ParsingEnter$ClazzMemberEnter._case(ParsingEnter.
java:364)
	at org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit(Tree.java:326)
	at 
org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.memberEnter(Enter.java:759)
	at 
org.netbeans.lib.javac.v8.comp.Enter$CompleteEnter.complete(Enter.java:926)
	at org.netbeans.lib.javac.v8.code.Symbol.complete(Symbol.java:344)
	at org.netbeans.lib.javac.v8.comp.Enter.main(Enter.java:636)
	at 
org.netbeans.modules.java.gj.ParserEngine.parseObject(ParserEngine.java:137)
	at 
org.netbeans.modules.java.gj.JavaParserEngine.process(JavaParserEngine.java:87)
	at 
org.netbeans.modules.java.parser.ParseSourceRequest.process(ParseSourceRequest.j
ava:222)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel(Parsing
Support.java:589)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.run(ParsingSupport.jav
a:527)
	at org.openide.util.Task.run(Task.java:124)
	at 
org.openide.util.RequestProcessor$ProcessorThread.run(RequestProcessor.java:567)
Internal HTTP server stopped
Comment 1 mzaun 2001-03-15 02:16:58 UTC
Created attachment 788 [details]
explorer screenshot with FFJ IE build 010313
Comment 2 mzaun 2001-03-15 02:17:45 UTC
Created attachment 789 [details]
explorer screenshot with FFJ IE build 010312_3
Comment 3 mzaun 2001-03-15 02:19:51 UTC
Created attachment 790 [details]
some java example files (extract and mount as directory)
Comment 4 mzaun 2001-03-15 02:31:16 UTC
Rochelle Raccah wrote:
> 
> Olsen, I get those warnings too (just the 2 WARNING lines), but that is not a
> problem on solaris.
Comment 5 Michael Ottati 2001-03-15 07:43:13 UTC
This is just a me too on W2K. When the error happens, and it happens right at 
startup, the log goes into a loop. I have not tried but I think that the IDE is 
pretty unusable after that.

Interestingly I got the same warnings on the same Jar files that were reported 
elsewhere in this bug. When I did a clean build with brand new CVS sources at 
about Thu Mar 15 07:00:00  2001 UTC, I got the following message, which 
contains additional Jar files that can not be found.

[org.netbeans.core.lookup.FolderLookup]   beforeLookup: class 
org.openide.modules.ManifestSection$NodeSection thread: Thread[AWT-EventQueue-
0,6,IDE Main]
[org.netbeans.core.lookup.FolderLookup]   ok - time: 0
WARNING: C:\java\jdk1.3\jre\classes cannot be opened
WARNING: C:\java\src\f4j_all\f4jbuild\firststart\lib\ext\jaxp.jar cannot be 
opened
WARNING: C:\java\src\f4j_all\f4jbuild\firststart\lib\ext\openidex.jar cannot be 
opened
WARNING: C:\java\src\f4j_all\f4jbuild\firststart\lib\ext\xalan.jar cannot be 
opened
org.netbeans.lib.javac.v8.util.FatalError: Fatal Error: Unable to locate 
package java.lang in classpath or bootclasspath
	at org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.importAll
(Enter.java:678)
	at org.netbeans.lib.javac.v8.comp.Enter$MemberEnter._case
(Enter.java:793)
	at org.netbeans.lib.javac.v8.comp.ParsingEnter$ClazzMemberEnter._case
(ParsingEnter.java:364)
	at org.netbeans.lib.javac.v8.tree.Tree$TopLevel.visit(Tree.java:326)
	at org.netbeans.lib.javac.v8.comp.Enter$MemberEnter.memberEnter
(Enter.java:759)
	at org.netbeans.lib.javac.v8.comp.Enter$CompleteEnter.complete
(Enter.java:926)
	at org.netbeans.lib.javac.v8.code.Symbol.complete(Symbol.java:344)
	at org.netbeans.lib.javac.v8.comp.Enter.main(Enter.java:636)
	at org.netbeans.modules.java.gj.ParserEngine.parseObject
(ParserEngine.java:137)
	at org.netbeans.modules.java.gj.JavaParserEngine.process
(JavaParserEngine.java:87)
	at org.netbeans.modules.java.parser.ParseSourceRequest.process
(ParseSourceRequest.java:222)
	at 
org.netbeans.modules.java.parser.ParsingSupport$Processor.parseLockModel
(ParsingSupport.java:636)
	at org.netbeans.modules.java.parser.ParsingSupport$Processor.run
(ParsingSupport.java:574)
	at org.openide.util.Task.run(Task.java:124)

Comment 6 Svata Dedic 2001-03-15 08:51:36 UTC
Fixed for main trunk and release-3.2.
It was caused by accidentaly deletion of code that translated platform-dependent
File.separatorChars to slashes internally used by NetBeans infrastructure.

Please, report your exceptions and logs as attachments, do not copy/paste them
directly into the message text. Thanks.
Comment 7 Svata Dedic 2001-03-15 15:43:57 UTC
*** Issue 10336 has been marked as a duplicate of this issue. ***
Comment 8 Jan Becicka 2001-03-16 09:19:18 UTC
[release32-6] Verified
Comment 9 Jan Chalupa 2001-05-05 23:26:49 UTC
Target milestone -> 3.2
Comment 10 Svata Dedic 2001-05-09 11:38:26 UTC
*** Issue 10709 has been marked as a duplicate of this issue. ***
Comment 11 Quality Engineering 2003-07-01 13:21:48 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.