matthiasblaesing commented on pull request #3862:
URL: https://github.com/apache/netbeans/pull/3862#issuecomment-1079706207


   @jlahoda could you please have a look at this:
   
   https://app.travis-ci.com/github/apache/netbeans/jobs/564742204#L11668-L11694
   
   ```
       [junit] Caused: java.lang.NullPointerException: Cannot read field "tsym" 
because "imp.qualid.selected.type" is null
       [junit]  at 
com.sun.tools.javac.comp.Check.checkImportedPackagesObservable(Check.java:4031)
       [junit]  at 
com.sun.tools.javac.comp.TypeEnter.finishImports(TypeEnter.java:229)
       [junit]  at 
com.sun.tools.javac.comp.TypeEnter.complete(TypeEnter.java:214)
       [junit]  at com.sun.tools.javac.code.Symbol.complete(Symbol.java:682)
       [junit]  at 
com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:1410)
       [junit]  at com.sun.tools.javac.comp.Enter.complete(Enter.java:610)
       [junit]  at com.sun.tools.javac.comp.Enter.main(Enter.java:587)
       [junit]  at 
com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:1042)
       [junit]  at 
com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:345)
       [junit]  at 
com.sun.tools.javac.api.JavacTaskImpl.enter(JavacTaskImpl.java:282)
       [junit]  at 
org.netbeans.modules.java.source.parsing.JavacParser.moveToPhase(JavacParser.java:747)
       [junit]  at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:540)
       [junit]  at 
org.netbeans.modules.java.source.parsing.JavacParser.getResult(JavacParser.java:141)
       [junit]  at 
org.netbeans.modules.parsing.impl.TaskProcessor.callGetResult(TaskProcessor.java:608)
       [junit]  at 
org.netbeans.modules.parsing.impl.SourceCache.getResult(SourceCache.java:239)
       [junit]  at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.run(TaskProcessor.java:775)
       [junit]  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:279)
       [junit]  at 
org.netbeans.modules.parsing.impl.TaskProcessor$RequestPerformer.execute(TaskProcessor.java:702)
       [junit] [catch] at 
org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:663)
       [junit]  at 
java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
       [junit]  at 
java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
       [junit]  at 
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1418)
       [junit]  at 
org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:45)
       [junit]  at org.openide.util.lookup.Lookups.executeWith(Lookups.java:278)
       [junit]  at 
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
       [junit] ALL [null]: An error occurred during parsing of 
'/home/travis/build/apache/netbeans/ide/ide.kit/build/test/qa-functional/work/o.n.m.i.k.V/at/Test41.java'.
 Please report a bug against java/source and attach dump file 
'/home/travis/build/apache/netbeans/ide/ide.kit/build/test/qa-functional/work/userdir0/var/log/Test41.dump'.
   ```
   
   The marked lines is part of the output of the 
`org.netbeans.modules.ide.kit.VerifySimpleTemplatesTest.VerifySimpleTemplatesTest`
 (in `ide/ide.kit`).  It seems, that the error comes out of the `javac` which 
is fed incomplete information.
   
   Locally I can reproduce the problem sometimes. Using this branch on JDK 11 I 
get the error after a clean build (with JDK 11 on the PATH):
   
   ```bash
   git clean -f -x -d
   ant
   ant commit-validation
   ```
   
   Maybe you have an idea how we could stabilize this. This might be a real 
problem in the infrastructure, as the test was not run on 9+ before this PR 
(see the removed filter in 
`ide/ide.kit/test/qa-functional/src/org/netbeans/modules/ide/kit/VerifySimpleTemplatesTest.java`).
 If I read the test procedure correctly, the test fails because it is 
configured to fail if an exception is logged, which is the case.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to