ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From richardmonk <majors...@gmail.com>
Subject Re: AW: ant 1.7 java.lang.ExceptionInInitializerError
Date Mon, 12 Nov 2007 19:35:32 GMT

Jan

Thanks a lot for the reply.

And, fyi, couple days back something was wrong in my email system and i
started another thread for this in the title of "Ant 1.5 to 1.7 problem"
(sorry for this). David Weintraub is trying to help me over there. I will
follow this thread also unless you would like to switch to the other one. I
still do not have a clear clue yet. Here is the debug trace (using the
simpler test build.xml from David)

Using Ant patch ant151patch.jar
-Djvm=jrockit1.4.2_05
-Dant.home.dir=T:/Eng/win32bin/apache-ant-1.7.0
java version "1.4.2_05"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_05-b04)
BEA WebLogic JRockit(TM) 1.4.2_05 JVM R24.4.0-1 (build
ari-38120-20041118-1131-win-ia32, Native Threads, GC strategy: pa
rallel)

Apache Ant version 1.7.0 compiled on December 13 2006
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in:
T:\eng\win32bin\weblogic8.1.4\jrockit81sp4_142_05\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.file -> T:\eng\ccroot\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile T:\eng\ccroot\build.xml with URI =
file:/T:/eng/ccroot/build.xml
Setting ro project property: ant.project.name -> test
Adding reference: test
Setting ro project property: ant.file.test -> T:\eng\ccroot\build.xml
Project base dir set to: T:\eng\ccroot
 +Target:
 +Target: check.db.schema.up.to.date
 +Target: test1
 +Target: test2
 +Target: test
[antlib:org.apache.tools.ant] Could not load definitions from resource
org/apache/tools/ant/antlib.xml. It could not be
found.
Setting project property: get.dbversion.build.dir -> build
Setting project property: db.root.dir -> src
    [mkdir] Skipping T:\eng\ccroot\build\src because it already exists.
    [mkdir] Skipping T:\eng\ccroot\src because it already exists.
