fbricon / jbosstools-norestart

Eclipse Public License 1.0
0 stars 0 forks source link

Error when launching Eclipse #3

Open jeffmaury opened 8 years ago

jeffmaury commented 8 years ago

Got the following error when enabled NoRestart on my existing JBT Eclipse Launch configuration:

Exception occurred executing command line. Cannot run program "C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.91-3\bin\javaw.exe" (in directory "C:\Windows\System32"): CreateProcess error=206, Nom de fichier ou extension trop long

fbricon commented 8 years ago

mmm I don't know if the problematic filename is the one from the fakereplace jar, embedded in the extension, or the index file we generate, under <workspace>/.metadata/.fakereplace/<launchconfigname>/fakereplace.index.

It's probably the former though, since the JVM can't start. What's the pathname of your eclipse installation? On win 10, you can apparently increase the filename limit: https://mspoweruser.com/ntfs-260-character-windows-10/

jeffmaury commented 8 years ago

Im ok to increase but JRebel, using the same mecanism, does not have this problem

jeffmaury commented 8 years ago

I also need to test because my conf already has another agent (leak detector) in the JVM parms

fbricon commented 8 years ago

I'd be curious to trace what JVM args the JRebel plugin generates

jeffmaury commented 8 years ago

Probably -javaagent but will provide

jeffmaury commented 8 years ago

Command line with JRebel activated:

"C:\Program Files\RedHat\java-1.8.0-openjdk-1.8.0.91-3\bin\javaw.exe" -Drebel.base=C:\Users\JeffMAURY\.jrebel -Drebel.env.ide.plugin.version=6.5.0.RELEASE -Drebel.env.ide.version=4.6.0 -Drebel.env.ide.product=Eclipse -Drebel.env.ide=Eclipse -Drebel.notification.url=http://localhost:17434 -Drebel.workspace.path=C:\work\workspace -Drebel.properties=C:\Users\JeffMAURY\.jrebel\jrebel.properties -agentpath:C:\Apps\jee-neon\eclipse\..\..\..\Users\JeffMAURY\.p2\pool\plugins\org.zeroturnaround.eclipse.embedder_6.5.0.RELEASE\jr6\jrebel\lib\jrebel64.dll -Declipse.pde.launch=true -Dfile.encoding=Cp1252 -classpath C:\work\workspace\.metadata\.plugins\org.eclipse.pde.core\.bundle_pool\plugins\org.eclipse.equinox.launcher_1.3.200.v20160318-1642.jar org.eclipse.equinox.launcher.Main -launcher C:\work\workspace\.metadata\.plugins\org.eclipse.pde.core\.bundle_pool\eclipse.exe -name Eclipse -showsplash 600 -product org.eclipse.platform.ide -data C:\Users\JeffMAURY/runtime-JBossTools -configuration "file:C:/work/workspace/.metadata/.plugins/org.eclipse.pde.core/JBossTools (1)/" -dev "file:C:/work/workspace/.metadata/.plugins/org.eclipse.pde.core/JBossTools (1)/dev.properties" -os win32 -ws win32 -arch x86_64 -nl fr_FR -consoleLog

fbricon commented 8 years ago

I added a preference page (No-Restart > FakeReplace) that'll let you point to a different fakereplace jar, whether you build it or download it yourself.

fbricon commented 8 years ago

Can you compare it to the command with fakereplace?

jeffmaury commented 8 years ago

Will try but as Eclipse can't start the process, don't know ho to get the command line. Maybe traces ?

jeffmaury commented 8 years ago

OK, go to debug the launch and here are the first 3 args of Runtime.exe:

