j2me plugin problem / bug

Hi,

i have been using intellij IDEA 6.05 for J2ME development. the code refactoring, completion , etc. everything is very good.
but there seems to be a major problem with the debugging part -- it steps into the j2me library files and opens up various class files inspite of specifying a filter using the debug options. i specified a filter javax.* to avoid stepping into, but it doesn't seem to work.
is this a bug with the plugin or am i missing somthing here?

also, when i run the project, if i get an exception like a null pointer exception, it shows the lines of code that caused the problem, in the run window BUT those lines of code were incorrect i.e. it shows the wrong line numbers for the code that cause the problem. Again, there is no link for the error messgae, so that when i click it, it takes me to the code that caused the problem.

both, these problems i mentioned do not happen in Netbeans 5.0
looks like, netbeans is the only ide that fully integrates with j2me WTK. maybe i need to switch back, if i can't find a solution.

++minesh.

3 comments

Hello minesh,

Hi,

i have been using intellij IDEA 6.05 for J2ME development. the code
refactoring, completion , etc. everything is very good.

but there seems to be a major problem with the debugging part -- it
steps into the j2me library files and opens up various class files
inspite of specifying a filter using the debug options. i specified a
filter javax.* to avoid stepping into, but it doesn't seem to work.

is this a bug with the plugin or am i missing somthing here?


How do you configure your jdk? Could you please provide your /IntellijIdea
6.0/config/jdk.table.xml? Seems that there are classes from java SDK as well
as mobile jdk in your classpath.


also, when i run the project, if i get an exception like a null
pointer exception, it shows the lines of code that caused the problem,
in the run window BUT those lines of code were incorrect i.e. it shows
the wrong line numbers for the code that cause the problem. Again,
there is no link for the error messgae, so that when i click it, it
takes me to the code that caused the problem.


Are these NPE in your code or in libraries?

both, these problems i mentioned do not happen in Netbeans 5.0

looks like, netbeans is the only ide that fully integrates with j2me
WTK. maybe i need to switch back, if i can't find a solution.

++minesh.



0

Hi Anna,

Thank you for the reply.

below is the jdk.table.xml file contents. Can you tell me if there is something wrong it.
in the meantime i tried with different filters like .class , javax.microedition.lcdui. etc. but again no success.
basically i don't want the debugger to go into the j2me libraries when i am in the paint() method.

about the NPE, its in my source files. the first time i was not aware of the bug in my source so, i cross checked and corrected it with netbeans. then on purpose i put a NPE again to test intellij IDEA.


]]>

0

Hello,

seems that kvm ignores filters. We will try to create a workaround. JDK table
is OK.

Could you please describe your NPE problems? Where are incorrect lines? Can
you navigate from stacktrace anywhere?

Thank you

-


Anna Kozlova
JetBrains Inc.
http://www.intellij.com
"Develop with pleasure!"

Hi Anna,

Thank you for the reply.

below is the jdk.table.xml file contents. Can you tell me if there is
something wrong it.

in the meantime i tried with different filters like *.class ,
javax.microedition.lcdui.* etc. but again no success.

basically i don't want the debugger to go into the j2me libraries when
i am in the paint() method.

about the NPE, its in my source files. the first time i was not aware
of the bug in my source so, i cross checked and corrected it with
netbeans. then on purpose i put a NPE again to test intellij IDEA.

<?xml version="1.0" encoding="UTF-8"?>
<application>
<component name="ProjectJdkTable">
<jdk version="2">
<name value="1.5" />
<type value="JavaSDK" />
<version value="java version &quot;1.5.0_01&quot;" />
<homePath value="C:/Program Files/Java/jdk1.5.0_01" />
<roots>
<sourcePath>
<root type="composite">
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/src.zip!/" />
</root>
</sourcePath>
<classPath>
<root type="composite">
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/charsets.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/deploy.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/javaws.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/jce.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/jsse.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/plugin.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/rt.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/ext/dnsns.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/ext/localedata.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/ext/sunpkcs11.jar!/" />
</root>
</classPath>
<javadocPath>
<root type="composite">
<root type="simple" url="file://C:/Program
Files/Java/jdk-1_5_0-doc/docs/api" />
</root>
</javadocPath>
</roots>
<additional />
</jdk>
<jdk version="2">
<name value="J2ME Wireless Toolkit 2.2" />
<type value="MobileSDK" />
<version value="java version &quot;1.5.0_01&quot;" />
<homePath value="C:/WTK22" />
<roots>
<sourcePath>
<root type="composite" />
</sourcePath>
<classPath>
<root type="composite">
<root type="simple"
url="jar://C:/WTK22/lib/midpapi20.jar!/" />
<root type="simple"
url="jar://C:/WTK22/lib/cldcapi11.jar!/" />
</root>
</classPath>
<javadocPath>
<root type="composite">
<root type="simple"
url="file://C:/WTK22/docs/api/j2me-rpc" />
<root type="simple"
url="file://C:/WTK22/docs/api/j2me-xml" />
<root type="simple" url="file://C:/WTK22/docs/api/midp" />
<root type="simple" url="file://C:/WTK22/docs/api/mmapi"
/>
</root>
</javadocPath>
</roots>
<additional>
<javaJDK name="1.5" />
<emulator name="J2ME Wireless Toolkit" profile="MIDP-2.0"
configuration="CLDC-1.1" />
<commands />
<preverify />
</additional>
</jdk>
<jdk version="2">
<name value="1.5" />
<type value="JavaSDK" />
<version value="java version &quot;1.5.0_01&quot;" />
<homePath value="C:/Program Files/Java/jdk1.5.0_01" />
<roots>
<sourcePath>
<root type="composite">
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/src.zip!/" />
</root>
</sourcePath>
<classPath>
<root type="composite">
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/charsets.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/deploy.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/javaws.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/jce.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/jsse.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/plugin.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/rt.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/ext/dnsns.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/ext/localedata.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/ext/sunjce_provider.jar!/" />
<root type="simple" url="jar://C:/Program
Files/Java/jdk1.5.0_01/jre/lib/ext/sunpkcs11.jar!/" />
</root>
</classPath>
<javadocPath>
<root type="composite">
<root type="simple" url="file://C:/Program
Files/Java/jdk-1_5_0-doc/docs/api" />
</root>
</javadocPath>
</roots>
<additional />
</jdk>
</component>
</application>



0

Please sign in to leave a comment.