[aspectwerkz-user] Trying to hot deploy/undeploy aspects but get java.lang.UnsatisfiedLinkError: hotswap

"John Edwards" <[email protected]>
Newsgroups gmane.comp.java.aspectwerkz.user
Organization Quantboy.com
Message-ID <000701c541f7$7c42d750$0200a8c0@user>
Hi there,

 

I’m experimenting with hot deploy of aspects in AspectWerkz2.0 using
JDK1.4.2. I’m following the instructions from HYPERLINK
"http://aspectwerkz.codehaus.org/weaving.html#Native_HotSwap"http://aspectwe
rkz.codehaus.org/weaving.html#Native_HotSwap and I’m sure its picking up the
dll from the path because I have even put it in my jre/lib directory but I
get a java.lang.UnsatisfiedLinkError: hotswap which I understand is the
client trying to make a non-existent of misspecified JNI call. Can anyone
point me in the direction of what I’m doing wrong? I am using ant rather
than the batch file but the output from the ant java task looks the same as
the instructions. I feel its either some sort of JVM issue or to do with the
dll

 

 

run-tests:

     [java] C:\Java\jdk\j2sdk1.4.2_05\jre\bin\java
Xrunjdwp:transport=dt_socket,suspend=y,address=9300,server=y -Xdebug
-Xrunaspectwerkz
-Xbootclasspath/a:C:/Java/aspectwerkz-2.0\lib\aspectwerkz-core-2.0.jar;C:\Ja
va\jdk\j2sdk1.4.2_05\jre/../lib/tools.jar -Daspectwerkz.transform.

dump=*
-Daspectwerkz.definition.file=C:\Java\projects\aop-example/java/src/aop.xml
-cp "C:\Java\jdk\j2sdk1.4.2_05\jre\..\lib\tools.jar;C:/J

ava/aspectwerkz-2.0/lib/aspectwerkz-jdk14-2.0.jar;C:/Java/aspectwerkz-2.0/li
b/aspectwerkz-2.0.jar;C:/Java/aspectwerkz-2.0/lib/aspectwerkz-ex

tensions-2.0.jar;C:\Java\projects\aop-example/java/src;C:\Java\projects\aop-
example/classes;C:/Java/aspectwerkz-2.0/lib/junit-3.8.1.jar;C:/J

ava/aspectwerkz-2.0/lib/junitperf.jar" com.quantboy.aop.AOPTestApplication

     [java] AspectWerkz> initializing .....

     [java] AspectWerkz> ..... done.

     [java] AspectWerkz - INFO - Pre-processor
org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor loaded and
initialized

     [java] Interceptor called !

     [java] Company has 1 offices

     [java]      London office

     [java] Deployer::INFO - undeploying aspect [fieldInterceptor] from
class loader [sun.misc.Launcher$AppClassLoader@53ba3d]

     [java] java.lang.UnsatisfiedLinkError: hotswap

     [java]     at
org.codehaus.aspectwerkz.extension.hotswap.HotSwapClient.hotswap(Native
Method)

     [java]     at
org.codehaus.aspectwerkz.extension.hotswap.HotSwapClient.hotswap(HotSwapClie
nt.java:43)

     [java]     at
org.codehaus.aspectwerkz.extension.hotswap.HotSwapRedefiner.redefine(HotSwap
Redefiner.java:32)

     [java]     at
org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.redefineInitia
lJoinPoints(Deployer.java:464)

     [java]     at
org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.doRedefine(Dep
loyer.java:428)

     [java]     at
org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.redefine(Deplo
yer.java:416)

     [java]     at
org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.undeploy(Deplo
yer.java:368)

     [java]     at
com.quantboy.aop.FieldInterceptionAspect.undeploy(FieldInterceptionAspect.ja
va:47)

     [java]     at
com.quantboy.aop.AOPTestApplication.main(AOPTestApplication.java:26)

     [java] Exception in thread "main"

     [java] Java Result: 1

 

 

Regards,

 

 

John

 

 

 

 

 


-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.12 - Release Date: 15/04/2005
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.