java.lang.Throwable

MuleSoft JIRA | David Dossot | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    When polling from a distant web resource via simple HTTP GET, PollingHttpMessageReceiver creates a Map named respHeaders that contains the HTTP headers received from the HttpURLConnection object. In my environment, the RESPONSE code is stored as a header with a null key. Hence, when the respHeaders are parsed in HttpMessageAdapter to build a new UMOMessageAdapter, the null gets caught and a warning is thrown in the console (shown here-under). Would it be possible to ignore HTTP headers with null keys right from the PollingHttpMessageReceiver class? This would imply to modify line 122, from: if (msgHeader.getValue() != null) to: if ((msgHeader.getKey() != null) && (msgHeader.getValue() != null)) --------------------------- 16:21:16,963 WARN [HttpMessageAdapter] setProperty(key, value) ignored because of null key for object: HTTP/1.1 200 OK; please report the following stack trace to dev@mule.codehaus.org java.lang.Throwable at org.mule.providers.AbstractMessageAdapter.setProperty(AbstractMessageAdapter.java:149) at org.mule.providers.http.HttpMessageAdapter.<init>(HttpMessageAdapter.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:307) at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:315) at org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:352) at org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:303) at org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter(AbstractServiceEnabledConnector.java:165) at org.mule.providers.http.PollingHttpMessageReceiver.poll(PollingHttpMessageReceiver.java:128) at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:71) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:317) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:595)

    MuleSoft JIRA | 1 decade ago | David Dossot
    java.lang.Throwable
  2. 0

    When polling from a distant web resource via simple HTTP GET, PollingHttpMessageReceiver creates a Map named respHeaders that contains the HTTP headers received from the HttpURLConnection object. In my environment, the RESPONSE code is stored as a header with a null key. Hence, when the respHeaders are parsed in HttpMessageAdapter to build a new UMOMessageAdapter, the null gets caught and a warning is thrown in the console (shown here-under). Would it be possible to ignore HTTP headers with null keys right from the PollingHttpMessageReceiver class? This would imply to modify line 122, from: if (msgHeader.getValue() != null) to: if ((msgHeader.getKey() != null) && (msgHeader.getValue() != null)) --------------------------- 16:21:16,963 WARN [HttpMessageAdapter] setProperty(key, value) ignored because of null key for object: HTTP/1.1 200 OK; please report the following stack trace to dev@mule.codehaus.org java.lang.Throwable at org.mule.providers.AbstractMessageAdapter.setProperty(AbstractMessageAdapter.java:149) at org.mule.providers.http.HttpMessageAdapter.<init>(HttpMessageAdapter.java:58) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:307) at org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:315) at org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:352) at org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:303) at org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter(AbstractServiceEnabledConnector.java:165) at org.mule.providers.http.PollingHttpMessageReceiver.poll(PollingHttpMessageReceiver.java:128) at org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:71) at org.mule.impl.work.WorkerContext.run(WorkerContext.java:317) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987) at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528) at java.lang.Thread.run(Thread.java:595)

    MuleSoft JIRA | 1 decade ago | David Dossot
    java.lang.Throwable
  3. 0

    GlassFish Users - Deployment to Glassfish v3 with NetBeans only works occasionally

    nabble.com | 1 year ago
    java.lang.Throwable: printStackTraceToString >         at > com.sun.enterprise.util.Print.printStackTraceToString(Print.java:634) >         at > com.sun.enterprise.loader.ASURLClassLoader.done(ASURLClassLoader.java:170) >         at > com.sun.enterprise.loader.ASURLClassLoader.preDestroy(ASURLClassLoader.java:153) >         at > org.glassfish.javaee.full.deployment.EarClassLoader.preDestroy(EarClassLoader.java:96) >         at > org.glassfish.internal.data.ApplicationInfo.unload(ApplicationInfo.java:280) >         at > com.sun.enterprise.v3.server.ApplicationLifecycle.unload(ApplicationLifecycle.java:760) >         at > com.sun.enterprise.v3.server.ApplicationLifecycle.undeploy(ApplicationLifecycle.java:790) >         at > org.glassfish.deployment.admin.UndeployCommand.execute(UndeployCommand.java:184) >         at > com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305) >         at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320) >         at > com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176) >         at > com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83) >         at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235) >         at > com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224) >         at > com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365) >         at > com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204) >         at > com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166) >         at > com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100) >         at > com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245) >         at > com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791) >         at > com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693) >         at > com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954) >         at > com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170) >         at > com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135) >         at > com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102) >         at > com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88) >         at > com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76) >         at > com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53) >         at > com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57) >         at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.Throwable

      No message provided

      at org.mule.providers.AbstractMessageAdapter.setProperty()
    2. org.mule.providers
      HttpMessageAdapter.<init>
      1. org.mule.providers.AbstractMessageAdapter.setProperty(AbstractMessageAdapter.java:149)
      2. org.mule.providers.http.HttpMessageAdapter.<init>(HttpMessageAdapter.java:58)
      2 frames
    3. Java RT
      Constructor.newInstance
      1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      4. java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      4 frames
    4. Mule Core
      ClassUtils.instanciateClass
      1. org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:307)
      2. org.mule.util.ClassUtils.instanciateClass(ClassUtils.java:315)
      2 frames
    5. org.mule.providers
      PollingMessageReceiver.run
      1. org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:352)
      2. org.mule.providers.service.ConnectorServiceDescriptor.createMessageAdapter(ConnectorServiceDescriptor.java:303)
      3. org.mule.providers.AbstractServiceEnabledConnector.getMessageAdapter(AbstractServiceEnabledConnector.java:165)
      4. org.mule.providers.http.PollingHttpMessageReceiver.poll(PollingHttpMessageReceiver.java:128)
      5. org.mule.providers.PollingMessageReceiver.run(PollingMessageReceiver.java:71)
      5 frames
    6. org.mule.impl
      WorkerContext.run
      1. org.mule.impl.work.WorkerContext.run(WorkerContext.java:317)
      1 frame
    7. Backport of JSR 166
      ThreadPoolExecutor$Worker.run
      1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:987)
      2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:528)
      2 frames
    8. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:595)
      1 frame