Get bundle-id and version from a classname in a stacktrace [message #1409239] |
Sun, 17 August 2014 14:25 |
|
I'm currently writing an error analysis tools that logs error messages logged via Eclipse ILog. On great utility of such an error analysis would be to fetch the bundle that declares a class mentioned in a stacktrace.
So, instead of logging:
Error
Sun Aug 17 16:01:56 CEST 2014
java.lang.NullPointerException
java.lang.NullPointerException
at java.util.Objects.requireNonNull(Objects.java:203)
at java.util.AbstractCollection.retainAll(AbstractCollection.java:405)
at org.eclipse.oomph.targlets.internal.core.WorkspaceIUImporter$2.run(WorkspaceIUImporter.java:115)
at org.eclipse.oomph.util.pde.TargetPlatformUtil.runWithTargetPlatformService(TargetPlatformUtil.java:124)
at org.eclipse.oomph.targlets.internal.core.WorkspaceIUImporter.updateWorkspace(WorkspaceIUImporter.java:65)
at org.eclipse.oomph.targlets.internal.core.WorkspaceIUImporter$ImportProjectsJob.run(WorkspaceIUImporter.java:171)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
I'd like to log:
java.lang.NullPointerException
...
at org.eclipse.oomph.targlets.internal.core.WorkspaceIUImporter$2.run(WorkspaceIUImporter.java:115) [org.eclipse.oomph.targlets, 1.0.0.v20140813-0835]
...
Is this in general possible to reconstruct this information from the equinox runtime?
I assume it would be expensive - but maybe it's not too expensive given that we may gain a lot of debugging information. If it is possible, could you briefly outline the best solution you can think of?
Thanks,
Marcel
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.06515 seconds