0: C:\Program Files\Java\jdk1.8.0_74\bin\javaw.exe 1: "-Xbootclasspath/a:C:\Users\JeffMAURY.p2\pool\plugins\org.jboss.tools.norestart.fakereplace.core_0.0.1.201609291648\extras\fakereplace-dist-1.0.0.Alpha5.jar" 2:"-javaagent:C:\Users\JeffMAURY.p2\pool\plugins\org.jboss.tools.norestart.fakereplace.core_0.0.1.201609291648\extras\fakereplace-dist-1.0.0.Alpha5.jar=log=info,packages=com.redhat.openshift.tweets.spark;okhttp3;okhttp3.internal;okhttp3.internal.framed;okhttp3.internal.http;okhttp3.internal.io;okhttp3.internal.tls;okhttp3.internal.ws;okhttp3.ws;com.openshift.internal.restclient;com.openshift.internal.restclient.authorization;com.openshift.internal.restclient.capability;com.openshift.internal.restclient.capability.resources;com.openshift.internal.restclient.capability.server;com.openshift.internal.restclient.model;com.openshift.internal.restclient.model.authorization;com.openshift.internal.restclient.model.build;com.openshift.internal.restclient.model.deploy;com.openshift.internal.restclient.model.image;com.openshift.internal.restclient.model.kubeclient;com.openshift.internal.restclient.model.oauth;com.openshift.internal.restclient.model.project;com.openshift.internal.restclient.model.properties;com.openshift.internal.restclient.model.template;com.openshift.internal.restclient.model.user;com.openshift.internal.restclient.model.volume;com.openshift.internal.restclient.model.volume.property;com.openshift.internal.restclient.okhttp;com.openshift.internal.util;com.openshift.restclient;com.openshift.restclient.authorization;com.openshift.restclient.capability;com.openshift.restclient.capability.resources;com.openshift.restclient.capability.server;com.openshift.restclient.http;com.openshift.restclient.images;com.openshift.restclient.model;com.openshift.restclient.model.authorization;com.openshift.restclient.model.build;com.openshift.restclient.model.deploy;com.openshift.restclient.model.image;com.openshift.restclient.model.kubeclient;com.openshift.restclient.model.oauth;com.openshift.restclient.model.project;com.openshift.restclient.model.route;com.openshift.restclient.model.secret;com.openshift.restclient.model.serviceaccount;com.openshift.restclient.model.template;com.openshift.restclient.model.user;com.openshift.restclient.model.volume;com.openshift.restclient.model.volume.property;com.openshift.restclient.utils;com.openshift.internal.restclient;com.openshift.internal.restclient.authorization;com.openshift.internal.restclient.capability.resources;com.openshift.internal.restclient.capability.server;com.openshift.internal.restclient.model;com.openshift.internal.restclient.model.build;com.openshift.internal.restclient.model.kubeconfig;com.openshift.internal.restclient.model.properties;com.openshift.internal.restclient.model.template;com.openshift.internal.restclient.model.v1;com.openshift.internal.restclient.okhttp;com.openshift.internal.util;com.openshift.restclient;com.openshift.restclient.images;com.openshift.restclient.model;com.openshift.restclient.server;com.openshift.restclient.utils;org.jboss.ide.eclipse.archives.core;org.jboss.ide.eclipse.archives.core.asf;org.jboss.ide.eclipse.archives.core.build;org.jboss.ide.eclipse.archives.core.model;org.jboss.ide.eclipse.archives.core.model.internal;org.jboss.ide.eclipse.archives.core.model.internal.xb;org.jboss.ide.eclipse.archives.core.model.other.internal;org.jboss.ide.eclipse.archives.core.model.types;org.jboss.ide.eclipse.archives.core.project;org.jboss.ide.eclipse.archives.core.util;org.jboss.ide.eclipse.archives.core.util.internal;org.jboss.ide.eclipse.archives.core.xpl;org.jboss.ide.eclipse.archives.jdt.integration;org.jboss.ide.eclipse.archives.jdt.integration.model;org.jboss.ide.eclipse.archives.jdt.integration.ui;org.jboss.ide.eclipse.archives.test;org.jboss.ide.eclipse.archives.test.core.ant;org.jboss.ide.eclipse.archives.test.model;org.jboss.ide.eclipse.archives.test.projects;org.jboss.ide.eclipse.archives.test.ui;org.jboss.ide.eclipse.archives.test.util;org.jboss.ide.eclipse.archives.ui;org.jboss.ide.eclipse.archives.ui.actions;org.jboss.ide.eclipse.archives.ui.preferences;org.jboss.ide.eclipse.archives.ui.providers;org.jboss.ide.eclipse.archives.ui.util.composites;org.jboss.ide.eclipse.archives.ui.views;org.jboss.ide.eclipse.archives.ui.wizards;org.jboss.ide.eclipse.archives.ui.wizards.pages;org.jboss.ide.eclipse.archives.ui.test;org.jboss.ide.eclipse.archives.ui.test.preferences;org.jboss.ide.eclipse.archives.ui.test.views;org.jboss.ide.eclipse.archives.ui.test.wizards;org.jboss.ide.eclipse.archives.webtools;org.jboss.ide.eclipse.archives.webtools.filesets;org.jboss.ide.eclipse.archives.webtools.filesets.vcf;org.jboss.ide.eclipse.archives.webtools.modules;org.jboss.ide.eclipse.archives.webtools.ui;org.jboss.ide.eclipse.as.classpath.core;org.jboss.ide.eclipse.as.classpath.core.ejb3;org.jboss.ide.eclipse.as.classpath.core.internal;org.jboss.ide.eclipse.as.classpath.core.jee;org.jboss.ide.eclipse.as.classpath.core.runtime;org.jboss.ide.eclipse.as.classpath.core.runtime.cache.internal;org.jboss.ide.eclipse.as.classpath.core.runtime.internal;org.jboss.ide.eclipse.as.classpath.core.runtime.jbossmodules.internal;org.jboss.ide.eclipse.as.classpath.core.runtime.modules.manifest;org.jboss.ide.eclipse.as.classpath.core.runtime.path.internal;org.jboss.ide.eclipse.as.classpath.core.runtime.util.internal;org.jboss.ide.eclipse.as.classpath.core.xpl;org.jboss.ide.eclipse.as.classpath.ui;org.jboss.ide.eclipse.as.classpath.ui.containers.custom;org.jboss.ide.eclipse.as.classpath.ui.ejb3;org.jboss.ide.eclipse.as.classpath.ui.jee;org.jboss.ide.eclipse.as.core;org.jboss.ide.eclipse.as.core.extensions.descriptors;org.jboss.ide.eclipse.as.core.extensions.events;org.jboss.ide.eclipse.as.core.extensions.polling;org.jboss.ide.eclipse.as.core.modules;org.jboss.ide.eclipse.as.core.publishers;org.jboss.ide.eclipse.as.core.publishers.patterns;org.jboss.ide.eclipse.as.core.publishers.patterns.internal;org.jboss.ide.eclipse.as.core.resolvers;org.jboss.ide.eclipse.as.core.server.internal;org.jboss.ide.eclipse.as.core.server.internal.extendedproperties;org.jboss.ide.eclipse.as.core.server.internal.launch;org.jboss.ide.eclipse.as.core.server.internal.launch.configuration;org.jboss.ide.eclipse.as.core.server.internal.v7;org.jboss.ide.eclipse.as.core.server.launch;org.jboss.ide.eclipse.as.core.server.v7.management;org.jboss.ide.eclipse.as.core.server.xpl;org.jboss.ide.eclipse.as.core.util;org.jboss.tools.as.core.internal.modules;org.jboss.tools.as.core.server.controllable;org.jboss.tools.as.core.server.controllable.internal;org.jboss.tools.as.core.server.controllable.profile.internal;org.jboss.tools.as.core.server.controllable.subsystems.internal;org.jboss.tools.as.core.server.controllable.systems;org.jboss.tools.as.core.server.controllable.util;org.jboss.ide.eclipse.as.dmr;org.jboss.ide.eclipse.as.jmx.integration;org.jboss.ide.eclipse.as.jmx.integration.jvmmonitor;org.jboss.ide.eclipse.as.internal.management.as70x;org.jboss.ide.eclipse.as.internal.management.as71x;org.jboss.ide.eclipse.as.management.core;org.jboss.ide.eclipse.as.management.core.service;org.jboss.ide.eclipse.as.internal.management.wildfly8;org.jboss.ide.eclipse.as.internal.management.wildfly9;org.jboss.ide.eclipse.as.rse.core;org.jboss.ide.eclipse.as.rse.core.subsystems;org.jboss.ide.eclipse.as.rse.core.util;org.jboss.ide.eclipse.as.rse.core.xpl;org.jboss.ide.eclipse.as.rse.ui;org.jboss.ide.eclipse.as.ui;org.jboss.ide.eclipse.as.ui.actions;org.jboss.ide.eclipse.as.ui.console;org.jboss.ide.eclipse.as.ui.dialogs;org.jboss.ide.eclipse.as.ui.editor;org.jboss.ide.eclipse.as.ui.editor.internal;org.jboss.ide.eclipse.as.ui.editor.ports;org.jboss.ide.eclipse.as.ui.launch;org.jboss.ide.eclipse.as.ui.launch.internal;org.jboss.ide.eclipse.as.ui.marker;org.jboss.ide.eclipse.as.ui.preferences;org.jboss.ide.eclipse.as.ui.subsystems;org.jboss.ide.eclipse.as.ui.subsystems.internal;org.jboss.ide.eclipse.as.ui.views;org.jboss.ide.eclipse.as.ui.views.as7.management.content;org.jboss.ide.eclipse.as.ui.views.server.extensions;org.jboss.ide.eclipse.as.ui.wizards;org.jboss.ide.eclipse.as.ui.wizards.composite;org.jboss.ide.eclipse.as.ui.xpl;org.jboss.tools.as.wst.server.ui.xpl;org.jboss.ide.eclipse.as.ui.mbeans;org.jboss.ide.eclipse.as.ui.mbeans.editors;org.jboss.ide.eclipse.as.ui.mbeans.editors.proposals;org.jboss.ide.eclipse.as.ui.mbeans.editors.proposals.internal;org.jboss.ide.eclipse.as.ui.mbeans.packages;org.jboss.ide.eclipse.as.ui.mbeans.project;org.jboss.ide.eclipse.as.ui.mbeans.project.ui;org.jboss.ide.eclipse.as.ui.util;org.jboss.ide.eclipse.as.core.server;org.jboss.ide.eclipse.as.core.server.bean;org.jboss.ide.eclipse.as.core.server.jbossmodules;org.jboss.ide.eclipse.as.core.util;org.jboss.ide.eclipse.as.wtp.core;org.jboss.ide.eclipse.as.wtp.core.console;org.jboss.ide.eclipse.as.wtp.core.debug;org.jboss.ide.eclipse.as.wtp.core.launching;org.jboss.ide.eclipse.as.wtp.core.modules;org.jboss.ide.eclipse.as.wtp.core.modules.filter.patterns;org.jboss.ide.eclipse.as.wtp.core.modules.filter.patterns.internal;org.jboss.ide.eclipse.as.wtp.core.server.behavior;org.jboss.ide.eclipse.as.wtp.core.server.behavior.util;org.jboss.ide.eclipse.as.wtp.core.server.launch;org.jboss.ide.eclipse.as.wtp.core.server.publish;org.jboss.ide.eclipse.as.wtp.core.util;org.jboss.ide.eclipse.as.wtp.core.vcf;org.jboss.ide.eclipse.as.wtp.ui;org.jboss.ide.eclipse.as.wtp.ui.commands;org.jboss.ide.eclipse.as.wtp.ui.composites;org.jboss.ide.eclipse.as.wtp.ui.console;org.jboss.ide.eclipse.as.wtp.ui.editor;org.jboss.ide.eclipse.as.wtp.ui.profile;org.jboss.ide.eclipse.as.wtp.ui.prompt;org.jboss.ide.eclipse.as.wtp.ui.util;org.jboss.ide.eclipse.as.wtp.ui.view.server;org.jboss.ide.eclipse.as.wtp.ui.view.server.jmx;org.jboss.ide.eclipse.as.wtp.ui.wizard;org.jboss.ide.eclipse.as.wtp.ui.wizards.xpl.export;org.jboss.tools.archives.scanner;org.jboss.tools.archives.scanner.internal;org.jboss.tools.as.catalog;org.jboss.tools.as.catalog.internal;org.jboss.tools.as.runtimes.integration;org.jboss.tools.as.runtimes.integration.internal;org.jboss.tools.as.runtimes.integration.ui.composites;org.jboss.tools.as.runtimes.integration.ui.wizard;org.jboss.tools.as.runtimes.integration.util;org.jboss.to...

Turns to me that all packages from the workspace are listed with causes overflow