[JBoss JIRA] Created: (JBAS-7835) "ignore-dependency" injection from jboss.xml not work in bean with superclass'es
by Krashan Brahmanjara (JIRA)
"ignore-dependency" injection from jboss.xml not work in bean with superclass'es
--------------------------------------------------------------------------------
Key: JBAS-7835
URL: https://jira.jboss.org/jira/browse/JBAS-7835
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Affects Versions: JBossAS-5.1.0.GA
Environment: jboss-5.1.0.GA with jdk1.6.0_17
Reporter: Krashan Brahmanjara
Priority: Minor
I got bean based on superclass with shared logic and some circular dependencies
Unfortunately "ignore-dependency" injection from jboss.xml seems to work only if attributes are declared in current class not in superclass'es - I can't use annotations because ear is praparet for weblogic too.
Error example : org.jboss.deployers.spi.DeploymentException: Error deploying test.jar: Unable to create annotation for method/field defBean for EJB AlgBean
Deployment "vfszip:test.ear/" is in error due to the following reason(s): java.lang.NoSuchFieldException: defBean
for case :
<?xml version="1.0" encoding="UTF-8" ?>
<jboss xmlns="http://www.jboss.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
version="3.0">
<enterprise-beans>
<session>
<ejb-name>AlgBean</ejb-name>
<ignore-dependency>
<injection-target>
<injection-target-class>test.DefLocal</injection-target-class>
<injection-target-name>defBean</injection-target-name>
</injection-target>
</ignore-dependency>
</session>
</enterprise-beans>
</jboss>
@Stateless(name = "AlgBean", mappedName = "ejb.DefAlg")
public class AlgBean extends AlgBeanImpl implements DefAlgLocal,DefAlgRemote {
}
public class AlgBeanImpl implements DefAlg {
@EJB
protected DefLocal defBean;
}
There are no problems is DefLocal defBean is moved from superclass to AlgBean.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months
[JBoss JIRA] Created: (JBRULES-2456) Field completion in guided rule editor doesn't show camel-case 'multi-words' java beans properties
by Guillaume HOLLER (JIRA)
Field completion in guided rule editor doesn't show camel-case 'multi-words' java beans properties
--------------------------------------------------------------------------------------------------
Key: JBRULES-2456
URL: https://jira.jboss.org/jira/browse/JBRULES-2456
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-guvnor
Affects Versions: FUTURE
Environment: windows
Reporter: Guillaume HOLLER
Assignee: Mark Proctor
I have attached an example model class and the modified BRMSSuggestionCompletionLoaderTest class (with the new testLoaderWithComplexFields method) to demonstrate the issue.
The test shows that the SuggestionCompletionLoader exposes all javabean properties as ModelFields but then fails to expose them in specific categories according to accessor/mutator classification. In the test, only the fields for
which the assertion:
assert fieldName.equals(fieldName.toLowerCase())
is verified are exposed by methods engine.getModelFields(FieldAccessorsAndMutators.[ACCESSOR|MUTATOR], "Agent"): nom, prenom and sexe (and the keyword 'this' of course).
Consequence is for example that in guided editor, only this fields are proposed as restriction fields in the WHEN side of the RULE .
I have found tha the problem lies in method loadClassFields of SuggestionCompletionLoader and propose a patch (attached).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months
[JBoss JIRA] Created: (JBAS-7582) Add dependecies on HttpRMIClassLoading
by Brian Stansberry (JIRA)
Add dependecies on HttpRMIClassLoading
--------------------------------------
Key: JBAS-7582
URL: https://jira.jboss.org/jira/browse/JBAS-7582
Project: JBoss Application Server
Issue Type: Task
Security Level: Public (Everyone can see)
Reporter: Brian Stansberry
Assignee: Brian Stansberry
Fix For: JBossAS-6.0.0.M2
The tests-jbossmessaging-cluster testsuite target doesn't stop one of the two AS instances it starts. One of the tests stops the server and the ant target assumes that will happen so it doesn't do it. This is fragile since problems with the test can prevent the server being stopped. That server remaining alive then screws up the rest of the testsuite run. This is a frequent cause of hudson testsuite failures.
Adding a call to the server:stop task doesn't seem to cause a problem even if the server isn't running, so I'm adding one.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months
[JBoss JIRA] Created: (JBAS-7811) Multithreaded access to remote JDBC datasource is broken
by Justin Bertram (JIRA)
Multithreaded access to remote JDBC datasource is broken
--------------------------------------------------------
Key: JBAS-7811
URL: https://jira.jboss.org/jira/browse/JBAS-7811
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: JCA service
Affects Versions: JBossAS-6.0.0.M2
Reporter: Justin Bertram
Assignee: Justin Bertram
Fix For: JBossAS-6.0.0.M3
Heavy access to a remote JDBC datasource (i.e. one configured with <use-java-context>false</use-java-context>) with multiple threads sometimes results in errors.
The root of this problem is how the proxied datasource objects (e.g. ResultSet, Connection, Statement, etc.) are stored in the server-side HashMap for re-use by the remote client. These objects are, not surprisingly, keyed by their respective hash code (i.e. object.hashCode()). There are cases where different objects return the same hashCode which means a remote client can close someone else's ResultSets, etc. One can easily see this by turning on DEBUG logging and executing your test. For example:
DEBUG [org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Created ResultSet proxy for invoker=jboss:service=invoker,type=jrmp, targetName=jboss.jca:service=DataSourceBinding,name=PostgresDS, cacheID=12215563
DEBUG [org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Created ResultSet proxy for invoker=jboss:service=invoker,type=jrmp, targetName=jboss.jca:service=DataSourceBinding,name=PostgresDS, cacheID=12215563
...
DEBUG [org.jboss.resource.adapter.jdbc.remote.WrapperDataSourceService] Closed ResultSet=12215563
Of course, the *other* client using the ResultSet whose cacheID is "12215563" will break when it tries to access it later.
To solve this problem, something other than hashCode should be used to key the HashMap entries.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 4 months