[JBoss JIRA] (JGRP-1877) System.nanoTime() can be negative
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1877?page=com.atlassian.jira.plugin.... ]
Bela Ban edited comment on JGRP-1877 at 9/12/14 11:29 AM:
----------------------------------------------------------
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* -TimeScheduler2- (not changed; deprecated)
* -HashedTimingWheel- (not changed; as unsupported)
* -ConcurrentLinkedBlockingQueue- (not changed; not used anywhere)
* -ResponseCollector-
* -CreditMap- (only used for measuring block times)
* FlowControl
* Locking
* -MERGE2-
* -RELAY2- (no change; only used for stats)
* -StatsCollector-
* -RATE_LIMITER-
* -PERF-
was (Author: belaban):
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* -TimeScheduler2- (not changed; deprecated)
* -HashedTimingWheel- (not changed; as unsupported)
* -ConcurrentLinkedBlockingQueue- (not changed; not used anywhere)
* -ResponseCollector-
* CreditMap
* FlowControl
* Locking
* -MERGE2-
* -RELAY2- (no change; only used for stats)
* -StatsCollector-
* -RATE_LIMITER-
* -PERF-
> System.nanoTime() can be negative
> ---------------------------------
>
> Key: JGRP-1877
> URL: https://issues.jboss.org/browse/JGRP-1877
> Project: JGroups
> Issue Type: Bug
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Critical
> Fix For: 3.5.1, 3.6
>
>
> According to the javadoc, {{System.nanoTime()}} should only be used to measure _elapsed time_, but not compute a _target time in the future_, as {{nanoTime()}} might return a a time in the future.
> Code like the one below might fail:
> {code:title=Responses.waitFor()|borderStyle=solid}
> public boolean waitFor(long timeout) {
> long wait_time;
> final long target_time=System.nanoTime() + TimeUnit.NANOSECONDS.convert(timeout, TimeUnit.MILLISECONDS); // ns
> lock.lock();
> try {
> while(!done && (wait_time=target_time - System.nanoTime()) > 0) {
> try {
> cond.await(wait_time,TimeUnit.NANOSECONDS);
> }
> catch(InterruptedException e) {
> }
> }
> return done;
> }
> finally {
> lock.unlock();
> }
> }
> {code}
> When computing {{target_time}}, {{System.nanoTime()}} could return a negative value (numeric overflow) or a value in the future. In the first case, {{target_time}} could be negative, so the method would not block at all. In the latter case, {{target_time}} could be huge, so the method would block for a long time.
> Investigate all occurrences where we use {{nanoTime()}} to compute a time in the future, and see what impact a future value value could have. Possibly replace with {{System.currentTimeMillis()}} or the _time service_.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (JGRP-1877) System.nanoTime() can be negative
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1877?page=com.atlassian.jira.plugin.... ]
Bela Ban edited comment on JGRP-1877 at 9/12/14 11:24 AM:
----------------------------------------------------------
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* -TimeScheduler2- (not changed; deprecated)
* -HashedTimingWheel- (not changed; as unsupported)
* -ConcurrentLinkedBlockingQueue- (not changed; not used anywhere)
* -ResponseCollector-
* CreditMap
* FlowControl
* Locking
* -MERGE2-
* -RELAY2- (no change; only used for stats)
* -StatsCollector-
* -RATE_LIMITER-
* -PERF-
was (Author: belaban):
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* -TimeScheduler2- (not changed; deprecated)
* -HashedTimingWheel- (not changed; as unsupported)
* -ConcurrentLinkedBlockingQueue- (not changed; not used anywhere)
* -ResponseCollector-
* -CreditMap- (only used to compute elapsed time for stats)
* FlowControl
* Locking
* -MERGE2-
* -RELAY2- (no change; only used for stats)
* -StatsCollector-
* -RATE_LIMITER-
* -PERF-
> System.nanoTime() can be negative
> ---------------------------------
>
> Key: JGRP-1877
> URL: https://issues.jboss.org/browse/JGRP-1877
> Project: JGroups
> Issue Type: Bug
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Critical
> Fix For: 3.5.1, 3.6
>
>
> According to the javadoc, {{System.nanoTime()}} should only be used to measure _elapsed time_, but not compute a _target time in the future_, as {{nanoTime()}} might return a a time in the future.
> Code like the one below might fail:
> {code:title=Responses.waitFor()|borderStyle=solid}
> public boolean waitFor(long timeout) {
> long wait_time;
> final long target_time=System.nanoTime() + TimeUnit.NANOSECONDS.convert(timeout, TimeUnit.MILLISECONDS); // ns
> lock.lock();
> try {
> while(!done && (wait_time=target_time - System.nanoTime()) > 0) {
> try {
> cond.await(wait_time,TimeUnit.NANOSECONDS);
> }
> catch(InterruptedException e) {
> }
> }
> return done;
> }
> finally {
> lock.unlock();
> }
> }
> {code}
> When computing {{target_time}}, {{System.nanoTime()}} could return a negative value (numeric overflow) or a value in the future. In the first case, {{target_time}} could be negative, so the method would not block at all. In the latter case, {{target_time}} could be huge, so the method would block for a long time.
> Investigate all occurrences where we use {{nanoTime()}} to compute a time in the future, and see what impact a future value value could have. Possibly replace with {{System.currentTimeMillis()}} or the _time service_.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attaching Spring dependency
by Dmitriy Shishmakov (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Dmitriy Shishmakov updated WFLY-3851:
-------------------------------------
Attachment: asm.png
> WildFly 8.1 + JAX-WS and attaching Spring dependency
> ----------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JBossWS 2.2
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
> Attachments: asm.png, server.log
>
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
> If everything ok links might be invoke.
> http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
> http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
> Stack trace:
> ---------------
> 2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
> 2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
> 2014-09-12 17:50:30,556 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
> at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
> at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> ... 5 more
> Caused by: java.lang.reflect.UndeclaredThrowableException
> at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
> at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
> at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
> ... 13 more
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
> at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
> at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
> ... 28 more
> 2014-09-12 17:50:30,877 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
> 2014-09-12 17:50:30,942 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
> 2014-09-12 17:50:30,981 INFO [org.jboss.as.webservices] (MSC service thread 1-2) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 17:50:30,991 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
> "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
> "JBAS014771: Services with missing/unavailable dependencies" => [
> "jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
> "jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
> ]
> }
> 2014-09-12 17:50:31,035 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
> 2014-09-12 17:50:31,037 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
> JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> 2014-09-12 17:50:38,557 ERROR [stderr] (XNIO-1 task-5) java.lang.IllegalArgumentException: UT000024: An invalidly formatted nonce has been received.
> 2014-09-12 17:50:38,558 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.verifyUnknownNonce(SimpleNonceManager.java:375)
> 2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.validateNonce(SimpleNonceManager.java:258)
> 2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.validateNonceUse(DigestAuthenticationMechanism.java:331)
> 2014-09-12 17:50:38,560 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.handleDigestHeader(DigestAuthenticationMechanism.java:276)
> 2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.authenticate(DigestAuthenticationMechanism.java:149)
> 2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at org.jboss.as.domain.http.server.security.AuthenticationMechanismWrapper.authenticate(AuthenticationMechanismWrapper.java:57)
> 2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281)
> 2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106)
> 2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99)
> 2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:50)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3834) Memory leak in org.xnio.ByteBufferSlicePool
by Sergey Lisovoy (JIRA)
[ https://issues.jboss.org/browse/WFLY-3834?page=com.atlassian.jira.plugin.... ]
Sergey Lisovoy commented on WFLY-3834:
--------------------------------------
My mistake. I ran wrong test version:
{code:java}
public static void main(String[] args) throws Exception {
ModelControllerClient client = ModelControllerClient.Factory.create("localhost", 9990);
ModelNode operation = Operations.createReadAttributeOperation(new ModelNode().setEmptyList(), "server-state");
for(int i=0; i<1000000; i++) {
client.execute(operation);
if(i % 1000 == 0) {
System.out.println("Processed: " + i);
}
}
client.close();
}
{code}
In this version method {{ModelControllerClient.close()}} is outside of loop and memory leak is small or not exists at all. Running test version from bug descripiton (where {{ModelControllerClient.close()}} inside loop) is stil leaking. =(
So, as [~dmlloyd] mentioned earler, that leak seems somewere in {{close()}} method.
Also, I try proposed workaround with JVM argument {{-Djboss.remoting.pooled-buffers=false}}. It work as expected. Slower but no leaking.
> Memory leak in org.xnio.ByteBufferSlicePool
> -------------------------------------------
>
> Key: WFLY-3834
> URL: https://issues.jboss.org/browse/WFLY-3834
> Project: WildFly
> Issue Type: Bug
> Components: Domain Management
> Affects Versions: 8.1.0.Final
> Reporter: Sergey Lisovoy
> Assignee: David Lloyd
> Labels: memory_leak, memoryleak
>
> I have a simple thread that monitor remote wildfly process status. After some time it fail with OutOfMemory exception.
> I wrote simple exsample how to reproduce its error:
> {code:java}
> package ru.kamis.tests.xniomemoryleaks;
> import org.jboss.as.controller.client.ModelControllerClient;
> import org.jboss.as.controller.client.helpers.Operations;
> import org.jboss.dmr.ModelNode;
> public class OutOfMemoryDemo {
> public static void main(String[] args) throws Exception {
>
> for(int i=0; i<1000000; i++) {
> ModelControllerClient client = null;
> client = ModelControllerClient.Factory.create("localhost", 9990);
>
> ModelNode operation = Operations.createReadAttributeOperation(new ModelNode().setEmptyList(), "server-state");
> client.execute(operation);
>
> client.close();
>
> if(i % 1000 == 0) {
> System.out.println("Processed: " + i);
> }
> }
> }
> }
> {code}
> Program produces folowing output:
> {noformat}
> сен 09, 2014 2:33:20 PM org.xnio.Xnio <clinit>
> INFO: XNIO version 3.2.2.Final
> сен 09, 2014 2:33:20 PM org.xnio.nio.NioXnio <clinit>
> INFO: XNIO NIO Implementation Version 3.2.2.Final
> сен 09, 2014 2:33:20 PM org.jboss.remoting3.EndpointImpl <clinit>
> INFO: JBoss Remoting version 4.0.3.Final
> Processed: 0
> Processed: 1000
> Processed: 2000
> Processed: 3000
> Processed: 4000
> Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
> at java.lang.String.toCharArray(String.java:2746)
> at sun.net.www.ParseUtil.encodePath(ParseUtil.java:107)
> at sun.misc.URLClassPath$JarLoader.checkResource(URLClassPath.java:757)
> at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:842)
> at sun.misc.URLClassPath.getResource(URLClassPath.java:199)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:358)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> at org.jboss.as.protocol.ProtocolConnectionUtils.connectSync(ProtocolConnectionUtils.java:119)
> at org.jboss.as.protocol.ProtocolConnectionManager$EstablishingConnection.connect(ProtocolConnectionManager.java:256)
> at org.jboss.as.protocol.ProtocolConnectionManager.connect(ProtocolConnectionManager.java:70)
> at org.jboss.as.protocol.mgmt.FutureManagementChannel$Establishing.getChannel(FutureManagementChannel.java:204)
> at org.jboss.as.controller.client.impl.RemotingModelControllerClient.getOrCreateChannel(RemotingModelControllerClient.java:148)
> at org.jboss.as.controller.client.impl.RemotingModelControllerClient$1.getChannel(RemotingModelControllerClient.java:67)
> at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:117)
> at org.jboss.as.protocol.mgmt.ManagementChannelHandler.executeRequest(ManagementChannelHandler.java:92)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeRequest(AbstractModelControllerClient.java:236)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:141)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
> at ru.kamis.tests.xniomemoryleaks.OutOfMemoryDemo.main(OutOfMemoryDemo.java:15)
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> сен 09, 2014 2:35:20 PM org.jboss.as.controller.client.impl.RemotingModelControllerClient finalize
> WARN: JBAS010600: Closing leaked controller client
> JBAS010649: Allocation stack trace:
> at java.lang.Thread.getStackTrace(Thread.java:1589)
> at org.jboss.as.controller.client.impl.RemotingModelControllerClient.<init>(RemotingModelControllerClient.java:76)
> at org.jboss.as.controller.client.ModelControllerClient$Factory.create(ModelControllerClient.java:353)
> at org.jboss.as.controller.client.ModelControllerClient$Factory.create(ModelControllerClient.java:200)
> at ru.kamis.tests.xniomemoryleaks.OutOfMemoryDemo.main(OutOfMemoryDemo.java:12)
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> Exception in thread "RMI TCP Connection(idle)" java.lang.OutOfMemoryError: Java heap space
> {noformat}
> Used libraries:
> {code:xml}
> <dependency>
> <groupId>org.wildfly</groupId>
> <artifactId>wildfly-controller-client</artifactId>
> <version>8.1.0.Final</version>
> </dependency>
> {code}
> The same bug is reproduced on other xnio versions: 3.2.3.Final, 3.3.0.Beta2
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attaching Spring dependency
by Dmitriy Shishmakov (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Dmitriy Shishmakov commented on WFLY-3851:
------------------------------------------
org.objectweb.asm.MethodWriter#visitLabel
org.springframework.asm.MethodWriter#visitLabel
com.sun.xml.internal.ws.org.objectweb.asm.MethodWriter#visitLabel
He should invoke visitLabel from org.objectweb.asm.MethodWriter#visitLabel
but was loaded other class I think.
> WildFly 8.1 + JAX-WS and attaching Spring dependency
> ----------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JBossWS 2.2
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
> Attachments: server.log
>
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
> If everything ok links might be invoke.
> http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
> http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
> Stack trace:
> ---------------
> 2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
> 2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
> 2014-09-12 17:50:30,556 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
> at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
> at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> ... 5 more
> Caused by: java.lang.reflect.UndeclaredThrowableException
> at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
> at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
> at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
> ... 13 more
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
> at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
> at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
> ... 28 more
> 2014-09-12 17:50:30,877 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
> 2014-09-12 17:50:30,942 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
> 2014-09-12 17:50:30,981 INFO [org.jboss.as.webservices] (MSC service thread 1-2) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 17:50:30,991 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
> "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
> "JBAS014771: Services with missing/unavailable dependencies" => [
> "jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
> "jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
> ]
> }
> 2014-09-12 17:50:31,035 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
> 2014-09-12 17:50:31,037 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
> JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> 2014-09-12 17:50:38,557 ERROR [stderr] (XNIO-1 task-5) java.lang.IllegalArgumentException: UT000024: An invalidly formatted nonce has been received.
> 2014-09-12 17:50:38,558 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.verifyUnknownNonce(SimpleNonceManager.java:375)
> 2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.validateNonce(SimpleNonceManager.java:258)
> 2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.validateNonceUse(DigestAuthenticationMechanism.java:331)
> 2014-09-12 17:50:38,560 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.handleDigestHeader(DigestAuthenticationMechanism.java:276)
> 2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.authenticate(DigestAuthenticationMechanism.java:149)
> 2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at org.jboss.as.domain.http.server.security.AuthenticationMechanismWrapper.authenticate(AuthenticationMechanismWrapper.java:57)
> 2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281)
> 2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106)
> 2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99)
> 2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:50)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (JGRP-1877) System.nanoTime() can be negative
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1877?page=com.atlassian.jira.plugin.... ]
Bela Ban edited comment on JGRP-1877 at 9/12/14 11:08 AM:
----------------------------------------------------------
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* -TimeScheduler2- (not changed; deprecated)
* -HashedTimingWheel- (not changed; as unsupported)
* -ConcurrentLinkedBlockingQueue- (not changed; not used anywhere)
* -ResponseCollector-
* -CreditMap- (only used to compute elapsed time for stats)
* FlowControl
* Locking
* -MERGE2-
* -RELAY2- (no change; only used for stats)
* -StatsCollector-
* -RATE_LIMITER-
* -PERF-
was (Author: belaban):
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* -TimeScheduler2- (not changed; deprecated)
* -HashedTimingWheel- (not changed; as unsupported)
* -ConcurrentLinkedBlockingQueue- (not changed; not used anywhere)
* -ResponseCollector-
* -CreditMap- (only used to compute elapsed time for stats)
* FlowControl
* Locking
* -MERGE2-
* RELAY2
* -StatsCollector-
* -RATE_LIMITER-
* -PERF-
> System.nanoTime() can be negative
> ---------------------------------
>
> Key: JGRP-1877
> URL: https://issues.jboss.org/browse/JGRP-1877
> Project: JGroups
> Issue Type: Bug
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Critical
> Fix For: 3.5.1, 3.6
>
>
> According to the javadoc, {{System.nanoTime()}} should only be used to measure _elapsed time_, but not compute a _target time in the future_, as {{nanoTime()}} might return a a time in the future.
> Code like the one below might fail:
> {code:title=Responses.waitFor()|borderStyle=solid}
> public boolean waitFor(long timeout) {
> long wait_time;
> final long target_time=System.nanoTime() + TimeUnit.NANOSECONDS.convert(timeout, TimeUnit.MILLISECONDS); // ns
> lock.lock();
> try {
> while(!done && (wait_time=target_time - System.nanoTime()) > 0) {
> try {
> cond.await(wait_time,TimeUnit.NANOSECONDS);
> }
> catch(InterruptedException e) {
> }
> }
> return done;
> }
> finally {
> lock.unlock();
> }
> }
> {code}
> When computing {{target_time}}, {{System.nanoTime()}} could return a negative value (numeric overflow) or a value in the future. In the first case, {{target_time}} could be negative, so the method would not block at all. In the latter case, {{target_time}} could be huge, so the method would block for a long time.
> Investigate all occurrences where we use {{nanoTime()}} to compute a time in the future, and see what impact a future value value could have. Possibly replace with {{System.currentTimeMillis()}} or the _time service_.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (JGRP-1877) System.nanoTime() can be negative
by Bela Ban (JIRA)
[ https://issues.jboss.org/browse/JGRP-1877?page=com.atlassian.jira.plugin.... ]
Bela Ban edited comment on JGRP-1877 at 9/12/14 11:04 AM:
----------------------------------------------------------
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* -TimeScheduler2- (not changed; deprecated)
* -HashedTimingWheel- (not changed; as unsupported)
* -ConcurrentLinkedBlockingQueue- (not changed; not used anywhere)
* -ResponseCollector-
* -CreditMap- (only used to compute elapsed time for stats)
* FlowControl
* Locking
* -MERGE2-
* RELAY2
* -StatsCollector-
* -RATE_LIMITER-
* -PERF-
was (Author: belaban):
Investigate:
* -Responses-
* -Promise-
* -Request (UnicastRequest, GroupRequest)-
* -MessageDispatcher / RpcDispatcher: sync RPCs-
* -ExpiryCache-
* -LazyRemovalCache-
* -TimeService-
* -Discovery-: ping responses
* -Table-
* -TimeScheduler3-
* -TimeScheduler2- (not changed; deprecated)
* -HashedTimingWheel- (not changed; as unsupported)
* -ConcurrentLinkedBlockingQueue- (not changed; not used anywhere)
* -ResponseCollector-
* -CreditMap- (only used to compute elapsed time for stats)
* FlowControl
* Locking
* -MERGE2-
* RELAY2
* -StatsCollector-
* RATE_LIMITER
* -PERF-
> System.nanoTime() can be negative
> ---------------------------------
>
> Key: JGRP-1877
> URL: https://issues.jboss.org/browse/JGRP-1877
> Project: JGroups
> Issue Type: Bug
> Reporter: Bela Ban
> Assignee: Bela Ban
> Priority: Critical
> Fix For: 3.5.1, 3.6
>
>
> According to the javadoc, {{System.nanoTime()}} should only be used to measure _elapsed time_, but not compute a _target time in the future_, as {{nanoTime()}} might return a a time in the future.
> Code like the one below might fail:
> {code:title=Responses.waitFor()|borderStyle=solid}
> public boolean waitFor(long timeout) {
> long wait_time;
> final long target_time=System.nanoTime() + TimeUnit.NANOSECONDS.convert(timeout, TimeUnit.MILLISECONDS); // ns
> lock.lock();
> try {
> while(!done && (wait_time=target_time - System.nanoTime()) > 0) {
> try {
> cond.await(wait_time,TimeUnit.NANOSECONDS);
> }
> catch(InterruptedException e) {
> }
> }
> return done;
> }
> finally {
> lock.unlock();
> }
> }
> {code}
> When computing {{target_time}}, {{System.nanoTime()}} could return a negative value (numeric overflow) or a value in the future. In the first case, {{target_time}} could be negative, so the method would not block at all. In the latter case, {{target_time}} could be huge, so the method would block for a long time.
> Investigate all occurrences where we use {{nanoTime()}} to compute a time in the future, and see what impact a future value value could have. Possibly replace with {{System.currentTimeMillis()}} or the _time service_.
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attaching Spring dependency
by Dmitriy Shishmakov (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Dmitriy Shishmakov edited comment on WFLY-3851 at 9/12/14 10:50 AM:
--------------------------------------------------------------------
JAX-WS RI (Metro) 2.2 was changed to JBoss JAX-WS Implementation 2.2. Project on GitHub has updated.
---
Tasks:
* Project needs to be well work with Spring 3.x.
* Unfortunately this can't be done: JBoss 7.1.1 everything is ok, but WildFly 8.1.0 have trouble by deploying.
Is it trouble with class load asm.jar?
was (Author: dmshishmakov):
JAX-WS RI (Metro) 2.2 was changed to JBoss JAX-WS Implementation 2.2.
---
Tasks:
* Project needs to be well work with Spring 3.x.
* Unfortunately this can't be done: JBoss 7.1.1 everything is ok, but WildFly 8.1.0 have trouble by deploying.
Is it trouble with class load asm.jar?
> WildFly 8.1 + JAX-WS and attaching Spring dependency
> ----------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JBossWS 2.2
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
> Attachments: server.log
>
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
> If everything ok links might be invoke.
> http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
> http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
> Stack trace:
> ---------------
> 2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
> 2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
> 2014-09-12 17:50:30,556 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
> at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
> at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> ... 5 more
> Caused by: java.lang.reflect.UndeclaredThrowableException
> at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
> at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
> at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
> ... 13 more
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
> at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
> at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
> ... 28 more
> 2014-09-12 17:50:30,877 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
> 2014-09-12 17:50:30,942 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
> 2014-09-12 17:50:30,981 INFO [org.jboss.as.webservices] (MSC service thread 1-2) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 17:50:30,991 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
> "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
> "JBAS014771: Services with missing/unavailable dependencies" => [
> "jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
> "jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
> ]
> }
> 2014-09-12 17:50:31,035 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
> 2014-09-12 17:50:31,037 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
> JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> 2014-09-12 17:50:38,557 ERROR [stderr] (XNIO-1 task-5) java.lang.IllegalArgumentException: UT000024: An invalidly formatted nonce has been received.
> 2014-09-12 17:50:38,558 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.verifyUnknownNonce(SimpleNonceManager.java:375)
> 2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.validateNonce(SimpleNonceManager.java:258)
> 2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.validateNonceUse(DigestAuthenticationMechanism.java:331)
> 2014-09-12 17:50:38,560 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.handleDigestHeader(DigestAuthenticationMechanism.java:276)
> 2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.authenticate(DigestAuthenticationMechanism.java:149)
> 2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at org.jboss.as.domain.http.server.security.AuthenticationMechanismWrapper.authenticate(AuthenticationMechanismWrapper.java:57)
> 2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281)
> 2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106)
> 2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99)
> 2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:50)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attaching Spring dependency
by Dmitriy Shishmakov (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Dmitriy Shishmakov updated WFLY-3851:
-------------------------------------
Description:
I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
GitHub: https://github.com/DmitriySh/maven-ws-prototype
If everything ok links might be invoke.
http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
Stack trace:
---------------
2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
2014-09-12 17:50:30,556 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
... 5 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
... 13 more
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
... 28 more
2014-09-12 17:50:30,877 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
2014-09-12 17:50:30,942 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
2014-09-12 17:50:30,981 INFO [org.jboss.as.webservices] (MSC service thread 1-2) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
2014-09-12 17:50:30,991 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
"jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
]
}
2014-09-12 17:50:31,035 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
2014-09-12 17:50:31,037 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
2014-09-12 17:50:38,557 ERROR [stderr] (XNIO-1 task-5) java.lang.IllegalArgumentException: UT000024: An invalidly formatted nonce has been received.
2014-09-12 17:50:38,558 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.verifyUnknownNonce(SimpleNonceManager.java:375)
2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.validateNonce(SimpleNonceManager.java:258)
2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.validateNonceUse(DigestAuthenticationMechanism.java:331)
2014-09-12 17:50:38,560 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.handleDigestHeader(DigestAuthenticationMechanism.java:276)
2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.authenticate(DigestAuthenticationMechanism.java:149)
2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at org.jboss.as.domain.http.server.security.AuthenticationMechanismWrapper.authenticate(AuthenticationMechanismWrapper.java:57)
2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281)
2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298)
2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268)
2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131)
2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106)
2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99)
2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:50)
2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.lang.Thread.run(Thread.java:745)
was:
I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
GitHub: https://github.com/DmitriySh/maven-ws-prototype
If everything ok links might be invoke.
http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
Stack trace:
---------------
2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
2014-09-12 16:10:47,474 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
... 5 more
Caused by: java.lang.reflect.UndeclaredThrowableException
at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
... 13 more
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
... 28 more
2014-09-12 16:10:47,829 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
2014-09-12 16:10:47,901 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
2014-09-12 16:10:47,940 INFO [org.jboss.as.webservices] (MSC service thread 1-3) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
2014-09-12 16:10:47,952 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.reflect.UndeclaredThrowableException
Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
"JBAS014771: Services with missing/unavailable dependencies" => [
"jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
"jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
]
}
2014-09-12 16:10:47,995 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
2014-09-12 16:10:47,996 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
JBAS014775: New missing/unsatisfied dependencies:
service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
2014-09-12 16:35:13,655 INFO [org.jboss.as.webservices] (MSC service thread 1-7) JBAS015540: Stopping service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
2014-09-12 16:35:13,662 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017532: Host default-host stopping
2014-09-12 16:35:13,664 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016009: Stopping weld service for deployment jboss7-ear.ear
2014-09-12 16:35:13,673 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
2014-09-12 16:35:13,686 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010418: Stopped Driver service with driver-name = h2
2014-09-12 16:35:13,714 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017521: Undertow HTTP listener default suspending
2014-09-12 16:35:13,716 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017520: Undertow HTTP listener default stopped, was bound to /127.0.0.1:8080
2014-09-12 16:35:13,719 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017506: Undertow 1.0.15.Final stopping
2014-09-12 16:35:13,723 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015974: Stopped subdeployment (runtime-name: jboss7-ejb.jar) in 70ms
2014-09-12 16:35:13,862 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015974: Stopped subdeployment (runtime-name: jboss7-war.war) in 199ms
2014-09-12 16:35:13,867 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jboss7-ear.ear (runtime-name: jboss7-ear.ear) in 206ms
2014-09-12 16:35:13,870 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015950: WildFly 8.1.0.Final "Kenny" stopped in 188ms
JAX-WS RI (Metro) 2.2 was changed to JBoss JAX-WS Implementation 2.2.
---
Tasks:
* Project needs to be well work with Spring 3.x.
* Unfortunately this can't be done: JBoss 7.1.1 everything is ok, but WildFly 8.1.0 have trouble by deploying.
Is it trouble with class load asm.jar?
> WildFly 8.1 + JAX-WS and attaching Spring dependency
> ----------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JBossWS 2.2
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
> Attachments: server.log
>
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
> If everything ok links might be invoke.
> http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
> http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
> Stack trace:
> ---------------
> 2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
> 2014-09-12 17:50:30,502 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
> 2014-09-12 17:50:30,556 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
> at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
> at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> ... 5 more
> Caused by: java.lang.reflect.UndeclaredThrowableException
> at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
> at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
> at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
> ... 13 more
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
> at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
> at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
> ... 28 more
> 2014-09-12 17:50:30,877 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
> 2014-09-12 17:50:30,942 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
> 2014-09-12 17:50:30,981 INFO [org.jboss.as.webservices] (MSC service thread 1-2) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 17:50:30,991 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 2) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
> "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
> "JBAS014771: Services with missing/unavailable dependencies" => [
> "jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
> "jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
> ]
> }
> 2014-09-12 17:50:31,035 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
> 2014-09-12 17:50:31,037 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
> JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> 2014-09-12 17:50:38,557 ERROR [stderr] (XNIO-1 task-5) java.lang.IllegalArgumentException: UT000024: An invalidly formatted nonce has been received.
> 2014-09-12 17:50:38,558 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.verifyUnknownNonce(SimpleNonceManager.java:375)
> 2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SimpleNonceManager.validateNonce(SimpleNonceManager.java:258)
> 2014-09-12 17:50:38,559 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.validateNonceUse(DigestAuthenticationMechanism.java:331)
> 2014-09-12 17:50:38,560 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.handleDigestHeader(DigestAuthenticationMechanism.java:276)
> 2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.DigestAuthenticationMechanism.authenticate(DigestAuthenticationMechanism.java:149)
> 2014-09-12 17:50:38,561 ERROR [stderr] (XNIO-1 task-5) at org.jboss.as.domain.http.server.security.AuthenticationMechanismWrapper.authenticate(AuthenticationMechanismWrapper.java:57)
> 2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:281)
> 2014-09-12 17:50:38,562 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.transition(SecurityContextImpl.java:298)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl$AuthAttempter.access$100(SecurityContextImpl.java:268)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.attemptAuthentication(SecurityContextImpl.java:131)
> 2014-09-12 17:50:38,563 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authTransition(SecurityContextImpl.java:106)
> 2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.impl.SecurityContextImpl.authenticate(SecurityContextImpl.java:99)
> 2014-09-12 17:50:38,564 ERROR [stderr] (XNIO-1 task-5) at io.undertow.security.handlers.AuthenticationCallHandler.handleRequest(AuthenticationCallHandler.java:50)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:727)
> 2014-09-12 17:50:38,565 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 2014-09-12 17:50:38,566 ERROR [stderr] (XNIO-1 task-5) at java.lang.Thread.run(Thread.java:745)
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years
[JBoss JIRA] (WFLY-3851) WildFly 8.1 + JAX-WS and attaching Spring dependency
by Dmitriy Shishmakov (JIRA)
[ https://issues.jboss.org/browse/WFLY-3851?page=com.atlassian.jira.plugin.... ]
Dmitriy Shishmakov updated WFLY-3851:
-------------------------------------
Environment:
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
WildFly 8.1.0 Final
Spring 3.1.1
JBossWS 2.2
Windows 7
was:
Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
WildFly 8.1.0 Final
Spring 3.1.1
JAX-WS RI 2.2.8
Windows 7
> WildFly 8.1 + JAX-WS and attaching Spring dependency
> ----------------------------------------------------
>
> Key: WFLY-3851
> URL: https://issues.jboss.org/browse/WFLY-3851
> Project: WildFly
> Issue Type: Task
> Components: EE
> Affects Versions: 8.1.0.Final
> Environment: Java(TM) SE Runtime Environment (build 1.7.0_60-b19)
> Java HotSpot(TM) 64-Bit Server VM (build 24.60-b09, mixed mode)
> WildFly 8.1.0 Final
> Spring 3.1.1
> JBossWS 2.2
> Windows 7
> Reporter: Dmitriy Shishmakov
> Assignee: Alessio Soldano
> Attachments: server.log
>
>
> I was made a prototype project 'maven-ws-prototype' for showing a trouble WildFly 8.1 with Spring 3.1.
> This maven EAR project is contains 2 WebServices. I attached Spring dependencies In 'war' submodule. I don't use them in java classes.
> Project has been successfully deployed into JBoss 7.1.1 but didn't deployed in WildFly 8.1.
> GitHub: https://github.com/DmitriySh/maven-ws-prototype
> If everything ok links might be invoke.
> http://localhost:8080/jboss7-war/CalculatorImpl?wsdl
> http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorServi...
> Stack trace:
> ---------------
> 2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.servlet.jaxws.company.com}CalculatorImpl from class com.company.jaxws.servlet.service.Calculator
> 2014-09-12 16:10:47,420 INFO [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-1) Creating Service {http://service.ejb.jaxws.company.com}RandomGeneratorImpl from class com.company.jaxws.ejb.service.RandomGenerator
> 2014-09-12 16:10:47,474 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-2) MSC000001: Failed to start service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:166) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1948) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1881) [jboss-msc-1.2.2.Final.jar:1.2.2.Final]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_60]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_60]
> at java.lang.Thread.run(Thread.java:745) [rt.jar:1.7.0_60]
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:371)
> at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
> at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:539)
> at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:137)
> at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:69)
> at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
> at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [wildfly-server-8.1.0.Final.jar:8.1.0.Final]
> ... 5 more
> Caused by: java.lang.reflect.UndeclaredThrowableException
> at com.sun.proxy.$Proxy30.visitLabel(Unknown Source)
> at org.apache.cxf.jaxws.WrapperClassGenerator.createWrapperClass(WrapperClassGenerator.java:213)
> at org.apache.cxf.jaxws.WrapperClassGenerator.generate(WrapperClassGenerator.java:122)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.generatedWrapperBeanClass(JaxWsServiceFactoryBean.java:683)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.getExtraClass(JaxWsServiceFactoryBean.java:653)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:484)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:704)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:550)
> at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:265)
> at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:215)
> at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:102)
> at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:456)
> at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
> ... 13 more
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)
> at java.lang.Class.getMethod(Class.java:1665) [rt.jar:1.7.0_60]
> at org.apache.cxf.common.util.ReflectionInvokationHandler.invoke(ReflectionInvokationHandler.java:85)
> ... 28 more
> 2014-09-12 16:10:47,829 INFO [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-1) Setting the server's publish address to be http://localhost:8080/jboss7-ejb/RandomGeneratorImpl/RandomGeneratorService
> 2014-09-12 16:10:47,901 INFO [org.jboss.ws.cxf.deployment] (MSC service thread 1-1) JBWS024074: WSDL published to: file:/C:/work/wildfly-8.1.0.Final/standalone/data/wsdl/jboss7-ear.ear/jboss7-ejb.jar/RandomGeneratorImpl.wsdl
> 2014-09-12 16:10:47,940 INFO [org.jboss.as.webservices] (MSC service thread 1-3) JBAS015539: Starting service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 16:10:47,952 ERROR [org.jboss.as.controller.management-operation] (DeploymentScanner-threads - 1) JBAS014613: Operation ("deploy") failed - address: ([("deployment" => "jboss7-ear.ear")]) - failure description: {
> "JBAS014671: Failed services" => {"jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment \"jboss7-war.war\" of deployment \"jboss7-ear.ear\"
> Caused by: javax.xml.ws.WebServiceException: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.reflect.UndeclaredThrowableException
> Caused by: java.lang.NoSuchMethodException: org.objectweb.asm.MethodWriter.visitLabel(org.objectweb.asm.Label)"},
> "JBAS014771: Services with missing/unavailable dependencies" => [
> "jboss.deployment.unit.\"jboss7-ear.ear\".deploymentCompleteService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".deploymentCompleteService]",
> "jboss.deployment.unit.\"jboss7-ear.ear\".WeldStartService is missing [jboss.deployment.subunit.\"jboss7-ear.ear\".\"jboss7-war.war\".jndiDependencyService]"
> ]
> }
> 2014-09-12 16:10:47,995 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) JBAS018559: Deployed "jboss7-ear.ear" (runtime-name : "jboss7-ear.ear")
> 2014-09-12 16:10:47,996 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) JBAS014774: Service status report
> JBAS014775: New missing/unsatisfied dependencies:
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".deploymentCompleteService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".deploymentCompleteService]
> service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."jboss7-ear.ear".WeldStartService]
> JBAS014777: Services which failed to start: service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.subunit."jboss7-ear.ear"."jboss7-war.war".INSTALL: JBAS018733: Failed to process phase INSTALL of subdeployment "jboss7-war.war" of deployment "jboss7-ear.ear"
> 2014-09-12 16:35:13,655 INFO [org.jboss.as.webservices] (MSC service thread 1-7) JBAS015540: Stopping service jboss.ws.endpoint."jboss7-ear.ear"."jboss7-ejb.jar".RandomGeneratorService
> 2014-09-12 16:35:13,662 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) JBAS017532: Host default-host stopping
> 2014-09-12 16:35:13,664 INFO [org.jboss.weld.deployer] (MSC service thread 1-5) JBAS016009: Stopping weld service for deployment jboss7-ear.ear
> 2014-09-12 16:35:13,673 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-8) JBAS010409: Unbound data source [java:jboss/datasources/ExampleDS]
> 2014-09-12 16:35:13,686 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) JBAS010418: Stopped Driver service with driver-name = h2
> 2014-09-12 16:35:13,714 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017521: Undertow HTTP listener default suspending
> 2014-09-12 16:35:13,716 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017520: Undertow HTTP listener default stopped, was bound to /127.0.0.1:8080
> 2014-09-12 16:35:13,719 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) JBAS017506: Undertow 1.0.15.Final stopping
> 2014-09-12 16:35:13,723 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) JBAS015974: Stopped subdeployment (runtime-name: jboss7-ejb.jar) in 70ms
> 2014-09-12 16:35:13,862 INFO [org.jboss.as.server.deployment] (MSC service thread 1-4) JBAS015974: Stopped subdeployment (runtime-name: jboss7-war.war) in 199ms
> 2014-09-12 16:35:13,867 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment jboss7-ear.ear (runtime-name: jboss7-ear.ear) in 206ms
> 2014-09-12 16:35:13,870 INFO [org.jboss.as] (MSC service thread 1-7) JBAS015950: WildFly 8.1.0.Final "Kenny" stopped in 188ms
--
This message was sent by Atlassian JIRA
(v6.3.1#6329)
10 years