Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Compiling classes into the srcdir sounds like a bad idea - if that means what I think. what I mean is I first compile all java files into directory classes.which is the sirdir for Javaflow rewriting. after Javaflow ant task exectution, I can got rewritted class files and run my application at another directoryinclass. However, I still got exception above during rewritting. From Wayne 2011/6/14 Torsten Curdt tcu...@vafer.org: Hey Wayne, If mvn clean test works for you then this all about your build setup. Compiling classes into the srcdir sounds like a bad idea - if that means what I think. I'd suggest to have a separate input and output dir and then build up the correct classpath. But this really about how to use ant. So I suggest you check on the ant users list. cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- .. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Hey Wayne, Hi! Finally, I found a way to add dependencies to javaflow ant task. I am wondering Is there any limit about Javaflow. e.g it cannot rewrite class files which holds exception handling or dynamic class loading part. Not sure what you mean with dynamic class loading part but that does not seem to be your problem java.lang.ClassNotFoundException: org.jppf.node.screensaver.NodePanel Seems to me like your classpath still isn't OK. cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Torsten: I already add all the dependent jar files as you mentioned. However, the same error. I am wonder how to add the dependencies to customized ant task. still , i got this exception java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor. I am wonder if JavaFlow can rewriting class file including Exception and dynamic class loading? here is the xml file: project name='JPPF Application' basedir=. default=run !-- = -- !-- Property definitions -- !-- = -- property name=build.properties.file value=${basedir}/build.properties/ property file=${build.properties.file}/ property name=lib.dirvalue=${basedir}/lib/ property name=config.dir value=${basedir}/config/ property name=classes.dir value=${basedir}/classes/ property name=src.dir value=${basedir}/src/ !-- = -- !-- Classpath definitions -- !-- = -- path id=project.classpath pathelement location=${config.dir}/ pathelement location=${classes.dir}/ fileset dir=${lib.dir} includes=**/*.jar/ /path !-- = -- !--Clean -- !-- = -- target name=clean delete dir=${classes.dir} quiet=true/ delete dir=inclass quiet=true/ /target !-- = -- !--Init -- !-- = -- target name=init description=Initialize ressources mkdir dir=${classes.dir}/ mkdir dir=inclass/ /target !-- = -- !-- Compile -- !-- = -- target name=compile depends=clean, init javac srcdir= destdir=${classes.dir} debug=on deprecation=off optimize=on includes=**/*.java classpath refid=project.classpath/ compilerarg line=-Xlint:unchecked/ src path=${src.dir}/ /javac /target !-- = -- !-- instrument -- !-- = -- taskdef name=javaflow classname=org.apache.commons.javaflow.ant.AntRewriteTask classpath id = project.class.path fileset dir = lib include name = **/ant-1.7.1.jar/ include name = **/asm-3.2.jar/ include name = **/asm-analysis-3.2.jar/ include name = **/asm-commons-3.2.jar/ include name = **/asm-tree-3.2.jar/ include name = **/asm-util-3.2.jar/ include name = **/bcel-5.2.jar/ include name = **/commons-io-1.4.jar/ include name = **/commons-jci-core-1.0.jar/ include name = **/commons-logging-1.1.jar/ include name = **/junit-3.8.2.jar/ include name = **/junit-addons-1.4.jar/ include name = **/commons-javaflow-1.0-SNAPSHOT.jar/ /fileset /classpath /taskdef target name=javaflow depends=compile javaflow srcdir=classes Destdir=inclass include name=**/*.class / /javaflow /target !--
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
I am wonder how to add the dependencies to customized ant task. Wayne, I suggest you ask over at the ant user list then cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Torsten. here is my mvn package information: [INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.apache.commons:commons-javaflow:jar:1.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-idea-plugin is missing. @ org.apache.commons:commons-parent:15, C:\Documents and Settings\whwayne\.m2\repository\org\apache\commons\commons-parent\15\commons-parent-15.pom, line 329, column 15 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO] [INFO] [INFO] Building Commons Javaflow (Sandbox) 1.0-SNAPSHOT [INFO] Downloading: http://repo1.maven.org/maven2/org/apache/maven/plugins/maven-idea-plugin/maven-metadata.xml [WARNING] Could not transfer metadata org.apache.maven.plugins:maven-idea-plugin/maven-metadata.xml from/to central (http://repo1.maven.org/maven2): connection timed out [INFO] [INFO] BUILD FAILURE [INFO] [INFO] Total time: 44.547s [INFO] Finished at: Thu Jun 09 18:06:30 GMT+09:00 2011 [INFO] Final Memory: 2M/15M [INFO] [ERROR] Error resolving version for plugin 'org.apache.maven.plugins:maven-idea-plugin' from the repositories [local (C:\Documents and Settings\whwayne\.m2\repository), central (http://repo1.maven.org/maven2)]: Plugin not found in any plugin repository - [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginVersionResolutionException I am not familiar with maven,it seems I cannot download maven-idea-plugin. if I through proxy access the internet. Do I need to set my proxy? Thank you. From Wayne 2011/6/8 wayne whwa...@gmail.com: OK, I will try to learn mvn clean. Thank you for both. 2011/6/8 Torsten Curdt tcu...@vafer.org: include name = **/commons-javaflow-20060411.jar/ Good catch, Jörg. Wayne, do a mvn clean install to build the latest version. Otherwise we cannot help you. cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早稲田大学大学院 国際情報通科信研究科 中里研究室 博士課程 王歓(John Wayne) E-mail:wangh...@fuji.waseda.jp -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早稲田大学大学院 国際情報通科信研究科 中里研究室 博士課程 王歓(John Wayne) E-mail:wangh...@fuji.waseda.jp - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
I am not familiar with maven,it seems I cannot download maven-idea-plugin. if I through proxy access the internet. Do I need to set my proxy? It seems like... http://maven.apache.org/guides/mini/guide-proxies.html cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
I am not familiar with maven,it seems I cannot download maven-idea-plugin. if I through proxy =A0access the internet. Do I need to set my proxy? It seems like... http://maven.apache.org/guides/mini/guide-proxies.html cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Torsten and jorg: first, I use mvn clean. and then I use mvn package to get commons-javaflow-1.0-SNAPSHOT.jar. the pom.xml is from Javaflow SVN. I try to use it to rewrite my class files. still , i got this exception java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor. I am wonder if JavaFlow can rewriting class file including Exception and dynamic class loading? here is the error information: Buildfile: F:\jppfworkspace\application-template\build.xml clean: [delete] Deleting directory F:\jppfworkspace\application-template\classes init: [mkdir] Created dir: F:\jppfworkspace\application-template\classes compile: [javac] F:\jppfworkspace\application-template\build.xml:69: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 2 source files to F:\jppfworkspace\application-template\classes javaflow: BUILD FAILED F:\jppfworkspace\application-template\build.xml:89: java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor Total time: 5 seconds Here is ant build file: project name='JPPF Application' basedir=. default=run !-- = -- !-- Property definitions -- !-- = -- property name=build.properties.file value=${basedir}/build.properties/ property file=${build.properties.file}/ property name=lib.dirvalue=${basedir}/lib/ property name=config.dir value=${basedir}/config/ property name=classes.dir value=${basedir}/classes/ property name=src.dir value=${basedir}/src/ !-- = -- !-- Classpath definitions -- !-- = -- path id=project.classpath pathelement location=${config.dir}/ pathelement location=${classes.dir}/ fileset dir=${lib.dir} includes=**/*.jar/ /path !-- = -- !--Clean -- !-- = -- target name=clean delete dir=${classes.dir} quiet=true/ /target !-- = -- !--Init -- !-- = -- target name=init description=Initialize ressources mkdir dir=${classes.dir}/ /target !-- = -- !-- Compile -- !-- = -- target name=compile depends=clean, init javac srcdir= destdir=${classes.dir} debug=on deprecation=off optimize=on includes=**/*.java classpath refid=project.classpath/ compilerarg line=-Xlint:unchecked/ src path=${src.dir}/ /javac /target !-- = -- !-- instrument -- !-- = -- taskdef name=javaflow classname=org.apache.commons.javaflow.ant.AntRewriteTask classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-1.0-SNAPSHOT.jar/ /fileset /classpath /taskdef target name=javaflow depends=compile javaflow srcdir=classes Destdir=classes include name=**/*.class / /javaflow /target !-- = -- !-- Run the application -- !-- = -- target name=run description=run the application depends=javaflow java fork=yes classname=${main.class} classpathref=project.classpath jvmarg value=-Djppf.config=jppf.properties/ jvmarg
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Wayne, you also need to include the dependencies listed in the pom - not just javaflow itself. taskdef name=javaflow classname=org.apache.commons.javaflow.ant.AntRewriteTask classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-1.0-SNAPSHOT.jar/ /fileset /classpath cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Torsten and Jorg: Althourgh I look up some pages. I really do not know how to add dependencies for a customizable ant task. in my case, how to add dependencies to commons-javaflow-1.0-SNAPSHOT.jar for rewriting. Can you give me some tips or example? the dependencies did not included during jar package process? Thanks. From Wayne 2011/6/9 Torsten Curdt tcu...@vafer.org: Wayne, you also need to include the dependencies listed in the pom - not just javaflow itself. taskdef name=javaflow classname=org.apache.commons.javaflow.ant.AntRewriteTask classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-1.0-SNAPSHOT.jar/ /fileset /classpath cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早�R田大学大学院 国�H情�笸�科信研究科 中里研究室 博士�n程 王�Z(John Wayne) E-mail:wangh...@fuji.waseda.jp - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-1.0-SNAPSHOT.jar/ /fileset /classpath Your fileset only includes javaflow but you need to add the other jars, too cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com
[Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Torsten and Jorg: Althourgh I look up some pages. I really do not know how to add dependencies for a customizable ant task. in my case, how to add dependencies to commons-javaflow-1.0-SNAPSHOT.jar for rewriting. Can you give me some tips or example? the dependencies did not included during jar package process? Thanks. From Wayne 2011/6/9 Torsten Curdt tcu...@vafer.org: Wayne, you also need to include the dependencies listed in the pom - not just javaflow itself. taskdef name=javaflow classname=org.apache.commons.javaflow.ant.AntRewriteTask classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-1.0-SNAPSHOT.jar/ /fileset /classpath cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早�R田大学大学院 国�H情�笸�科信研究科 中里研究室 博士�n程 王�Z(John Wayne) E-mail:wangh...@fuji.waseda.jp -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早�R田大学大学院 国�H情�笸�科信研究科 中里研究室 博士�n程 王�Z(John Wayne) E-mail:wangh...@fuji.waseda.jp - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Fwd: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
-- 已转发邮件 -- 发件人: wayne whwa...@gmail.com 日期: 2011年6月9日 下午10:19 主题: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V 收件人: user@commons.apache.org Torsten and Jorg: Althourgh I look up some pages. I really do not know how to add dependencies for a customizable ant task. in my case, how to add dependencies to commons-javaflow-1.0-SNAPSHOT.jar for rewriting. Can you give me some tips or example? the dependencies did not included during jar package process? Thanks. From Wayne 2011/6/9 Torsten Curdt tcu...@vafer.org: Wayne, you also need to include the dependencies listed in the pom - not just javaflow itself. taskdef name=javaflow classname=org.apache.commons.javaflow.ant.AntRewriteTask classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-1.0-SNAPSHOT.jar/ /fileset /classpath cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早�R田大学大学院 国�H情�笸�科信研究科 中里研究室 博士�n程 王�Z(John Wayne) E-mail:wangh...@fuji.waseda.jp -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早�R田大学大学院 国�H情�笸�科信研究科 中里研究室 博士�n程 王�Z(John Wayne) E-mail:wangh...@fuji.waseda.jp -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早�R田大学大学院 国�H情�笸�科信研究科 中里研究室 博士�n程 王�Z(John Wayne) E-mail:wangh...@fuji.waseda.jp - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Jars usually don't include dependencies - they have dependencies. Unless you package them in a special way (see the maven shade plugin) So look at the pom. Copy all jars referenced in there into your you lib dir where you have the javaflow jar and then add those to your fileset classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-1.0-SNAPSHOT.jar/ Here! /fileset /classpath ...or add the maven shade plugin to your pom. cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Hi Wayne, wayne wrote: Jörg wrote: You have other ASM classes on the classpath or you're using some code that depends on a different version. even I delete all jar about asm on classpath You're never explicit in your explanations. What does this mean now? Again, what *is* on your classpath? , I still got same problem. With the detail level of your postings, nobody can really help you. I am wandering whether I need to use asm-3.2.jar to replace the asm part in the javaflow and package a new javeflow.jar again. I cannot recommends anything due to lack of info, sorry. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
I list my classpath info as follow: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/java/ classpathentry kind=src path=src/resources/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry combineaccessrules=false kind=src path=/JPPF/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node-src.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/log4j-1.2.15.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/slf4j-api-1.6.1.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/slf4j-log4j12-1.6.1.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1.jar/ classpathentry kind=output path=classes/ /classpath Torsten, what is mvn clean test by the way? From Wayne 2011/6/8 Jörg Schaible joerg.schai...@scalaris.com: Hi Wayne, wayne wrote: Jörg wrote: You have other ASM classes on the classpath or you're using some code that depends on a different version. even I delete all jar about asm on classpath You're never explicit in your explanations. What does this mean now? Again, what *is* on your classpath? , I still got same problem. With the detail level of your postings, nobody can really help you. I am wandering whether I need to use asm-3.2.jar to replace the asm part in the javaflow and package a new javeflow.jar again. I cannot recommends anything due to lack of info, sorry. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- .. - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Hi Wayne, wayne wrote: I list my classpath info as follow: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/java/ classpathentry kind=src path=src/resources/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry combineaccessrules=false kind=src path=/JPPF/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node-src.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/log4j-1.2.15.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/slf4j-api-1.6.1.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/slf4j-log4j12-1.6.1.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons- logging-1.1.1/commons-logging-1.1.1.jar/ classpathentry kind=output path=classes/ /classpath Just some general comments on the classpath: 1/ jppf-common-node-src.jar does not belong to the classpath at all 2/ either use slf4j or commons-logging, but not both at the same time BTW: Sorry, I missed your first posting of the classpath. Therefore was my last mail harsher than it should have been. However, I fail now to see the relation to Javaflow. What has this Eclipse project to do with the Ant built.xml where you try to use the Javaflow Ant task? The classpath of the Ant build is what is of real interest ... Torsten, what is mvn clean test by the way? He assumed that you build with Maven, but from your Eclipse classpath above, this is clearly not the case. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Jörg. Thank you for your comments there is Ant Build content including classpath definition: project name='JPPF-Node' default=run basedir=. !-- = -- !-- Property definitions -- !-- = -- property name=build.properties.file value=${basedir}/build.properties/ property file=${build.properties.file}/ property name=lib.dirvalue=${basedir}/lib/ property name=config.dir value=${basedir}/config/ property name=classes.dir value=${basedir}/classes/ property name=src.dir value=${basedir}/src/ !-- = -- !-- Classpath definitions -- !-- = -- path id=project.classpath pathelement location=${config.dir}/ pathelement location=${classes.dir}/ fileset dir=${lib.dir} includes=**/*.jar/ /path path id=run.classpath pathelement location=${config.dir}/ fileset dir=${lib.dir} includes=**/*.jar/ /path !-- = -- !--Clean -- !-- = -- target name=clean delete dir=${classes.dir} quiet=true/ delete dir=instrumentedclasses quiet=true/ /target !-- = -- !--Init -- !-- = -- target name=init description=Initialize ressources mkdir dir=${classes.dir}/ mkdir dir=instrumentedclasses/ /target !-- = -- !-- Compile -- !-- = -- target name=compile javac srcdir= destdir=classes debug=on deprecation=off optimize=on includes=**/*.java classpath refid=project.classpath/ compilerarg line=-Xlint:unchecked/ src path=src/ /javac copy todir=instrumentedclasses fileset dir =classes include name =org/jppf/comm/discovery/JPPFConnectionInformation.class/ /fileset /copy /target !-- = -- !-- instrument -- !-- = -- taskdef name=javaflow classname=org.apache.commons.javaflow.ant.AntRewriteTask classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-20060411.jar/ include name = **/bcel-5.2.jar/ /fileset /classpath /taskdef target name=javaflow depends=compile javaflow srcdir=classes dstdir=instrumentedclasses mode =ASM include name=**/*.class / /javaflow /target !-- = -- !--Build -- !-- = -- target name=build description=build the application depends=clean, init, compile,javaflow delete dir=${classes.dir} quiet=true/ mkdir dir=${classes.dir}/ copy todir =${classes.dir} fileset dir =instrumentedclasses /fileset /copy /target !-- = -- !-- Run the framework processes -- !--
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Torsten, what is mvn clean test by the way? http://maven.apache.org/ That's how you build javaflow ...and how you can run the tests. cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
I use the latest version of Javaflow and add asm-all.3.0.jar to project classpath. No org.objectweb.asm.ClassWriter.init(ZZ)V but another exception is thrown. Buildfile: F:\jppfworkspace\application-template\build.xml clean: [delete] Deleting directory F:\jppfworkspace\application-template\classes [delete] Deleting directory F:\jppfworkspace\application-template\instrumentedclasses init: [mkdir] Created dir: F:\jppfworkspace\application-template\classes [mkdir] Created dir: F:\jppfworkspace\application-template\instrumentedclasses compile: [javac] F:\jppfworkspace\application-template\build.xml:70: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds [javac] Compiling 2 source files to F:\jppfworkspace\application-template\classes javaflow: [javaflow] org.objectweb.asm.tree.analysis.AnalyzerException: Error at instruction 27: java.lang.ClassNotFoundException: org.jppf.application.template.TemplateApplicationRunner [javaflow] at org.objectweb.asm.tree.analysis.Analyzer.analyze(Unknown Source) [javaflow] at org.apache.commons.javaflow.bytecode.transformation.asm.ContinuationMethodAnalyzer$2.analyze(ContinuationMethodAnalyzer.java:128) [javaflow] at org.apache.commons.javaflow.bytecode.transformation.asm.ContinuationMethodAnalyzer.visitEnd(ContinuationMethodAnalyzer.java:139) [javaflow] at org.objectweb.asm.ClassReader.accept(Unknown Source) [javaflow] at org.objectweb.asm.ClassReader.accept(Unknown Source) [javaflow] at org.apache.commons.javaflow.bytecode.transformation.asm.AsmClassTransformer.transform(AsmClassTransformer.java:49) [javaflow] at org.apache.commons.javaflow.bytecode.transformation.asm.AsmClassTransformer.transform(AsmClassTransformer.java:41) [javaflow] at org.apache.commons.javaflow.utils.RewritingUtils.rewriteClassFile(RewritingUtils.java:60) [javaflow] at org.apache.commons.javaflow.ant.AntRewriteTask.execute(AntRewriteTask.java:140) [javaflow] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) [javaflow] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [javaflow] at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [javaflow] at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) [javaflow] at java.lang.reflect.Method.invoke(Unknown Source) [javaflow] at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) [javaflow] at org.apache.tools.ant.Task.perform(Task.java:348) [javaflow] at org.apache.tools.ant.Target.execute(Target.java:390) [javaflow] at org.apache.tools.ant.Target.performTasks(Target.java:411) [javaflow] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399) [javaflow] at org.apache.tools.ant.Project.executeTarget(Project.java:1368) [javaflow] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) [javaflow] at org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32) [javaflow] at org.apache.tools.ant.Project.executeTargets(Project.java:1251) [javaflow] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423) [javaflow] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137) [javaflow] Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: org.jppf.application.template.TemplateApplicationRunner [javaflow] at org.apache.commons.javaflow.bytecode.transformation.asm.ContinuationMethodAnalyzer$1.getClass(ContinuationMethodAnalyzer.java:113) [javaflow] at org.objectweb.asm.tree.analysis.SimpleVerifier.isAssignableFrom(Unknown Source) [javaflow] at org.objectweb.asm.tree.analysis.SimpleVerifier.merge(Unknown Source) [javaflow] at org.objectweb.asm.tree.analysis.Frame.merge(Unknown Source) [javaflow] at org.objectweb.asm.tree.analysis.Analyzer.merge(Unknown Source) [javaflow] ... 25 more BUILD FAILED F:\jppfworkspace\application-template\build.xml:90: java.lang.IllegalArgumentException: Array local[] is shorter than nLocal Total time: 5 seconds. From Wayne 2011/6/8 Torsten Curdt tcu...@vafer.org: Torsten, what is mvn clean test by the way? http://maven.apache.org/ That's how you build javaflow ...and how you can run the tests. cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Hi Wayne, wayne wrote: Jörg. Thank you for your comments there is Ant Build content including classpath definition: project name='JPPF-Node' default=run basedir=. [snip] !-- = -- !-- instrument -- !-- = -- taskdef name=javaflow classname=org.apache.commons.javaflow.ant.AntRewriteTask classpath id = project.class.path fileset dir = lib include name = **/commons-javaflow-20060411.jar/ include name = **/bcel-5.2.jar/ /fileset /classpath /taskdef [snip] When I look at your version of javaflow from 2006 and compare it with the list of dependencies (http://commons.apache.org/sandbox/javaflow/dependencies.html) published in 2008, then it is obvious that your javaflow version cannot use ASM 3.x or newer. I don't know which ASM version was used to build javaflow in 2006, but in 2008 it was still ASM 2.2.1. AFAICS ASM 2.x and ASM 3.x are not compatible. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
include name = **/commons-javaflow-20060411.jar/ Good catch, Jörg. Wayne, do a mvn clean install to build the latest version. Otherwise we cannot help you. cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
OK, I will try to learn mvn clean. Thank you for both. 2011/6/8 Torsten Curdt tcu...@vafer.org: include name = **/commons-javaflow-20060411.jar/ Good catch, Jörg. Wayne, do a mvn clean install to build the latest version. Otherwise we cannot help you. cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早稲田大学大学院 国際情報通科信研究科 中里研究室 博士課程 王歓(John Wayne) E-mail:wangh...@fuji.waseda.jp - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Hi, wayne wrote: Hi All: I use [javaflow] Ant task with ASM transformer but it still terminates with java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V Torsten mentioned the solution as follow: (http://mail-archives.apache.org/mod_mbox/commons- user/200608.mbox/%3c98e4f1cd0608240555j5fd1ead9ma44d2f77ba7e7...@mail.gmail.com%3E) For the task: I tried asm 2.2.3 and asm 3.0 RC1, but I always get this exception: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V I can't make any sense out of it. Looks like for some reason you have the wrong version of ASM in your classpath?! Typically ASM versions are not compatible between major releases. Even worse, some 3rd party libraries contain silently some of the ASM classes without shading them. Can you therefore list your complete classpath here? Torsten: Which version of ASM is used by Javaflow? [snip] - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Jörg: hi! I list the classpath table as follow: ?xml version=1.0 encoding=UTF-8? classpath classpathentry kind=src path=src/java/ classpathentry kind=src path=src/resources/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry combineaccessrules=false kind=src path=/JPPF/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/jppf-common-node-src.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/log4j-1.2.15.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/slf4j-api-1.6.1.jar/ classpathentry kind=lib path=F:/jppfrun/JPPF-2.4-node/lib/slf4j-log4j12-1.6.1.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1-javadoc.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-1.1.1-sources.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-adapters-1.1.1.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-api-1.1.1.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/commons-logging-1.1.1-bin/commons-logging-1.1.1/commons-logging-tests.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/bcel-5.2/bcel-5.2/bcel-5.2.jar/ classpathentry kind=lib path=C:/Documents and Settings/whwayne/Desktop/jar/asm-4.0_RC1.jar/ classpathentry kind=output path=classes/ /classpath I try to use the latest version of ASM-4.0_RC1.jar. If I use bcel library, I will meet org.apache.bcel.verifier.exc.AssertionViolatedException, else if I use ASM Transformer, java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter will be thrown. I really do not know how to do? Wayne 2011/6/7 Jörg Schaible joerg.schai...@scalaris.com: Hi, wayne wrote: Hi All: I use [javaflow] Ant task with ASM transformer but it still terminates with java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V Torsten mentioned the solution as follow: (http://mail-archives.apache.org/mod_mbox/commons- user/200608.mbox/%3c98e4f1cd0608240555j5fd1ead9ma44d2f77ba7e7...@mail.gmail.com%3E) For the task: I tried asm 2.2.3 and asm 3.0 RC1, but I always get this exception: java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V I can't make any sense out of it. Looks like for some reason you have the wrong version of ASM in your classpath?! Typically ASM versions are not compatible between major releases. Even worse, some 3rd party libraries contain silently some of the ASM classes without shading them. Can you therefore list your complete classpath here? Torsten: Which version of ASM is used by Javaflow? [snip] - - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Torsten: Which version of ASM is used by Javaflow? The pom depends on 3.2 and org.apache.commons.javaflow.AsmTestSuite passes for me. cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
I try to use the latest version of ASM-4.0_RC1.jar. Try using 3.2 cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Try using 3.2 I am sorry, same problem. java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V Wayne 2011/6/7 Torsten Curdt tcu...@vafer.org: I try to use the latest version of ASM-4.0_RC1.jar. Try using 3.2 cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
I look up the source code of AssertionViolatedException the reason is :Instances of this class should never be thrown. When such an instance is thrown, * this is due to an INTERNAL ERROR of BCEL's class file verifier about java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter, I do not know why. Wayne 2011/6/7 wayne whwa...@gmail.com: Try using 3.2 I am sorry, same problem. java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V Wayne 2011/6/7 Torsten Curdt tcu...@vafer.org: I try to use the latest version of ASM-4.0_RC1.jar. Try using 3.2 cheers, Torsten - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org -- .. Graduate School of Global Information and Telecommunication Studies Waseda University 1-6-1 Nishi Waseda, Shinjuku-ku, Tokyo169-8050, JAPAN. .. 早�R田大学大学院 国�H情�笸�科信研究科 中里研究室 博士�n程 王�Z(John Wayne) E-mail:wangh...@fuji.waseda.jp - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Try using 3.2 I am sorry, same problem. java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V Can you run the tests? mvn clean test - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
wayne wrote: I look up the source code of AssertionViolatedException the reason is :Instances of this class should never be thrown. When such an instance is thrown, * this is due to an INTERNAL ERROR of BCEL's class file verifier about java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter, I do not know why. You have other ASM classes on the classpath or you're using some code that depends on a different version. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
Jörg wrote: You have other ASM classes on the classpath or you're using some code that depends on a different version. even I delete all jar about asm on classpath, I still got same problem. I am wandering whether I need to use asm-3.2.jar to replace the asm part in the javaflow and package a new javeflow.jar again. From Wayne. 2011/6/7 Jörg Schaible joerg.schai...@scalaris.com: wayne wrote: I look up the source code of AssertionViolatedException the reason is :Instances of this class should never be thrown. When such an instance is thrown, * this is due to an INTERNAL ERROR of BCEL's class file verifier about java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter, I do not know why. You have other ASM classes on the classpath or you're using some code that depends on a different version. - Jörg - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org
Re: [Javaflow]java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(ZZ)V
even I delete all jar about asm on classpath, I still got same problem. I am wandering whether I need to use asm-3.2.jar to replace the asm part in the javaflow and package a new javeflow.jar again. Sorry, I cannot follow here. In order to help you please run mvn clean test and report back. cheers, Torsten -- http://www.yourdailygeekery.com http://www.torstencurdt.com - To unsubscribe, e-mail: user-unsubscr...@commons.apache.org For additional commands, e-mail: user-h...@commons.apache.org