[
https://issues.jboss.org/browse/JBIDE-24306?page=com.atlassian.jira.plugi...
]
Rob Stryker commented on JBIDE-24306:
-------------------------------------
I can't get this to work at all.
When I try to run as -> maven whatever, I get the following error:
{code}
ERROR] error reading
/home/rob/.m2/repository/org/springframework/spring-tx/4.3.3.RELEASE/spring-tx-4.3.3.RELEASE.jar;
invalid END header (bad central directory offset)
[ERROR]
/home/rob/apps/eclipse/workspaces/fusejbidetest/Fused444/src/main/java/org/mycompany/Application.java:[19,32]
package org.springframework.boot does not exist
[ERROR]
/home/rob/apps/eclipse/workspaces/fusejbidetest/Fused444/src/main/java/org/mycompany/Application.java:[32,9]
cannot find symbol
symbol: variable SpringApplication
location: class org.mycompany.Application
[INFO] 7 errors
[INFO] -------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.180 s
[INFO] Finished at: 2017-05-04T15:24:07-04:00
[INFO] Final Memory: 46M/650M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.maven.plugins:maven-compiler-plugin:3.6.0:compile (default-compile) on project
camel-ose-springboot-xml: Compilation failure: Compilation failure:
[ERROR] error reading
/home/rob/.m2/repository/org/springframework/boot/spring-boot/1.4.1.RELEASE/spring-boot-1.4.1.RELEASE.jar;
invalid END header (bad central directory offset)
[ERROR] error reading
/home/rob/.m2/repository/org/springframework/spring-tx/4.3.3.RELEASE/spring-tx-4.3.3.RELEASE.jar;
invalid END header (bad central directory offset)
[ERROR] error reading
/home/rob/.m2/repository/org/apache/camel/camel-core/2.18.1.redhat-000015/camel-core-2.18.1.redhat-000015.jar;
invalid LOC header (bad signature)
[ERROR] error reading
/home/rob/.m2/repository/org/springframework/boot/spring-boot/1.4.1.RELEASE/spring-boot-1.4.1.RELEASE.jar;
invalid END header (bad central directory offset)
[ERROR] error reading
/home/rob/.m2/repository/org/springframework/spring-tx/4.3.3.RELEASE/spring-tx-4.3.3.RELEASE.jar;
invalid END header (bad central directory offset)
[ERROR]
/home/rob/apps/eclipse/workspaces/fusejbidetest/Fused444/src/main/java/org/mycompany/Application.java:[19,32]
package org.springframework.boot does not exist
[ERROR]
/home/rob/apps/eclipse/workspaces/fusejbidetest/Fused444/src/main/java/org/mycompany/Application.java:[32,9]
cannot find symbol
[ERROR] symbol: variable SpringApplication
[ERROR] location: class org.mycompany.Application
[ERROR] -> [Help 1]
{code}
If I open the Application.java, i see following code:
{code}
/*
* Copyright 2016 Red Hat, Inc.
* <p>
* Red Hat licenses this file to you under the Apache License, version
* 2.0 (the "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
* <p>
*
http://www.apache.org/licenses/LICENSE-2.0
* <p>
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
*/
package org.mycompany;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ImportResource;
@SpringBootApplication
// load regular Spring XML file from the classpath that contains the Camel XML DSL
@ImportResource({"classpath:spring/camel-context.xml"})
public class Application {
/**
* A main method to start this application.
*/
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
{code}
And I see that the SpringApplication import cannot be found. The project seems to have no
classpath generated. I have no idea what's wrong with this.
Cannot connect to JMX through OpenShift Server adapter to a project
without route specified
-------------------------------------------------------------------------------------------
Key: JBIDE-24306
URL:
https://issues.jboss.org/browse/JBIDE-24306
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: openshift
Affects Versions: 4.4.4.AM3
Reporter: Aurélien Pupier
Assignee: Rob Stryker
Fix For: 4.4.4.Final
Attachments: image-2017-04-25-14-48-51-427.png, screenshot-1.png
!image-2017-04-25-14-48-51-427.png|thumbnail!
in log:
{noformat}
eclipse.buildId=10.4.0.AM3-v20170406-1058-B390
java.version=1.8.0_112
java.vendor=Oracle Corporation
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US
Framework arguments: -product com.jboss.devstudio.core.product
Command-line arguments: -data file:/C:/ws-devsuite-1.4.0-170425/ -os win32 -ws win32
-arch x86_64 -product com.jboss.devstudio.core.product
org.jboss.tools.jmx.core
Error
Tue Apr 25 14:47:14 CEST 2017
An error occurred while opening the connection.
java.io.IOException: org.jolokia.client.exception.J4pException: IO-Error while contacting
the server: org.apache.http.client.ClientProtocolException: URI does not specify a valid
host name:
https:/api/v1/namespaces/test/pods/https:camel-ose-springboot-xml-1-oblwo:8778/proxy/jolokia/read/java.lang:type=Memory/HeapMemoryUsage
at
org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.verifyServerReachable(JolokiaConnectionWrapper.java:324)
at
org.jboss.tools.openshift.core.server.OpenshiftJMXConnectionProvider$1.verifyServerReachable(OpenshiftJMXConnectionProvider.java:80)
at
org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.connect(JolokiaConnectionWrapper.java:113)
at org.jboss.tools.jmx.core.ConnectJob.run(ConnectJob.java:29)
at
org.jboss.tools.jmx.ui.internal.actions.DoubleClickAction$1.run(DoubleClickAction.java:71)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: org.jolokia.client.exception.J4pException: IO-Error while contacting the
server: org.apache.http.client.ClientProtocolException: URI does not specify a valid host
name:
https:/api/v1/namespaces/test/pods/https:camel-ose-springboot-xml-1-oblwo:8778/proxy/jolokia/read/java.lang:type=Memory/HeapMemoryUsage
at org.jolokia.client.J4pClient.mapException(J4pClient.java:333)
at org.jolokia.client.J4pClient.execute(J4pClient.java:198)
at org.jolokia.client.J4pClient.execute(J4pClient.java:168)
at org.jolokia.client.J4pClient.execute(J4pClient.java:117)
at
org.jboss.tools.jmx.jolokia.JolokiaConnectionWrapper.verifyServerReachable(JolokiaConnectionWrapper.java:311)
... 5 more
Caused by: org.apache.http.client.ClientProtocolException: URI does not specify a valid
host name:
https:/api/v1/namespaces/test/pods/https:camel-ose-springboot-xml-1-oblwo:8778/proxy/jolokia/read/java.lang:type=Memory/HeapMemoryUsage
at
org.apache.http.impl.client.CloseableHttpClient.determineTarget(CloseableHttpClient.java:94)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at
org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55)
at org.jolokia.client.J4pClient.execute(J4pClient.java:190)
... 8 more
{noformat}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)