New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NullPointerException #129

Closed
GoogleCodeExporter opened this Issue Mar 3, 2015 · 10 comments

Comments

Projects
None yet
1 participant
@GoogleCodeExporter

GoogleCodeExporter commented Mar 3, 2015

What steps will reproduce the problem?
1. Try to dedex an apk (Audible_for_Android) with d2j-dex2jar.sh

StackTrace:

dex2jar Audible_for_Android.apk -> Audible_for_Android-dex2jar.jar
java.lang.NullPointerException
    at org.objectweb.asm.Type.getType(Unknown Source)
    at com.googlecode.dex2jar.v3.V3ClassAdapter.build(V3ClassAdapter.java:193)
    at com.googlecode.dex2jar.v3.V3ClassAdapter.visitField(V3ClassAdapter.java:247)
    at com.googlecode.dex2jar.reader.DexFileReader.acceptField(DexFileReader.java:607)
    at com.googlecode.dex2jar.reader.DexFileReader.acceptClass(DexFileReader.java:442)
    at com.googlecode.dex2jar.reader.DexFileReader.accept(DexFileReader.java:333)
    at com.googlecode.dex2jar.v3.Dex2jar.doTranslate(Dex2jar.java:82)
    at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:219)
    at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:210)
    at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java:108)
    at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:118)
    at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:34)


What version of the product are you using? On what operating system?
dex2jar-0.9.9 on
Linux-3.5.0-gentoo  with 
java -version
java version "1.7.0_05"
OpenJDK Runtime Environment (IcedTea7 2.2.1) (Gentoo build 1.7.0_05-b21)
OpenJDK 64-Bit Server VM (build 23.0-b21, mixed mode)

Original issue reported on code.google.com by v.chur...@gmail.com on 25 Jul 2012 at 1:58

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

I have the same bug with the classes.dex from frameworks.
(linux 3.5.0 java 1.6.0_26)
Compiled against revision 0.0.9.8
Didn't have troubles with that version.

Original comment by sam.s...@gmail.com on 27 Jul 2012 at 10:01

GoogleCodeExporter commented Mar 3, 2015

I have the same bug with the classes.dex from frameworks.
(linux 3.5.0 java 1.6.0_26)
Compiled against revision 0.0.9.8
Didn't have troubles with that version.

Original comment by sam.s...@gmail.com on 27 Jul 2012 at 10:01

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

There may be something error with revision f783fcf7a197, I will have a look.

Original comment by yyjdel...@gmail.com on 27 Jul 2012 at 12:34

  • Changed state: Accepted

GoogleCodeExporter commented Mar 3, 2015

There may be something error with revision f783fcf7a197, I will have a look.

Original comment by yyjdel...@gmail.com on 27 Jul 2012 at 12:34

  • Changed state: Accepted
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

This issue was closed by revision 4782beebbd8e.

Original comment by yyjdel...@gmail.com on 27 Jul 2012 at 1:55

  • Changed state: Fixed

GoogleCodeExporter commented Mar 3, 2015

This issue was closed by revision 4782beebbd8e.

Original comment by yyjdel...@gmail.com on 27 Jul 2012 at 1:55

  • Changed state: Fixed
@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

When I tried to get class files from out.dex obtained from framework.odex this 
error is coming. 
I need android.jar with all android.net classes.
Is there any way to resolve this issue. I used smali-1.3.3.jar and 
baksmali-1.3.3 to create the out.dex.

The framework.odex is pulled from android4.1 emulator.

C:\Users\SreeharshaJois>java --version
Unrecognized option: --version
Could not create the Java virtual machine.

C:\Users\SreeharshaJois>java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode)

C:\Users\SreeharshaJois>C:\Users\SreeharshaJois\Downloads\dex2jar-0.0.9.9\d2j-de
x2jar.bat C:\Users\SreeharshaJois\classes.dex
dex2jar C:\Users\SreeharshaJois\classes.dex -> classes-dex2jar.jar
java.lang.NullPointerException
        at org.objectweb.asm.Type.getType(Unknown Source)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.build(V3ClassAdapter.java:19
3)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.visitField(V3ClassAdapter.ja
va:247)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptField(DexFileReader
.java:607)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptClass(DexFileReader
.java:442)
        at com.googlecode.dex2jar.reader.DexFileReader.accept(DexFileReader.java
:333)
        at com.googlecode.dex2jar.v3.Dex2jar.doTranslate(Dex2jar.java:82)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:219)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:210)
        at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java
