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

Patrick Forhan updated FELIX-527:
---------------------------------

    Description: 
[cross-reported to pax-logging jira as 
http://issues.ops4j.org/jira/browse/PAXLOGGING-25 ]

If a service throws an exception, the following is the only stack trace 
reported.  The original context is lost:

Exception in thread "SCR Component Actor" java.lang.NullPointerException
        at java.util.Hashtable.put(Unknown Source)
        at 
org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.createEvent(PaxLoggingServiceImpl.java:175)
        at 
org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:140)
        at 
org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:76)
        at 
org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:66)
        at org.apache.felix.scr.Activator.log(Activator.java:455)
        at 
org.apache.felix.scr.ComponentActorThread.run(ComponentActorThread.java:89)

  was:
[cross-reported to pax-logging jira]

If a service throws an exception, the following is the only stack trace 
reported.  The original context is lost:

Exception in thread "SCR Component Actor" java.lang.NullPointerException
        at java.util.Hashtable.put(Unknown Source)
        at 
org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.createEvent(PaxLoggingServiceImpl.java:175)
        at 
org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:140)
        at 
org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:76)
        at 
org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:66)
        at org.apache.felix.scr.Activator.log(Activator.java:455)
        at 
org.apache.felix.scr.ComponentActorThread.run(ComponentActorThread.java:89)


> Improve Error Reporting
> -----------------------
>
>                 Key: FELIX-527
>                 URL: https://issues.apache.org/jira/browse/FELIX-527
>             Project: Felix
>          Issue Type: Bug
>          Components: Declarative Services
>    Affects Versions: felix-1.0.0
>         Environment: org.apache.felix.scr-0.9.0-SNAPSHOT
> org.apache.felix.scr-1.0.0
> pax-logging-0.9.6
>            Reporter: Patrick Forhan
>
> [cross-reported to pax-logging jira as 
> http://issues.ops4j.org/jira/browse/PAXLOGGING-25 ]
> If a service throws an exception, the following is the only stack trace 
> reported.  The original context is lost:
> Exception in thread "SCR Component Actor" java.lang.NullPointerException
>         at java.util.Hashtable.put(Unknown Source)
>         at 
> org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.createEvent(PaxLoggingServiceImpl.java:175)
>         at 
> org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:140)
>         at 
> org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:76)
>         at 
> org.ops4j.pax.logging.internal.PaxLoggingServiceImpl.log(PaxLoggingServiceImpl.java:66)
>         at org.apache.felix.scr.Activator.log(Activator.java:455)
>         at 
> org.apache.felix.scr.ComponentActorThread.run(ComponentActorThread.java:89)

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

Reply via email to