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 100884 - NPEs and other errors when parsing boost project
Summary: NPEs and other errors when parsing boost project
Status: RESOLVED DUPLICATE of bug 101006
Alias: None
Product: cnd
Classification: Unclassified
Component: Code Model (show other bugs)
Version: 5.x
Hardware: All All
: P1 blocker (vote)
Assignee: Vladimir Voskresensky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-04-13 01:30 UTC by Thomas Preisler
Modified: 2007-04-16 10:37 UTC (History)
0 users

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 Thomas Preisler 2007-04-13 01:30:55 UTC
SEVERE: #endif directive
TOKEN{["#endif",<20>,line=21,col=1],offset=994,file=null} without starting #if
in APT
FILE:{/home/thp/SunStudioProjects/boost_1_33_1/libs/wave/test/testwave/testfiles/t_6_030.cpp}
java.lang.NullPointerException
        at
org.netbeans.modules.cnd.apt.impl.support.APTExpandedStream.toText(APTExpandedStream.java:445)
        at
org.netbeans.modules.cnd.apt.impl.support.APTExpandedStream.stringizeParam(APTExpandedStream.java:431)
        at
org.netbeans.modules.cnd.apt.impl.support.APTExpandedStream.subsituteParams(APTExpandedStream.java:361)
        at
org.netbeans.modules.cnd.apt.impl.support.APTExpandedStream.createMacroBodyWrapper(APTExpandedStream.java:169)
        at
org.netbeans.modules.cnd.modelimpl.parser.apt.APTParserMacroExpandedStream.createMacroBodyWrapper(APTParserMacroExpandedStream.java:41)
        at
org.netbeans.modules.cnd.apt.impl.support.APTExpandedStream.pushMacroExpanding(APTExpandedStream.java:110)
        at
org.netbeans.modules.cnd.apt.impl.support.APTExpandedStream.nextToken(APTExpandedStream.java:92)
        at
org.netbeans.modules.cnd.apt.impl.support.lang.APTBaseLanguageFilter$FilterStream.nextToken(APTBaseLanguageFilter.java:104)
        at antlr.TokenBuffer.<init>(TokenBuffer.java:51)
        at antlr.LLkParser.<init>(LLkParser.java:32)
        at antlr.LLkParserNoEx.<init>(LLkParserNoEx.java:42)
        at
org.netbeans.modules.cnd.modelimpl.parser.generated.CPPParser.<init>(CPPParser.java:406)
        at
org.netbeans.modules.cnd.modelimpl.parser.generated.CPPParser.<init>(CPPParser.java:413)
        at
org.netbeans.modules.cnd.modelimpl.parser.CPPParserEx.<init>(CPPParserEx.java:121)
        at
org.netbeans.modules.cnd.modelimpl.parser.CPPParserEx.getInstance(CPPParserEx.java:135)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.doParse(FileImpl.java:501)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:396)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:370)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:204)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:60)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
line 21:8: unexpected token: -
line 21:22: unexpected token: !
line 21:36: unexpected token: !
line 21:53: unexpected token: ~
line 48:24: unexpected token: +
line 60:16: unexpected token: ~
line 60:21: unexpected token: !
Apr 12, 2007 5:24:01 PM
org.netbeans.modules.cnd.apt.impl.structure.APTIfdefConditionBaseNode accept
SEVERE: line 20: extra tokens after MACRO at end of #ifdef directive
line 0:0: unexpected token: <no text>
line 22:23: expecting RPAREN, found '('
line 23:28: expecting RPAREN, found '('
line 30:26: expecting RPAREN, found '('
line 31:28: expecting RPAREN, found '('
line 41:20: expecting RPAREN, found '('
line 73:28: expecting RPAREN, found '('
line 46:46: expecting RPAREN, found '('
line 104:27: expecting RPAREN, found '('
line 204:23: expecting RPAREN, found '('
line 22:22: expecting RPAREN, found '('
line 67:24: expecting RPAREN, found '('
line 199:24: expecting RPAREN, found '('
line 37:28: expecting RPAREN, found '('
line 118:46: expecting RPAREN, found '('
line 21:28: expecting RPAREN, found '('
line 22:26: expecting RPAREN, found '('
line 272:46: expecting RPAREN, found '('
line 448:44: expecting RPAREN, found '('
line 489:23: expecting RPAREN, found '('
line 306:24: expecting RPAREN, found '('
line 22:26: expecting RPAREN, found '('
java.lang.NullPointerException
        at
org.netbeans.modules.cnd.modelimpl.csm.TypeImpl.initClassifier(TypeImpl.java:243)
        at org.netbeans.modules.cnd.modelimpl.csm.TypeImpl.<init>(TypeImpl.java:85)
        at
org.netbeans.modules.cnd.modelimpl.csm.TypeImpl.createType(TypeImpl.java:328)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.renderTypedef(AstRenderer.java:379)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:159)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:62)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:62)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.AstRenderer.render(AstRenderer.java:48)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.render(FileImpl.java:242)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl._parse(FileImpl.java:402)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.parse(FileImpl.java:370)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.FileImpl.ensureParsed(FileImpl.java:204)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThread.run(ParserThread.java:66)
        at
org.netbeans.modules.cnd.modelimpl.csm.core.ParserThreadManager$Wrapper.run(ParserThreadManager.java:60)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:499)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:932)
Comment 1 Vladimir Kvashin 2007-04-13 18:54:31 UTC
The second stack (NPE at TypeImpl.initClassifier(TypeImpl.java:243) is a
duplicate of #101009. So let's consider that this issue is only about first stack.
Comment 2 Vladimir Voskresensky 2007-04-16 10:37:17 UTC

*** This issue has been marked as a duplicate of 101006 ***