[ https://issues.apache.org/jira/browse/CXF-6935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gary Gregory updated CXF-6935: ------------------------------ Attachment: cxf.patch Possible patch to give a better exception than an NPE. > Better error message than java.lang.NullPointerException - > org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:187) when > running on a JRE instead of JDK > ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- > > Key: CXF-6935 > URL: https://issues.apache.org/jira/browse/CXF-6935 > Project: CXF > Issue Type: Improvement > Affects Versions: 3.1.6 > Environment: java version "1.7.0_79" > Java(TM) SE Runtime Environment (build 1.7.0_79-b15) > Java HotSpot(TM) 64-Bit Server VM (build 24.79-b02, mixed mode) > Reporter: Gary Gregory > Attachments: cxf.patch > > > CXF needs a better error message than {{java.lang.NullPointerException - > org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:187)}} > when running on a JRE instead of JDK. > {noformat} > 2016-06-06 10:47:09,902 [qtp16583278-30] ERROR: > java.lang.NullPointerException - > org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:187) > java.lang.NullPointerException > at > org.apache.cxf.common.util.Compiler.useJava6Compiler(Compiler.java:187) > at > org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:141) > at > org.apache.cxf.common.util.Compiler.compileFiles(Compiler.java:136) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.compileJavaSrc(DynamicClientFactory.java:611) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:370) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:276) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:269) > at > org.apache.cxf.endpoint.dynamic.DynamicClientFactory.createClient(DynamicClientFactory.java:204) > {noformat} > The method {{javax.tools.ToolProvider.getSystemJavaCompiler()}} is documented > to return {{null}} if no compiler is provided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)