• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with Pre-verify when the Obfuscation option is selected

 
Oghie Ojior
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
When I try to obfuscate and pre-verify my .jar using WebSphere Studio Device Developer(WSDD)(I choose obfuscate in my generic .jxeLinkOptions)the build process failed.

Everything goes right when the obfuscate option is not select. I am using WSDD Version :5.7.1
The error is:

[preverify] Error preverifying class a9.db
[preverify] VERIFIER ERROR a9/db.()V:
[preverify] Bad type in putfield/putstatic

Thanks in advance

Below is the full output of my build attempt :

Buildfile: C:\IBM\wsappdev51\workspace\dcm_mobile\generic\build.xml
includemidlets:
buildMap:
jxelink:
[jxelink] C:\Program Files\IBM\DeviceDeveloper\wsdd5.0\ive-2.2\bin\jxelink -J-Dconsole.encoding=CP1252 -J-Djava.home=C:\Program Files\IBM\DeviceDeveloper\wsdd5.0\ive-2.2 -macro PLUGIN com.ibm.weme.wm2003.arm.foundation10.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.wm2003.arm.foundation10.runtime22.metadata_5.7.1/ -macro XSDBEANS_SRC=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.xsdmodel_5.1.1.1/jars/xsdbeans-src.jar -macro ive=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/ive-2.2 -macro ACTIVATION_JAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/org.apache.soap_1.0.2/activation.jar -macro EGL_GENERATORS_PLUGINDIR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.egl.generators_5.1.2/ -macro JSTL_JARS_PATH=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webtools.customtag.lib_5.1.2/ -macro SOAPJAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v5_stub/lib/soap.jar -macro PLUGIN com.ibm.weme.linux.x86.ppro10.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.linux.x86.ppro10.runtime22.metadata_5.7.1/ -macro XERCES_API_JAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.apache.xerces_4.0.13/xmlParserAPIs.jar -macro XERCES=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.apache.xerces_4.0.13/xercesImpl.jar -macro WEBTOOLS_PLUGINDIR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webtools_5.1.2/ -macro XSDBEANS=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.xsdmodel_5.1.1.1/jars/xsdbeans.jar -macro WLS81_JAR=C:/bea/weblogic81/server/lib/weblogic.jar -macro XERCESJAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/aes_v4_jars/lib/xerces.jar -macro PLUGIN com.ibm.weme.palmos50.ia32.midp20.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.palmos50.ia32.midp20.runtime22.metadata_5.7.1/ -macro SERVERJDK_PLUGINDIR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/ -macro WDO_JARS_PATH=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webtools.wdo.runtime_1.0.5/ -macro XMLTOSQL=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.sqltoxml_5.1.1/jars/xmltosql.jar -macro WAS_PLUGINDIR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/aes_v4_jars -macro DB2JAVA=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v51/lib/sljc.jar -macro WS_RUNTIME_MIDP=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.wstkmd.lib.midp_5.7.1/ -macro XMLPARSERAPIS=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.apache.xerces_4.0.13/xmlParserAPIs.jar -macro PROJECT Series60=C:/IBM/wsappdev51/workspace/Series60 -macro ECLIPSE_HOME=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse -macro PLUGIN com.ibm.weme.zaurus.arm.foundation10.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.zaurus.arm.foundation10.runtime22.metadata_5.7.1/ -macro MAILJAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v51/java/jre/lib/ext/mail.jar -macro PROJECT wsm_Mobile=C:/IBM/wsappdev51/workspace/wsm_Mobile -macro PROJECT dcm_mobile_ws=C:/IBM/wsappdev51/workspace/dcm_mobile_ws -macro SOAPSECJAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v5_stub/lib/soap-sec.jar -macro PROJECT dcm_cm=C:/IBM/wsappdev51/workspace/dcm_cm -macro PLUGIN com.ibm.weme.wm2003.arm.midp20.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.wm2003.arm.midp20.runtime22.metadata_5.7.1/ -macro PROJECT nwsm_Mobile=C:/IBM/wsappdev51/workspace/nwsm_Mobile -macro JRE_LIB=C:/bea/jdk142_04/jre/lib/rt.jar -macro ACTIVATIONJAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v51/java/jre/lib/ext/activation.jar -macro ECLIPSE_HOME_COM_IBM_WSTOOLS_LINK=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins -macro XMLRPC_2B_JAR=C:/xmlrpc-2.0-beta/xmlrpc-2.0-beta.jar -macro MAIL_JAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/org.apache.soap_1.0.2/mail.jar -macro COMPTEST_PLUGINS_DIR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins -macro PROJECT dcm_uc=C:/IBM/wsappdev51/workspace/dcm_uc -macro XMLRPC_2B_SRC=C:/xmlrpc-2.0-beta/src -macro PLUGIN com.ibm.weme.win32.x86.foundation10.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.win32.x86.foundation10.runtime22.metadata_5.7.1/ -macro PLUGIN com.ibm.weme.win32.x86.midp20.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.win32.x86.midp20.runtime22.metadata_5.7.1/ -macro JSTL_DEPENDENT_JARS_PATH=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v51/java/jre/lib/xml.jar -macro COMPTEST_BASE_PLUGINS_DIR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins -macro PLUGIN com.ibm.weme.wm2003.arm.ppro10.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.wm2003.arm.ppro10.runtime22.metadata_5.7.1/ -macro PROJECT dcm_ear=C:/IBM/wsappdev51/workspace/dcm_ear -macro PROJECT dcm_mobile=C:/IBM/wsappdev51/workspace/dcm_mobile -macro SQLTOXML=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.sqltoxml_5.1.1/jars/sqltoxml.jar -macro PLUGIN com.ibm.weme.win32.x86.ppro10.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.win32.x86.ppro10.runtime22.metadata_5.7.1/ -macro PLUGIN com.ibm.weme.linux.x86.foundation10.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.linux.x86.foundation10.runtime22.metadata_5.7.1/ -macro WAS_V5_XERCES=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v5_stub/lib/xerces.jar -macro PROJECT dcm_cmClient=C:/IBM/wsappdev51/workspace/dcm_cmClient -macro WORFJAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/wstools/eclipse/plugins/com.ibm.etools.webservice_5.1.2.2/runtime/worf.jar -macro JRE_SRC= -macro SERVERJDK_SRCROOT=src -macro PLUGIN com.ibm.weme.profile.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.profile.runtime22.metadata_5.7.1/ -macro current.character.encoding=Cp1252 -macro PROJECT dcm_cmTestHarness=C:/IBM/wsappdev51/workspace/dcm_cmTestHarness -macro WDO_EMF_JARS_PATH=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v51/optionalLibraries/WDO/ -macro SERVERJDK_50_PLUGINDIR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/ -macro PROJECT dcm=C:/IBM/wsappdev51/workspace/dcm -macro PROJECT lcmTestHarness=C:/IBM/wsappdev51/workspace/lcmTestHarness -macro WL_RUNTIME=C:/bea/jdk142_04/jre/lib/rt.jar -macro ECLIPSE_HOME_COM_IBM_IVE_WSDD_LINK=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins -macro WAS_50_PLUGINDIR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/runtimes/base_v5_stub -macro PROJECT nokiaDcmMobile=C:/IBM/wsappdev51/workspace/nokiaDcmMobile -macro PLUGIN com.ibm.weme.zaurus.arm.ppro10.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.zaurus.arm.ppro10.runtime22.metadata_5.7.1/ -macro PLUGIN com.ibm.ive.nokia7210.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.ive.nokia7210.metadata_5.7.1/ -macro XMLRPC_2B_APPLET_JAR=C:/xmlrpc-2.0-beta/xmlrpc-2.0-beta-applet.jar -macro PLUGIN com.ibm.weme.linux.x86.midp20.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.linux.x86.midp20.runtime22.metadata_5.7.1/ -macro WLS81_WS_JAR=C:/bea/weblogic81/server/lib/webservices.jar -macro PROJECT HelloWorldMIDlet=C:/IBM/wsappdev51/workspace/HelloWorldMIDlet -macro PLUGIN com.ibm.weme.palmos50.arm.midp20.runtime22.metadata=C:/Program Files/IBM/DeviceDeveloper/wsdd5.0/eclipse/plugins/com.ibm.weme.palmos50.arm.midp20.runtime22.metadata_5.7.1/ -macro PROJECT dcm_mobileLocal=C:/IBM/wsappdev51/workspace/dcm_mobileLocal -macro JRE_SRCROOT= -macro XERCES_IMPL_JAR=C:/Program Files/IBM/WebSphere Studio/Application Developer/v5.1.2/eclipse/plugins/org.apache.xerces_4.0.13/xercesImpl.jar @C:\IBM\wsappdev51\workspace\dcm_mobile\generic\dcmMobile.jxeLinkOptions
[jxelink] IVEL0009(A) Loaded 120 class(es) in 5 seconds.
[jxelink] IVEL0049(A) Reduced to 118 class(es) in 1 seconds.
[jxelink] IVEL0052(W) Class e_/e1 does not have debug info.
[jxelink] IVEL0052(W) Class e_/ec does not have debug info.
[jxelink] IVEL0052(W) Class e_/hq does not have debug info.
[jxelink] IVEL0052(W) Class e_/hr does not have debug info.
[jxelink] IVEL0052(W) Class e_/hs does not have debug info.
[jxelink] IVEL0052(W) Class e_/ht does not have debug info.
[jxelink] IVEL0052(W) Class h_/hu does not have debug info.
[jxelink] IVEL0052(W) Class h_/ki does not have debug info.
[jxelink] IVEL0052(W) Class kh/j1 does not have debug info.
[jxelink] IVEL0012(A) Generated "C:\IBM\wsappdev51\workspace\dcm_mobile\generic\dcmMobile.jar" in 0 seconds.
[jxelink] IVEL0036(A) Summary: 0 error(s), 9 warning(s), 120 class(es) read, 118 class(es) written, 3 resource(s) written.
[jxelink] IVEL0039(A) Summary: classes and resources require 203865 bytes ROM, 82152(no JIT)/92376(JIT) bytes RAM.
preverify:
[preverify] Expanding: C:\IBM\wsappdev51\workspace\dcm_mobile\generic\dcmMobile.jar into C:\IBM\wsappdev51\workspace\dcm_mobile\generic\.preverify
[preverify] C:\Program Files\IBM\DeviceDeveloper\wsdd5.0\ive-2.2\..\wbrt\bin\preverify.exe -classpath C:\IBM\wsappdev51\workspace\dcm_mobile\bin;C:\Program Files\IBM\DeviceDeveloper\wsdd5.0\ive-2.2\runtimes\win32\x86\midp20\lib\jclMidp20\classes.zip;C:\Program Files\IBM\DeviceDeveloper\wsdd5.0\ive-2.2\runtimes\win32\x86\midp20\lib\charconv.zip;C:\IBM\wsappdev51\workspace\dcm_mobile\lib\kxml.jar;C:\IBM\wsappdev51\workspace\dcm_mobile\lib\WebServicesMIDP.jar -d C:\IBM\wsappdev51\workspace\dcm_mobile\generic\.preverify C:\IBM\wsappdev51\workspace\dcm_mobile\generic\.preverify
[preverify] Error preverifying class a9.db
[preverify] VERIFIER ERROR a9/db.()V:
[preverify] Bad type in putfield/putstatic
 
Oghie Ojior
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
FYI: I solved my problem by importing my code into NetBean and using its build facilities to compile, pre-verify, obfuscate and package the code.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic