[aspectwerkz-user] Re: Hot Undeployment on Windows - UnsatisfiedLinkError
"Alexandre Vasseur" <[email protected]> Tue, 25 Sep 2007 11:05:07 +0200
| Newsgroups | gmane.comp.java.aspectwerkz.user |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_1048_7437821.1190711107162 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline a UnsatisfiedLinkError usually means a .dll or .so is not in the path / classpath (please check but I believe the folder has to be in PATH, possibli LD_PRELOAD and not the .dll/.so itself ie this is NOT like jar files in classpath) Alex On 9/25/07, Subhrajyoti Bose (subose) <[email protected]> wrote: > > Second Try. Please help. > > ------------------------------ > *From:* Subhrajyoti Bose (subose) > *Sent:* Monday, September 10, 2007 10:29 AM > *To:* '[email protected]' > *Cc:* '[email protected]'; '[email protected]' > *Subject:* Hot Undeployment on Windows - UnsatisfiedLinkError > > Hi > > I am using Aspectwerkz-2.0 on Windows. The development environment I am > using is java sdk 1.4.2_15. I have a single aspect in my application which > I have verified is getting deployed and functioning as desired. I have also > verified that aspectwerkz.dll is in the PATH. If I remove it from PATH, > the system cribs. I am running a batch file containing the following: > > @ECHO OFF > set ASPECTWERKZ_VERSION=2.0 > set JAVA_HOME=C:\Java\j2sdk1.4.2_15 > set ASPECTWERKZ_HOME=C:\MySpace\tools\aspectwerkz-2.0 > > set CP=%CLASSPATH% > IF "%CP%"=="" set CP=. > > @REM Note: you can avoid declaring this since aspectwerkz-x.y.jar comes > with a Manifest.mf Class-Path entry > set ASPECTWERKZ_LIBS=%ASPECTWERKZ_HOME%\lib\dom4j-1.4.jar > ;%ASPECTWERKZ_HOME%\lib\qdox-1.4.jar;%ASPECTWERKZ_HOME%\lib\concurrent- > 1.3.1.jar;%ASPECTWERKZ_HOME%\lib\trove-1.0.2.jar > ;%ASPECTWERKZ_HOME%\lib\jrexx-1.1.1.jar > > @REM -cp > "%JAVA_HOME%\lib\tools.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-%ASPECTWERKZ_VERSION%.jar" > org.codehaus.aspectwerkz.hook.ProcessStarter > @REM -- Use for Sun HotSpot and IBM JRE -- > "%JAVA_COMMAND%" -Xdebug -Xrunaspectwerkz > -Xbootclasspath/a:"%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-%ASPECTWERKZ_VERSION%.jar;%JAVA_HOME%\lib\tools.jar" > -cp > "%CP%;%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk14-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_LIBS%" > %* > Hot undeploy of this aspect is failing with exception. The trace is as > follows: > > C:\MySpace\work\monitor\aw-demo\bin>run exec.ProbeManager > AspectWerkz> initializing ..... > AspectWerkz> ..... done. > AspectWerkz - INFO - Pre-processor > org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor loaded and > initialized > aspect.Aspect > Deployer::INFO - undeploying aspect [aspect.Aspect] from class loader [ > sun.misc.Launcher$AppClassLoader@53ba3d] > Exception in thread "main" java.lang.UnsatisfiedLinkError: hotswap > at > org.codehaus.aspectwerkz.extension.hotswap.HotSwapClient.hotswap(Native > Method) > at > org.codehaus.aspectwerkz.extension.hotswap.HotSwapClient.hotswap( > HotSwapClient.java:43) > at > org.codehaus.aspectwerkz.extension.hotswap.HotSwapRedefiner.redefine( > HotSwapRedefiner.java:32) > at > org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.redefineInitialJoinPoints > (Deployer.java:464) > at > org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.doRedefine( > Deployer.java:428) > at > org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.redefine( > Deployer.java:416) > at > org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.undeploy( > Deployer.java:368) > > I am not able to trace the reason for the exception. Could it be due to an > old dll file? Or am I missing something in my configuration? If anybody has > faced and resolved such problem, please do reply. Any help would be > appreciated. > > > Thanks > Subhrajyoti > ------=_Part_1048_7437821.1190711107162 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline a <font face="Arial"><font color="#ff0000" size="2"><span>UnsatisfiedLinkError </span></font></font>usually means a .dll or .so is not in the path / classpath<br>(please check but I believe the folder has to be in PATH, possibli LD_PRELOAD and not the .dll/.so itself ie this is NOT like jar files in classpath) <br>Alex<br><br><div><span class="gmail_quote">On 9/25/07, <b class="gmail_sendername">Subhrajyoti Bose (subose)</b> <<a href="mailto:[email protected]">[email protected]</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <div> <div dir="ltr" align="left"><font color="#0000ff" face="Arial" size="2"><span>Second Try. Please help.</span></font></div><font color="#0000ff" face="Arial" size="2"></font><br> <div dir="ltr" align="left" lang="en-us"> <hr> <font face="Tahoma" size="2"><b>From:</b> Subhrajyoti Bose (subose) <br><b>Sent:</b> Monday, September 10, 2007 10:29 AM<br><b>To:</b> '<a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">[email protected]</a>'<br><b>Cc:</b> '<a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> [email protected]</a>'; '<a href="mailto:[email protected]" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">[email protected]</a>'<br><b>Subject:</b> Hot Undeployment on Windows - UnsatisfiedLinkError<br></font><br></div> <div></div> <div><span><font face="Arial" size="2">Hi</font></span></div> <div><span><font face="Arial" size="2"></font></span> </div> <div><span><font face="Arial" size="2">I am using Aspectwerkz-2.0 on Windows. The development environment I am using is </font></span><span><font face="Arial" size="2">java sdk 1.4.2_15. I have a single aspect in my application which I have verified is getting deployed and functioning as desired. I have also verified that</font></span><font face="Arial"><font size="2"><span> aspectwerkz.dll is in the PATH. If I remove it from PATH, the system cribs. I am running a batch file containing the following:</span></font></font></div> <div><font face="Arial"><font size="2"><span></span></font></font> </div> <div><font face="Arial"><font color="#0000ff" size="2"><span>@ECHO OFF<br>set ASPECTWERKZ_VERSION=2.0<br>set JAVA_HOME=C:\Java\j2sdk1.4.2_15<br>set ASPECTWERKZ_HOME=C:\MySpace\tools\aspectwerkz-2.0</span></font></font></div> <div><font color="#0000ff"></font> </div> <div><font face="Arial"><font color="#0000ff" size="2"><span>set CP=%CLASSPATH%<br>IF "%CP%"=="" set CP=.</span></font></font></div> <div><font color="#0000ff"></font> </div> <div><font face="Arial"><font color="#0000ff" size="2"><span>@REM Note: you can avoid declaring this since aspectwerkz-x.y.jar comes with a Manifest.mf Class-Path entry<br>set ASPECTWERKZ_LIBS=%ASPECTWERKZ_HOME%\lib\dom4j-1.4.jar;%ASPECTWERKZ_HOME%\lib\qdox-1.4.jar;%ASPECTWERKZ_HOME%\lib\concurrent-1.3.1.jar;%ASPECTWERKZ_HOME%\lib\trove-1.0.2.jar;%ASPECTWERKZ_HOME%\lib\jrexx-1.1.1.jar</span></font> </font></div> <div><font color="#0000ff"></font> </div> <div><font face="Arial"><font size="2"><span><font color="#0000ff">@REM -cp "%JAVA_HOME%\lib\tools.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-%ASPECTWERKZ_VERSION%.jar" org.codehaus.aspectwerkz.hook.ProcessStarter <br>@REM -- Use for Sun HotSpot and IBM JRE --<br>"%JAVA_COMMAND%" -Xdebug -Xrunaspectwerkz -Xbootclasspath/a:"%ASPECTWERKZ_HOME%\lib\aspectwerkz-core-%ASPECTWERKZ_VERSION%.jar;%JAVA_HOME%\lib\tools.jar" -cp "%CP%;%ASPECTWERKZ_HOME%\lib\aspectwerkz-extensions-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_HOME%\lib\aspectwerkz-jdk14-%ASPECTWERKZ_VERSION%.jar;%ASPECTWERKZ_LIBS%" %*</font> <br></span></font></font></div> <div><font face="Arial"><font size="2"><span>Hot undeploy of this aspect is failing with exception. The trace is as follows:</span></font></font></div> <div><font face="Arial"><font size="2"><span></span></font></font> </div> <div><font face="Arial"><font color="#ff0000" size="2"><span>C:\MySpace\work\monitor\aw-demo\bin>run exec.ProbeManager<br>AspectWerkz> initializing .....<br>AspectWerkz> ..... done.<br>AspectWerkz - INFO - Pre-processor org.codehaus.aspectwerkz.transform.AspectWerkzPreProcessor loaded and initialized<br>aspect.Aspect<br>Deployer::INFO - undeploying aspect [aspect.Aspect] from class loader [sun.misc.Launcher$AppClassLoader@53ba3d]<br>Exception in thread "main" java.lang.UnsatisfiedLinkError: hotswap<br> at org.codehaus.aspectwerkz.extension.hotswap.HotSwapClient.hotswap(Native Method)<br> at org.codehaus.aspectwerkz.extension.hotswap.HotSwapClient.hotswap(HotSwapClient.java:43)<br> at org.codehaus.aspectwerkz.extension.hotswap.HotSwapRedefiner.redefine(HotSwapRedefiner.java:32)<br> at org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.redefineInitialJoinPoints(Deployer.java:464)<br> at org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.doRedefine(Deployer.java:428)<br> at org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.redefine(Deployer.java:416)<br> at org.codehaus.aspectwerkz.transform.inlining.deployer.Deployer.undeploy(Deployer.java:368)</span></font></font></div> <div><span><font color="#ff0000" face="Arial" size="2"></font></span> </div> <div><span><font face="Arial" size="2">I am not able to trace the reason for the exception. Could it be due to an old dll file? Or am I missing something in my configuration? If anybody has faced and resolved such problem, please do reply. Any help would be appreciated.</font></span></div> <div><span><font face="Arial" size="2"></font></span> </div><span> <div><font face="Arial" size="2"></font><br><font face="Arial" size="2">Thanks</font></div> <div><span><font face="Arial" size="2">Subhrajyoti</font></span></div></span></div> </blockquote></div><br> ------=_Part_1048_7437821.1190711107162--