:108)
        at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:118)
        at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:34)

Original comment by harshaj...@gmail.com on 4 Aug 2012 at 2:14

GoogleCodeExporter commented Mar 3, 2015

When I tried to get class files from out.dex obtained from framework.odex this 
error is coming. 
I need android.jar with all android.net classes.
Is there any way to resolve this issue. I used smali-1.3.3.jar and 
baksmali-1.3.3 to create the out.dex.

The framework.odex is pulled from android4.1 emulator.

C:\Users\SreeharshaJois>java --version
Unrecognized option: --version
Could not create the Java virtual machine.

C:\Users\SreeharshaJois>java -version
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode)

C:\Users\SreeharshaJois>C:\Users\SreeharshaJois\Downloads\dex2jar-0.0.9.9\d2j-de
x2jar.bat C:\Users\SreeharshaJois\classes.dex
dex2jar C:\Users\SreeharshaJois\classes.dex -> classes-dex2jar.jar
java.lang.NullPointerException
        at org.objectweb.asm.Type.getType(Unknown Source)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.build(V3ClassAdapter.java:19
3)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.visitField(V3ClassAdapter.ja
va:247)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptField(DexFileReader
.java:607)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptClass(DexFileReader
.java:442)
        at com.googlecode.dex2jar.reader.DexFileReader.accept(DexFileReader.java
:333)
        at com.googlecode.dex2jar.v3.Dex2jar.doTranslate(Dex2jar.java:82)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:219)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:210)
        at com.googlecode.dex2jar.tools.Dex2jarCmd.doCommandLine(Dex2jarCmd.java
:108)
        at com.googlecode.dex2jar.tools.BaseCmd.doMain(BaseCmd.java:118)
        at com.googlecode.dex2jar.tools.Dex2jarCmd.main(Dex2jarCmd.java:34)

Original comment by harshaj...@gmail.com on 4 Aug 2012 at 2:14

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

Issue 132 has been merged into this issue.

Original comment by yyjdel...@gmail.com on 14 Aug 2012 at 2:50

GoogleCodeExporter commented Mar 3, 2015

Issue 132 has been merged into this issue.

Original comment by yyjdel...@gmail.com on 14 Aug 2012 at 2:50

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

Before next version be public, you can try with the last stable dev build at 
the below link.
https://dex2jar.ci.cloudbees.com/job/dex2jar-0.0.9.x/lastStableBuild/com.googlec
ode.dex2jar$dex-tools/#
Choose dex-tools-0.0.0.x-SNAPSHOT.tar.gz or dex-tools-0.0.0.x-SNAPSHOT.zip
 as you like.

Original comment by yyjdel...@gmail.com on 14 Aug 2012 at 2:55

GoogleCodeExporter commented Mar 3, 2015

Before next version be public, you can try with the last stable dev build at 
the below link.
https://dex2jar.ci.cloudbees.com/job/dex2jar-0.0.9.x/lastStableBuild/com.googlec
ode.dex2jar$dex-tools/#
Choose dex-tools-0.0.0.x-SNAPSHOT.tar.gz or dex-tools-0.0.0.x-SNAPSHOT.zip
 as you like.

Original comment by yyjdel...@gmail.com on 14 Aug 2012 at 2:55

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

reproduced with dex2jar-0.0.9.10-SNAPSHOT and classes.dex from titanium backup 
5.5.1.1:

C:\android\dex2jar-0.0.9.10-SNAPSHOT>dex2jar.bat classes.dex
this cmd is deprecated, use the d2j-dex2jar if possible
dex2jar version: translator-0.0.9.10-SNAPSHOT
dex2jar classes.dex -> classes_dex2jar.jar
java.lang.NullPointerException
        at org.objectweb.asm.Type.getType(Unknown Source)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.build(V3ClassAdapter.java:19
1)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.visitField(V3ClassAdapter.ja
va:250)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptField(DexFileReader
.java:601)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptClass(DexFileReader
.java:437)
        at com.googlecode.dex2jar.reader.DexFileReader.accept(DexFileReader.java
:328)
        at com.googlecode.dex2jar.v3.Dex2jar.doTranslate(Dex2jar.java:82)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:219)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:210)
        at com.googlecode.dex2jar.v3.Main.doData(Main.java:43)
        at com.googlecode.dex2jar.v3.Main.doData(Main.java:35)
        at com.googlecode.dex2jar.v3.Main.doFile(Main.java:63)
        at com.googlecode.dex2jar.v3.Main.main(Main.java:86)
