Cannot send JAX-WS request from plugin

Hi!

I'm trying to send JAX-WS request with this code:

    BrowserInternalServerImplService service = new BrowserInternalServerImplService(new URL("http://localhost:45893/browser?wsdl"));
    BrowserInternalServer internalServer = service.getBrowserInternalServerImplPort();

    internalServer.openTab("hive://localhost:" + port + "/" + appName);

But it fails with the following error:

    java.util.MissingResourceException: Can't find com.sun.xml.internal.messaging.saaj.soap.LocalStrings bundle
 at java.util.logging.Logger.setupResourceInfo(Logger.java:1518)
 at java.util.logging.Logger.<init>(Logger.java:265)
 at java.util.logging.LogManager.demandLogger(LogManager.java:409)
 at java.util.logging.Logger.demandLogger(Logger.java:343)
 at java.util.logging.Logger.getLogger(Logger.java:439)
 at com.sun.xml.internal.messaging.saaj.soap.SAAJMetaFactoryImpl.<clinit>(SAAJMetaFactoryImpl.java:41)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
 at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
 at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
 at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
 at java.lang.Class.newInstance(Class.java:374)
 at javax.xml.soap.FactoryFinder.newInstance(FactoryFinder.java:47)
 at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:193)
 at javax.xml.soap.FactoryFinder.find(FactoryFinder.java:97)
 at javax.xml.soap.SAAJMetaFactory.getInstance(SAAJMetaFactory.java:73)
 at javax.xml.soap.MessageFactory.newInstance(MessageFactory.java:145)
 at com.sun.xml.internal.ws.api.SOAPVersion.<init>(SOAPVersion.java:165)
 at com.sun.xml.internal.ws.api.SOAPVersion.<clinit>(SOAPVersion.java:71)
 at com.sun.xml.internal.ws.api.BindingID.<clinit>(BindingID.java:324)
 at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseBinding(RuntimeWSDLParser.java:445)
 at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:342)
 at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:157)
 at com.sun.xml.internal.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:120)
 at com.sun.xml.internal.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:257)
 at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:220)
 at com.sun.xml.internal.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:168)
 at com.sun.xml.internal.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:96)
 at javax.xml.ws.Service.<init>(Service.java:77)
 at com.mjolnirr.browser.web.BrowserInternalServerImplService.<init>(BrowserInternalServerImplService.java:46)
 at com.mjolnirr.idea.build.MjolnirrRunner.sendInfoToLaunchedInstance(MjolnirrRunner.java:94)
 at com.mjolnirr.idea.build.MjolnirrRunner.<init>(MjolnirrRunner.java:88)
 at com.mjolnirr.idea.build.MjolnirrRunningState.startProcess(MjolnirrRunningState.java:46)
 at com.mjolnirr.idea.build.MjolnirrRunningState.startProcess(MjolnirrRunningState.java:26)
 at com.intellij.execution.configurations.CommandLineState.execute(CommandLineState.java:65)
 at com.intellij.execution.impl.DefaultJavaProgramRunner.doExecute(DefaultJavaProgramRunner.java:80)
 at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:90)
 at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:212)
 at com.intellij.execution.impl.ExecutionManagerImpl.compileAndRun(ExecutionManagerImpl.java:184)
 at com.intellij.execution.impl.ExecutionManagerImpl.startRunProfile(ExecutionManagerImpl.java:250)
 at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:83)
 at com.intellij.execution.runners.GenericProgramRunner.execute(GenericProgramRunner.java:62)
 at com.intellij.execution.ProgramRunnerUtil.executeConfiguration(ProgramRunnerUtil.java:100)
 at com.intellij.execution.impl.ExecutionManagerImpl.start(ExecutionManagerImpl.java:338)
 at com.intellij.execution.impl.ExecutionManagerImpl.restartRunProfile(ExecutionManagerImpl.java:311)
 at com.intellij.execution.ExecutorRegistryImpl$ExecutorAction.actionPerformed(ExecutorRegistryImpl.java:250)
 at com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware(ActionUtil.java:162)
 at com.intellij.openapi.actionSystem.impl.ActionButton.actionPerformed(ActionButton.java:169)
 at com.intellij.openapi.actionSystem.impl.ActionButton.performAction(ActionButton.java:132)
 at com.intellij.openapi.actionSystem.impl.ActionButton.processMouseEvent(ActionButton.java:310)
 at java.awt.Component.processEvent(Component.java:6270)
 at java.awt.Container.processEvent(Container.java:2229)
 at java.awt.Component.dispatchEventImpl(Component.java:4861)
 at java.awt.Container.dispatchEventImpl(Container.java:2287)
 at java.awt.Component.dispatchEvent(Component.java:4687)
 at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
 at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
 at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
 at java.awt.Container.dispatchEventImpl(Container.java:2273)
 at java.awt.Window.dispatchEventImpl(Window.java:2719)
 at java.awt.Component.dispatchEvent(Component.java:4687)
 at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
 at java.awt.EventQueue.access$200(EventQueue.java:103)
 at java.awt.EventQueue$3.run(EventQueue.java:694)
 at java.awt.EventQueue$3.run(EventQueue.java:692)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
 at java.awt.EventQueue$4.run(EventQueue.java:708)
 at java.awt.EventQueue$4.run(EventQueue.java:706)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
 at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
 at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:700)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:521)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:348)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
 at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
 at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

How can I fix it?

6 comments

Could you please try to remove lib/javaee.jar from the IntelliJ IDEA installation directory and check if it fixes the problem?

0

Just checked - I have no such JAR in IDEA_SDK_ROOT/lib

0

What JDK version are you using to run IntelliJ IDEA with your plugin?

0

IDEA Community Edition 129.1359, Java 1.7u45

0

Can you tell me about cause of this problem?

0

Was any solution ever found for this?  I'm seeing the exact same thing in a plugin that I'm writing that otherwise works with IDEA 12.  I'd prefer not to have to drop support for that version because I know quite a few people still using it.

0

Please sign in to leave a comment.