The Java code to connect LinkedIn Signup worked fine with Java 8 but is giving the below error which executing the same Java Code using Java 7
I/O exception (java.net.SocketException) caught when connecting to the target host: Connection reset
Retrying connect
I/O exception (java.net.SocketException) caught when connecting to the target host: Connection reset
07:20:52,013 INFO [org.apache.http.impl.client.DefaultHttpClient] (http--0.0.0.0-443-19) Retrying connect
I/O exception (java.net.SocketException) caught when connecting to the target host: Connection reset
07:20:52,020 INFO [org.apache.http.impl.client.DefaultHttpClient] (http--0.0.0.0-443-19) Retrying connect
07:20:52,024 ERROR [stderr] (http--0.0.0.0-443-19) java.net.SocketException: Connection reset
07:20:52,027 ERROR [stderr] (http--0.0.0.0-443-19) at java.net.SocketInputStream.read(SocketInputStream.java:197)
07:20:52,031 ERROR [stderr] (http--0.0.0.0-443-19) at java.net.SocketInputStream.read(SocketInputStream.java:122)
07:20:52,035 ERROR [stderr] (http--0.0.0.0-443-19) at sun.security.ssl.InputRecord.readFully(InputRecord.java:442)
07:20:52,039 ERROR [stderr] (http--0.0.0.0-443-19) at sun.security.ssl.InputRecord.read(InputRecord.java:480)
07:20:52,042 ERROR [stderr] (http--0.0.0.0-443-19) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:936)
07:20:52,046 ERROR [stderr] (http--0.0.0.0-443-19) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1324)
07:20:52,051 ERROR [stderr] (http--0.0.0.0-443-19) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1351)
07:20:52,055 ERROR [stderr] (http--0.0.0.0-443-19) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1335)
07:20:52,059 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:533)
07:20:52,064 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:401)
07:20:52,068 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:178)
07:20:52,074 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
07:20:52,079 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:610)
07:20:52,084 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:445)
07:20:52,089 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
07:20:52,094 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
07:20:52,098 ERROR [stderr] (http--0.0.0.0-443-19) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:106)
Related
I'm getting this exception while initializing the spring context.
I can confirm that I'm only using one spring version i.e. 5.3.3.
When I remove,
<context:annotation-config />
<context:component-scan base-package="com" />
from xml then no errors related to this.
Also the same applicationContext.xml file is working in another branch.
2021-07-13 05:05:01,832 INFO [stdout] (ServerService Thread Pool -- 121) DEBUG [4] (07/13/21 06:05:01:832): Startup Bean Invocation: 0 failed
2021-07-13 05:05:01,833 INFO [stdout] (ServerService Thread Pool -- 121) EXCEPTION [3] (07/13/21 06:05:01:833): org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface: Exception occurred invoking Server Startup Bean
2021-07-13 05:05:01,835 ERROR [stderr] (ServerService Thread Pool -- 121) org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from class path resource [applicationContext.xml]; nested exception is org.springframework.beans.FatalBeanException: Class [org.springframework.context.config.ContextNamespaceHandler] for namespace [http://www.springframework.org/schema/context] does not implement the [org.springframework.beans.factory.xml.NamespaceHandler] interface
2021-07-13 05:05:01,835 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:417)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:338)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:188)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:224)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:195)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:257)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:128)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.AbstractXmlApplicationContext.loadBeanDefinitions(AbstractXmlApplicationContext.java:94)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.AbstractRefreshableApplicationContext.__refreshBeanFactory(AbstractRefreshableApplicationContext.java:130)
2021-07-13 05:05:01,836 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:40002)
2021-07-13 05:05:01,837 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:676)
2021-07-13 05:05:01,837 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.AbstractApplicationContext.__refresh(AbstractApplicationContext.java:558)
2021-07-13 05:05:01,837 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:41010)
2021-07-13 05:05:01,837 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:144)
2021-07-13 05:05:01,837 ERROR [stderr] (ServerService Thread Pool -- 121) at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:85)
2021-07-13 05:05:01,837 ERROR [stderr] (ServerService Thread Pool -- 121) at com.prescient.stnmm.server.beans.BeanAccess.<init>(BeanAccess.java:124)
In my perspective I think that there is internal confusion dependency versions even though you are using only one version... Which led to difficulties and conflicts between dependencies.
Make sure you checked all the versions of dependencies you have locally. Anyways I'm still researching about better answers to this.
Below is the ear structure of my application
'sample.jar'
'firstWar'
'secondWar'
In sample.jar file i have defined beans which I'm initializing from the 'secondWar.war' project. Both the project i.e. sample.jar and 'secondWar.war' has same dependency i.e. 'spring-webmvc' this is causing the confusion. Removed this dependency from 'secondWar.war' and it is working now**
Following instructions in ribbon-consul example I started consul with
consul agent -dev
then in parent folder of this example
mvn verify -Pconsul -Dswarm.consul.url=http://localhost:8500
From what I gather this is the default location of consul, so I also ran it without, only to have the same result.
Task eventually starts all services, however fails to register with consul, with output:
2017-08-25 16:54:00,324 INFO [org.wildfly.swarm.runtime.deployer] (main) deploying time.war
2017-08-25 16:54:00,354 INFO [org.jboss.as.server.deployment] (MSC service thread 1-8) WFLYSRV0027: Starting deployment of "time.war" (runtime-name: "time.war")
2017-08-25 16:54:01,778 WARN [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.time.war" is using a private module ("io.netty:main") which may be changed or removed in future versions without notice.
2017-08-25 16:54:01,923 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0018: Host default-host starting
2017-08-25 16:54:02,036 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-6) MSC000001: Failed to start service swarm.topology.register.time.http: org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address
at org.wildfly.swarm.topology.deployment.RegistrationAdvertiser.start(RegistrationAdvertiser.java:79)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881)
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:748)
Caused by: com.orbitz.consul.ConsulException: Invalid service address
at com.orbitz.consul.AgentClient.register(AgentClient.java:180)
at com.orbitz.consul.AgentClient.register(AgentClient.java:184)
at org.wildfly.swarm.topology.consul.runtime.Advertiser.advertise(Advertiser.java:65)
at org.wildfly.swarm.topology.consul.runtime.ConsulTopologyConnector.advertise(ConsulTopologyConnector.java:60)
at org.wildfly.swarm.topology.deployment.RegistrationAdvertiser.start(RegistrationAdvertiser.java:77)
... 5 more
2017-08-25 16:54:02,203 INFO [org.jboss.resteasy.resteasy_jaxrs.i18n] (ServerService Thread Pool -- 7) RESTEASY002225: Deploying javax.ws.rs.core.Application: class org.wildfly.swarm.generated.WildFlySwarmDefaultJAXRSApplication
2017-08-25 16:54:02,221 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 7) WFLYUT0021: Registered web context: /
2017-08-25 16:54:02,242 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "time.war")) - failure description: {
"WFLYCTL0080: Failed services" => {"swarm.topology.register.time.http" => "org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address
Caused by: com.orbitz.consul.ConsulException: Invalid service address"},
"WFLYCTL0412: Required services that are not installed:" => ["swarm.topology.register.time.http"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
2017-08-25 16:54:02,244 ERROR [org.jboss.as.server] (main) WFLYSRV0021: Deploy of deployment "time.war" was rolled back with the following failure message:
{
"WFLYCTL0080: Failed services" => {"swarm.topology.register.time.http" => "org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address
Caused by: com.orbitz.consul.ConsulException: Invalid service address"},
"WFLYCTL0412: Required services that are not installed:" => ["swarm.topology.register.time.http"],
"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
2017-08-25 16:54:02,250 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 7) WFLYUT0022: Unregistered web context: /
2017-08-25 16:54:02,254 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0019: Host default-host stopping
2017-08-25 16:54:02,272 INFO [org.jboss.as.server.deployment] (MSC service thread 1-7) WFLYSRV0028: Stopped deployment time.war (runtime-name: time.war) in 28ms
2017-08-25 16:54:02,273 INFO [org.jboss.as.controller] (main) WFLYCTL0183: Service status report
WFLYCTL0186: Services which failed to start: service swarm.topology.register.time.http
2017-08-25 16:54:02,275 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
2017-08-25 16:54:02,275 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-08-25 16:54:02,275 ERROR [stderr] (main) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-08-25 16:54:02,275 ERROR [stderr] (main) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-08-25 16:54:02,275 ERROR [stderr] (main) at java.lang.reflect.Method.invoke(Method.java:498)
2017-08-25 16:54:02,275 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
2017-08-25 16:54:02,276 ERROR [stderr] (main) at org.wildfly.swarm.bootstrap.MainInvoker.main(MainInvoker.java:92)
2017-08-25 16:54:02,276 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"swarm.topology.register.time.http" => "org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address
2017-08-25 16:54:02,276 ERROR [stderr] (main) Caused by: com.orbitz.consul.ConsulException: Invalid service address"},"WFLYCTL0412: Required services that are not installed:" => ["swarm.topology.register.time.http"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
2017-08-25 16:54:02,276 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
2017-08-25 16:54:02,276 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
2017-08-25 16:54:02,276 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2017-08-25 16:54:02,277 ERROR [stderr] (main) at org.wildfly.swarm.Swarm.deploy(Swarm.java:467)
2017-08-25 16:54:02,277 ERROR [stderr] (main) at org.wildfly.swarm.examples.netflix.ribbon.time.Main.main(Main.java:19)
2017-08-25 16:54:02,277 ERROR [stderr] (main) ... 6 more
2017-08-25 16:54:02,278 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"swarm.topology.register.time.http" => "org.jboss.msc.service.StartException in service swarm.topology.register.time.http: com.orbitz.consul.ConsulException: Invalid service address
2017-08-25 16:54:02,278 ERROR [stderr] (main) Caused by: com.orbitz.consul.ConsulException: Invalid service address"},"WFLYCTL0412: Required services that are not installed:" => ["swarm.topology.register.time.http"],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
2017-08-25 16:54:02,278 ERROR [stderr] (main) at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
2017-08-25 16:54:02,278 ERROR [stderr] (main) ... 10 more
This is repeated for every time and event service started. Frontend reports consul service at http://:8300.
Starting main methods from idea with offset will perform fine (tho frontend returns 403:forbidden, but that is an another issue)
Is there something I am missing, because this seems like a pretty simple example to be bugged?
Versions of examples affected are 2017.9.0-SNAPSHOT and 2017.8.1.
Consul client exception "Invalid service address" indicates that service is being registered with IP "0.0.0.0". See consul source code
By default, Swarm has default value "0.0.0.0" for "swarm.bind.address" property, which means accepting connections for “all interfaces” to Swarm.
It seems that this IP is being used to register service to consul.
Try to specify swarm.bind.address system property in test/pom.xml for every process e.g.
<process>
<artifactId>example-ribbon-consul-time</artifactId>
<properties>
<swarm.http.port>8081</swarm.http.port>
<swarm.bind.address>127.0.0.1</swarm.bind.address>
</properties>
</process>
I am getting below error when I deploy ear on wildfly 10.
I have used latest jar(bcprov-jdk16-1.46.jar and bcmail-jdk16-1.46.jar) but not worked.
13:46:35,654 ERROR [stderr] (ServerService Thread Pool -- 76) java.security.NoSuchProviderException: JCE cannot authenticate the provider BC
13:46:35,654 ERROR [stderr] (ServerService Thread Pool -- 76) at javax.crypto.JceSecurity.getInstance(JceSecurity.java:100)
13:46:35,669 ERROR [stderr] (ServerService Thread Pool -- 76) at javax.crypto.SecretKeyFactory.getInstance(SecretKeyFactory.java:204)
13:46:35,669 ERROR [stderr] (ServerService Thread Pool -- 76) at com.generic.util.EncryptionUtils.getKey(EncryptionUtils.java:165)
13:46:35,685 ERROR [stderr] (ServerService Thread Pool -- 76) at com.generic.util.EncryptionUtils.initializeDecryptionCipher(EncryptionUtils.java:230)
13:46:35,685 ERROR [stderr] (ServerService Thread Pool -- 76) at com.generic.util.EncryptionUtils.isEncrypted(EncryptionUtils.java:93)
13:46:35,685 ERROR [stderr] (ServerService Thread Pool -- 76) at com.generic.system.SystemStartup.loadDefaulBSettings(SystemStartup.java:286)
13:46:35,685 ERROR [stderr] (ServerService Thread Pool -- 76) at com.generic.system.SystemStartup.startUp(SystemStartup.java:120)
13:46:35,685 ERROR [stderr] (ServerService Thread Pool -- 76) at sample.servlets.tartup.init(Startup.java:187)
13:46:35,685 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117)
13:46:35,685 ERROR [stderr] (ServerService Thread Pool -- 76) at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78)
13:46:35,685 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103)
13:46:35,700 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:250)
13:46:35,700 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.ManagedServlet.createServlet(ManagedServlet.java:133)
13:46:35,700 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:546)
13:46:35,700 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:517)
13:46:35,700 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
13:46:35,700 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
13:46:35,716 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
13:46:35,716 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
13:46:35,716 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
13:46:35,716 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
13:46:35,716 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:559)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:101)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at java.util.concurrent.FutureTask.run(FutureTask.java:266)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at java.lang.Thread.run(Thread.java:748)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) at org.jboss.threads.JBossThread.run(JBossThread.java:320)
13:46:35,732 ERROR [stderr] (ServerService Thread Pool -- 76) Caused by: java.lang.SecurityException: Cannot verify jar:vfs:/E:/myprj/wildfly-10.1.0.Final/bin/content/myapp.ear/lib/tik
a-app-1.4.jar!/
13:46:35,747 ERROR [stderr] (ServerService Thread Pool -- 76) at javax.crypto.JarVerifier.verifySingleJar(JarVerifier.java:446)
13:46:35,747 ERROR [stderr] (ServerService Thread Pool -- 76) at javax.crypto.JarVerifier.verifyJars(JarVerifier.java:361)
13:46:35,747 ERROR [stderr] (ServerService Thread Pool -- 76) at javax.crypto.JarVerifier.verify(JarVerifier.java:289)
13:46:35,747 ERROR [stderr] (ServerService Thread Pool -- 76) at javax.crypto.JceSecurity.verifyProviderJar(JceSecurity.java:159)
13:46:35,747 ERROR [stderr] (ServerService Thread Pool -- 76) at javax.crypto.JceSecurity.getVerificationResult(JceSecurity.java:185)
13:46:35,747 ERROR [stderr] (ServerService Thread Pool -- 76) at javax.crypto.JceSecurity.getInstance(JceSecurity.java:97)
There are two workarounds.
You create a modul with the libs (bcprov-jdk16-1.46.jar,bcmail-jdk16-1.46.jar) and import it in your jboss-deployment-structure.xml
You add the jars in the jboss-deployment-structure.xml as resource with the option use-physical-code-source="true" Example:
<resource-root path="/lib/bcprov-jdk16-1.46.jar" use-physical-code-source="true"/>
Error in NonGUIDriver org.apache.jmeter.engine.JMeterEngineException: Error in rconfigure() method java.rmi.ConnectException: Connection refused to host: 10.143.3.49; nested exception is:
java.net.ConnectException: Connection timed out
2013/03/19 06:15:28 ERROR - jmeter.engine.ClientJMeterEngine: Error in rconfigure() method java.rmi.ConnectException: Connection refused to host: 46.137.221.11; nested exception is:
java.net.ConnectException: Connection timed out
2013/03/19 06:15:28 ERROR - jmeter.JMeter: Error in NonGUIDriver org.apache.jmeter.engine.JMeterEngineException: Error in rconfigure() method java.rmi.ConnectException: Connection refused to host: 46.137.221.11; nested exception is:
java.net.ConnectException: Connection timed out
This is a network connectivity problem, not an RMI or Java problem. Can you ping that host from that client?
In jeety , Glassfish server when project is deploy then make one folder in webapp but in jboss 7 server have no webapp folder.
where is project deploy( folder name ) in jboss 7?
so there are some problem like read properties file and image upload . b'caz i use class path and server path for it.
for ex in jboss 7:
get File path : "E:/jboss-as-7.1.1.Final/bin/content/mwp.war/WEB-INF/classes/analytics.properties"
Properties pro = new Properties();
String fileName = this.getClass().getClassLoader().getResource("analytics.properties").getFile();
pro.store(new FileOutputStream(fileName),null);
then get error :
16:21:52,004 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.open(Native Method)
16:21:52,006 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
16:21:52,007 ERROR [stderr] (MSC service thread 1-3) at java.io.FileOutputStream.<init>(FileOutputStream.java:104)
16:21:52,008 ERROR [stderr] (MSC service thread 1-3) at mwp.slktechlabs.model.analytics.AnalyticsDBData.updateAnalyticsPropertiesData(AnalyticsDBData.ja
va:95)
16:21:52,010 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
16:21:52,011 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
16:21:52,013 ERROR [stderr] (MSC service thread 1-3) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
16:21:52,015 ERROR [stderr] (MSC service thread 1-3) at java.lang.reflect.Method.invoke(Method.java:601)
16:21:52,016 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleEle
ment.invoke(InitDestroyAnnotationBeanPostProcessor.java:340)
16:21:52,018 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor$LifecycleMet
adata.invokeDestroyMethods(InitDestroyAnnotationBeanPostProcessor.java:305)
16:21:52,020 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessB
eforeDestruction(InitDestroyAnnotationBeanPostProcessor.java:148)
16:21:52,023 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.ja
va:166)
16:21:52,025 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingle
tonBeanRegistry.java:487)
16:21:52,027 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultS
ingletonBeanRegistry.java:463)
16:21:52,029 ERROR [stderr] (MSC service thread 1-3) at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(Default
SingletonBeanRegistry.java:431)
16:21:52,031 ERROR [stderr] (MSC service thread 1-3) at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationC
ontext.java:1053)
16:21:52,033 ERROR [stderr] (MSC service thread 1-3) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContex
t.java:463)
16:21:52,035 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:294
)
16:21:52,036 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:215)
16:21:52,038 ERROR [stderr] (MSC service thread 1-3) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.j
ava:47)
16:21:52,040 ERROR [stderr] (MSC service thread 1-3) at org.apache.catalina.core.StandardContext.contextListenerStart(StandardContext.java:3392)
16:21:52,041 ERROR [stderr] (MSC service thread 1-3) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3850)
16:21:52,043 ERROR [stderr] (MSC service thread 1-3) at org.jboss.as.web.deployment.WebDeploymentService.start(WebDeploymentService.java:90)
16:21:52,045 ERROR [stderr] (MSC service thread 1-3) at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:18
11)
16:21:52,046 ERROR [stderr] (MSC service thread 1-3) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746)
16:21:52,048 ERROR [stderr] (MSC service thread 1-3) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
16:21:52,050 ERROR [stderr] (MSC service thread 1-3) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
16:21:52,051 ERROR [stderr] (MSC service thread 1-3) at java.lang.Thread.run(Thread.java:722)
so how to remove this error ?
Thanks,
kamlesh
Try this:
Properties prop = new Properties();
InputStream is = this.getClass().getClassLoader().getResourceAsStream( "path" );
BufferedReader br = new BufferedReader(new InputStreamReader(is, "utf8"));
prop.load(br);
example in my war i have got properties ingo resources/config/myprop.properties and my "path" is config/myprop.properties
Jboss as 7 have got few deploy folder if you using hot deeploy (run only with standalone mode)
jboss deploy your project in example: /usr/local/jboss7/standalone/deployments
example you can put in this place war file and jboss automaticly deploy your project
but if you using mavej jboss pluging and use command jboss-as:deploy so jboss deploy your project into /usr/local/jboss7/standalone/data/content