Done.

Original comment by marco.ma...@gmail.com on 10 Sep 2012 at 8:07

GoogleCodeExporter commented Mar 3, 2015

reproduced with dex2jar-0.0.9.10-SNAPSHOT and classes.dex from titanium backup 
5.5.1.1:

C:\android\dex2jar-0.0.9.10-SNAPSHOT>dex2jar.bat classes.dex
this cmd is deprecated, use the d2j-dex2jar if possible
dex2jar version: translator-0.0.9.10-SNAPSHOT
dex2jar classes.dex -> classes_dex2jar.jar
java.lang.NullPointerException
        at org.objectweb.asm.Type.getType(Unknown Source)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.build(V3ClassAdapter.java:19
1)
        at com.googlecode.dex2jar.v3.V3ClassAdapter.visitField(V3ClassAdapter.ja
va:250)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptField(DexFileReader
.java:601)
        at com.googlecode.dex2jar.reader.DexFileReader.acceptClass(DexFileReader
.java:437)
        at com.googlecode.dex2jar.reader.DexFileReader.accept(DexFileReader.java
:328)
        at com.googlecode.dex2jar.v3.Dex2jar.doTranslate(Dex2jar.java:82)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:219)
        at com.googlecode.dex2jar.v3.Dex2jar.to(Dex2jar.java:210)
        at com.googlecode.dex2jar.v3.Main.doData(Main.java:43)
        at com.googlecode.dex2jar.v3.Main.doData(Main.java:35)
        at com.googlecode.dex2jar.v3.Main.doFile(Main.java:63)
        at com.googlecode.dex2jar.v3.Main.main(Main.java:86)
Done.

Original comment by marco.ma...@gmail.com on 10 Sep 2012 at 8:07

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

Titanium backup 5.5.1.1 can be translated with revision fbc16a4714a8 and later.

Original comment by yyjdel...@gmail.com on 13 Sep 2012 at 4:52

GoogleCodeExporter commented Mar 3, 2015

Titanium backup 5.5.1.1 can be translated with revision fbc16a4714a8 and later.

Original comment by yyjdel...@gmail.com on 13 Sep 2012 at 4:52

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

Now I am getting below error with  dex2jar-0.0.9.12-SNAPSHOT

E:\mytools\dex2jar-0.0.9.12-SNAPSHOT>d2j-dex2jar.bat ..\out.dex
dex2jar ..\out.dex -> out-dex2jar.jar
Error:Landroid/net/VpnService;.protect(I)Z->null
Detail Error Information in File out-error.zip
Please report this file to http://code.google.com/p/dex2jar/issues/entry if poss
ible.


Original comment by harshaj...@gmail.com on 11 Nov 2012 at 6:58

Attachments:

GoogleCodeExporter commented Mar 3, 2015

Now I am getting below error with  dex2jar-0.0.9.12-SNAPSHOT

E:\mytools\dex2jar-0.0.9.12-SNAPSHOT>d2j-dex2jar.bat ..\out.dex
dex2jar ..\out.dex -> out-dex2jar.jar
Error:Landroid/net/VpnService;.protect(I)Z->null
Detail Error Information in File out-error.zip
Please report this file to http://code.google.com/p/dex2jar/issues/entry if poss
ible.


Original comment by harshaj...@gmail.com on 11 Nov 2012 at 6:58

Attachments:

@GoogleCodeExporter

This comment has been minimized.

Show comment
Hide comment
@GoogleCodeExporter

GoogleCodeExporter Mar 3, 2015

Found that is same as Issue 109 but no solution has been mentioned yet

Original comment by harshaj...@gmail.com on 11 Nov 2012 at 9:50

GoogleCodeExporter commented Mar 3, 2015

Found that is same as Issue 109 but no solution has been mentioned yet

Original comment by harshaj...@gmail.com on 11 Nov 2012 at 9:50

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment