[
https://issues.jboss.org/browse/FORGE-531?page=com.atlassian.jira.plugin....
]
Thomas Frühbeck commented on FORGE-531:
---------------------------------------
Lincoln,
"sun.jdk" made me curious: are we bying in _Sun_ JDK now?
After discovering the well hidden IBM JDK and stumbling over various issues extracting the
JRE I tried to run Forge with it, here find the results:
Sun/Open-JDK:
thomas@storage:/raid/home/thomas/NetBeansProjects> which java
/usr/java/latest/bin/java
thomas@storage:/raid/home/thomas/NetBeansProjects>
/work/java/tmp/forge-distribution-1.0.3-SNAPSHOT/bin/forge
Listening for transport dt_socket at address: 8888
_____
| ___|__ _ __ __ _ ___
| |_ / _ \| `__/ _` |/ _ \ \\
| _| (_) | | | (_| | __/ //
|_| \___/|_| \__, |\___|
|___/
[no project] NetBeansProjects $ cd myidaware
[myidaware] myidaware $
So that's fine.
Now let's see IBM-JRE:
thomas@storage:/raid/home/thomas/NetBeansProjects> export
JAVA_HOME=/home/thomas/tmp/ibm/jre
thomas@storage:/raid/home/thomas/NetBeansProjects> export PATH=$JAVA_HOME/bin:$PATH
thomas@storage:/raid/home/thomas/NetBeansProjects> which java
/home/thomas/tmp/ibm/jre/bin/java
thomas@storage:/raid/home/thomas/NetBeansProjects>
/work/java/tmp/forge-distribution-1.0.3-SNAPSHOT/bin/forge
Listening for transport dt_socket at address: 8888
_____
| ___|__ _ __ __ _ ___
| |_ / _ \| `__/ _` |/ _ \ \\
| _| (_) | | | (_| | __/ //
|_| \___/|_| \__, |\___|
|___/
[no project] NetBeansProjects $ cd myidaware
***ERROR*** [cd] Could not create Maven project building request
[no project] NetBeansProjects $ set VERBOSE true
[no project] NetBeansProjects $ cd myidaware
***ERROR*** [cd] no such resource: myidaware
org.jboss.forge.shell.exceptions.CommandExecutionException: no such resource: myidaware
at org.jboss.forge.shell.command.Execution.perform(Execution.java:153)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at
org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at
org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at
org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at
org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at
org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at
org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at
org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:139)
at java.lang.Thread.run(Thread.java:769)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at org.jboss.forge.shell.command.Execution.perform(Execution.java:149)
... 31 more
Caused by: java.lang.RuntimeException: no such resource: myidaware
at
org.jboss.forge.shell.plugins.builtin.ChangeDirectoryPlugin.run(ChangeDirectoryPlugin.java:68)
... 36 more
Now Forge is totally broken!
[no project] NetBeansProjects $ new-project --named withibmjdk
? [topLevelPackage=The top-level java package for the project [e.g:
"com.example.project"] (of type java.lang.String)]: at.tfr.test
? Use [/raid/home/thomas/NetBeansProjects/myidaware/withibmjdk] as project directory?
[Y/n]
Wrote /raid/home/thomas/NetBeansProjects/myidaware/withibmjdk
Wrote /raid/home/thomas/NetBeansProjects/myidaware/withibmjdk/pom.xml
Wrote /raid/home/thomas/NetBeansProjects/myidaware/withibmjdk/src/main/java
Wrote /raid/home/thomas/NetBeansProjects/myidaware/withibmjdk/src/test/java
Wrote /raid/home/thomas/NetBeansProjects/myidaware/withibmjdk/src/main/resources
Wrote /raid/home/thomas/NetBeansProjects/myidaware/withibmjdk/src/test/resources
***ERROR*** [new-project] Could not create Maven project building request
org.jboss.forge.shell.exceptions.CommandExecutionException: Could not create Maven project
building request
at org.jboss.forge.shell.command.Execution.perform(Execution.java:153)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:125)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:63)
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:829)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:852)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:642)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
Annoying warning "The encoding 'UTF-8' is not supported
by the Java runtime."
-----------------------------------------------------------------------------
Key: FORGE-531
URL:
https://issues.jboss.org/browse/FORGE-531
Project: Forge
Issue Type: Bug
Affects Versions: 1.0.2.Final
Reporter: George Gastaldi
Assignee: Lincoln Baxter III
Fix For: 1.0.3.Final
When creating a new project or picking up inside JBoss Tools (Or the console), the
following output is shown on the console:
{code}
[no project] workspace $ pick-up D:\git\myproject
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
Warning: The encoding 'UTF-8' is not supported by the Java runtime.
{code}
The plugins perform well, however, this output should never happen.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira