java.lang.NullPointerException on build

Issue #85 wontfix
Former user created an issue

The title basically explains everything. I get this error when I compile my file (pascal program).

IDE info: IntelliJ IDEA 2018.2.5 (Community Edition) Build #IC-182.4892.20, built on October 16, 2018 JRE: 1.8.0_152-release-1248-b19 amd64 JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o Windows 8.1 6.3

Comments (6)

  1. Dráčata

    Information:Pascal builder: Compiler family:FPC Information:12-11-18 12:09 - Compilation completed with 1 error and 0 warnings in 2 s 363 ms Error:Pascal 'psc' production: java.lang.NullPointerException

  2. Geo B repo owner

    Full exception log usually contains stack trace. It can be retrieved from log. To open IDEA log click Help->Show Log. There should be java.lang.NullPointerException with stack trace. Please attach it here.

  3. Dráčata
    2018-11-13 08:39:25,890 [  44111]   INFO - ij.compiler.impl.CompileDriver - COMPILATION STARTED (BUILD PROCESS) 
    2018-11-13 08:39:25,893 [  44114]   INFO - j.compiler.server.BuildManager - Using preloaded build process to compile C:\Users\Kryštof\Documents\Dokumenty\Programy\Pascal\psc 
    2018-11-13 08:39:26,899 [  45120]   INFO - lij.compiler.impl.CompilerUtil -     COMPILATION FINISHED (BUILD PROCESS); Errors: 1; warnings: 0 took 1013 ms: 0 min 1sec 
    2018-11-13 08:39:26,912 [  45133]   INFO - s.CompilerReferenceServiceBase - backward reference index reader is opened 
    2018-11-13 08:39:27,419 [  45640]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: log4j:ERROR setFile(null,true) call failed. 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: java.io.FileNotFoundException: C:\Users\Kry??tof\.IdeaIC2018.2\system\log\build-log\build.log (Systém nemůže nalézt uvedenou cestu) 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.io.FileOutputStream.open0(Native Method) 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.io.FileOutputStream.open(FileOutputStream.java:270) 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.io.FileOutputStream.<init>(FileOutputStream.java:213) 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.io.FileOutputStream.<init>(FileOutputStream.java:133) 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207) 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) 
    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:842) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:542) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:427) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.jetbrains.jps.cmdline.LogSetup.initLoggers(LogSetup.java:52) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.jetbrains.jps.cmdline.BuildMain.<clinit>(BuildMain.java:60) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at java.lang.reflect.Method.invoke(Method.java:498) 
    2018-11-13 08:39:27,421 [  45642]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: at org.jetbrains.jps.cmdline.Launcher.main(Launcher.java:58) 
    2018-11-13 08:39:27,427 [  45648]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stdout]: Build process started. Classpath: C:/Program Files/JetBrains/IntelliJ IDEA Community 18.2.4/lib/jps-launcher.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community 18.2.4/jre64/lib/tools.jar;C:/Program Files/JetBrains/IntelliJ IDEA Community 18.2.4/lib/optimizedFileManager.jar 
    2018-11-13 08:39:27,539 [  45760]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". 
    2018-11-13 08:39:27,540 [  45761]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: Defaulting to no-operation (NOP) logger implementation 
    2018-11-13 08:39:27,541 [  45762]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. 
    

    seems like this line is the problem

    2018-11-13 08:39:27,420 [  45641]   INFO - j.compiler.server.BuildManager - BUILDER_PROCESS [stderr]: java.io.FileNotFoundException: C:\Users\Kry??tof\.IdeaIC2018.2\system\log\build-log\build.log (Systém nemůže nalézt uvedenou cestu) 
    

    Because my username contains non-ascii char ("Kryštof")

  4. Geo B repo owner

    It's a build log. The NPE should be in idea.log. Can you show this one too?

    The problem seems to be in the non-ascii character indeed. If this is the case this need to be reported to Jetbrains.

  5. Log in to comment