Obfuscated Code :Exception occuring : Not able to trace it

Below is the exception that I get while running a specific test in my application

java.lang.NoClassDefFoundError

at com.mycompany.graphics.editor2d.layer.LayerDescription.<init>(Unknown Source)

at com.mycompany.graphics.editor2d.nodegraph.NodeElement.<init>(Unknown Source)

at com.mycompany.graphics.editor2d.nodegraph.DocumentNode.<init>(Unknown Source)

at com.mycompany.graphics.editor2d.connection.ConnectionSupportDocumentNode.<init>(Unknown Source)

at com.mycompany.b2w.workfloweditor.nodes.WorkflowDocumentNode.<init>(Unknown Source)

at com.mycompany.b2w.workfloweditor.WorkflowDocument.createDocument(Unknown Source)

at com.mycompany.graphics.editor2d.GraphicDocument.a(Unknown Source)

at com.mycompany.graphics.editor2d.GraphicDocument.<init>(Unknown Source)

at com.mycompany.b2w.workfloweditor.WorkflowDocument.<init>(Unknown Source)

at com.mycompany.myproduct.platform.ApplicationWorkbenchAdvisor.visit(Unknown Source)

at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:67)

at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)

at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:76)

at org.eclipse.core.internal.events.ResourceDelta.accept(ResourceDelta.java:48)

at com.mycompany.myproduct.platform.ApplicationWorkbenchAdvisor.resourceChanged(Unknown Source)

at org.eclipse.core.internal.events.NotificationManager$2.run(NotificationManager.java:280)

at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)

at org.eclipse.core.internal.events.NotificationManager.notify(NotificationManager.java:274)

at org.eclipse.core.internal.events.NotificationManager.broadcastChanges(NotificationManager.java:148)

at org.eclipse.core.internal.resources.Workspace.broadcastPostChange(Workspace.java:256)

at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:958)

at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1746)

at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:113)

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)

However after analyzing the constructor of LayerDescription I found that

all the classes used in it were actually present in my hard drive in the required directory.

So how do I debug this.

I cannot test this in developement enviornment , since I get this error after

obfuscating the code. I tried using try catch , but still the exception is not caught.

What may be the solution?

[2745 byte] By [jaaya] at [2007-11-27 3:32:59]
# 1
any solution ? Even any link or reference will be helpful
jaaya at 2007-7-12 8:36:03 > top of Java-index,Java Essentials,New To Java...
# 2
You could try not obfuscating the code? It's almost always done for misguided reasons: your code is not as valuable as you think it is.Probably the class contains a class which cannot be loaded because it in turn uses a class that is not in the classpath.
dcmintera at 2007-7-12 8:36:03 > top of Java-index,Java Essentials,New To Java...
# 3
It doesn't look like obfuscated code, just code without line numbers in it. Try compiling with the -g flag.
Herko_ter_Horsta at 2007-7-12 8:36:03 > top of Java-index,Java Essentials,New To Java...
# 4

Acutally found part of the solution.

In a particular situation an instance of the subclass was invoking a method rather than the instance of the superclass instance invoking the method. Due to this the overridden method was getting called which returned value different from what expected and hence the error.

The overriding and overriding method return path to a .gif file.

So now I have placed all the images available in the superclass project in the

subclass project as well.

It seems to work fine in English OS but doesnt work in (say) German OS.

According to my understanding obfuscation should not be a issue in this situation or can it be?

jaaya at 2007-7-12 8:36:03 > top of Java-index,Java Essentials,New To Java...