Breakpoint not hit when performing live debug. Namespace in source doesn't match name space in jar
Hi All,
I'm kind of stuck and hoping someone can point me in the right direction.
I've used Intelij successfully many times in the past to perform live debug against 3rd party java components. I simply add the source to the Project Settings/Modules , add my breakpoints, attach to remote process and presto, when the breakpoint is hit, I'm able to start debugging.
Currently, I'm using the same method above and reference the source, but the break point is never hit.
In the remote jar I'm attempting to debug, I see the namespace is prefaced with shadehive
shadehive.org.apache .....
...however in the source files used to build the jar, its not prefaced with shadehive and the source is referenced from the following namespace
org.apache
Source
Jar
As a simple example, trying to break on connect method
shadehive.org.apache.hive.jdbc.HiveDriver.connect(String, Properties) : Connection
but the matching source doesn't have shadehive as part of its namespace.
Is there a way I can trick Intelij to preface sources with 'shadehive' ?
Any tips anyone can provide are greatly appreciated. I'm stuck
Please sign in to leave a comment.
I found a workaround.
Took the jar from the link provided above, used Java Decompiler and extracted sources from the jar.
The extracted sources belong to shadehive.org.apache.hive.jdbc package rather than org.apache.hive.jdbc .
package shadehive.org.apache.hive.jdbc;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
. . .
Everything lines up now from Intelij Idea and i'm able to continue.