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.

  • FOP0.20.4 embedded rendering throws exception
    via by eveline.hofbauer,
  • The v3.6.1 WebService Consumer is receiving a response of type _org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader_. When converted to a _java.lang.String_, it resembles the following XML: {code:xml} <?xml version="1.0" encoding="utf-8"?> <IsValidEmailResponse xmlns="http://www.webservicex.net"> <IsValidEmailResult>false</IsValidEmailResult> </IsValidEmailResponse> {code} The following xpath3 function call is issued against the payload: {code}xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING'){code} The following error message is displayed: {quote}org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: DepthXMLStreamReader Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. null (java.lang.NullPointerException) java.net.URL:522 (null) 2. null (java.net.MalformedURLException) java.net.URL:617 (null) 3. java.net.MalformedURLException (org.mule.api.MuleRuntimeException) org.mule.module.xml.el.XPath3Function:151 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleRuntimeException.html) 4. [Error: java.net.MalformedURLException] [Near : {... xpath3('wx:IsValidEmailRespons ....}] ^ [Line: 1, Column: 1] (org.mule.mvel2.CompileException) org.mule.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer:438 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/mvel2/CompileException.html) 5. Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException) org.mule.el.mvel.MVELExpressionLanguage:202 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/expression/ExpressionRuntimeException.html) 6. Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: DepthXMLStreamReader (org.mule.api.transformer.TransformerMessagingException) org.mule.transformer.AbstractTransformer:135 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerMessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.NullPointerException at java.net.URL.<init>(URL.java:522) at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:429) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) *******************************************************************************{quote}
    via by Tony DeFusco,
  • The v3.6.1 WebService Consumer is receiving a response of type _org.mule.module.ws.consumer.NamespaceRestorerXMLStreamReader_. When converted to a _java.lang.String_, it resembles the following XML: {code:xml} <?xml version="1.0" encoding="utf-8"?> <IsValidEmailResponse xmlns="http://www.webservicex.net"> <IsValidEmailResult>false</IsValidEmailResult> </IsValidEmailResponse> {code} The following xpath3 function call is issued against the payload: {code}xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING'){code} The following error message is displayed: {quote}org.mule.exception.DefaultMessagingExceptionStrategy: ******************************************************************************** Message : Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: DepthXMLStreamReader Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. null (java.lang.NullPointerException) java.net.URL:522 (null) 2. null (java.net.MalformedURLException) java.net.URL:617 (null) 3. java.net.MalformedURLException (org.mule.api.MuleRuntimeException) org.mule.module.xml.el.XPath3Function:151 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/MuleRuntimeException.html) 4. [Error: java.net.MalformedURLException] [Near : {... xpath3('wx:IsValidEmailRespons ....}] ^ [Line: 1, Column: 1] (org.mule.mvel2.CompileException) org.mule.mvel2.optimizers.impl.refl.ReflectiveAccessorOptimizer:438 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/mvel2/CompileException.html) 5. Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException) org.mule.el.mvel.MVELExpressionLanguage:202 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/expression/ExpressionRuntimeException.html) 6. Execution of the expression "xpath3('wx:IsValidEmailResponse/ws:IsValidEmailResult', payload, 'STRING')" failed. (org.mule.api.expression.ExpressionRuntimeException). Message payload is of type: DepthXMLStreamReader (org.mule.api.transformer.TransformerMessagingException) org.mule.transformer.AbstractTransformer:135 (http://www.mulesoft.org/docs/site/current3/apidocs/org/mule/api/transformer/TransformerMessagingException.html) -------------------------------------------------------------------------------- Root Exception stack trace: java.lang.NullPointerException at java.net.URL.<init>(URL.java:522) at java.net.URL.<init>(URL.java:480) at java.net.URL.<init>(URL.java:429) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything) *******************************************************************************{quote}
    via by Tony DeFusco,
    • java.lang.NullPointerException at java.net.Parts.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at java.net.URL.<init>(Unknown Source) at oracle.eclipse.tools.glassfish.GlassfishGenericServer.getModuleRootURL(GlassfishGenericServer.java:127) at oracle.eclipse.tools.glassfish.GlassfishLaunchableAdapterDelegate.getLaunchable(GlassfishLaunchableAdapterDelegate.java:55) at org.eclipse.wst.server.core.internal.LaunchableAdapter.getLaunchable(LaunchableAdapter.java:76) at org.eclipse.wst.server.ui.internal.ServerUIPlugin.getLaunchableAdapter(ServerUIPlugin.java:1209) at org.eclipse.wst.server.ui.internal.wizard.fragment.OptionalClientWizardFragment.updateClients(OptionalClientWizardFragment.java:65) at org.eclipse.wst.server.ui.internal.wizard.fragment.OptionalClientWizardFragment.enter(OptionalClientWizardFragment.java:109) at org.eclipse.wst.server.ui.internal.wizard.TaskWizard$2$1.run(TaskWizard.java:177) at org.eclipse.ui.internal.UILockListener.doPendingWork(UILockListener.java:167) at org.eclipse.ui.internal.UISynchronizer$3.run(UISynchronizer.java:165) at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35) at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:136) at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4147) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3764) at org.eclipse.jface.operation.ModalContext$ModalContextThread.block(ModalContext.java:175) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:390) at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:1059) at org.eclipse.wst.server.ui.internal.wizard.TaskWizard.performFinish(TaskWizard.java:227) at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:853) at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:438) at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:619) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.jface.window.Window.runEventLoop(Window.java:832) at org.eclipse.jface.window.Window.open(Window.java:808) at org.eclipse.wst.server.ui.internal.actions.RunOnServerActionDelegate.getServer(RunOnServerActionDelegate.java:137) at org.eclipse.wst.server.ui.internal.actions.RunOnServerActionDelegate.run(RunOnServerActionDelegate.java:295) at org.eclipse.wst.server.ui.internal.actions.RunOnServerActionDelegate.run(RunOnServerActionDelegate.java:764) at org.eclipse.wst.server.ui.internal.ServerLaunchShortcut.launch(ServerLaunchShortcut.java:41) at org.eclipse.debug.internal.ui.launchConfigurations.LaunchShortcutExtension.launch(LaunchShortcutExtension.java:431) at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.run(LaunchShortcutAction.java:74) at org.eclipse.debug.internal.ui.actions.LaunchShortcutAction.runWithEvent(LaunchShortcutAction.java:123) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:595) at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:511) at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:420) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:782) at org.eclipse.jface.action.ActionContributionItem$9.handleEvent(ActionContributionItem.java:1293) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:382) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:236) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603) at org.eclipse.equinox.launcher.Main.run(Main.java:1465)

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,