Menu

#10 Unable to determine the source of this jar and hence cannot

open-fixed
5
2009-03-31
2008-04-07
OMax
No

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)

Discussion

  • Bindul Bhowmik

    Bindul Bhowmik - 2008-04-07

    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

     
  • Bindul Bhowmik

    Bindul Bhowmik - 2008-04-07
    • labels: --> maven-jsmooth-plugin
    • assigned_to: nobody --> bindul
    • milestone: --> maven-jsmooth-plugin-0.1.0
    • status: open --> open-accepted
     
  • Bindul Bhowmik

    Bindul Bhowmik - 2008-04-17
    • status: open-accepted --> closed-fixed
     
  • Nobody/Anonymous

    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] : com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo@14e40da
    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

     
  • OMax

    OMax - 2008-04-17
    • status: closed-fixed --> open-fixed
     
  • OMax

    OMax - 2008-04-17

    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.

     
  • Bindul Bhowmik

    Bindul Bhowmik - 2008-04-21

    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

     
  • Bindul Bhowmik

    Bindul Bhowmik - 2008-04-21
    • status: open-fixed --> open-accepted
     
  • OMax

    OMax - 2008-04-21

    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] : com.mindtree.techworks.insight.releng.mvn.jsmooth.JSmoothCompileMojo@9d267d
    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

     
  • Bindul Bhowmik

    Bindul Bhowmik - 2009-03-31

    Fixed on trunk
    Revision: 242
    (http://mindtreeinsight.svn.sourceforge.net/viewvc/mindtreeinsight?view=rev&revision=242).

    Changed strategy for copying skeleton directory to a more robust one - we don't depend on code source any more, and load from classpath- file list in a property file

    This will be available from 0.3.0 release of the maven-jsmooth-plugin. For more information on the release, see http://mindtreeinsight.wiki.sourceforge.net/RelPlan_maven-jsmooth-plugin_0.3.0

     
  • Bindul Bhowmik

    Bindul Bhowmik - 2009-03-31
    • status: open-accepted --> open-fixed
     
MongoDB Logo MongoDB