This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

3rd Party Classes: bad value constant type 0, index 0


HiYa,

I'm giving gcj a test-drive as a possible tool to implement
a JTAPI (Java Computer Telephony) server...

Using 3rd party Classes (Lucent is PBX implementation)
I get:  bad value constant type 0, index 0

No access to CTI java source possible =(...

Platform is RedHat6.0 Linux 2.2.5-15, glibc 2.2.1, ...

ANY IDEAS WHAT TO TRY? thx!

Details:
[root@alan]: gcj -v -c A.class
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/specs
gcc version gcc-2.95 19990615 (prerelease)
 /usr/local/lib/gcc-lib/i686-pc-linux-gnu/gcc-2.95/jc1 A.class -quiet -g1
-version -o /tmp/ccFVaaaa.s
GNU Java version gcc-2.95 19990615 (prerelease) (i686-pc-linux-gnu) compiled
by GNU C version gcc-2.95 19990615 (prerelease).
com/lucent/jtapi/tsapi/A.java: In class `com.lucent.jtapi.tsapi.A':
com/lucent/jtapi/tsapi/A.java: In method
`U(short,java.lang.String,java.lang.String,java.io.PrintStream)':
com/lucent/jtapi/tsapi/A.java:0: bad value constant type 0, index 0

[root@alan]: jdump -c A.class 
Reading .class from A.class.
Magic number: 0xcafebabe, minor_version: 3, major_version: 45.

Constant pool (count: 53):
#1: Utf8: "()V"
#2: Utf8: "(SLjava/lang/String;Ljava/lang/String;Ljava/io/PrintStream;)V"
#3: Utf8: "<init>"
...
#6: Utf8: "Code"
#7: Utf8: "ConstantValue"
...
#16: Utf8: "L"
#17: Utf8: "LocalVariableTable"
#18: Utf8: "M"
#19: Utf8: "N"
...
#26: Utf8: "U"
#27: Utf8: "com/lucent/jtapi/tsapi/A"
#28: Utf8: "com/lucent/jtapi/tsapi/DDC"
#29: Methodref class: 33=com.lucent.jtapi.tsapi.DDC name_and_type:
49=<<init> ()void>
#30: Integer 71=0x47
#31: Integer 70=0x46
#32: Integer 60=0x3c
#33: Class name: 28="com/lucent/jtapi/tsapi/DDC"
#34: Integer 56=0x38
...
#48: Integer 30=0x1e
#49: NameAndType name: 3=<init>, signature: 1=()void
#50: Class name: 28="com/lucent/jtapi/tsapi/DDC"
#51: Integer 20=0x14
#52: Integer 0=0x0

Access flags: 0x10 final
This class: 42=com.lucent.jtapi.tsapi.A, super:
50=com.lucent.jtapi.tsapi.DDC
Interfaces (count: 0):

Fields (count: 19):
Field name:"B" static final Signature: 24=short
Attribute "ConstantValue", length:2, value: #52=<Integer 0>
Field name:"C" static final Signature: 24=short
Attribute "ConstantValue", length:2, value: #51=<Integer 20>
...
Methods (count: 2):

Method name:"U" static Signature:
2=(short,java.lang.String,java.lang.String,java.io.PrintStream)void
Attribute "Code", length:31, max_stack:0, max_locals:4, code_length:1
  0: return
Attribute "LocalVariableTable", length:12, count: 1
  slot#0: name: 0=<not a UTF8 constant>, type: 0=<constant pool index 0 not
in range> (pc: 0 length: 1)

Method name:"<init>" Signature: 1=()void
Attribute "Code", length:17, max_stack:1, max_locals:1, code_length:5
  0: aload_0
  1: invokespecial #29=<Method com.lucent.jtapi.tsapi.DDC.<init> ()void>
  4: return

Attributes (count: 0):


thx! al-man

--
          +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+
                 Alan W. Jurgensen  -  Full Compass Systems        
              phone: (608) 831-7330 - email: alan@fullcompass.com
          +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]