java.lang.RuntimeException: File /export/home/gtee/ramesh/swing.jar does not belong to /export/home/gtee/ramesh/jars at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:63) at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:83)

JDK Bug System | Ramesh Gangadhar | 3 months ago
  1. 0

    Please find the attachment Contains ChrisTest.java ISSUE: If “MainJar” is mentioned via RelativeFileSet then mainJar is not picked from BaseDirectory instead it is picked from current working directory Here is the snippet code of ChrisTest.java <SNIPPET> hashMap.put(BundleParams.PARAM_NAME, "SimpleExecutablesTest"); hashMap.put(BundleParams.PARAM_APPLICATION_CLASS, "java8.SwingHello"); hashMap.put(StandardBundlerParam.CLASSPATH.getID(), "swing.jar"); hashMap.put(StandardBundlerParam.SOURCE_DIR.getID(), "/export/home/gtee/ramesh/jars"); Path jarFolder = Paths.get("/export/home/gtee/ramesh/jars"); hashMap.put(StandardBundlerParam.MAIN_JAR.getID(), new RelativeFileSet(jarFolder.toFile(), new HashSet<>(Arrays.asList(new File( "swing.jar"))))); List<Path> list = new ArrayList<>(); list.add(jarFolder); try (DirectoryStream<Path> jarsStream = Files.newDirectoryStream(jarFolder, "*.jar")) { List<Path> jars = new ArrayList<>(); jarsStream.forEach(jars::add); hashMap.put(BundleParams.PARAM_APP_RESOURCES, new RelativeFileSet(jarFolder.toFile(), jars.stream() .map(Path::toFile).collect(Collectors.toSet()))); System.out.println("parameters are " + hashMap); System.out.println( "=========================Execution STARTS============================"); File returnValue = macAppBundler.execute(hashMap, new File("output")); System.out.println("Return value of execute is " + returnValue); System.out.println( "=========================Execution ENDS============================"); } </SNIPPET> stt-mac-42:ramesh gtee$ pwd /export/home/gtee/ramesh <======================== current working directory================== stt-mac-42:ramesh gtee$ ls antfiles appbundler_repo jdk9developerbuild moduleresource rameshoutdir apache-ant-1.9.7 appbundler_repo.zip modjars moduleresource.zip result apache-ant-1.9.7-bin.zip jars modsource outdir stt-mac-42:ramesh gtee$ java -cp /export/home/gtee/ramesh/moduleresource/readmodbin testapp.ChrisTest Mac Execution With Relative FileSet Exception in thread "main" java.lang.RuntimeException: File /export/home/gtee/ramesh/swing.jar does not belong to /export/home/gtee/ramesh/jars at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:63) at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:83) at testapp.ChrisTest.mac(ChrisTest.java:51) at testapp.ChrisTest.main(ChrisTest.java:28) stt-mac-42:ramesh gtee$ javac -d /export/home/gtee/ramesh/moduleresource/readmodbin /export/home/gtee/ramesh/moduleresource/readmodsrc/testapp/ChrisTest.java stt-mac-42:ramesh gtee$ java -cp /export/home/gtee/ramesh/moduleresource/readmodbin testapp.ChrisTest Mac Execution With Relative FileSet Exception in thread "main" java.lang.RuntimeException: File /export/home/gtee/ramesh/swing.jar does not belong to /export/home/gtee/ramesh/jars at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:63) at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:83) at testapp.ChrisTest.mac(ChrisTest.java:51) at testapp.ChrisTest.main(ChrisTest.java:28)

    JDK Bug System | 3 months ago | Ramesh Gangadhar
    java.lang.RuntimeException: File /export/home/gtee/ramesh/swing.jar does not belong to /export/home/gtee/ramesh/jars at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:63) at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:83)
  2. 0

    problem with arguments when running a jar using reflection

    Stack Overflow | 7 years ago | dm76
    java.lang.reflect.InvocationTargetException
  3. 0

    Run: ant data-export -Dmaven.test.skip=true -Ddir=export data-export Get: {code} Exception in thread "main" java.lang.RuntimeException: data-export to export failed java at org.jasig.portal.shell.PortalShellBuildHelperImpl.dataExport(PortalShellBuildHelperImpl.java:276) java at org.jasig.portal.shell.PortalShellBuildHelper$dataExport.call(Unknown Source) java at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) java at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) java at upshell_177289938.run(upshell_177289938.groovy:3) java at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257) java at groovy.lang.GroovyShell.run(GroovyShell.java:220) java at org.jasig.portal.shell.PortalShell.main(PortalShell.java:85) java Caused by: java.lang.RuntimeException: 41 permission-set entities failed to export. {code} The exception is {code} bad SQL grammar [ SELECT UPP.TARGET, UPP.PERMISSION_TYPE FROM UP_PERMISSION UPP WHERE UPP.ACTIVITY != 'SUBSCRIBE' AND UPP.OWNER = ? AND UPP.PRINCIPAL_TYPE = ? AND UPP.PRINCIPAL_KEY = ? AND UPP.ACTIVITY = ? ORDER BY UPP.TARGET, UPP.PERMISSION_TYPE ]; nested exception is org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 289 {code}

    Apereo Issues | 7 months ago | Gary Roybal
    java.lang.RuntimeException: data-export to export failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Run: ant data-export -Dmaven.test.skip=true -Ddir=export data-export Get: {code} Exception in thread "main" java.lang.RuntimeException: data-export to export failed java at org.jasig.portal.shell.PortalShellBuildHelperImpl.dataExport(PortalShellBuildHelperImpl.java:276) java at org.jasig.portal.shell.PortalShellBuildHelper$dataExport.call(Unknown Source) java at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:45) java at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:108) java at upshell_177289938.run(upshell_177289938.groovy:3) java at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:257) java at groovy.lang.GroovyShell.run(GroovyShell.java:220) java at org.jasig.portal.shell.PortalShell.main(PortalShell.java:85) java Caused by: java.lang.RuntimeException: 41 permission-set entities failed to export. {code} The exception is {code} bad SQL grammar [ SELECT UPP.TARGET, UPP.PERMISSION_TYPE FROM UP_PERMISSION UPP WHERE UPP.ACTIVITY != 'SUBSCRIBE' AND UPP.OWNER = ? AND UPP.PRINCIPAL_TYPE = ? AND UPP.PRINCIPAL_KEY = ? AND UPP.ACTIVITY = ? ORDER BY UPP.TARGET, UPP.PERMISSION_TYPE ]; nested exception is org.postgresql.util.PSQLException: ERROR: operator does not exist: integer = character varying Hint: No operator matches the given name and argument type(s). You might need to add explicit type casts. Position: 289 {code}

    Apereo Issues | 7 months ago | Gary Roybal
    java.lang.RuntimeException: data-export to export failed
  6. 0

    DSpace / Mailing Lists

    sourceforge.net | 1 year ago
    java.lang.RuntimeException: java.io.FileNotFoundException: /home/dspace/bibdigital/solr/statistics/data/index/_182g.fnm (No such file or directory) at org.apache.solr.core.SolrCore.getSearcher(SolrCore.java:1103) at org.apache.solr.core.SolrCore.<init>(SolrCore.java:587) at org.apache.solr.core.CoreContainer.create(CoreContainer.java:463) at org.apache.solr.core.CoreContainer.load(CoreContainer.java:316) at org.apache.solr.core.CoreContainer.load(CoreContainer.java:207) at org.apache.solr.core.CoreContainer$Initializer.initialize(CoreContainer.java:130) at org.apache.solr.servlet.SolrDispatchFilter.init(SolrDispatchFilter.java:94) at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:295) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:422) at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:115) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4072)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      File /export/home/gtee/ramesh/swing.jar does not belong to /export/home/gtee/ramesh/jars at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:63) at com.oracle.tools.packager.RelativeFileSet.<init>(jdk.packager/RelativeFileSet.java:83)

      at testapp.ChrisTest.mac()
    2. testapp
      ChrisTest.main
      1. testapp.ChrisTest.mac(ChrisTest.java:51)
      2. testapp.ChrisTest.main(ChrisTest.java:28)
      2 frames