ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hardy Henneberg <hhe...@post7.tele.dk>
Subject Re: rmic
Date Mon, 05 Feb 2001 21:21:47 GMT
Hi, sorry to have posted that.
I have solved my problem. For some reason, I had old Stub and Skel class files in my source
dir. And they were copied by ant to the build dir. When I removed them everything worked fine.

Hardy

Hardy Henneberg wrote:

> Hi,
>
> when using Rmic in ant, I have problems with the generated stubs and
> librarys:
>
> Unexpected exception caugth under initialization - the application
> terminates
> suncertify/server/DbServerAdapter_Skel (Illegal constant pool type)
> java.lang.ClassFormatError: suncertify/server/DbServerAdapter_Skel
> (Illegal constant pool type)
>  at java.lang.ClassLoader.defineClass0(Native Method)
>  at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
>  at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
>  at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
>  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
>  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
>  at java.security.AccessController.doPrivileged(Native Method)
>  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
>  at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
>  at sun.rmi.server.RemoteProxy.loadClassFromClass(RemoteProxy.java:194)
>  at sun.rmi.server.RemoteProxy.getSkeleton(RemoteProxy.java:163)
>  at
> sun.rmi.server.UnicastServerRef.setSkeleton(UnicastServerRef.java:148)
>  at
> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:122)
>  at
> sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:109)
>  at
> java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:278)
>
>  at
> java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:181)
>
>  at
> java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:78)
>  at
> java.rmi.server.UnicastRemoteObject.<init>(UnicastRemoteObject.java:64)
>  at suncertify.server.DbServerAdapter.<init>(DbServerAdapter.java:13)
>  at suncertify.server.Controller.main(Controller.java:48)
>
> I have tried with and without stubversion="1.2" and I have tried to run
> ant with verbose, but it seems like it is using the JDk 1.3.0
> everywhere.
>
> Setting project property: java.runtime.name -> Java(TM) 2 Runtime
> Environment, Standard Edition
> Setting project property: sun.boot.library.path -> /app/jdk/jre/lib/i386
>
> Setting project property: java.vm.version -> 1.3.0
> Setting project property: java.vm.vendor -> Sun Microsystems Inc.
> Setting project property: java.vendor.url -> http://java.sun.com/
> Setting project property: path.separator -> :
> Setting project property: java.vm.name -> Java HotSpot(TM) Client VM
> Setting project property: file.encoding.pkg -> sun.io
> Setting project property: java.vm.specification.name -> Java Virtual
> Machine Specification
> Setting project property: user.dir -> /home/hh/scjd/starting
> Setting project property: java.runtime.version -> 1.3.0
> Setting project property: java.awt.graphicsenv ->
> sun.awt.X11GraphicsEnvironment
> Setting project property: os.arch -> i386
> Setting project property: java.io.tmpdir -> /tmp
> Setting project property: line.separator ->
>
> Setting project property: java.vm.specification.vendor -> Sun
> Microsystems Inc.
> Setting project property: java.awt.fonts ->
> Setting project property: os.name -> Linux
> Setting project property: ant.home -> /app/ant
> Setting project property: java.library.path ->
> /app/jdk/jre/lib/i386:/app/jdk/jre/lib/i386/native_threads/:/app/jdk/jre/lib/i386/client:/app/jdk/jre/../lib/i386
>
> Setting project property: java.specification.name -> Java Platform API
> Specification
> Setting project property: java.class.version -> 47.0
> Setting project property: os.version -> 2.2.16-22
> Setting project property: user.home -> /home/hh
> Setting project property: user.timezone ->
> Setting project property: java.awt.printerjob ->
> sun.awt.motif.PSPrinterJob
> Setting project property: file.encoding -> ISO-8859-1
> Setting project property: java.specification.version -> 1.3
> Setting project property: java.class.path ->
> /home/hh/scjd/starting:./:/app/junit/junit.jar:/app/xml/jaxp/jaxp.jar:/app/xml/jaxp/crimson.jar:/app/xml/jaxp/xalan.jar::/app/ant/lib/ant.jar:/app/ant/lib/jaxp.jar:/app/ant/lib/parser.jar:/app/jdk/lib/tools.jar
>
> Setting project property: user.name -> hh
> Setting project property: java.vm.specification.version -> 1.0
> Setting project property: java.home -> /app/jdk/jre
> Setting project property: user.language -> da
> Setting project property: java.specification.vendor -> Sun Microsystems
> Inc.
> Setting project property: java.vm.info -> mixed mode
> Setting project property: java.version -> 1.3.0
> Setting project property: java.ext.dirs -> /app/jdk/jre/lib/ext
> Setting project property: sun.boot.class.path ->
> /app/jdk/jre/lib/rt.jar:/app/jdk/jre/lib/i18n.jar:/app/jdk/jre/lib/sunrsasign.jar:/app/jdk/jre/classes
>
> Setting project property: java.vendor -> Sun Microsystems Inc.
> Setting project property: file.separator -> /
> Setting project property: java.vendor.url.bug ->
> http://java.sun.com/cgi-bin/bugreport.cgi
> Setting project property: sun.io.unicode.encoding -> UnicodeLittle
> Setting project property: sun.cpu.endian -> little
> Setting project property: user.region -> DK
> Setting project property: sun.cpu.isalist ->
> Setting ro project property: ant.file ->
> /home/hh/scjd/starting/build.xml
> Setting project property: basedir -> /home/hh/scjd/starting
> Project base dir set to: /home/hh/scjd/starting
>  +Target: init
>    +Task: tstamp
> Setting project property: DSTAMP -> 20010203
> Setting project property: TSTAMP -> 1354
> Setting project property: TODAY -> February 3 2001
>    +Task: property
> Setting project property: build -> build
>    +Task: property
> Setting project property: dist -> dist
>    +Task: property
> Setting project property: src -> src
>    +Task: property
> Setting project property: test -> test
>    +Task: property
> Setting project property: testbuild -> testbuild
>    +Task: filter
> Setting token to filter: version -> 0.9
>    +Task: filter
> Setting token to filter: year -> 2001
>
> As soon as I run rmic form command line my problems disappears.
> Hope someone can help me, because I think ant is a great tool.
>
> kind regards
> Hardy Henneberg


Mime
View raw message