Attempting to create object of type
org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `test' is [check.db.schema.up.to.date, test1,
test2, test]
Complete build sequence is [check.db.schema.up.to.date, test1, test2, test,
]

check.db.schema.up.to.date:

BUILD FAILED
T:\eng\ccroot\build.xml:11: java.lang.ExceptionInInitializerError
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Ljava.lang.Object;)V(DispatchUtils.java:115)
        at org.apache.tools.ant.Task.perform()V(Task.java:348)
        at org.apache.tools.ant.Target.execute()V(Target.java:357)
        at org.apache.tools.ant.Target.performTasks()V(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Ljava.util.Vector;)V(Project.java:1329)
        at
org.apache.tools.ant.Project.executeTarget(Ljava.lang.String;)V(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Lorg.apache.tools.ant.Project;[Ljava.lang.String;)
V(DefaultExecutor.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Ljava.util.Vector;)V(Project.java:1181)
        at
org.apache.tools.ant.Main.runBuild(Ljava.lang.ClassLoader;)V(Main.java:698)
        at
org.apache.tools.ant.Main.startAnt([Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)V(Main.ja
va:199)
        at
org.apache.tools.ant.Main.start([Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)V(Main.java:
161)
        at
org.apache.tools.ant.Main.main([Ljava.lang.String;)V(Main.java:250)
Caused by: java.lang.ExceptionInInitializerError
        at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(Lorg.apache.tools.ant.Project;)Lorg.apache.too
ls.ant.DirectoryScanner;(AbstractFileSet.java:429)
        at org.apache.tools.ant.taskdefs.UpToDate.eval()Z(UpToDate.java:206)
        at
org.apache.tools.ant.taskdefs.UpToDate.execute()V(UpToDate.java:232)
        at
org.apache.tools.ant.UnknownElement.execute()V(UnknownElement.java:288)
        at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.la
ng.Object;(Unknown Source)
        at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
S
ource)
        at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Un
known Source)
        at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Ljava.lang.Object;)V(DispatchUtils.java:105)
        ... 11 more
Caused by: Don't know how to detect os family "openvms"
        at
org.apache.tools.ant.taskdefs.condition.Os.isOs(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.l
ang.String;)Z(Os.java:230)
        at
org.apache.tools.ant.taskdefs.condition.Os.isFamily(Ljava.lang.String;)Z(Os.java:150)
        at
org.apache.tools.ant.DirectoryScanner.<clinit>()V(DirectoryScanner.java:128)
        at jrockit.vm.RNI.initializeClassFromJava(II)V(Unknown Source)
        at jrockit.vm.RNI.clinitTrampoline()V(Unknown Source)
        ... 20 more
--- Nested Exception ---
java.lang.ExceptionInInitializerError
        at
org.apache.tools.ant.types.AbstractFileSet.getDirectoryScanner(Lorg.apache.tools.ant.Project;)Lorg.apache.too
ls.ant.DirectoryScanner;(AbstractFileSet.java:429)
        at org.apache.tools.ant.taskdefs.UpToDate.eval()Z(UpToDate.java:206)
        at
org.apache.tools.ant.taskdefs.UpToDate.execute()V(UpToDate.java:232)
        at
org.apache.tools.ant.UnknownElement.execute()V(UnknownElement.java:288)
        at
jrockit.reflect.NativeMethodInvoker.invoke0(Ljava.lang.Object;ILjava.lang.Object;[Ljava.lang.Object;)Ljava.la
ng.Object;(Unknown Source)
        at
jrockit.reflect.NativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Unknown
S
ource)
        at
jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[Ljava.lang.Object;)Ljava.lang.Object;(Un
known Source)
        at
java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;I)Ljava.lang.Object;(Unknown
Source)
        at
org.apache.tools.ant.dispatch.DispatchUtils.execute(Ljava.lang.Object;)V(DispatchUtils.java:105)
        at org.apache.tools.ant.Task.perform()V(Task.java:348)
        at org.apache.tools.ant.Target.execute()V(Target.java:357)
        at org.apache.tools.ant.Target.performTasks()V(Target.java:385)
        at
org.apache.tools.ant.Project.executeSortedTargets(Ljava.util.Vector;)V(Project.java:1329)
        at
org.apache.tools.ant.Project.executeTarget(Ljava.lang.String;)V(Project.java:1298)
        at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(Lorg.apache.tools.ant.Project;[Ljava.lang.String;)
V(DefaultExecutor.java:41)
        at
org.apache.tools.ant.Project.executeTargets(Ljava.util.Vector;)V(Project.java:1181)
        at
org.apache.tools.ant.Main.runBuild(Ljava.lang.ClassLoader;)V(Main.java:698)
        at
org.apache.tools.ant.Main.startAnt([Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)V(Main.ja
va:199)
        at
org.apache.tools.ant.Main.start([Ljava.lang.String;Ljava.util.Properties;Ljava.lang.ClassLoader;)V(Main.java:
161)
        at
org.apache.tools.ant.Main.main([Ljava.lang.String;)V(Main.java:250)
Caused by: Don't know how to detect os family "openvms"
        at
org.apache.tools.ant.taskdefs.condition.Os.isOs(Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;Ljava.l
ang.String;)Z(Os.java:230)
        at
org.apache.tools.ant.taskdefs.condition.Os.isFamily(Ljava.lang.String;)Z(Os.java:150)
        at
org.apache.tools.ant.DirectoryScanner.<clinit>()V(DirectoryScanner.java:128)
        at jrockit.vm.RNI.initializeClassFromJava(II)V(Unknown Source)
        at jrockit.vm.RNI.clinitTrampoline()V(Unknown Source)
        ... 20 more

Total time: 0 seconds






Jan.Materne wrote:
> 
> Could you run with "-debug" and post the stacktrace?
> 
> Jan 
> 
>>-----Urspr√ľngliche Nachricht-----
>>Von: richardmonk [mailto:majorshao@gmail.com] 
>>Gesendet: Donnerstag, 8. November 2007 08:40
>>An: user@ant.apache.org
>>Betreff: ant 1.7 java.lang.ExceptionInInitializerError
>>
>>
>>Hi
>>
>>i am upgrading the whole project from ant1.5.1 to ant1.7.0
>>
>>it gave error build_config.xml:151: 
>>java.lang.ExceptionInInitializerError
>>
>>the line 151 of that xml is a uptodate task. Any idea why i 
>>got the error?
>>Please kindly help.
>>Your reply is highly appreciated.
>>
>><target name="check.db.schema.up.to.date" >
>>        <uptodate property="db.schema.up.to.date"
>>targetfile="${get.dbversion.build.dir}/src/dbinfo.properties" >
>>            <srcfiles dir= "${db.root.dir}" >
>>                <include name="DBInfo.java" />
>>                <include name="GetDbInfo.java" />
>>            </srcfiles>
>>        </uptodate>
>></target>
>>
>>
>>Thanks
>>
>>Richard
>>-- 
>>View this message in context: 
>>http://www.nabble.com/ant-1.7-java.lang.ExceptionInInitializerE
>>rror-tf4769472.html#a13642498
>>Sent from the Ant - Users mailing list archive at Nabble.com.
>>
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>>For additional commands, e-mail: user-help@ant.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/ant-1.7-java.lang.ExceptionInInitializerError-tf4769472.html#a13712456
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message