[JBoss JIRA] Updated: (JBCACHE-131) Cache Loaders (when unshared, and not used with passivation) Should Persist Transient State Upon Startup
by Manik Surtani (JIRA)
[ http://jira.jboss.com/jira/browse/JBCACHE-131?page=all ]
Manik Surtani updated JBCACHE-131:
----------------------------------
Fix Version/s: 2.2.0.GA
(was: 2.1.0.GA)
(was: 1.4.X)
> Cache Loaders (when unshared, and not used with passivation) Should Persist Transient State Upon Startup
> --------------------------------------------------------------------------------------------------------
>
> Key: JBCACHE-131
> URL: http://jira.jboss.com/jira/browse/JBCACHE-131
> Project: JBoss Cache
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Affects Versions: 1.2.2
> Reporter: Jimmy Wilson
> Assigned To: Manik Surtani
> Priority: Minor
> Fix For: 2.2.0.GA
>
> Attachments: TreeCache.zip
>
>
> Given the following single, unshared cache loader use case in the TreeCache documentation:
> "This is a similar case as the previous one, but here only one node in the cluster interacts with a backend store via its CacheLoader. All other nodes perform in-memory replication. A use case for this is HTTP session replication, where all nodes replicate sessions in-memory, and - in addition - one node saves the sessions to a persistent backend store"
> A cache with attached cache loader should persist the transient state of the cache to disk upon startup in order to maintain cache recoverability.
> I have modified TreeCache to handle this situation, and I will attach the modified code to this 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
16 years, 11 months
[JBoss JIRA] Created: (JASSIST-41) javassist.expr.NewExpr.replace(...) fails if created object is not assigned to variable
by Martin Burger (JIRA)
javassist.expr.NewExpr.replace(...) fails if created object is not assigned to variable
---------------------------------------------------------------------------------------
Key: JASSIST-41
URL: http://jira.jboss.com/jira/browse/JASSIST-41
Project: Javassist
Issue Type: Bug
Environment: Eclipse
Reporter: Martin Burger
Assigned To: Shigeru Chiba
I implemented a ExprEditor that replaces new expressions. However, if the editor should replace a constructor call whose return value (the newly created object) is not assigned to a local variable, the method javassist.expr.NewExpr.canReplace(...) throws a CannotCompileException "sorry, cannot edit NEW followed by no DUP".
The constructor has one parameter of type String, the method looks like that one:
public void trigger() {
new C("some string");
}
In the byte code (Eclipse compiler) of the method that contains that constructor call is a LDC before the expected INVOKESPECIAL, so the method canReplace(...) fails:
NEW C
LDC "some string"
INVOKESPECIAL C.<init>(Ljava/lang/String;)V
If I add an assignment, there will be a DUP before the LDC:
public void trigger() {
C c = new C("some string");
}
NEW C
DUP
LDC "some string"
INVOKESPECIAL C.<init>(Ljava/lang/String;)V
--
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
16 years, 11 months
[JBoss JIRA] Created: (JBAS-5068) Possible NullPointerException in DistributedReplicantManager#_add()
by Takayoshi Kimura (JIRA)
Possible NullPointerException in DistributedReplicantManager#_add()
-------------------------------------------------------------------
Key: JBAS-5068
URL: http://jira.jboss.com/jira/browse/JBAS-5068
Project: JBoss Application Server
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Clustering
Affects Versions: JBossAS-4.2.2.GA, JBossAS-4.2.1.GA, JBossAS-4.2.0.GA
Reporter: Takayoshi Kimura
Assigned To: Brian Stansberry
Priority: Minor
DistributedReplicantManager#_add() can be called before
asynchHandler initialization when multiple nodes starts
simultaneously. It results NullPointerException below:
2007-11-09 20:40:17,315 ERROR [org.jboss.ha.framework.server.DistributedReplicantManagerImpl.DefaultPartition] _add failed
java.lang.NullPointerException
at org.jboss.ha.framework.server.DistributedReplicantManagerImpl._add(DistributedReplicantManagerImpl.java:622)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.jgroups.blocks.MethodCall.invoke(MethodCall.java:330)
at org.jboss.ha.framework.server.HAPartitionImpl.handle(HAPartitionImpl.java:1126)
at org.jgroups.blocks.RequestCorrelator.handleRequest(RequestCorrelator.java:654)
at org.jgroups.blocks.RequestCorrelator.receiveMessage(RequestCorrelator.java:544)
at org.jgroups.blocks.RequestCorrelator.receive(RequestCorrelator.java:367)
at org.jgroups.blocks.MessageDispatcher$ProtocolAdapter.up(MessageDispatcher.java:777)
at org.jgroups.JChannel.up(JChannel.java:1091)
Impact:
Nothing so far, just appearing the ERROR log above.
To reproduce this:
It's very hard to reproduce.
Insert Thread.sleep() call before asynchHandler initialization in
DistributedReplicantManager#start() and boot multiple nodes
simultaneously.
DistributedReplicantManager#start():
// Create the asynch listener handler thread
Thread.sleep(10000);
asynchHandler = new AsynchEventHandler(this, "AsynchKeyChangeHandler");
asynchHandler.start();
--
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
16 years, 11 months