[[d...bleshooting]] | |||||||||
Table of Contents
TroubleShootingFollow the installation instructions carefully! JAsCo is only tested and maintained on Windows 2000/XP and Linux compatible systems, JAsCo might fail on other Operating Systems . SOME HINTS:
1. COMPILE-TIME PROBLEMS1.1 I get a ClassFormatError (truncated class file) exception when running the JAsCo tools.This error stems from certain unzip programs that do not unpack the JAsCo zip file correctly. As such, a class file with 0 bytes is generated which is of course not valid. Up till now, only some linux based unzip programs seem to be causing this problem. Solution: use another unzip tool 1.2 The transformBean tool does not appear to work.Possible reasons:
1.3 Java 1.5 features such as generics do not workMake sure to compile using the target 1.5 flag. In order to change the target and source code VM version, use the -target flag for the JAsCo aspect, connector and traversal connector compilers. See tools documentation for more info. JAsCo supports Java 1.5 features like annotations and generics fully since from JAsCo 0.8. Notice that since 0.8.5M2, 1.5 is the default target VM, so there shouldn’t be a problem when using the latest version. 1.4 My aspects and connectors don't compileDo you have a JVM 1.5 installed as the default VM? JAsCo compiles per default to 1.5 Java code since 0.8.5M2, compilation will fail when the current VM is not 1.5. Check this by running javac -version on the command prompt. When you don’t want to use 1.5, use the -target flag for the JAsCo aspect, connector and traversal connector compilers to specify compatible 1.4 target code. 2. START-UP PROBLEMS2.1 I get a ClassNotFoundException: com/sun/jdi/BootstrapThis means the tools.jar is not in your classpath. The tools.jar is normally located in the lib directory of your jdk installation. Notice that the tools.jar is not availabe in the java runtime environment (JRE), you need to install the JDK! 2.2 JAsCo HotSwap 1 does not workOn 1.4, hotswapping the classloader might cause a weird system error (ClassCastException in some peer class). In Java 1.5, this problem seems to be disappeared. So, either use Java 1.5 or disable the classloader hotswapping by launching the VM with the following option: -Djasco.hotswap.replace.classloader=false. More information about this option can be found here. 2.3 My application does not start for other reasonsCheck the your virtual machine version, JAsCo requires 1.4 when preprocessing the beans, 1.4 for HotSwap 1 and 1.5 for HotSwap 2. We encourage to either employ the preprocessor or HotSwap 2, HotSwap 1 is discontinued. In general, it is a good idea to install the latest virtual machine if possible. 3. RUN-TIME PROBLEMS3.1 My aspects are not triggeredThis problem can have several reasons, you can try the following:
3.2 I want to optimize my aspectsFor maximum performance, make sure to follow the following guidelines:
3.3 I get a "bus error" in Mac OS XThis is a bug in the current JVM of MacOS that occurs when the javaagent argument is specified using a relative path. Specifying the jasco.jar javaagent using the absolute path solves this. 3.4 My application crashes - IncompatibleClassYou need Java 1.5 for running JAsCo! |
SiteMapRecent | Content by SSEL ©2002-2005 |
|