[JBoss JIRA] Created: (JBMICROCONT-159) Multiple components
by Scott M Stark (JIRA)
Multiple components
--------------------
Key: JBMICROCONT-159
URL: http://jira.jboss.com/jira/browse/JBMICROCONT-159
Project: JBoss MicroContainer
Issue Type: Bug
Components: Deployment
Affects Versions: JBossMC_2_0_0 Beta3
Reporter: Scott M Stark
There is a problem with how component deployments are handled. When a DeploymentUnit contains multiple sources of component metadata (a jar with a META-INF/*-beans.xml,*-service.xml for example), duplicate processing of components is occuring. This is due to the AbstractComponentDeployer.deployComponents query for the component metadata:
protected void deployComponents(DeploymentUnit unit) throws DeploymentException
{
if (compVisitor == null)
return;
Set<? extends C> components = unit.getAllMetaData(componentType);
for (C component : components)
compVisitor.deploy(unit, component);
}
The DeploymentUnit.getAllMetaData(componentType) for the current DeploymentComponentContext looks to its parent for metadata. This combined with the recursive processing in the MainDeployerImpl.commitDeploy:
private void commitDeploy(Deployer deployer, DeploymentContext context, Set<DeploymentContext> components)
throws DeploymentException
{
DeploymentContext[] theComponents = null;
if (components != null && components.isEmpty() == false)
theComponents = components.toArray(new DeploymentContext[components.size()]);
DeploymentUnit unit = context.getDeploymentUnit();
deployer.commitDeploy(unit);
try
{
if (theComponents != null)
{
for (int i = 0; i < theComponents.length; ++i)
{
try
{
Set<DeploymentContext> componentComponents = theComponents[i].getComponents();
commitDeploy(deployer, theComponents[i], componentComponents);
}
catch (DeploymentException e)
{
// Unwind the previous components
for (int j = i-1; j >=0; --j)
prepareUndeploy(deployer, theComponents[j], true);
throw e;
}
}
}
}
catch (DeploymentException e)
{
prepareUndeploy(deployer, context, false);
throw e;
}
}
Results in a structure like:
DU(some.jar)
+ CDC(Bean1)
+ CDC(ServiceBean2)
+ CDC(Bean2)
+ CDC(ServiceBean2)
+ CDC(ServiceBean1)
+ CDC(ServiceBean2)
+ CDC(ServiceBean2)
The service deployer components are being recursively added to the kernel components and duplicate install errors result.
See the org.jboss.test.deployers.deployer.test.MultipleComponentTypeUnitTestCase
--
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
18 years, 7 months
[JBoss JIRA] Created: (JBCACHE-707) PojoCache to aspectize JDom classes
by Ben Wang (JIRA)
PojoCache to aspectize JDom classes
-----------------------------------
Key: JBCACHE-707
URL: http://jira.jboss.com/jira/browse/JBCACHE-707
Project: JBoss Cache
Issue Type: Task
Security Level: Public (Everyone can see)
Components: PojoCache
Reporter: Ben Wang
Assigned To: Ben Wang
Fix For: POJOCache
This is suggested by Bela during a customer visit. Idea is the customer is using JDom internally to store the documents such as mail, fax, email, parcel, and the like. However, for clustering purpose, each single update on document element would require replication of the whole document. Not a very efficient process.
If PojoCache can aspectize JDom classes then fine-grained replication can be done transparently.
--
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
18 years, 7 months
[JBoss JIRA] Created: (JBPM-756) log.debug calls are unprotected
by Dave Caruana (JIRA)
log.debug calls are unprotected
-------------------------------
Key: JBPM-756
URL: http://jira.jboss.com/jira/browse/JBPM-756
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM 3.1.2
Environment: Window XP, Java 5
Reporter: Dave Caruana
Assigned To: Tom Baeyens
Within org.jbpm.context.exe.VariableContainer there are calls to log.debug. In particular:
line 156: log.debug("create variable '"+name+"' in '"+this+"' with value '"+value+"'");
line 160: log.debug("update variable '"+name+"' in '"+this+"' to value '"+value+"'");
However, they are unprotected i.e. the method is called even if debug logging is not switched on. This is not too much of a problem if the variable value is of a primitive type, but sometimes, values can be complex (including their toString()).
"if (log.isDebugEnabled())" statements are missing.
--
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
18 years, 7 months
[JBoss JIRA] Created: (JBRULES-723) Eclipse plugin detects error inconsistently and without location information
by Scott Reed (JIRA)
Eclipse plugin detects error inconsistently and without location information
----------------------------------------------------------------------------
Key: JBRULES-723
URL: http://jira.jboss.com/jira/browse/JBRULES-723
Project: JBoss Rules
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Eclipse IDE
Affects Versions: 3.0.5
Environment: JRE 1.5_10, Eclipse 3.2, Windows 2000
Reporter: Scott Reed
Assigned To: Mark Proctor
The Eclipse plugin is tagging the DRL file in Package Explorer with an error and the Problem tab shows an error in the DRL file, location unknown. However, there is no error shown in the editor and the rules seems to run without any problem.
If I edit the DRL by adding white space the error description will change. Once it was ExceptionInInitializer, once it was just blank, once it was complaining about an unknown function and displaying text from log message, and now it is NPE. In all cases no error is displayed in the editor and the rules run without an error.
I will load a screen shot.
--
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
18 years, 7 months