camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-8291) NoSuchMethodError while authenticate Box Client
Date Wed, 04 Feb 2015 18:52:35 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-8291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-8291.
--------------------------------
    Resolution: Not a Problem
      Assignee: Claus Ibsen

Okay assume it works now for you

> NoSuchMethodError while authenticate Box Client
> -----------------------------------------------
>
>                 Key: CAMEL-8291
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8291
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-box
>    Affects Versions: 2.14.0
>            Reporter: Ilya Melnik
>            Assignee: Claus Ibsen
>         Attachments: boxRoute.xml
>
>
> When deploying camel box route in karaf container i've get this error
> {code}
> NoSuchMethodError org.apache.xerces.xni.XMLDocumentHandler.startDocument(Lorg/apache/xerces/xni/XMLLocator;Ljava/lang/String;Lorg/apache/xerces/xni/Augmentations;)V
> [org.cyberneko.html.xercesbridge.XercesBridge_2_0.XMLDocumentHandler_startDocument(XercesBridge_2_0.java:57),
>  org.cyberneko.html.HTMLScanner$ContentScanner.scan(HTMLScanner.java:2147),
>  org.cyberneko.html.HTMLScanner.scanDocument(HTMLScanner.java:920),
>  org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:499),
>  org.cyberneko.html.HTMLConfiguration.parse(HTMLConfiguration.java:452),
>  org.apache.xerces.parsers.XMLParser.parse(Unknown Source),
>  com.gargoylesoftware.htmlunit.html.HTMLParser$HtmlUnitDOMBuilder.parse(HTMLParser.java:965),
>  com.gargoylesoftware.htmlunit.html.HTMLParser.parse(HTMLParser.java:247),
>  com.gargoylesoftware.htmlunit.html.HTMLParser.parseHtml(HTMLParser.java:193),
>  com.gargoylesoftware.htmlunit.DefaultPageCreator.createHtmlPage(DefaultPageCreator.java:268),
>  com.gargoylesoftware.htmlunit.DefaultPageCreator.createPage(DefaultPageCreator.java:156),
>  com.gargoylesoftware.htmlunit.WebClient.loadWebResponseInto(WebClient.java:468),
>  com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:342),
>  com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:407),
>  com.gargoylesoftware.htmlunit.WebClient.getPage(WebClient.java:392),
>  org.apache.camel.component.box.internal.LoginAuthFlowUI.authenticate(LoginAuthFlowUI.java:101),
>  com.box.boxjavalibv2.BoxClient.authenticate(BoxClient.java:486),
>  org.apache.camel.component.box.internal.BoxClientHelper.getOAuthToken(BoxClientHelper.java:139),
>  org.apache.camel.component.box.BoxEndpoint.doStart(BoxEndpoint.java:219),
>  org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61),
>  org.apache.camel.impl.DefaultCamelContext.startService(DefaultCamelContext.java:2158),
>  org.apache.camel.impl.DefaultCamelContext.doAddService(DefaultCamelContext.java:1016),
>  org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:977),
>  org.apache.camel.impl.DefaultCamelContext.addService(DefaultCamelContext.java:973),
>  org.apache.camel.impl.DefaultCamelContext.getEndpoint(DefaultCamelContext.java:541),
>  org.apache.camel.util.CamelContextHelper.getMandatoryEndpoint(CamelContextHelper.java:71),
>  org.apache.camel.model.RouteDefinition.resolveEndpoint(RouteDefinition.java:202),
>  org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:106),
>  org.apache.camel.impl.DefaultRouteContext.resolveEndpoint(DefaultRouteContext.java:112),
>  org.apache.camel.model.FromDefinition.resolveEndpoint(FromDefinition.java:72),
>  org.apache.camel.impl.DefaultRouteContext.getEndpoint(DefaultRouteContext.java:88),
>  org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:923),
>  org.apache.camel.model.RouteDefinition.addRoutes(RouteDefinition.java:187),
>  org.apache.camel.impl.DefaultCamelContext.startRoute(DefaultCamelContext.java:794),
>  org.apache.camel.impl.DefaultCamelContext.startRouteDefinitions(DefaultCamelContext.java:2184),
>  org.apache.camel.impl.DefaultCamelContext.doStartCamel(DefaultCamelContext.java:1916),
>  org.apache.camel.impl.DefaultCamelContext.doStart(DefaultCamelContext.java:1777),
>  org.apache.camel.support.ServiceSupport.start(ServiceSupport.java:61),
>  org.apache.camel.impl.DefaultCamelContext.start(DefaultCamelContext.java:1745),
>  org.apache.camel.blueprint.BlueprintCamelContext.start(BlueprintCamelContext.java:177),
>  org.apache.camel.blueprint.BlueprintCamelContext.maybeStart(BlueprintCamelContext.java:209),
>  org.apache.camel.blueprint.BlueprintCamelContext.serviceChanged(BlueprintCamelContext.java:147),
>  org.eclipse.osgi.internal.serviceregistry.FilteredServiceListener.serviceChanged(FilteredServiceListener.java:107),
>  org.eclipse.osgi.framework.internal.core.BundleContextImpl.dispatchEvent(BundleContextImpl.java:861),
>  org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:230),
>  org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:148),
>  org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEventPrivileged(ServiceRegistry.java:819),
>  org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.publishServiceEvent(ServiceRegistry.java:771),
>  org.eclipse.osgi.internal.serviceregistry.ServiceRegistrationImpl.register(ServiceRegistrationImpl.java:130),
>  org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.registerService(ServiceRegistry.java:214),
>  org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:433),
>  org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:451),
>  org.eclipse.osgi.framework.internal.core.BundleContextImpl.registerService(BundleContextImpl.java:950),
>  org.apache.camel.blueprint.BlueprintCamelContext.init(BlueprintCamelContext.java:97),
>  sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method),
>  sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57),
>  sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43),
>  java.lang.reflect.Method.invoke(Method.java:601),
>  org.apache.aries.blueprint.utils.ReflectionUtils.invoke(ReflectionUtils.java:297),
>  org.apache.aries.blueprint.container.BeanRecipe.invoke(BeanRecipe.java:958),
>  org.apache.aries.blueprint.container.BeanRecipe.runBeanProcInit(BeanRecipe.java:712),
>  org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:824),
>  org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787),
>  org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79),
>  java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334),
>  java.util.concurrent.FutureTask.run(FutureTask.java:166),
>  org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88),
>  org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245),
>  org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183),
>  org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:681),
>  org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:378),
>  org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269),
>  org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:276),
>  org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:245),
>  org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:235),
>  org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500),
>  org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433),
>  org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725),
>  org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463),
>  org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422),
>  org.eclipse.osgi.framework.internal.core.Framework$10.call(Framework.java:1605),
>  org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHookPrivileged(ServiceRegistry.java:1239),
>  org.eclipse.osgi.internal.serviceregistry.ServiceRegistry.notifyHooksPrivileged(ServiceRegistry.java:1222),
>  org.eclipse.osgi.framework.internal.core.Framework.notifyEventHooksPrivileged(Framework.java:1602),
>  org.eclipse.osgi.framework.internal.core.Framework.publishBundleEventPrivileged(Framework.java:1557),
>  org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1504),
>  org.eclipse.osgi.framework.internal.core.Framework.publishBundleEvent(Framework.java:1499),
>  org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:391),
>  org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300),
>  org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:292),
>  org.apache.karaf.bundle.command.Restart.doExecute(Restart.java:48),
>  org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:50),
>  org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:41),
>  org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33),
>  org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39),
>  org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33),
>  Proxy9bb638be_d95c_4954_8190_e6cd902f2063.execute(Unknown Source),
>  Proxy9bb638be_d95c_4954_8190_e6cd902f2063.execute(Unknown Source),
>  org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78),
>  org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477),
>  org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403),
>  org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108),
>  org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183),
>  org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120),
>  org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:92),
>  org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:217),
>  org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1$1.run(LocalConsoleManager.java:115),
>  java.security.AccessController.doPrivileged(Native Method),
>  org.apache.karaf.jaas.modules.JaasHelper.doAs(JaasHelper.java:57),
>  org.apache.karaf.shell.console.impl.jline.LocalConsoleManager$2$1.run(LocalConsoleManager.java:108)]
> {code}
> Actually this error i found only in debug. It silently fails - no error in console and
karaf.log
> Possible it is because of xercesImpl -2.11.0 dependency, but nekohtml-1.9.21 depends
on xercesImpl-2.10.0
> See attached blueprint configuration



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message