On 09/28/10 08:58, titleist wrote:
> I noticed that whenever httpPost is called, the exception is thrown:
>
>
>
> // Compiled from DexFile.java (version 1.5 : 49.0, super bit)
> public final class dalvik.system.DexFile {
>
>   // Method descriptor #8 (Ljava/io/File;)V
>   // Stack: 3, Locals: 2
>   public DexFile(java.io.File file) throws java.io.IOException;
>      0  aload_0 [this]
>      1  invokespecial java.lang.Object() [1]
>      4  new java.lang.RuntimeException [2]
>      7  dup
>      8  ldc <String "Stub!"> [3]
>     10  invokespecial java.lang.RuntimeException(java.lang.String) [4]
>     13  athrow
>       Line numbers:
>         [pc: 0, line: 4]
>       Local variable table:
>         [pc: 0, pc: 14] local: this index: 0 type:
> dalvik.system.DexFile
>         [pc: 0, pc: 14] local: file index: 1 type: java.io.File
>
>   // Method descriptor #18 (Ljava/lang/String;)V
>   // Stack: 3, Locals: 2
>   public DexFile(java.lang.String fileName) throws
> java.io.IOException;
>      0  aload_0 [this]
>      1  invokespecial java.lang.Object() [1]
>      4  new java.lang.RuntimeException [2]
>      7  dup
>      8  ldc <String "Stub!"> [3]
>     10  invokespecial java.lang.RuntimeException(java.lang.String) [4]
>     13  athrow
>       Line numbers:
>         [pc: 0, line: 5]
>       Local variable table:
>         [pc: 0, pc: 14] local: this index: 0 type:
> dalvik.system.DexFile
>         [pc: 0, pc: 14] local: fileName index: 1 type:
> java.lang.String
>
>   // Method descriptor #22 (Ljava/lang/String;Ljava/lang/
> String;I)Ldalvik/system/DexFile;
>   // Stack: 3, Locals: 3
>   public static dalvik.system.DexFile loadDex(java.lang.String
> sourcePathName, java.lang.String outputPathName, int flags) throws
> java.io.IOException;
>      0  new java.lang.RuntimeException [2]
>      3  dup
>      4  ldc <String "Stub!"> [3]
>      6  invokespecial java.lang.RuntimeException(java.lang.String) [4]
>      9  athrow
>       Line numbers:
>         [pc: 0, line: 6]
>       Local variable table:
>         [pc: 0, pc: 10] local: sourcePathName index: 0 type:
> java.lang.String
>         [pc: 0, pc: 10] local: outputPathName index: 1 type:
> java.lang.String
>         [pc: 0, pc: 10] local: flags index: 2 type: int
>
>   // Method descriptor #28 ()Ljava/lang/String;
>   // Stack: 3, Locals: 1
>   public java.lang.String getName();
>      0  new java.lang.RuntimeException [2]
>      3  dup
>      4  ldc <String "Stub!"> [3]
>      6  invokespecial java.lang.RuntimeException(java.lang.String) [4]
>      9  athrow
>       Line numbers:
>         [pc: 0, line: 7]
>       Local variable table:
>         [pc: 0, pc: 10] local: this index: 0 type:
> dalvik.system.DexFile
>
>   // Method descriptor #30 ()V
>   // Stack: 3, Locals: 1
>   public void close() throws java.io.IOException;
>      0  new java.lang.RuntimeException [2]
>      3  dup
>      4  ldc <String "Stub!"> [3]
>      6  invokespecial java.lang.RuntimeException(java.lang.String) [4]
>      9  athrow
>       Line numbers:
>         [pc: 0, line: 8]
>       Local variable table:
>         [pc: 0, pc: 10] local: this index: 0 type:
> dalvik.system.DexFile
>
>   // Method descriptor #32 (Ljava/lang/String;Ljava/lang/
> ClassLoader;)Ljava/lang/Class;
>   // Stack: 3, Locals: 3
>   public java.lang.Class loadClass(java.lang.String name,
> java.lang.ClassLoader loader);
>      0  new java.lang.RuntimeException [2]
>      3  dup
>      4  ldc <String "Stub!"> [3]
>      6  invokespecial java.lang.RuntimeException(java.lang.String) [4]
>      9  athrow
>       Line numbers:
>         [pc: 0, line: 9]
>       Local variable table:
>         [pc: 0, pc: 10] local: this index: 0 type:
> dalvik.system.DexFile
>         [pc: 0, pc: 10] local: name index: 1 type: java.lang.String
>         [pc: 0, pc: 10] local: loader index: 2 type:
> java.lang.ClassLoader
>
>   // Method descriptor #37 ()Ljava/util/Enumeration;
>   // Signature: ()Ljava/util/Enumeration<Ljava/lang/String;>;
>   // Stack: 3, Locals: 1
>   public java.util.Enumeration entries();
>      0  new java.lang.RuntimeException [2]
>      3  dup
>      4  ldc <String "Stub!"> [3]
>      6  invokespecial java.lang.RuntimeException(java.lang.String) [4]
>      9  athrow
>       Line numbers:
>         [pc: 0, line: 10]
>       Local variable table:
>         [pc: 0, pc: 10] local: this index: 0 type:
> dalvik.system.DexFile
>
>   // Method descriptor #30 ()V
>   // Stack: 3, Locals: 1
>   protected void finalize() throws java.io.IOException;
>      0  new java.lang.RuntimeException [2]
>      3  dup
>      4  ldc <String "Stub!"> [3]
>      6  invokespecial java.lang.RuntimeException(java.lang.String) [4]
>      9  athrow
>       Line numbers:
>         [pc: 0, line: 11]
>       Local variable table:
>         [pc: 0, pc: 10] local: this index: 0 type:
> dalvik.system.DexFile
>
>   // Method descriptor #42 (Ljava/lang/String;)Z
>   public static native boolean isDexOptNeeded(java.lang.String arg0)
> throws java.io.FileNotFoundException, java.io.IOException;
> }
>
>
>
>
> Does anyone have any ideas what could cause that?  I'm really stuck..
> Do i have to include some external jars or libraries?
>
>
>
>
>
> Regards
>
>   
Your server is expecting a client that is written with the same JSON/RPC
libraries.  Since these are not available in Android, you are going to
have to figure out what your server is really expecting.  Maybe you
could write a client in C#, monitor the traffic exchanged, and then have
your Android program do what the client is doing.  Any way you go about
it, you're going to have to learn more about the underlying protocol
than you know now.

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to