You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Darren Davison (JIRA)" <ji...@apache.org> on 2009/11/12 09:23:52 UTC

[jira] Commented: (AMQ-2488) Unable to access Serializable class when receiving ObjectMessage in OSGi environment

    [ https://issues.apache.org/activemq/browse/AMQ-2488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=55330#action_55330 ] 

Darren Davison commented on AMQ-2488:
-------------------------------------

sorry, I thought I'd included those OSGi headers in one of the attachments.  It does import that package.  Here are the headers from my bundle with the camel route (line breaks added by me for formatting)
\\
\\
{noformat}Application Log Router (75)
---------------------------
Manifest-Version = 1.0
Bnd-LastModified = 1257721682850
Tool = Bnd-0.0.238
Bundle-Name = Application Log Router
Built-By = darren
Import-Package = org.apache.activemq;version="5.2.0.fuse",
  org.apache.camel; version="1.6.1.fuse",
  org.apache.camel.builder;version="1.6.1.fuse",
  org.apache.camel.component.jms;version="1.6.1.fuse",
  org.apache.camel.model;version="1.6.1.fuse",
  org.apache.camel.spring;version="1.6.1.fuse",
  org.apache.commons.logging,
  org.apache.log4j.spi,
  org.davisononline.fuselogger
Bundle-SymbolicName = org.davisononline.fuse-logger
Export-Package = org.davisononline.fuselogger;
  uses:="org.apache.camel.builder,org.apache.camel.model,
    org.apache.commons.logging,org.apache.camel,org.apache.camel.spring"
Bundle-Version = 0.0.1.SNAPSHOT
Build-Jdk = 1.6.0_16
Created-By = Apache Maven Bundle Plugin
Bundle-ManifestVersion = 2
{noformat}
\\
\\
I queried this all with gertv on IRC, it was he that suggested this looked like an activemq bug and henced raised here.



> Unable to access Serializable class when receiving ObjectMessage in OSGi environment
> ------------------------------------------------------------------------------------
>
>                 Key: AMQ-2488
>                 URL: https://issues.apache.org/activemq/browse/AMQ-2488
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.3.0
>            Reporter: Darren Davison
>         Attachments: amq-error.log, amq-headers.log, SMX4-424.diff
>
>
> I have configured applications to use Log4J's JMSAppender in order to log messages on a queue as follows;
> {noformat}
> log4j.appender.jms=org.apache.log4j.net.JMSAppender
> log4j.appender.jms.InitialContextFactoryName=org.apache.activemq.jndi.ActiveMQInitialContextFactory
> log4j.appender.jms.ProviderURL=tcp://localhost:61616
> log4j.appender.jms.TopicBindingName=logTopic
> log4j.appender.jms.TopicConnectionFactoryBindingName=ConnectionFactory
> {noformat}
> Each application logging statement adds a new message to topic://logTopic on the broker.  I have a bundle deployed that attempts to route the messages from this topic with camel;
> {code}
> from("activemq:topic:logTopic")
>   .convertBodyTo(String.class)
>   .to("log:foo?level=DEBUG&showProperties=true&showHeaders=true");
> {code}
> When using servicemix 4 (Fuse 4.1.0.4), a stack trace is seen with the following message (enhanced using felix.log.level=4);
> {noformat}Caused by: java.lang.ClassNotFoundException: *** Class 'org.apache.log4j.spi.LoggingEvent' 
> was not found because bundle 56 does not import 'org.apache.log4j.spi' even though bundle 84 
> does export it. To resolve this issue, add an import for 'org.apache.log4j.spi' to bundle 56. ***
> {noformat}
> Bundles as follows;
> {noformat}smx@root:/> osgi/list|grep 56
> [  56] [Active     ] [       ] [   60] activemq-core (5.3.0.fuse)
> smx@root:/> osgi/list|grep 84
> [  84] [Active     ] [       ] [    8] OPS4J Pax Logging - API (1.3.0)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.