Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 65257 invoked from network); 17 Oct 2006 14:25:48 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Oct 2006 14:25:48 -0000 Received: (qmail 29451 invoked by uid 500); 17 Oct 2006 14:25:42 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 28991 invoked by uid 500); 17 Oct 2006 14:25:41 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 28961 invoked by uid 99); 17 Oct 2006 14:25:41 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2006 07:25:41 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [207.239.111.117] (HELO frederick.Groupwise.local) (207.239.111.117) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Oct 2006 07:25:36 -0700 Received: from MIAMAILDOMAIN1-MTA by frederick.Groupwise.local with Novell_GroupWise; Tue, 17 Oct 2006 10:25:13 -0400 Message-Id: X-Mailer: Novell GroupWise Internet Agent 6.5.5 Date: Tue, 17 Oct 2006 10:24:54 -0400 From: "Robert Pepersack" To: Subject: Re: Ant and the Windows Registry Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N OK. I got it to run by putting both orangevolt-ant-tasks-1.3.5.jar and roxes-win32forjava-1.0.4.jar in Ant's lib directory. But, when I run it, I get this ugly error. I don't know the JNI, so I have no idea how to deal with this problem: An unexpected exception has been detected in native code outside the VM. Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x77FCD989 Function=[Unknown.] Library=C:\WINNT\system32\ntdll.dll NOTE: We are unable to locate the function name symbol for the error just occurred. Please refer to release documentation for possible reason and solutions. Current Java thread: at com.roxes.win32.Registry.getValue(Native Method) at com.roxes.win32.Registry.getValue(Registry.java:464) at com.orangevolt.tools.ant.Win32RegistryTask$Get.run(Win32RegistryTask.java:172) at com.orangevolt.tools.ant.Win32RegistryTask.execute(Win32RegistryTask.java:482) at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275) at org.apache.tools.ant.Task.perform(Task.java:364) at org.apache.tools.ant.Target.execute(Target.java:341) at org.apache.tools.ant.Target.performTasks(Target.java:369) at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216) at org.apache.tools.ant.Project.executeTarget(Project.java:1185) at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40) at org.apache.tools.ant.Project.executeTargets(Project.java:1068) at org.apache.tools.ant.Main.runBuild(Main.java:668) at org.apache.tools.ant.Main.startAnt(Main.java:187) at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246) at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67) Dynamic libraries: 0x00400000 - 0x00406000 C:\j2sdk1.4.2_03\bin\java.exe 0x77F80000 - 0x77FFC000 C:\WINNT\system32\ntdll.dll 0x7C2D0000 - 0x7C335000 C:\WINNT\system32\ADVAPI32.dll 0x7C570000 - 0x7C624000 C:\WINNT\system32\KERNEL32.dll 0x77D30000 - 0x77D9F000 C:\WINNT\system32\RPCRT4.dll 0x78000000 - 0x78045000 C:\WINNT\system32\MSVCRT.dll 0x75030000 - 0x75044000 C:\WINNT\system32\WS2_32.DLL 0x75020000 - 0x75028000 C:\WINNT\system32\WS2HELP.DLL 0x08000000 - 0x08138000 C:\j2sdk1.4.2_03\jre\bin\client\jvm.dll 0x77E10000 - 0x77E79000 C:\WINNT\system32\USER32.dll 0x77F40000 - 0x77F7C000 C:\WINNT\system32\GDI32.dll 0x77570000 - 0x775A0000 C:\WINNT\system32\WINMM.dll 0x10000000 - 0x10007000 C:\j2sdk1.4.2_03\jre\bin\hpi.dll 0x007C0000 - 0x007CE000 C:\j2sdk1.4.2_03\jre\bin\verify.dll 0x007D0000 - 0x007E9000 C:\j2sdk1.4.2_03\jre\bin\java.dll 0x007F0000 - 0x007FD000 C:\j2sdk1.4.2_03\jre\bin\zip.dll 0x65740000 - 0x6574A000 C:\j2sdk1.4.2_03\jre\bin\roxes-registry-1.0.4.dll 0x70A70000 - 0x70AD6000 C:\WINNT\system32\SHLWAPI.DLL 0x690A0000 - 0x690AB000 C:\WINNT\system32\PSAPI.DLL Heap at VM Abort: Heap def new generation total 576K, used 131K [0x10010000, 0x100b0000, 0x104f0000) eden space 512K, 18% used [0x10010000, 0x100281a8, 0x10090000) from space 64K, 54% used [0x100a0000, 0x100a8ba0, 0x100b0000) to space 64K, 0% used [0x10090000, 0x10090000, 0x100a0000) tenured generation total 1408K, used 720K [0x104f0000, 0x10650000, 0x14010000) the space 1408K, 51% used [0x104f0000, 0x105a40c8, 0x105a4200, 0x10650000) compacting perm gen total 4096K, used 3588K [0x14010000, 0x14410000, 0x18010000) the space 4096K, 87% used [0x14010000, 0x14391258, 0x14391400, 0x14410000) Local Time = Tue Oct 17 10:11:06 2006 Elapsed Time = 1 # # The exception above was detected in native code outside the VM # # Java VM: Java HotSpot(TM) Client VM (1.4.2_03-b02 mixed mode) # Thanks, Bob Robert Pepersack Senior Lead Developer Maryland Insurance Administration 410-468-2054 >>> peter.kitt.reilly@gmail.com 10/17/2006 9:49:50 AM >>> Also, remove the orangevolt-ant-tasks-1.3.5.jar from ${user.home}/.ant/lib, and from the CLASSPATH otherwise you will have nasty classloader problems, the two jar files should be in the same classloader. Peter On 10/17/06, Peter Reilly wrote: > Ok, on checking, you do need both jar files. > roxes-win32forjava-1.0.4.jar and orangevolt-ant-tasks-1.3.5.jar > > Try placing both in a directory - say c:/apps/roxes/lib > then do: > > > > > > > > > > > > > > > Peter > > On 10/17/06, Dominique Devienne wrote: > > On 10/17/06, Robert Pepersack wrote: > > > I tried doing that by putting, roxes-win32forjava-1.0.4.jar, which > > > contains com/roxes/win32/UrlFile, into the classpath in my build file. > > > But I got the same error. > > > > Then run with -verbose (or -debug) and see what stack trace you are > > getting. Running Java code that depends on JNI shared libs is more > > involved than just using the classpath. I don't know how Roxes or > > OrangeVolt deal with that... --DD > > > > --------------------------------------------------------------------- > > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org