Bugs item #1936496, was opened at 2008-04-07 10:23 Message generated for change (Comment added) made by omax3 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1020092&aid=1936496&group_id=212019
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: maven-jsmooth-plugin Group: maven-jsmooth-plugin-v0.1.0 Status: Open Resolution: Accepted Priority: 5 Private: No Submitted By: OMax (omax3) Assigned to: Bindul Bhowmik (bindul) Summary: Unable to determine the source of this jar and hence cannot Initial Comment: Executing maven plugin gives the following error, which doens't provide information what should be corrected. I just tried to use config files from: http://mindtreeinsight.sourceforge.net/releng/maven-jsmooth-plugin/insight-jsmooth-conf.html Please help. [INFO] Unable to determine the source of this jar and hence cannot extract skeletons [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.BuildFailureException: Unable to determine the source of this jar and hence cannot extract skeletons at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:560) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoFailureException: Unable to determine the source of this jar and hence cannot extract skeleton at com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo.writeSkeletons(JSmoothCompileMojo.java:287) at com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo.execute(JSmoothCompileMojo.java:185) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) ---------------------------------------------------------------------- >Comment By: OMax (omax3) Date: 2008-04-21 10:12 Message: Logged In: YES user_id=732283 Originator: YES OK, with 0.3-SNAPSHOT i get the following exception: (note you didn't release parent mvn-plugins-parent:1.1.0-SNAPSHOT which is referenced so I used the old one) [DEBUG] Configuring mojo 'com.mindtree.techworks.insight.releng:maven-jsmooth-plugin:0.3.0-SNAPSHOT:jsmoothcompile' --> [DEBUG] (s) dependencyBaseDir = lib [DEBUG] (s) dependencyScope = runtime [DEBUG] (s) iconLocation = src/assembly/resources/tool/icons/tool.ico [DEBUG] (s) includeDependencies = true [DEBUG] (s) jsmoothFile = src/assembly/insight.jsmooth [DEBUG] (f) project = MavenProject: com.company:tool:1.0-SNAPSHOT @ U:\home\omax\work\company\project\tool pom.xml [DEBUG] (s) setExeName = true [DEBUG] (s) setJarName = true [DEBUG] (s) skipJSmooth = false [DEBUG] -- end configuration -- [INFO] [jsmooth:jsmoothcompile {execution: default}] [DEBUG] Resolving path: src/assembly/insight.jsmooth [INFO] Using jsmooth file... U:\home\omax\work\company\project\tool\src\assembly\insight.jsmooth [DEBUG] Resolving path: src/assembly/resources/tool/icons/tool.ico [INFO] Setting Icon location to : U:\home\omax\work\company\project\tool\src\assembly\resources\tool\icons\tool.ico [INFO] Setting final output name to :tool-1.0-SNAPSHOT.exe [INFO] Setting jar name to :tool-1.0-SNAPSHOT.jar [DEBUG] Including dependencies with base scope: runtime [DEBUG] Including dependency: com.company:tool-common:jar:2.0.32-SNAPSHOT [DEBUG] Inluding dependency as: lib\tool-common-2.0.32-SNAPSHOT.jar [DEBUG] Including dependency: com.company:tool-util:jar:2.0.32-SNAPSHOT [DEBUG] Inluding dependency as: lib\tool-util-2.0.32-SNAPSHOT.jar [DEBUG] Including dependency: commons-lang:commons-lang:jar:2.3 [DEBUG] Inluding dependency as: lib\commons-lang-2.3.jar [DEBUG] Including dependency: commons-io:commons-io:jar:1.3.1 [DEBUG] Inluding dependency as: lib\commons-io-1.3.1.jar [DEBUG] Including dependency: at.jta:java-registry:jar:2.0 [DEBUG] Inluding dependency as: lib\java-registry-2.0.jar [DEBUG] Including dependency: org.slf4j:slf4j-api:jar:1.5.0 [DEBUG] Inluding dependency as: lib\slf4j-api-1.5.0.jar [DEBUG] Including dependency: org.slf4j:jcl104-over-slf4j:jar:1.5.0 [DEBUG] Inluding dependency as: lib\jcl104-over-slf4j-1.5.0.jar [DEBUG] Including dependency: org.slf4j:slf4j-log4j12:jar:1.5.0 [DEBUG] Inluding dependency as: lib\slf4j-log4j12-1.5.0.jar [DEBUG] Including dependency: log4j:log4j:jar:1.2.15 [DEBUG] Inluding dependency as: lib\log4j-1.2.15.jar [DEBUG] Including dependency: javax.mail:mail:jar:1.4 [DEBUG] Inluding dependency as: lib\mail-1.4.jar [DEBUG] Including dependency: javax.activation:activation:jar:1.1 [DEBUG] Inluding dependency as: lib\activation-1.1.jar [DEBUG] Including dependency: com.healthmarketscience.jackcess:jackcess:jar:1.1.13 [DEBUG] Inluding dependency as: lib\jackcess-1.1.13.jar [DEBUG] Including dependency: org.jdesktop:swing-layout:jar:1.0.3 [DEBUG] Inluding dependency as: lib\swing-layout-1.0.3.jar [DEBUG] Including dependency: com.jgoodies:looks:jar:2.1.2 [DEBUG] Inluding dependency as: lib\looks-2.1.2.jar [DEBUG] Including dependency: genjava:gj-core:jar:3.1 [DEBUG] Inluding dependency as: lib\gj-core-3.1.jar [DEBUG] Including dependency: edu.stanford.ejalbert:browser-launcher2:jar:1.3 [DEBUG] Inluding dependency as: lib\browser-launcher2-1.3.jar [DEBUG] Including dependency: net.sourceforge.javacsv:javacsv:jar:2.0 [DEBUG] Inluding dependency as: lib\javacsv-2.0.jar [DEBUG] Including dependency: jdom:jdom:jar:1.0 [DEBUG] Inluding dependency as: lib\jdom-1.0.jar [DEBUG] Including dependency: org.grlea.log.adapters:simple-log-slf4j:jar:2.0.1 [DEBUG] Inluding dependency as: lib\simple-log-slf4j-2.0.1.jar [DEBUG] Including dependency: org.grlea.log:simple-log:jar:2.0.1 [DEBUG] Inluding dependency as: lib\simple-log-2.0.1.jar [DEBUG] Determined code source location: file:/D:/Documents and Settings/omax/.m2/repository/com/mindtree/techworks/insight/releng/maven-jsmooth-p gin/0.3.0-SNAPSHOT/maven-jsmooth-plugin-0.3.0-SNAPSHOT.jar [DEBUG] Failed the URI method.. faling back to path [DEBUG] Attempting extraction fromD:\Documents and Settings\omax\.m2\repository\com\mindtree\techworks\insight\releng\maven-jsmooth-plugin\0.3.0-S PSHOT\maven-jsmooth-plugin-0.3.0-SNAPSHOT.jar [DEBUG] Copying file: skeletons/ [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/ [DEBUG] Copying file: skeletons/autodownload-wrapper/ [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/autodownload-wrapper/ [DEBUG] Copying file: skeletons/console-wrapper/ [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/console-wrapper/ [DEBUG] Copying file: skeletons/windowed-wrapper/ [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/windowed-wrapper/ [DEBUG] Copying file: skeletons/winservice-wrapper/ [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/winservice-wrapper/ [DEBUG] Copying file: skeletons/autodownload-wrapper/autodownload.exe [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/autodownload-wrapper/autod nload.exe [DEBUG] Copying file: skeletons/autodownload-wrapper/autodownload.skel [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/autodownload-wrapper/autod nload.skel [DEBUG] Copying file: skeletons/autodownload-wrapper/customdownload.skel [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/autodownload-wrapper/custo ownload.skel [DEBUG] Copying file: skeletons/console-wrapper/consolewrapper.exe [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/console-wrapper/consolewra er.exe [DEBUG] Copying file: skeletons/console-wrapper/description.skel [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/console-wrapper/descriptio skel [DEBUG] Copying file: skeletons/windowed-wrapper/description.skel [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/windowed-wrapper/descripti .skel [DEBUG] Copying file: skeletons/windowed-wrapper/jwrap.exe [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/windowed-wrapper/jwrap.exe [DEBUG] Copying file: skeletons/winservice-wrapper/description.skel [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/winservice-wrapper/descrip on.skel [DEBUG] Copying file: skeletons/winservice-wrapper/winservice.exe [DEBUG] Destination Path: U:\home\omax\work\company\project\tool\target\jsmooth-temp\skeletons/winservice-wrapper/winserv e.exe [DEBUG] Determined output file: U:\home\omax\work\company\project\tool\target\tool-1.0-SNAPSHOT.exe [ERROR] Error building the jsmooth wrapper java.lang.NullPointerException at java.util.Hashtable.get(Hashtable.java:334) at net.charabia.jsmoothgen.skeleton.SkeletonList.getDirectory(SkeletonList.java:107) at com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo.compileJSmooth(JSmoothCompileMojo.java:202) at com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo.execute(JSmoothCompileMojo.java:188) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] : [EMAIL PROTECTED] Error building the jsmooth wrapper [INFO] ------------------------------------------------------------------------ [DEBUG] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error building the jsmooth wrapper at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error building the jsmooth wrapper at com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo.compileJSmooth(JSmoothCompileMojo.java:242) at com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo.execute(JSmoothCompileMojo.java:188) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more ---------------------------------------------------------------------- Comment By: Bindul Bhowmik (bindul) Date: 2008-04-21 03:33 Message: Logged In: YES user_id=1127769 Originator: NO Hello Omax, This seems to be a new issue. Anyways, I noticed that we did not have enough debug statements to identify what is causing the problem. I have put out a snapshot release of the plug-in (0.3.0-SNAPSHOT) on the insight snapshot repository (http://mindtreeinsight.svn.sourceforge.net/svnroot/mindtreeinsight/maven-repo/trunk/snapshot/). Could you please give that a try and post the output. Please use the mvn -X option to get the debug statements. BTW - the plugin from Insight is only a maven plug-in to wrap java applications around jsmooth (http://jsmooth.sourceforge.net/) which provides the actual executable wrapper. So, single instance issues are unfortunately beyond the scope of this plugin. Appreciate your help with the plug-in. Regards, Bindul ---------------------------------------------------------------------- Comment By: OMax (omax3) Date: 2008-04-17 12:18 Message: Logged In: YES user_id=732283 Originator: YES Let me know if I need to open another bug if it's not connected to the original one. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2008-04-17 12:15 Message: Logged In: NO Unfortunately some other error still occurs. I wanted to try this plugin only to see if it really allows single instance, as current plugin I use (launch4j) doesn't do it for me although works for all other things pretty well. I already resolved single instance problem using Sockets workaround directly java, so can't invest much time to investigate issue with jsmooth plugin, but would be happy to test it. # mvn package -P executable -e Downloading: http://mindtreeinsight.svn.sourceforge.net/svnroot/mindtreeinsight/maven-repo/trunk/release/com/mindtree/techworks/insight/releng/maven -jsmooth-plugin/0.2.0/maven-jsmooth-plugin-0.2.0.jar 852K downloaded ... [INFO] [jsmooth:jsmoothcompile {execution: default}] [INFO] Using jsmooth file... ...\tool\src\assembly\insight.jsmooth [INFO] Setting Icon location to ...\tool\src\assembly\resources\de\phase6\icons\p6.ico [INFO] Setting final output name to :tool-1.0-SNAPSHOT.exe [INFO] Setting jar name to :tool-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] : [EMAIL PROTECTED] Error building the jsmooth wrapper [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error building the jsmooth wrapper at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: Error building the jsmooth wrapper at com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo.compileJSmooth(JSmoothCompileMojo.java:235) at com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo.execute(JSmoothCompileMojo.java:188) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558) ... 16 more ---------------------------------------------------------------------- Comment By: Bindul Bhowmik (bindul) Date: 2008-04-17 11:32 Message: Logged In: YES user_id=1127769 Originator: NO Omax, This is indeed a defect, thanks for identifying it. The defect in in the way we convert URL to file object. See http://news.java-virtual-machine.net/news/25-april-2007-kohsuke-kawaguchi-how-to-convert-javaneturl-to-javaiofile.html. The defect has been fixed, and a new release 0.2.0 is now available. Please test and let us know if this is still an issue. Regards, Bindul ---------------------------------------------------------------------- Comment By: Bindul Bhowmik (bindul) Date: 2008-04-07 18:21 Message: Logged In: YES user_id=1127769 Originator: NO Hello, Please execute your build with the mvn -X option and post (atleast the relevant) output from the debug to help us identify the problem. Bindul ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1020092&aid=1936496&group_id=212019 ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ mindtreeinsight-devel mailing list mindtreeinsight-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mindtreeinsight-devel