Details
-
Type: extRequest
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:None
-
Sender Email:
-
HD-Chapter:IoT
-
HD-Enabler:Cepheus
Description
i fiware user
i tried to run this command "mvn spring-boot:run"on cepheus-cep
and i got this error
"Failed to execute goal
org.springframework.boot:spring-boot-maven-plugin:1.2.3.RELEASE:run
(default-cli) on project cepheus-cep: An exception occured while running.
null: InvocationTargetException: Tomcat connector in failed state -"
what should i do to solve this problem
best regrds
ahmed
[Created via e-mail received from: Ahmad Emad El-Deen <ahmedemad031@gmail.com>]
Activity
The issue has been emailed:
- Time sent: 23/Dec/16 12:59 PM
- To: ahmedemad031@gmail.com
- with subject: *(
HELP-8032) fiware cepheus problem *
Hi,
You are not providing a complete stack trace... but it seems you have an error in Tomcat that looks like you are just trying to use an already used port.
You can ask tomcat to use a custom port using "--server.port=8181".
Hope this helps.
Regards,
Comment by ahmedemad031@gmail.com :
i changed tomcat port to 8181 and i still have same problem
On Fri, Dec 23, 2016 at 2:00 PM, Help-Desk <jira-help-desk@jira.fiware.org>
wrote:
>
>
Comment by ahmedemad031@gmail.com :
any idea?
On Fri, Dec 23, 2016 at 9:39 AM, Ahmad Emad El-Deen <ahmedemad031@gmail.com>
wrote:
> i changed tomcat port to 8181 and i still have same problem
>
> On Fri, Dec 23, 2016 at 2:00 PM, Help-Desk <jira-help-desk@jira.fiware.org
> > wrote:
>
>>
>>
>
The issue has been emailed:
- Time sent: 02/Jan/17 9:57 AM
- To: ahmedemad031@gmail.com
- with subject: *(
HELP-8032) fiware cepheus problem *
Hello Ahmed,
Please provide your configuration environment (OS, version of JDK/JRE) and a complete log so we can help you track down the problem.
Regards,
Comment by ahmedemad031@gmail.com :
what you main with complete log?
On Mon, Jan 2, 2017 at 12:58 AM, Help-Desk <jira-help-desk@jira.fiware.org>
wrote:
>
>
The issue has been emailed:
- Time sent: 02/Jan/17 11:44 AM
- To: ahmedemad031@gmail.com
- with subject: *(
HELP-8032) fiware cepheus problem *
When you run the command "mvn spring-boot:run", some logs will show up in your terminal. Please provide this complete log and your configuration environment (OS, version of JDK/JRE).
Comment by ahmedemad031@gmail.com :
OS Ubuntu
and this all informtion related to java
Property settings:
awt.toolkit = sun.awt.X11.XToolkit
file.encoding = ANSI_X3.4-1968
file.encoding.pkg = sun.io
file.separator = /
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = .
java.class.version = 52.0
java.endorsed.dirs = /usr/lib/jvm/java-8-oracle/jre/lib/endorsed
java.ext.dirs = /usr/lib/jvm/java-8-oracle/jre/lib/ext
/usr/java/packages/lib/ext
java.home = /usr/lib/jvm/java-8-oracle/jre
java.io.tmpdir = /tmp
java.library.path = /usr/java/packages/lib/amd64
/usr/lib64
/lib64
/lib
/usr/lib
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.8.0_111-b14
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.8
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.8.0_111
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) 64-Bit Server VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.8
java.vm.vendor = Oracle Corporation
java.vm.version = 25.111-b14
line.separator = \n
os.arch = amd64
os.name = Linux
os.version = 3.13.0-105-generic
path.separator = :
sun.arch.data.model = 64
sun.boot.class.path = /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar
/usr/lib/jvm/java-8-oracle/jre/lib/rt.jar
/usr/lib/jvm/java-8-oracle/jre/lib/sunrsasign.jar
/usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar
/usr/lib/jvm/java-8-oracle/jre/lib/jce.jar
/usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar
/usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar
/usr/lib/jvm/java-8-oracle/jre/classes
sun.boot.library.path = /usr/lib/jvm/java-8-oracle/jre/lib/amd64
sun.cpu.endian = little
sun.cpu.isalist =
sun.io.unicode.encoding = UnicodeLittle
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = ANSI_X3.4-1968
sun.management.compiler = HotSpot 64-Bit Tiered Compilers
sun.os.patch.level = unknown
user.country = US
user.dir = /home/ubuntu
user.home = /home/ubuntu
user.language = en
user.name = ubuntu
user.timezone =
.....
logs
when i run "mvn spring-boot:run" i got
ubuntu@cepheus:~/fiware-cepheus/cepheus-cep$ mvn spring-boot:run
[INFO] Scanning for projects...
[INFO]
[INFO]
------------------------------------------------------------------------
[INFO] Building cepheus-cep 0.1.9-SNAPSHOT
[INFO]
------------------------------------------------------------------------
[INFO]
[INFO] >>> spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) >
test-compile @ cepheus-cep >>>
[INFO]
[INFO] — maven-enforcer-plugin:1.4.1:enforce
(enforce-dependency-convergence) @ cepheus-cep —
[INFO]
[INFO] — git-commit-id-plugin:2.1.11:revision (default) @ cepheus-cep —
[INFO]
[INFO] — jacoco-maven-plugin:0.7.5.201505241946:prepare-agent
(prepare-agent) @ cepheus-cep —
[INFO] argLine set to
-javaagent:/home/ubuntu/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.jar=destfile=/home/ubuntu/fiware-cepheus/cepheus-cep/target/jacoco.exec
[INFO]
[INFO] — maven-resources-plugin:2.6:resources (default-resources) @
cepheus-cep —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 4 resources
[INFO]
[INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @
cepheus-cep —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] — maven-resources-plugin:2.6:testResources (default-testResources)
@ cepheus-cep —
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] — maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
cepheus-cep —
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] <<< spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) <
test-compile @ cepheus-cep <<<
[INFO]
[INFO] — spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) @
cepheus-cep —
2017-01-02 10:50:43.195 INFO 3291 — [lication.main()]
com.orange.cepheus.cep.Application : Starting Application with PID
3291 (/home/ubuntu/fiware-cepheus/cepheus-cep/target/classes started by
ubuntu in /home/ubuntu/fiware-cepheus/cepheus-cep)
2017-01-02 10:52:16.733 INFO 3291 — [lication.main()]
c.o.c.cep.persistence.JsonPersistence : Load configuration from
/tmp/cep-default-.json
2017-01-02 10:52:16.857 INFO 3291 — [lication.main()]
c.o.cepheus.cep.EsperEventProcessor : Apply configuration
2017-01-02 10:52:16.857 INFO 3291 — [lication.main()]
c.o.cepheus.cep.EsperEventProcessor : Add new event type:
EventType{id='S.*', type='TempSensor', isPattern=true,
attributes=[Attribute{name='temp', type='double',
metadata=[Metadata
jsonpath='null'}]}
2017-01-02 10:52:16.875 INFO 3291 — [lication.main()]
c.o.cepheus.cep.EsperEventProcessor : Add new event type:
EventType{id='OUT1', type='TempSensorAvg', isPattern=false,
attributes=[Attribute{name='avgTemp', type='double',
metadata=[Metadata{name='unit', type='string', jsonpath='null'}
],
jsonpath='null'}]}
2017-01-02 10:52:16.877 INFO 3291 — [lication.main()]
c.o.cepheus.cep.EsperEventProcessor : Add new statement: insert into
TempSensorAvg select "OUT1" as id, avg(temp) as avgTemp, temp_unit as
avgTemp_unit from TempSensor.win:time(2 seconds) where TempSensor.id="S1"
2017-01-02 10:52:17.532 INFO 3291 — [taskScheduler-1]
c.o.cepheus.cep.SubscriptionManager : Launch of the periodic
subscription task at 2017-01-02T10:52:17.495Z
2017-01-02 10:52:17.871 WARN 3291 — [taskScheduler-1]
c.o.cepheus.cep.SubscriptionManager : Error during subscription for
http://iotAgent
java.net.UnknownHostException: iotAgent: Name or service not known
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
at
java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
at java.net.InetAddress.getAllByName(InetAddress.java:1192)
at java.net.InetAddress.getAllByName(InetAddress.java:1126)
at
org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)
at
org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalAddressResolver.resolveRemoteAddress(PoolingNHttpClientConnectionManager.java:608)
at
org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager$InternalAddressResolver.resolveRemoteAddress(PoolingNHttpClientConnectionManager.java:579)
at
org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequest(AbstractNIOConnPool.java:426)
at
org.apache.http.nio.pool.AbstractNIOConnPool.lease(AbstractNIOConnPool.java:275)
at
org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionManager.requestConnection(PoolingNHttpClientConnectionManager.java:265)
at
org.apache.http.impl.nio.client.AbstractClientExchangeHandler.requestConnection(AbstractClientExchangeHandler.java:358)
at
org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.start(DefaultClientExchangeHandlerImpl.java:125)
at
org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(InternalHttpAsyncClient.java:141)
at
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:74)
at
org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(CloseableHttpAsyncClient.java:107)
at
org.springframework.http.client.HttpComponentsAsyncClientHttpRequest.executeInternal(HttpComponentsAsyncClientHttpRequest.java:93)
at
org.springframework.http.client.AbstractBufferingAsyncClientHttpRequest.executeInternal(AbstractBufferingAsyncClientHttpRequest.java:49)
at
org.springframework.http.client.AbstractAsyncClientHttpRequest.executeAsync(AbstractAsyncClientHttpRequest.java:54)
at
org.springframework.web.client.AsyncRestTemplate.doExecute(AsyncRestTemplate.java:537)
at
org.springframework.web.client.AsyncRestTemplate.execute(AsyncRestTemplate.java:497)
at
org.springframework.web.client.AsyncRestTemplate.exchange(AsyncRestTemplate.java:438)
at com.orange.ngsi.client.NgsiClient.request(NgsiClient.java:192)
at com.orange.ngsi.client.NgsiClient.request(NgsiClient.java:180)
at
com.orange.ngsi.client.NgsiClient.subscribeContext(NgsiClient.java:79)
at
com.orange.cepheus.cep.SubscriptionManager.subscribeProvider(SubscriptionManager.java:245)
at
com.orange.cepheus.cep.SubscriptionManager.periodicSubscriptionTask(SubscriptionManager.java:230)
at
org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
2017-01-02 10:52:18.797 ERROR 3291 — [lication.main()]
o.a.coyote.http11.Http11NioProtocol : Failed to start end point
associated with ProtocolHandler ["http-nio-8080"]
java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:343)
at
org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:739)
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:472)
at
org.apache.coyote.http11.Http11NioProtocol.start(Http11NioProtocol.java:81)
at
org.apache.catalina.connector.Connector.startInternal(Connector.java:986)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at
org.apache.catalina.core.StandardService.addConnector(StandardService.java:237)
at
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:186)
at
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:149)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)
at com.orange.cepheus.cep.Application.main(Application.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)
at java.lang.Thread.run(Thread.java:745)
2017-01-02 10:52:18.798 ERROR 3291 — [lication.main()]
o.apache.catalina.core.StandardService : Failed to start connector
[Connector[HTTP/1.1-8080]]
org.apache.catalina.LifecycleException: Failed to start component
[Connector[HTTP/1.1-8080]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at
org.apache.catalina.core.StandardService.addConnector(StandardService.java:237)
at
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(TomcatEmbeddedServletContainer.java:186)
at
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:149)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)
at com.orange.cepheus.cep.Application.main(Application.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)
at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.catalina.LifecycleException: service.getName():
"Tomcat"; Protocol handler start failed
at
org.apache.catalina.connector.Connector.startInternal(Connector.java:993)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 17 common frames omitted
Caused by: java.net.BindException: Address already in use
at sun.nio.ch.Net.bind0(Native Method)
at sun.nio.ch.Net.bind(Net.java:433)
at sun.nio.ch.Net.bind(Net.java:425)
at
sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:343)
at
org.apache.tomcat.util.net.AbstractEndpoint.start(AbstractEndpoint.java:739)
at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:472)
at
org.apache.coyote.http11.Http11NioProtocol.start(Http11NioProtocol.java:81)
at
org.apache.catalina.connector.Connector.startInternal(Connector.java:986)
... 18 common frames omitted
2017-01-02 10:52:18.829 ERROR 3291 — [lication.main()]
o.s.boot.SpringApplication : Application startup failed
java.lang.IllegalStateException: Tomcat connector in failed state
at
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:157)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)
at com.orange.cepheus.cep.Application.main(Application.java:31)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)
at java.lang.Thread.run(Thread.java:745)
2017-01-02 10:52:18.839 INFO 3291 — [lication.main()]
c.o.cepheus.cep.SubscriptionManager : Shutting down
SubscriptionManager (cleanup subscriptions)
[WARNING]
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at
org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.IllegalStateException: Tomcat connector in failed state
at
org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:157)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:141)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:483)
at
org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:118)
at
org.springframework.boot.SpringApplication.refresh(SpringApplication.java:686)
at
org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
at
org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:139)
at com.orange.cepheus.cep.Application.main(Application.java:31)
... 6 more
[INFO]
------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 01:40 min
[INFO] Finished at: 2017-01-02T10:52:18+00:00
[INFO] Final Memory: 46M/401M
[INFO]
------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.springframework.boot:spring-boot-maven-plugin:1.2.3.RELEASE:run
(default-cli) on project cepheus-cep: An exception occured while running.
null: InvocationTargetException: Tomcat connector in failed state -> [Help
1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions,
please read the following articles:
[ERROR] [Help 1]
http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
ubuntu@cepheus:~/fiware-cepheus/cepheus-cep$
On Mon, Jan 2, 2017 at 12:45 PM, Help-Desk <jira-help-desk@jira.fiware.org>
wrote:
>
>
The issue has been emailed:
- Time sent: 02/Jan/17 12:23 PM
- To: ahmedemad031@gmail.com
- with subject: *(
HELP-8032) fiware cepheus problem *
The logs clearly show the error: trying to start the service with a port already used.
Please rerun the command using a free port and provide the log again.
Comment by ahmedemad031@gmail.com :
iam sorry but i dont know how run the command using a free port
which service i need to change its port
if you mean changing Tomcat port i changed it from 8080 to 8181
On Mon, Jan 2, 2017 at 1:24 PM, Help-Desk <jira-help-desk@jira.fiware.org>
wrote:
> The logs clearly show the error: trying to start the service with a port
> already used.
>
> Please rerun the command using a free port and provide the log again.
>
> ------------------------------------------------------------
> -------------------
> Christophe Azemar created HELP-8032:
> ---------------------------------------
>
> Summary: fiware cepheus problem
> Key: HELP-8032
> URL: https://jira.fiware.org/browse/HELP-8032
> Project: Help-Desk
> Issue Type: extRequest
> Components: FIWARE-TECH-HELP
> Reporter: FW External User
> Assignee: Christophe Azemar
>
>
> i fiware user
> i tried to run this command "mvn spring-boot:run"on cepheus-cep
> and i got this error
>
> "Failed to execute goal
> org.springframework.boot:spring-boot-maven-plugin:1.2.3.RELEASE:run
> (default-cli) on project cepheus-cep: An exception occured while running.
> null: InvocationTargetException: Tomcat connector in failed state -"
>
> what should i do to solve this problem
>
> best regrds
> ahmed
>
> [Created via e-mail received from: Ahmad Emad El-Deen <
> ahmedemad031@gmail.com>]
>
> ------------------------------------------------------------
> -------------------
> Comments:
>
> FW External User - 22/Dec/16 5:36 PM
>
> Comment by ahmedemad031@gmail.com :
> any help ?
>
> On Thu, Dec 22, 2016 at 12:15 AM, Ahmad Emad El-Deen <
> ahmedemad031@gmail.com
> > wrote:
>
> > i fiware user
> > i tried to run this command "mvn spring-boot:run"on cepheus-cep
> > and i got this error
> >
> > "Failed to execute goal org.springframework.boot:
> > spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) on project
> > cepheus-cep: An exception occured while running. null:
> > InvocationTargetException: Tomcat connector in failed state -"
> >
> > what should i do to solve this problem
> >
> > best regrds
> > ahmed
> >
>
> ------------------
> Christophe Azemar - 23/Dec/16 12:59 PM
>
> The issue has been emailed:
> - Time sent: 23/Dec/16 12:59 PM
> - To: ahmedemad031@gmail.com
> - with subject: *(HELP-8032) fiware cepheus problem *
>
>
> ----
> Hi,
>
> You are not providing a complete stack trace... but it seems you have an
> error in Tomcat that looks like you are just trying to use an already used
> port.
> You can ask tomcat to use a custom port using "--server.port=8181".
> Hope this helps.
>
> Regards,
> ------------------
> FW External User - 23/Dec/16 6:43 PM
>
> Comment by ahmedemad031@gmail.com :
>
> i changed tomcat port to 8181 and i still have same problem
>
> On Fri, Dec 23, 2016 at 2:00 PM, Help-Desk <jira-help-desk@jira.fiware.org
> >
> wrote:
>
> >
> >
>
>
> ------------------
> FW External User - 25/Dec/16 10:22 AM
>
> Comment by ahmedemad031@gmail.com :
>
> any idea?
>
> On Fri, Dec 23, 2016 at 9:39 AM, Ahmad Emad El-Deen <
> ahmedemad031@gmail.com>
> wrote:
>
> > i changed tomcat port to 8181 and i still have same problem
> >
> > On Fri, Dec 23, 2016 at 2:00 PM, Help-Desk <jira-help-desk@jira.fiware.
> org
> > > wrote:
> >
> >>
> >>
> >
>
>
> ------------------
> Christophe Azemar - Today 9:57 AM
>
> The issue has been emailed:
> - Time sent: 02/Jan/17 9:57 AM
> - To: ahmedemad031@gmail.com
> - with subject: *(HELP-8032) fiware cepheus problem *
>
>
> ----
> Hello Ahmed,
>
> Please provide your configuration environment (OS, version of JDK/JRE) and
> a complete log so we can help you track down the problem.
>
> Regards,
> ------------------
> FW External User - Today 11:39 AM
>
> Comment by ahmedemad031@gmail.com :
>
> what you main with complete log?
>
> On Mon, Jan 2, 2017 at 12:58 AM, Help-Desk <jira-help-desk@jira.fiware.org
> >
> wrote:
>
> >
> >
>
>
> ------------------
> Christophe Azemar - Today 11:44 AM
>
> The issue has been emailed:
> - Time sent: 02/Jan/17 11:44 AM
> - To: ahmedemad031@gmail.com
> - with subject: *(HELP-8032) fiware cepheus problem *
>
>
> ----
> When you run the command "mvn spring-boot:run", some logs will show up in
> your terminal. Please provide this complete log and your configuration
> environment (OS, version of JDK/JRE).
> ------------------
> FW External User - Today 12:04 PM
>
> Comment by ahmedemad031@gmail.com :
>
> OS Ubuntu
> and this all informtion related to java
> Property settings:
> awt.toolkit = sun.awt.X11.XToolkit
> file.encoding = ANSI_X3.4-1968
> file.encoding.pkg = sun.io
> file.separator = /
> java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
> java.awt.printerjob = sun.print.PSPrinterJob
> java.class.path = .
> java.class.version = 52.0
> java.endorsed.dirs = /usr/lib/jvm/java-8-oracle/jre/lib/endorsed
> java.ext.dirs = /usr/lib/jvm/java-8-oracle/jre/lib/ext
> /usr/java/packages/lib/ext
> java.home = /usr/lib/jvm/java-8-oracle/jre
> java.io.tmpdir = /tmp
> java.library.path = /usr/java/packages/lib/amd64
> /usr/lib64
> /lib64
> /lib
> /usr/lib
> java.runtime.name = Java(TM) SE Runtime Environment
> java.runtime.version = 1.8.0_111-b14
> java.specification.name = Java Platform API Specification
> java.specification.vendor = Oracle Corporation
> java.specification.version = 1.8
> java.vendor = Oracle Corporation
> java.vendor.url = http://java.oracle.com/
> java.vendor.url.bug = http://bugreport.sun.com/bugreport/
> java.version = 1.8.0_111
> java.vm.info = mixed mode
> java.vm.name = Java HotSpot(TM) 64-Bit Server VM
> java.vm.specification.name = Java Virtual Machine Specification
> java.vm.specification.vendor = Oracle Corporation
> java.vm.specification.version = 1.8
> java.vm.vendor = Oracle Corporation
> java.vm.version = 25.111-b14
> line.separator = \n
> os.arch = amd64
> os.name = Linux
> os.version = 3.13.0-105-generic
> path.separator = :
> sun.arch.data.model = 64
> sun.boot.class.path = /usr/lib/jvm/java-8-oracle/jre/lib/resources.jar
> /usr/lib/jvm/java-8-oracle/jre/lib/rt.jar
> /usr/lib/jvm/java-8-oracle/jre/lib/sunrsasign.jar
> /usr/lib/jvm/java-8-oracle/jre/lib/jsse.jar
> /usr/lib/jvm/java-8-oracle/jre/lib/jce.jar
> /usr/lib/jvm/java-8-oracle/jre/lib/charsets.jar
> /usr/lib/jvm/java-8-oracle/jre/lib/jfr.jar
> /usr/lib/jvm/java-8-oracle/jre/classes
> sun.boot.library.path = /usr/lib/jvm/java-8-oracle/jre/lib/amd64
> sun.cpu.endian = little
> sun.cpu.isalist =
> sun.io.unicode.encoding = UnicodeLittle
> sun.java.launcher = SUN_STANDARD
> sun.jnu.encoding = ANSI_X3.4-1968
> sun.management.compiler = HotSpot 64-Bit Tiered Compilers
> sun.os.patch.level = unknown
> user.country = US
> user.dir = /home/ubuntu
> user.home = /home/ubuntu
> user.language = en
> user.name = ubuntu
> user.timezone =
> .....
> logs
> when i run "mvn spring-boot:run" i got
>
> ubuntu@cepheus:~/fiware-cepheus/cepheus-cep$ mvn spring-boot:run
> [INFO] Scanning for projects...
> [INFO]
>
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Building cepheus-cep 0.1.9-SNAPSHOT
> [INFO]
> ------------------------------------------------------------------------
> [INFO]
> [INFO] >>> spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) >
> test-compile @ cepheus-cep >>>
> [INFO]
> [INFO] — maven-enforcer-plugin:1.4.1:enforce
> (enforce-dependency-convergence) @ cepheus-cep —
> [INFO]
> [INFO] — git-commit-id-plugin:2.1.11:revision (default) @ cepheus-cep
> —
> [INFO]
> [INFO] — jacoco-maven-plugin:0.7.5.201505241946:prepare-agent
> (prepare-agent) @ cepheus-cep —
> [INFO] argLine set to
> -javaagent:/home/ubuntu/.m2/repository/org/jacoco/org.jacoco.agent/0.7.5.
> 201505241946/org.jacoco.agent-0.7.5.201505241946-runtime.
> jar=destfile=/home/ubuntu/fiware-cepheus/cepheus-cep/target/jacoco.exec
> [INFO]
> [INFO] — maven-resources-plugin:2.6:resources (default-resources) @
> cepheus-cep —
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 4 resources
> [INFO]
> [INFO] — maven-compiler-plugin:2.5.1:compile (default-compile) @
> cepheus-cep —
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] — maven-resources-plugin:2.6:testResources
> (default-testResources)
> @ cepheus-cep —
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 2 resources
> [INFO]
> [INFO] — maven-compiler-plugin:2.5.1:testCompile (default-testCompile) @
> cepheus-cep —
> [INFO] Nothing to compile - all classes are up to date
> [INFO]
> [INFO] <<< spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) <
> test-compile @ cepheus-cep <<<
> [INFO]
> [INFO] — spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) @
> cepheus-cep —
> 2017-01-02 10:50:43.195 INFO 3291 — [lication.main()]
> com.orange.cepheus.cep.Application : Starting Application with PID
> 3291 (/home/ubuntu/fiware-cepheus/cepheus-cep/target/classes started by
> ubuntu in /home/ubuntu/fiware-cepheus/cepheus-cep)
> 2017-01-02 10:52:16.733 INFO 3291 — [lication.main()]
> c.o.c.cep.persistence.JsonPersistence : Load configuration from
> /tmp/cep-default-.json
> 2017-01-02 10:52:16.857 INFO 3291 — [lication.main()]
> c.o.cepheus.cep.EsperEventProcessor : Apply configuration
> 2017-01-02 10:52:16.857 INFO 3291 — [lication.main()]
> c.o.cepheus.cep.EsperEventProcessor : Add new event type:
> EventType{id='S.*', type='TempSensor', isPattern=true,
> attributes=[Attribute{name='temp', type='double',
> metadata=[Metadata
> jsonpath='null'}]}
> 2017-01-02 10:52:16.875 INFO 3291 — [lication.main()]
> c.o.cepheus.cep.EsperEventProcessor : Add new event type:
> EventType{id='OUT1', type='TempSensorAvg', isPattern=false,
> attributes=[Attribute{name='avgTemp', type='double',
> metadata=[Metadata{name='unit', type='string', jsonpath='null'}
],
> jsonpath='null'}]}
> 2017-01-02 10:52:16.877 INFO 3291 — [lication.main()]
> c.o.cepheus.cep.EsperEventProcessor : Add new statement: insert into
> TempSensorAvg select "OUT1" as id, avg(temp) as avgTemp, temp_unit as
> avgTemp_unit from TempSensor.win:time(2 seconds) where TempSensor.id="S1"
> 2017-01-02 10:52:17.532 INFO 3291 — [taskScheduler-1]
> c.o.cepheus.cep.SubscriptionManager : Launch of the periodic
> subscription task at 2017-01-02T10:52:17.495Z
> 2017-01-02 10:52:17.871 WARN 3291 — [taskScheduler-1]
> c.o.cepheus.cep.SubscriptionManager : Error during subscription for
> http://iotAgent
>
> java.net.UnknownHostException: iotAgent: Name or service not known
> at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
> at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
> at
> java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
> at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
> at java.net.InetAddress.getAllByName(InetAddress.java:1192)
> at java.net.InetAddress.getAllByName(InetAddress.java:1126)
> at
> org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(
> SystemDefaultDnsResolver.java:45)
> at
> org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionMa
> nager$InternalAddressResolver.resolveRemoteAddress(
> PoolingNHttpClientConnectionManager.java:608)
> at
> org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionMa
> nager$InternalAddressResolver.resolveRemoteAddress(
> PoolingNHttpClientConnectionManager.java:579)
> at
> org.apache.http.nio.pool.AbstractNIOConnPool.processPendingRequest(
> AbstractNIOConnPool.java:426)
> at
> org.apache.http.nio.pool.AbstractNIOConnPool.lease(
> AbstractNIOConnPool.java:275)
> at
> org.apache.http.impl.nio.conn.PoolingNHttpClientConnectionMa
> nager.requestConnection(PoolingNHttpClientConnectionManager.java:265)
> at
> org.apache.http.impl.nio.client.AbstractClientExchangeHandler.
> requestConnection(AbstractClientExchangeHandler.java:358)
> at
> org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.start(
> DefaultClientExchangeHandlerImpl.java:125)
> at
> org.apache.http.impl.nio.client.InternalHttpAsyncClient.execute(
> InternalHttpAsyncClient.java:141)
> at
> org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(
> CloseableHttpAsyncClient.java:74)
> at
> org.apache.http.impl.nio.client.CloseableHttpAsyncClient.execute(
> CloseableHttpAsyncClient.java:107)
> at
> org.springframework.http.client.HttpComponentsAsyncClientHttpR
> equest.executeInternal(HttpComponentsAsyncClientHttpRequest.java:93)
> at
> org.springframework.http.client.AbstractBufferingAsyncClientHt
> tpRequest.executeInternal(AbstractBufferingAsyncClientHttpRequest.java:49)
> at
> org.springframework.http.client.AbstractAsyncClientHttpRequest
> .executeAsync(AbstractAsyncClientHttpRequest.java:54)
> at
> org.springframework.web.client.AsyncRestTemplate.
> doExecute(AsyncRestTemplate.java:537)
> at
> org.springframework.web.client.AsyncRestTemplate.
> execute(AsyncRestTemplate.java:497)
> at
> org.springframework.web.client.AsyncRestTemplate.
> exchange(AsyncRestTemplate.java:438)
> at com.orange.ngsi.client.NgsiClient.request(NgsiClient.java:192)
> at com.orange.ngsi.client.NgsiClient.request(NgsiClient.java:180)
> at
> com.orange.ngsi.client.NgsiClient.subscribeContext(NgsiClient.java:79)
> at
> com.orange.cepheus.cep.SubscriptionManager.subscribeProvider(
> SubscriptionManager.java:245)
> at
> com.orange.cepheus.cep.SubscriptionManager.periodicSubscriptionTask(
> SubscriptionManager.java:230)
> at
> org.springframework.scheduling.support.DelegatingErrorHandlingRunnabl
> e.run(DelegatingErrorHandlingRunnable.java:54)
> at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
> at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$
> ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
> at
> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(
> ScheduledThreadPoolExecutor.java:294)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
>
> 2017-01-02 10:52:18.797 ERROR 3291 — [lication.main()]
> o.a.coyote.http11.Http11NioProtocol : Failed to start end point
> associated with ProtocolHandler ["http-nio-8080"]
>
> java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:433)
> at sun.nio.ch.Net.bind(Net.java:425)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:343)
> at
> org.apache.tomcat.util.net.AbstractEndpoint.start(
> AbstractEndpoint.java:739)
> at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:472)
> at
> org.apache.coyote.http11.Http11NioProtocol.start(
> Http11NioProtocol.java:81)
> at
> org.apache.catalina.connector.Connector.startInternal(Connector.java:986)
> at org.apache.catalina.util.LifecycleBase.start(
> LifecycleBase.java:150)
> at
> org.apache.catalina.core.StandardService.addConnector(
> StandardService.java:237)
> at
> org.springframework.boot.context.embedded.tomcat.
> TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(
> TomcatEmbeddedServletContainer.java:186)
> at
> org.springframework.boot.context.embedded.tomcat.
> TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer
> .java:149)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> finishRefresh(EmbeddedWebApplicationContext.java:141)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:483)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> refresh(EmbeddedWebApplicationContext.java:118)
> at
> org.springframework.boot.SpringApplication.refresh(
> SpringApplication.java:686)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
> at
> org.springframework.boot.builder.SpringApplicationBuilder.run(
> SpringApplicationBuilder.java:139)
> at com.orange.cepheus.cep.Application.main(Application.java:31)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)
> at java.lang.Thread.run(Thread.java:745)
>
> 2017-01-02 10:52:18.798 ERROR 3291 — [lication.main()]
> o.apache.catalina.core.StandardService : Failed to start connector
> [Connector[HTTP/1.1-8080]]
>
> org.apache.catalina.LifecycleException: Failed to start component
> [Connector[HTTP/1.1-8080]]
> at org.apache.catalina.util.LifecycleBase.start(
> LifecycleBase.java:154)
> at
> org.apache.catalina.core.StandardService.addConnector(
> StandardService.java:237)
> at
> org.springframework.boot.context.embedded.tomcat.
> TomcatEmbeddedServletContainer.addPreviouslyRemovedConnectors(
> TomcatEmbeddedServletContainer.java:186)
> at
> org.springframework.boot.context.embedded.tomcat.
> TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer
> .java:149)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> finishRefresh(EmbeddedWebApplicationContext.java:141)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:483)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> refresh(EmbeddedWebApplicationContext.java:118)
> at
> org.springframework.boot.SpringApplication.refresh(
> SpringApplication.java:686)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
> at
> org.springframework.boot.builder.SpringApplicationBuilder.run(
> SpringApplicationBuilder.java:139)
> at com.orange.cepheus.cep.Application.main(Application.java:31)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.catalina.LifecycleException: service.getName():
> "Tomcat"; Protocol handler start failed
> at
> org.apache.catalina.connector.Connector.startInternal(Connector.java:993)
> at org.apache.catalina.util.LifecycleBase.start(
> LifecycleBase.java:150)
> ... 17 common frames omitted
> Caused by: java.net.BindException: Address already in use
> at sun.nio.ch.Net.bind0(Native Method)
> at sun.nio.ch.Net.bind(Net.java:433)
> at sun.nio.ch.Net.bind(Net.java:425)
> at
> sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
> at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
> at org.apache.tomcat.util.net.NioEndpoint.bind(NioEndpoint.java:343)
> at
> org.apache.tomcat.util.net.AbstractEndpoint.start(
> AbstractEndpoint.java:739)
> at org.apache.coyote.AbstractProtocol.start(AbstractProtocol.java:472)
> at
> org.apache.coyote.http11.Http11NioProtocol.start(
> Http11NioProtocol.java:81)
> at
> org.apache.catalina.connector.Connector.startInternal(Connector.java:986)
> ... 18 common frames omitted
>
> 2017-01-02 10:52:18.829 ERROR 3291 — [lication.main()]
> o.s.boot.SpringApplication : Application startup failed
>
> java.lang.IllegalStateException: Tomcat connector in failed state
> at
> org.springframework.boot.context.embedded.tomcat.
> TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer
> .java:157)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> finishRefresh(EmbeddedWebApplicationContext.java:141)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:483)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> refresh(EmbeddedWebApplicationContext.java:118)
> at
> org.springframework.boot.SpringApplication.refresh(
> SpringApplication.java:686)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
> at
> org.springframework.boot.builder.SpringApplicationBuilder.run(
> SpringApplicationBuilder.java:139)
> at com.orange.cepheus.cep.Application.main(Application.java:31)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)
> at java.lang.Thread.run(Thread.java:745)
>
> 2017-01-02 10:52:18.839 INFO 3291 — [lication.main()]
> c.o.cepheus.cep.SubscriptionManager : Shutting down
> SubscriptionManager (cleanup subscriptions)
> [WARNING]
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
> 62)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(
> DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:498)
> at
> org.springframework.boot.maven.RunMojo$LaunchRunner.run(RunMojo.java:418)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.IllegalStateException: Tomcat connector in failed
> state
> at
> org.springframework.boot.context.embedded.tomcat.
> TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer
> .java:157)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:288)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> finishRefresh(EmbeddedWebApplicationContext.java:141)
> at
> org.springframework.context.support.AbstractApplicationContext.refresh(
> AbstractApplicationContext.java:483)
> at
> org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.
> refresh(EmbeddedWebApplicationContext.java:118)
> at
> org.springframework.boot.SpringApplication.refresh(
> SpringApplication.java:686)
> at
> org.springframework.boot.SpringApplication.run(SpringApplication.java:320)
> at
> org.springframework.boot.builder.SpringApplicationBuilder.run(
> SpringApplicationBuilder.java:139)
> at com.orange.cepheus.cep.Application.main(Application.java:31)
> ... 6 more
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 01:40 min
> [INFO] Finished at: 2017-01-02T10:52:18+00:00
> [INFO] Final Memory: 46M/401M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.springframework.boot:spring-boot-maven-plugin:1.2.3.RELEASE:run
> (default-cli) on project cepheus-cep: An exception occured while running.
> null: InvocationTargetException: Tomcat connector in failed state -> [Help
> 1]
> [ERROR]
> [ERROR] To see the full stack trace of the errors, re-run Maven with the -e
> switch.
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> ubuntu@cepheus:~/fiware-cepheus/cepheus-cep$
>
>
> On Mon, Jan 2, 2017 at 12:45 PM, Help-Desk <jira-help-desk@jira.fiware.org
> >
> wrote:
>
> >
> >
>
>
> ------------------
>
> –
>
> This email was generated by the JIRA Email This Issue plugin (
> https://marketplace.atlassian.com/plugins/com.
> metainf.jira.plugin.emailissue) from www.meta-inf.hu (
> http://www.meta-inf.hu).
>
The issue has been emailed:
- Time sent: 02/Jan/17 12:49 PM
- To: ahmedemad031@gmail.com
- with subject: *(
HELP-8032) fiware cepheus problem *
You are trying to run the application from source using maven spring-boot:run instead of running the application once build (using java -jar).
The "--server.port=8181" option is intended to the application not maven and does only work when the application is started directly using java -jar not using maven spring-boot:run.
To provide the application with the flag when running from maven, please use this command:
mvn spring-boot:run Drun.arguments="-server.port=8181"
You may try different ports until you find a free port.
Please provide the complete log if this does still not work for you.
Another simpler solution would be to stop the service currently using the port 8080 in your Ubuntu system.
You may also ensure no other instance of the CEP application is already running (and occupying the 8080 port) by simply killing all other java applications running on the system using "killall -9 java".
Comment by ahmedemad031@gmail.com :
thank you it works now
thank you very much
best regards
ahmed
On Mon, Jan 2, 2017 at 1:50 PM, Help-Desk <jira-help-desk@jira.fiware.org>
wrote:
>
>
Comment by ahmedemad031@gmail.com :
when i put this command "killall -9 java " the first problem solved but no
i try to connect to my instace VM by ssh command i got this error ssh:
connect to host 130.206.112.142 port 22: No route to host
On Mon, Jan 2, 2017 at 2:11 PM, Ahmad Emad El-Deen <ahmedemad031@gmail.com>
wrote:
> thank you it works now
> thank you very much
>
> best regards
> ahmed
>
> On Mon, Jan 2, 2017 at 1:50 PM, Help-Desk <jira-help-desk@jira.fiware.org>
> wrote:
>
>>
>>
>
The issue has been emailed:
- Time sent: 03/Jan/17 11:52 AM
- To: ahmedemad031@gmail.com
- with subject: *(
HELP-8032) FIWARE.Request.Tech.fiware cepheus problem. *
Sorry we can only give support related to the Fiware Cepheus application. Accessing you Ubuntu host VM using SSH is out of scope.
Comment by ahmedemad031@gmail.com :
could you please sent me email who concern with VM SSH connection
problem Thanks
for your patience
best regards
ahmed
Comment by ahmedemad031@gmail.com :
thank you the problem solved
On Tue, Jan 3, 2017 at 12:59 PM, Ahmad Emad El-Deen <ahmedemad031@gmail.com>
wrote:
> could you please sent me email who concern with VM SSH connection problem Thanks
> for your patience
>
> best regards
> ahmed
>
Comment by ahmedemad031@gmail.com :
any help ?
On Thu, Dec 22, 2016 at 12:15 AM, Ahmad Emad El-Deen <ahmedemad031@gmail.com
> wrote:
> i fiware user
> i tried to run this command "mvn spring-boot:run"on cepheus-cep
> and i got this error
>
> "Failed to execute goal org.springframework.boot:
> spring-boot-maven-plugin:1.2.3.RELEASE:run (default-cli) on project
> cepheus-cep: An exception occured while running. null:
> InvocationTargetException: Tomcat connector in failed state -"
>
> what should i do to solve this problem
>
> best regrds
> ahmed
>