java.lang.NullPointerException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • wsd2url will throw a NullPointerException when using the xformat namespace... If there are errors in the wsdl I'm presenting here please comment. {quote} wsdl2java.bat -verbose CurrencyExchange.wsdl {quote} {noformat} Loading FrontEnd jaxws ... Loading DataBinding jaxb ... <command xmlns="http://www.xsume.com/Xutil/Command" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.xsume.com/Xutil/Command http://www.xsume.com/schema/xutil/command.xsd"> <option name="verbose"/> <argument name="wsdlurl">CurrencyExchange.wsdl</argument> </command> wsdl2java -verbose CurrencyExchange.wsdl wsdl2java - 2.0-incubator WSDLToJava Error : java.lang.NullPointerException org.apache.cxf.tools.common.ToolException: java.lang.NullPointerException at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:223) at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:84) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102) at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171) Caused by: java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:765) at org.apache.cxf.configuration.spring.SpringBeanMap.get(SpringBeanMap.java:191) at org.apache.cxf.transport.DestinationFactoryManagerImpl.getDestinationFactory(DestinationFactoryManagerImpl.java:99) at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildEndpoint(WSDLServiceBuilder.java:445) at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:260) at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:154) at org.apache.cxf.wsdl11.WSDLServiceBuilder.buildServices(WSDLServiceBuilder.java:143) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:142) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:215) ... 3 more {noformat} {code:xml} <?xml version="1.0" encoding="UTF-8"?> <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:schema="http://www.example.com/schemas/2007/08/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:xformat="http://cxf.apache.org/bindings/xformat" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.example.com/schemas/2007/08/"> <wsdl:types> <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:fx="http://www.example.com/schemas/2007/08/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://www.example.com/schemas/2007/08/"> <element name="ExchangeRequest"> <complexType> <all> <element name="fromCurrency" type="fx:CurrencyType"/> <element name="toCurrency" type="fx:CurrencyType"/> </all> </complexType> </element> <element name="ExchangeResponse"> <complexType> <all> <element name="rate"> <simpleType> <restriction base="double"/> </simpleType> </element> </all> </complexType> </element> <simpleType name="CurrencyType"> <restriction base="string"> <pattern value="[A-Z]{3}"/> </restriction> </simpleType> </schema> </wsdl:types> <wsdl:message name="ExchangeResponse"> <wsdl:part element="schema:ExchangeResponse" name="ExchangeResponse"> </wsdl:part> </wsdl:message> <wsdl:message name="ExchangeRequest"> <wsdl:part element="schema:ExchangeRequest" name="ExchangeRequest"> </wsdl:part> </wsdl:message> <wsdl:portType name="CurrencyExchange"> <wsdl:operation name="Exchange"> <wsdl:input message="schema:ExchangeRequest" name="ExchangeRequest"/> <wsdl:output message="schema:ExchangeResponse" name="ExchangeResponse"/> </wsdl:operation> </wsdl:portType> <wsdl:binding name="CurrencyExchangeSoapBinding" type="schema:CurrencyExchange"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <wsdl:operation name="Exchange"> <wsdl:input> <soap:body use="literal"/> </wsdl:input> <wsdl:output> <soap:body use="literal"/> </wsdl:output> </wsdl:operation> </wsdl:binding> <wsdl:binding name="CurrencyExchangeXmlBinding" type="schema:CurrencyExchange"> <xformat:binding/> <wsdl:operation name="Exchange"> <wsdl:input> <xformat:body rootNode="schema:ExchangeRequest"/> </wsdl:input> <wsdl:output/> </wsdl:operation> </wsdl:binding> <wsdl:service name="CurrencyExchangeService"> <wsdl:port binding="schema:CurrencyExchangeSoapBinding" name="CurrencyExchangeSoapPort"/> <wsdl:port binding="schema:CurrencyExchangeXmlBinding" name="CurrencyExchangeXmlPort"/> </wsdl:service> </wsdl:definitions> {code}
    via by Ray Krueger,
  • Hive bulk load into HBase
    via by Unknown author,
  • *Summary description* We have a product acceptance test suite that uses Thucydides & JUnit; this suite is one module in a maven multi-module project. Building the acceptance test module in isolation works perfectly well. Building the acceptance test module as a part of the aggregator project fails. *Reproduction steps:* * Restore the attached project * For verification: Navigate to the thucydidestests module and run mvn verify - the build should succeed. * In the top-level directory (aggregatorbug), run mvn verify *Expected result:* The project builds and the tests run to completion. *Actual result:* The tests fail after the first (in this example, only) test class, with the folowing exception: {quote} [ERROR] Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.12:integration-test (default) on project thucydidestests: Execution default o f goal org.apache.maven.plugins:maven-failsafe-plugin:2.12:integration-test failed: java.lang.reflect.InvocationTargetException; nested exception is java.lan g.reflect.InvocationTargetException: null: java.lang.NullPointerException; nested exception is java.lang.NullPointerException: null -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-failsafe-plugin:2.12:integration-test (default) on project thucydidestests: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.12:integration-test failed: java.lang.reflect.Invocat ionTargetException; nested exception is java.lang.reflect.InvocationTargetException: null at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59) at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196) at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal org.apache.maven.plugins:maven-failsafe-plugin:2.12:integration-test f ailed: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.InvocationTargetException: null at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209) ... 19 more Caused by: org.apache.maven.surefire.util.SurefireReflectionException: java.lang.reflect.InvocationTargetException; nested exception is java.lang.reflect.Inv ocationTargetException: null at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:197) at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165) at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85) at org.apache.maven.plugin.surefire.InPluginVMSurefireStarter.runSuitesInProcess(InPluginVMSurefireStarter.java:74) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:194) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAllProviders(AbstractSurefireMojo.java:176) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:135) at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:98) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101) ... 20 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189) ... 28 more Caused by: org.apache.maven.surefire.testset.TestSetFailedException: java.lang.NullPointerException; nested exception is java.lang.NullPointerException: null at org.apache.maven.surefire.common.junit4.JUnit4RunListener.rethrowAnyTestMechanismFailures(JUnit4RunListener.java:166) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:63) at org.apache.maven.surefire.junitcore.JUnitCoreProvider.invoke(JUnitCoreProvider.java:139) ... 33 more Caused by: java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:332) at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:987) at org.apache.maven.surefire.junitcore.ConcurrentReporterManager.getTestSet(ConcurrentReporterManager.java:157) at org.apache.maven.surefire.junitcore.ConcurrentReporterManager.getOrCreateTestMethod(ConcurrentReporterManager.java:127) at org.apache.maven.surefire.junitcore.ConcurrentReporterManager.testError(ConcurrentReporterManager.java:83) at org.apache.maven.surefire.common.junit4.JUnit4RunListener.testFailure(JUnit4RunListener.java:110) at org.junit.runner.notification.RunNotifier$4.notifyListener(RunNotifier.java:139) at org.junit.runner.notification.RunNotifier$SafeNotifier.run(RunNotifier.java:61) at org.junit.runner.notification.RunNotifier.fireTestFailures(RunNotifier.java:134) at org.junit.runner.notification.RunNotifier.fireTestFailure(RunNotifier.java:128) at org.junit.internal.runners.model.EachTestNotifier.addFailure(EachTestNotifier.java:23) at org.junit.runners.ParentRunner.run(ParentRunner.java:315) at org.junit.runner.JUnitCore.run(JUnitCore.java:160) at org.junit.runner.JUnitCore.run(JUnitCore.java:138) at org.apache.maven.surefire.junitcore.JUnitCoreWrapper.execute(JUnitCoreWrapper.java:62) ... 34 more {quote} *Additional information:* When running with a debugger, the problem was tracked down to the following: {quote} null: Failed to generate reports using net.thucydides.core.reports.xml.XMLTestOutcomeReporter@7dc53a1d java.io.IOException: Directory 'target/site/thucydides' could not be created {quote}
    via by gareth.bragg,
  • NullPointerException
    via GitHub by Usnul
    ,
  • NPE
    via GitHub by IvanMamontov
    ,
  • NPE
    via GitHub by IvanMamontov
    ,
    • java.lang.NullPointerException at java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:765) at org.jivesoftware.openfire.muc.spi.MultiUserChatServerImpl.getChatRoom(MultiUserChatServerImpl.java:457) at org.jivesoftware.openfire.muc.spi.IQMUCRegisterHandler.handleIQ(IQMUCRegisterHandler.java:109) at org.jivesoftware.openfire.muc.spi.MultiUserChatServerImpl.process(MultiUserChatServerImpl.java:264) at org.jivesoftware.openfire.muc.spi.MultiUserChatServerImpl.processPacket(MultiUserChatServerImpl.java:229) at org.jivesoftware.openfire.muc.spi.MultiUserChatServerImpl.process(MultiUserChatServerImpl.java:216) at org.jivesoftware.openfire.IQRouter.handle(IQRouter.java:250) at org.jivesoftware.openfire.IQRouter.route(IQRouter.java:104) at org.jivesoftware.openfire.spi.PacketRouterImpl.route(PacketRouterImpl.java:67) at org.jivesoftware.openfire.net.SocketReader.processIQ(SocketReader.java:243) at org.jivesoftware.openfire.net.ServerSocketReader.access$001(ServerSocketReader.java:46) at org.jivesoftware.openfire.net.ServerSocketReader$1.run(ServerSocketReader.java:79) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619)

    Users with the same issue

    musketyr
    6 times, last one,
    Hronom
    201 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    20 more bugmates