[JBoss JIRA] Created: (AS7-1948) Inconsistent model representation for osgi subsystem
by Thomas Diesler (JIRA)
Inconsistent model representation for osgi subsystem
----------------------------------------------------
Key: AS7-1948
URL: https://issues.jboss.org/browse/AS7-1948
Project: Application Server 7
Issue Type: Bug
Components: OSGi
Reporter: Thomas Diesler
Assignee: Thomas Diesler
Fix For: 7.1.0.Beta1
There are a number of inconsistencies in the management model
{code}
[standalone@localhost:9999 /] /subsystem=osgi:read-resource(recursive=true)
{
"outcome" => "success",
"result" => {
"activation" => "lazy",
"configuration" => {"org.apache.felix.webconsole.internal.servlet.OsgiManager" => {"entries" => {"manager.root" => "jboss-osgi"}}},
"module" => {
"org.apache.felix.scr" => {
"module" => undefined,
"start" => "2"
},
"org.apache.felix.log" => {
"module" => undefined,
"start" => "1"
},
"org.jboss.osgi.webapp" => {
"module" => undefined,
"start" => "3"
},
"org.jboss.osgi.http" => {
"module" => undefined,
"start" => "2"
},
"org.apache.felix.metatype" => {
"module" => undefined,
"start" => "2"
},
"org.apache.aries.jmx" => {
"module" => undefined,
"start" => "2"
},
"org.jboss.osgi.blueprint" => {
"module" => undefined,
"start" => "3"
},
"org.apache.aries.util" => {"module" => undefined},
"org.jboss.osgi.logging" => {
"module" => undefined,
"start" => "1"
},
"org.osgi.compendium" => {"module" => undefined},
"org.jboss.osgi.webconsole" => {"module" => undefined},
"org.jboss.logging" => {"module" => undefined},
"org.jboss.as.osgi.configadmin" => {
"module" => undefined,
"start" => "1"
},
"javaee.api" => {"module" => undefined},
"org.jboss.netty" => {
"module" => undefined,
"start" => "2"
},
"org.apache.felix.eventadmin" => {
"module" => undefined,
"start" => "2"
},
"org.jboss.osgi.jmx" => {
"module" => undefined,
"start" => "2"
},
"org.apache.felix.configadmin" => {
"module" => undefined,
"start" => "1"
},
"org.apache.felix.webconsole" => {
"module" => undefined,
"start" => "2"
},
"org.jboss.osgi.xerces" => {
"module" => undefined,
"start" => "3"
},
"org.projectodd.stilts" => {
"module" => undefined,
"start" => "2"
}
},
"property" => {
"org.osgi.framework.startlevel.beginning" => {"value" => "1"},
"org.osgi.framework.system.packages.extra" => {"value" => "org.apache.commons.logging;version=1.1.1,
org.apache.log4j;version=1.2,
org.jboss.as.osgi.service;version=7.0,
org.jboss.osgi.deployment.interceptor;version=1.0,
org.jboss.osgi.spi.capability;version=1.0,
org.jboss.osgi.spi.util;version=1.0,
org.jboss.osgi.testing;version=1.0,
org.jboss.osgi.vfs;version=1.0,
org.slf4j;version=1.5.10,"},
"org.jboss.osgi.system.modules" => {"value" => "org.apache.commons.logging,
org.apache.log4j,
org.jboss.as.osgi,
org.slf4j,"}
}
}
}
{code}
#1 properties should be represented equal for the configuration and framework
#2 "module" => undefined does not make sense
#3 startlevel should be named 'startlevel' not 'start'
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (AS7-1949) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
by u j (JIRA)
JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
------------------------------------------------------------------------------------------------------------------------------------
Key: AS7-1949
URL: https://issues.jboss.org/browse/AS7-1949
Project: Application Server 7
Issue Type: Bug
Affects Versions: 7.0.2.Final
Environment: Windows 7, 64bit
Reporter: u j
On startup of jboss-as-7.0.2.Final with standalone-preview.xml on Windows 7, many of the following errors ocurr:
07:38:49,167 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
Hence, the startup is very slow.
Complete startup log:
07:38:41,173 INFO [org.jboss.modules] JBoss Modules version 1.0.2.GA
07:38:41,777 INFO [org.jboss.msc] JBoss MSC version 1.0.1.GA
07:38:41,826 INFO [org.jboss.as] JBoss AS 7.0.2.Final "Arc" starting
07:38:43,876 WARN [org.jboss.as] No security realm defined for native management service, all access will be unrestricted.
07:38:43,948 INFO [org.jboss.as] creating http management service using network interface (management) port (9990)
07:38:43,951 WARN [org.jboss.as] No security realm defined for http management service, all access will be unrestricted.
07:38:43,960 INFO [org.jboss.as.logging] Removing bootstrap log handlers
07:38:43,981 INFO [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)
07:38:44,010 INFO [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.
07:38:44,061 INFO [org.jboss.as.jacorb] (Controller Boot Thread) Activating JacORB Subsystem
07:38:44,127 INFO [org.jboss.as.naming] (Controller Boot Thread) JBAS011800: Activating Naming Subsystem
07:38:44,138 INFO [org.jboss.as.naming] (MSC service thread 1-9) JBAS011802: Starting Naming Service
07:38:44,144 INFO [org.jboss.as.osgi] (Controller Boot Thread) JBAS011910: Activating OSGi Subsystem
07:38:44,166 INFO [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem
07:38:44,172 INFO [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 3.2.0.Beta2
07:38:44,187 INFO [org.xnio] (MSC service thread 1-2) XNIO Version 3.0.0.Beta3
07:38:44,203 INFO [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.0.0.Beta3
07:38:44,455 INFO [org.jboss.as.webservices] (Controller Boot Thread) Activating WebServices Extension
07:38:44,461 INFO [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-8) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\java\jdk1.6.0\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;native
07:38:44,582 INFO [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem
07:38:45,342 INFO [org.jboss.ws.common.management.AbstractServerConfig] (MSC service thread 1-1) JBoss Web Services - Stack CXF Server 4.0.0.Beta3
07:38:46,162 INFO [org.jboss.as.remoting] (MSC service thread 1-8) Listening on /127.0.0.1:9999
07:38:46,165 INFO [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-9) Starting remote JMX connector
07:38:46,224 INFO [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-16) Starting Coyote HTTP/1.1 on http-127.0.0.1-127.0.0.1-8080
07:38:46,431 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-7) live server is starting with configuration HornetQ Configuration (clustered=false,backup=false,sharedStore=true,journalDirectory=C:\java\jboss\jboss-as-7.0.2.Final\standalone\data\messagingjournal,bindingsDirectory=C:\java\jboss\jboss-as-7.0.2.Final\standalone\data\messagingbindings,largeMessagesDirectory=C:\java\jboss\jboss-as-7.0.2.Final\standalone\data\messaginglargemessages,pagingDirectory=C:\java\jboss\jboss-as-7.0.2.Final\standalone\data\messagingpaging)
07:38:46,455 WARNING [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-7) Security risk! It has been detected that the cluster admin user and password have not been changed from the installation default. Please see the HornetQ user guide, cluster chapter, for instructions on how to do this.
07:38:46,462 INFO [org.jboss.as.connector] (MSC service thread 1-13) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)
07:38:46,505 WARN [jacorb.codeset] (MSC service thread 1-14) Warning - unknown codeset (Cp1252) - defaulting to ISO-8859-1
07:38:46,539 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) Bound data source [java:jboss/datasources/ExampleDS]
07:38:46,556 INFO [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-8) Registered connection factory java:/JmsXA
07:38:46,563 INFO [org.jboss.as.jacorb] (MSC service thread 1-14) CORBA ORB Service Started
07:38:46,567 INFO [org.hornetq.ra.HornetQResourceAdapter] (MSC service thread 1-8) HornetQ resource adaptor started
07:38:46,568 INFO [org.jboss.as.connector.services.ResourceAdapterActivatorService$ResourceAdapterActivator] (MSC service thread 1-8) IJ020002: Deployed: file://RaActivatorhornetq-ra
07:38:46,680 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-7) Started Netty Acceptor version 3.2.3.Final-r${buildNumber} 127.0.0.1:5455 for CORE protocol
07:38:46,693 INFO [org.hornetq.core.remoting.impl.netty.NettyAcceptor] (MSC service thread 1-7) Started Netty Acceptor version 3.2.3.Final-r${buildNumber} 127.0.0.1:5445 for CORE protocol
07:38:46,695 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-7) Server is now live
07:38:46,696 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-7) HornetQ Server version 2.2.7.Final (HQ_2_2_7_FINAL_AS7, 121) [1eee8233-e7bc-11e0-aa93-5442495fe54a] started
07:38:46,699 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-15) trying to deploy queue jms.queue.testQueue
07:38:46,711 INFO [org.jboss.as.jacorb] (MSC service thread 1-11) CORBA Naming Service Started
07:38:46,877 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:47,039 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:47,085 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:47,484 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:47,775 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:48,089 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:49,139 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:49,167 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:49,341 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:50,571 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:50,629 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:50,720 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:50,874 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:51,055 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:51,272 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:51,418 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:51,475 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:51,838 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:52,222 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:52,520 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:52,582 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:52,652 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:53,196 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:53,399 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:54,216 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:55,068 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:55,162 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:55,621 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:55,911 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:56,519 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:56,602 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:57,370 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:57,594 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:58,309 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:38:59,792 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:39:00,437 ERROR [org.jboss.remoting.remote] (XNIO NIO Read 1) JBREM00200: Remote connection failed: java.io.IOException: Se ha anulado una conexión establecida por el software en su equipo host.
07:39:00,630 INFO [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-15) Bound messaging object to jndi name java:/queue/test
07:39:00,646 INFO [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-7) Bound messaging object to jndi name java:/ConnectionFactory
07:39:00,647 INFO [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-4) Bound messaging object to jndi name java:/RemoteConnectionFactory
07:39:00,648 INFO [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-16) trying to deploy queue jms.topic.testTopic
07:39:00,676 INFO [org.jboss.as.messaging.jms.AS7BindingRegistry] (MSC service thread 1-16) Bound messaging object to jndi name java:/topic/test
07:39:00,694 INFO [org.jboss.as.deployment] (MSC service thread 1-13) Started FileSystemDeploymentService for directory C:\java\jboss\jboss-as-7.0.2.Final\standalone\deployments
07:39:00,772 INFO [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.2.Final "Arc" started in 19827ms - Started 126 of 185 services (59 services are passive or on-demand)
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (JGRP-693) Incorporate MultithreadedTestCase (MTC) usage into JGroups testsuite
by Richard Achmatowicz (JIRA)
Incorporate MultithreadedTestCase (MTC) usage into JGroups testsuite
--------------------------------------------------------------------
Key: JGRP-693
URL: http://jira.jboss.com/jira/browse/JGRP-693
Project: JGroups
Issue Type: Task
Environment: JGroups testsuite test cases
Reporter: Richard Achmatowicz
Assigned To: Bela Ban
Fix For: 2.7
MultithreadedTestCase (MTC) is an open-source testing framework which supports the writing of multithreaded test cases. It introduces a global tick-counter which provides a deterministic form of thread synchronization, based on the number of times all threads in a test case are blocked. The tool works well ina debugger, unlike other approximate forms of synchronization (e.g. sleep())
This issue concerns using MTC in order to simplify and improve test cases in the JGroups test suite in which concurrency and blocking are at issue.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (AS7-1676) NPE in ComponentDescription$DefaultFirstConfigurator
by jaikiran pai (JIRA)
NPE in ComponentDescription$DefaultFirstConfigurator
----------------------------------------------------
Key: AS7-1676
URL: https://issues.jboss.org/browse/AS7-1676
Project: Application Server 7
Issue Type: Bug
Components: EE
Affects Versions: 7.0.1.Final
Reporter: jaikiran pai
Assignee: Stuart Douglas
Attachments: war-error.war
A missing component class can lead to a NPE in ComponentDescription$DefaultFirstConfigurator. See referenced forum thread for details
Here's the stacktrace:
{code}
Caused by: java.lang.NullPointerException
at org.jboss.as.ee.component.ComponentDescription$DefaultFirstConfigurator.configure(ComponentDescription.java:532)
at org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:65)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
... 5 more
{code}
Sample application reproducing this issue is attached to this JIRA
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (EJBTHREE-2270) CLONE - Incorrect JNDI binding log messages being printed to the server.log file for EJB3 deployed bean with @RemoteBinding and @LocalBinding
by Taneem Ibrahim (JIRA)
CLONE - Incorrect JNDI binding log messages being printed to the server.log file for EJB3 deployed bean with @RemoteBinding and @LocalBinding
---------------------------------------------------------------------------------------------------------------------------------------------
Key: EJBTHREE-2270
URL: https://issues.jboss.org/browse/EJBTHREE-2270
Project: EJB 3.0
Issue Type: Bug
Components: ejb3
Environment: EAP 5.1.1
Reporter: Taneem Ibrahim
Priority: Minor
Attachments: CalculatorEJB.jar
When an ejb is annotated with @RemoteBinding and @LocalBinding, the binding messages in the server.log is missing the Local JNDI binding value as well as incorrect remote binding information is printed.
For the following EJB3 bean:
@Stateless
@RemoteBinding(jndiBinding="XXXXXRemote")
@LocalBinding(jndiBinding="XXXXXLocal")
public class CalculatorBean implements CalculatorLocal, CalculatorRemote {
//some implementation code here ....
}
When the JNDI binding messages for it gets registered in the server.log, it prints:-
15:55:45,877 INFO [JBossASKernel] installing bean: jboss.j2ee:jar=CalculatorEJB.jar,name=CalculatorBean,service=EJB3
15:55:45,878 INFO [JBossASKernel] with dependencies:
15:55:45,878 INFO [JBossASKernel] and demands:
15:55:45,878 INFO [JBossASKernel] jboss.ejb:service=EJBTimerService
15:55:45,878 INFO [JBossASKernel] and supplies:
15:55:45,878 INFO [JBossASKernel] jndi:CalculatorBean/remote
15:55:45,878 INFO [JBossASKernel] jndi:XXXXXRemote
15:55:45,878 INFO [JBossASKernel] jndi:CalculatorBean/local-com.jboss.example.ejb.CalculatorLocal
15:55:45,878 INFO [JBossASKernel] jndi:CalculatorBean/local
15:55:45,878 INFO [JBossASKernel] Class:com.jboss.example.ejb.CalculatorLocal
15:55:45,878 INFO [JBossASKernel] jndi:CalculatorBean/remote-com.jboss.example.ejb.CalculatorRemote
15:55:45,878 INFO [JBossASKernel] Class:com.jboss.example.ejb.CalculatorRemote
15:55:45,878 INFO [JBossASKernel] Added bean(jboss.j2ee:jar=CalculatorEJB.jar,name=CalculatorBean,service=EJB3) to KernelDeployment of: CalculatorEJB.jar
There are two issues with the above print message:-
1. It does not print the "XXXXXLocal" JNDI binding.
2. It prints the standard <ejbName>/<remote|local> messages even though @RemoteBinding and @LocalBinding annotations were presen:-
jndi:CalculatorBean/remote
jndi:CalculatorBean/local
It should only print:-
jndi:XXXXXRemote
jndi:XXXXXLocal
The code in reference is in org.jboss.ejb3.deployers.JBossASKernel class:-
log.info("installing bean: " + name);
log.info(" with dependencies:");
for (Object obj : policy.getDependencies())
{
Object msgObject = obj;
if (obj instanceof AbstractDemandMetaData)
{
msgObject = ((AbstractDemandMetaData)obj).getDemand();
}
log.info("\t" + msgObject);
}
log.info(" and demands:");
for(DemandMetaData dmd : policy.getDemands())
{
log.info("\t" + dmd.getDemand());
}
log.info(" and supplies:");
for(SupplyMetaData smd : policy.getSupplies())
{
log.info("\t" + smd.getSupply());
}
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Created: (JBRULES-3224) ClassCastException when comparing class type attributes to null
by Edson Tirelli (JIRA)
ClassCastException when comparing class type attributes to null
---------------------------------------------------------------
Key: JBRULES-3224
URL: https://issues.jboss.org/browse/JBRULES-3224
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.3.0.CR1
Reporter: Edson Tirelli
Assignee: Edson Tirelli
Fix For: 5.3.0.Final, 5.4.0.Beta1
Reported by Thomas:
============================
I've just tried upgrading from Drools 5.3.0-CR1 from the beta and I've hit a regression.
JBoss seems to have been down for most of today so I haven't been able to raise a Jira for it.
In our model we have Facts which contain fields of java.lang.class, we then have a rule which checks that they aren't null.
Eg
Fact { Class<Object> classField}
Rule "xyz"
When
Fact(classField != null)
Then
...
End
This is giving the following exception
Caused by: java.lang.ClassCastException: org.drools.base.field.ObjectFieldImpl cannot be cast to org.drools.base.field.ClassFieldImpl
at org.drools.base.evaluators.EqualityEvaluatorsDefinition$ClassEqualEvaluator.evaluate(EqualityEvaluatorsDefinition.java:1772)
at org.drools.rule.LiteralRestriction.isAllowed(LiteralRestriction.java:87)
at org.drools.rule.LiteralConstraint.isAllowed(LiteralConstraint.java:109)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:130)
at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:451)
at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:369)
at org.drools.reteoo.AlphaNode.assertObject(AlphaNode.java:134)
at org.drools.reteoo.CompositeObjectSinkAdapter.doPropagateAssertObject(CompositeObjectSinkAdapter.java:451)
at org.drools.reteoo.CompositeObjectSinkAdapter.propagateAssertObject(CompositeObjectSinkAdapter.java:379)
at org.drools.reteoo.ObjectTypeNode.assertObject(ObjectTypeNode.java:204)
at org.drools.reteoo.EntryPointNode.assertObject(EntryPointNode.java:244)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:330)
at org.drools.common.NamedEntryPoint.insert(NamedEntryPoint.java:291)
at org.drools.common.AbstractWorkingMemory.insert(AbstractWorkingMemory.java:882)
at org.drools.base.DefaultKnowledgeHelper.insert(DefaultKnowledgeHelper.java:180)
... 149 more
Wrapping the classField != null within an eval appears to be a work around.
This is in the suspect method:
public boolean evaluate(InternalWorkingMemory workingMemory,
final InternalReadAccessor extractor,
final Object object1, final FieldValue object2) {
Object value1 = extractor.getValue( workingMemory, object1 );
Object value2 = object2.getValue();
if ( value2 == null ) {
ClassFieldImpl classField = (ClassFieldImpl) object2;
value2 = classField.resolve( workingMemory );
}
return comparator.equals( value1, value2 );
}
I think the if statement just needs an instanceof check as well or some other way to track the fact that null may be a valid value to be comparing with!
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years
[JBoss JIRA] Commented: (AS7-1880) ManagementClient.getBinding() produces IllegalArgumentException
by Juergen Zimmermann (JIRA)
[ https://issues.jboss.org/browse/AS7-1880?page=com.atlassian.jira.plugin.s... ]
Juergen Zimmermann commented on AS7-1880:
-----------------------------------------
I just tried a freshly installed JBoss 7.0.2 and pom.xml is having a dependency on org.jboss.as:jboss-as-arquillian-container-remote:7.0.2.Final : the issue is gone.
> ManagementClient.getBinding() produces IllegalArgumentException
> ---------------------------------------------------------------
>
> Key: AS7-1880
> URL: https://issues.jboss.org/browse/AS7-1880
> Project: Application Server 7
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 7.0.1.Final
> Environment: JBossAS Jenkins build 1605
> Reporter: Juergen Zimmermann
> Fix For: 7.1.0.Beta1
>
>
> I upgraded from build 1590 to build 1605 because of AS7-1636. However, my Arquillian tests don't work any more. I'm getting the following stacktrace. The error message in the JBoss console is copied below.
> Stacktrace in the Maven console:
> 2011-09-11 16:11:38,589 ERROR org.jboss.as.arquillian.protocol.jmx.ArquillianServiceDeployer - Cannot deploy arquillian service
> java.lang.IllegalArgumentException: Illegal character in authority at index 7: http://${jboss.bind.address.public:127.0.0.1}:8080
> at java.net.URI.create(URI.java:859)
> at org.jboss.as.arquillian.container.ManagementClient.getBinding(ManagementClient.java:181)
> at org.jboss.as.arquillian.container.ManagementClient.extractSubSystemURI(ManagementClient.java:148)
> at org.jboss.as.arquillian.container.ManagementClient.getSubSystemURI(ManagementClient.java:90)
> at org.jboss.as.arquillian.container.ManagementClient.getDeploymentMetaData(ManagementClient.java:96)
> at org.jboss.as.arquillian.container.CommonDeployableContainer.deploy(CommonDeployableContainer.java:98)
> at org.jboss.as.arquillian.protocol.jmx.ArquillianServiceDeployer.doServiceDeploy(ArquillianServiceDeployer.java:58)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
> at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:142)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$3.call(ContainerDeployController.java:115)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.executeOperation(ContainerDeployController.java:258)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deploy(ContainerDeployController.java:114)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createDeploymentContext(ContainerDeploymentContextHandler.java:78)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.container.impl.client.ContainerDeploymentContextHandler.createContainerContext(ContainerDeploymentContextHandler.java:57)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.container.impl.client.container.DeploymentExceptionHandler.verifyExpectedExceptionDuringDeploy(DeploymentExceptionHandler.java:50)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
> at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:86)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController$1.perform(ContainerDeployController.java:79)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachDeployment(ContainerDeployController.java:250)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.forEachManagedDeployment(ContainerDeployController.java:226)
> at org.jboss.arquillian.container.impl.client.container.ContainerDeployController.deployManaged(ContainerDeployController.java:78)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
> at org.jboss.arquillian.core.impl.EventImpl.fire(EventImpl.java:67)
> at org.jboss.arquillian.container.test.impl.client.ContainerEventController.execute(ContainerEventController.java:97)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.invokeObservers(EventContextImpl.java:99)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:81)
> at org.jboss.arquillian.test.impl.TestContextHandler.createClassContext(TestContextHandler.java:68)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.test.impl.TestContextHandler.createSuiteContext(TestContextHandler.java:54)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.jboss.arquillian.core.impl.ObserverImpl.invoke(ObserverImpl.java:90)
> at org.jboss.arquillian.core.impl.EventContextImpl.proceed(EventContextImpl.java:88)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:134)
> at org.jboss.arquillian.core.impl.ManagerImpl.fire(ManagerImpl.java:114)
> at org.jboss.arquillian.test.impl.EventTestRunnerAdaptor.beforeClass(EventTestRunnerAdaptor.java:80)
> at org.jboss.arquillian.junit.Arquillian$2.evaluate(Arquillian.java:158)
> at org.jboss.arquillian.junit.Arquillian.multiExecute(Arquillian.java:290)
> at org.jboss.arquillian.junit.Arquillian.access$100(Arquillian.java:45)
> at org.jboss.arquillian.junit.Arquillian$3.evaluate(Arquillian.java:175)
> at org.junit.runners.ParentRunner.run(ParentRunner.java:292)
> at org.jboss.arquillian.junit.Arquillian.run(Arquillian.java:123)
> at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53)
> at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123)
> at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164)
> at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110)
> at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:172)
> at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:104)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:70)
> Caused by: java.net.URISyntaxException: Illegal character in authority at index 7: http://${jboss.bind.address.public:127.0.0.1}:8080
> at java.net.URI$Parser.fail(URI.java:2827)
> at java.net.URI$Parser.parseAuthority(URI.java:3165)
> at java.net.URI$Parser.parseHierarchical(URI.java:3076)
> at java.net.URI$Parser.parse(URI.java:3032)
> at java.net.URI.<init>(URI.java:595)
> at java.net.URI.create(URI.java:857)
> ... 109 more
> Error message in the JBoss Console
> 16:11:44,336 ERROR [org.jboss.as.controller] (pool-1-thread-1) Operation ("add") failed - address: ([("deployment" => "arquillian-service")]): java.lang.IllegalStateException: Duplicate resource [("deployment" => "arquillian-service")]
> at org.jboss.as.controller.OperationContextImpl.addResource(OperationContextImpl.java:830) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.createResource(OperationContextImpl.java:798) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.server.deployment.DeploymentAddHandler.execute(DeploymentAddHandler.java:170)
> at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:353) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.CompositeOperationHandler.execute(CompositeOperationHandler.java:83) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:353) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.ModelControllerImpl$DefaultPrepareStepHandler.execute(ModelControllerImpl.java:350) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:353) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.OperationContextImpl.completeStep(OperationContextImpl.java:223) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:119) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doProcessRequest(ModelControllerClientOperationHandler.java:154) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$100(ModelControllerClientOperationHandler.java:85) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.call(ModelControllerClientOperationHandler.java:114) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.call(ModelControllerClientOperationHandler.java:112) [jboss-as-controller-7.1.0.Alpha1-SNAPSHOT.jar:7.1.0.Alpha1-SNAPSHOT]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334) [:1.7.0]
> at java.util.concurrent.FutureTask.run(FutureTask.java:166) [:1.7.0]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [:1.7.0]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [:1.7.0]
> at java.lang.Thread.run(Thread.java:722) [:1.7.0]
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
13 years