[JBoss Web Services] New message: "Re: org.jboss.ws.WSException: Invalid HTTP server response [411] - Length Required"
by Michael Eibeck
User development,
A new message was posted in the thread "org.jboss.ws.WSException: Invalid HTTP server response [411] - Length Required":
http://community.jboss.org/message/521363#521363
Author : Michael Eibeck
Profile : http://community.jboss.org/people/skymic
Message:
--------------------------------------------------------------
Problem solved.
The remote WSEndpoint did not like the HTTP Chunking feature activated.
Now I has to disable this feature for my WS client.
This can be done as follows:
QName qname = new QName(namespace,"TapasAuthentificationServiceV1.0");
String className = System.getProperty("xxxx.service.factory.auth", xxxxAuthentificationServiceV10_Service.class.getName());
xxxxAuthentificationServiceV10_Service service = (xxxxAuthentificationServiceV10_Service)getServiceInstance(className, serviceUrl, qname);
// switch off Chunking feature of HPPP1.1
ChunkedEncodingFeature feature = new ChunkedEncodingFeature(false);
return service.getxxxxAuthentificationServiceV10SOAPhttp(feature);
The JBoss version which I used is JBoss-5.1.0-GA. This version comes with the JBossWS 3.1.0 stack.
The class ChunkedEncodingFeature exists only in JBossWS 3.2.0 stacks and higher.
I has to download JBossWS 3.2.0 separately and install it for JBoss-5.1.0-GA which worked fine (follow the Installation guide for JBossWS).
When I deployed and run my application the exception was gone.
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521363#521363
16 years, 3 months
[JBoss Cache] New message: "How to evict a node when all its children have been evicted?"
by Nicolas Filotto
User development,
A new message was posted in the thread "How to evict a node when all its children have been evicted?":
http://community.jboss.org/message/521362#521362
Author : Nicolas Filotto
Profile : http://community.jboss.org/people/nfilotto
Message:
--------------------------------------------------------------
Hi All,
Since the last past days, I have been working on finding a memory leak in my program. I finally identified it, in fact it is due to the fact that in JBC when all the sub nodes of a JBC node are evicted, the parent node is never evicted even if it has not been declared resident.
Let's take a concrete example
We assume that I have the following configuration
{code}
<eviction wakeUpInterval="5000">
<default algorithmClass="org.jboss.cache.eviction.FIFOAlgorithm" eventQueueSize="1000000">
<property name="maxNodes" value="1" />
</default>
</eviction>
{code}
if I first call cache.put(Fqn.fromElements("1","1"),key,value)
If I then call cache.put(Fqn.fromElements("2"),key,value), the node "/1/1" is evicted but its parent node "/1" is not evicted
If I then call cache.put(Fqn.fromElements("3"),key,value), the node "/2" is evicted but node "/1" is still present.
This zombie node (i.e. node "/1") is the cause of my memory leak. So my question is, is there a way to make JBC evicts those kind of nodes?
To limit the memory leak, I implemented a EvictionActionPolicy, but I would like to know if there is a better solution. If I don't have any other way, could you check my code below and tell me how I could improve it, because up to now, it fixes about 95% of the memory leak but it seems that it doesn't work 100% of the time:
{code}
public class MyEvictionActionPolicy implements EvictionActionPolicy
{
Cache<?, ?> cache;
private static final Log log = LogFactory.getLog(DefaultEvictionActionPolicy.class);
public void setCache(Cache<?, ?> cache)
{
this.cache = cache;
}
public boolean evict(Fqn fqn)
{
boolean result;
try
{
if (log.isTraceEnabled()) log.trace("Evicting Fqn " + fqn);
cache.evict(fqn);
result = true;
}
catch (Exception e)
{
if (log.isDebugEnabled()) log.debug("Unable to evict " + fqn, e);
result = false;
}
try
{
Fqn parentFqn = fqn.getParent();
// My problem only occurs with the nodes under
if (parentFqn.size() == 2
&& (parentFqn.get(0).equals(JBossCacheWorkspaceStorageCache.CHILD_NODES) || parentFqn.get(0).equals(
JBossCacheWorkspaceStorageCache.CHILD_PROPS)))
{
Node<?, ?> node = cache.getNode(parentFqn);
Set<Object> names = node.getChildrenNames();
if (names.isEmpty() || (names.size() == 1 && names.contains(parentFqn.get(1))))
{
cache.evict(parentFqn);
}
}
}
catch (Exception e)
{
if (log.isDebugEnabled()) log.debug("Unable to evict " + fqn, e);
}
return result;
}
}
{code
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521362#521362
16 years, 3 months
[EJB 3.0] New message: "Re: Why EJB 2.0 TO EJB 3.0 migration?"
by jaikiran pai
User development,
A new message was posted in the thread "Why EJB 2.0 TO EJB 3.0 migration?":
http://community.jboss.org/message/521347#521347
Author : jaikiran pai
Profile : http://community.jboss.org/people/jaikiran
Message:
--------------------------------------------------------------
> pravumishra wrote:
>
> my beans are not packed into separate jars, instead those are packed into single jar file inside the EAR.
>
>
You cannot have both EJB2.x and EJB3.x beans in a single jar.
> pravumishra wrote:
>
> Hi Jaikiran,
>
> Please find attached a zip file
For files like this, it's better to post the contents here instead of attaching them as an attachment. Posting the contents allows for a quick glance of the files instead of having to download the attachment (which for the most common cases is just a waste of time).
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521347#521347
16 years, 3 months
[jBPM] New message: "Re: Unable to distingusih between pooled-Actors and Swimlane"
by john britto
User development,
A new message was posted in the thread "Unable to distingusih between pooled-Actors and Swimlane":
http://community.jboss.org/message/521340#521340
Author : john britto
Profile : http://community.jboss.org/people/brittobics
Message:
--------------------------------------------------------------
of course
I can assign to any of the Pooled Actor in the place of Admin1 by the attribute PooledActor
<task-node name="Registartion_Approve_By_Admin1">
<task swimlane="Admin1"></task>
<transition to="Registration_Approve_By_Admin2" name="To_Approve_Admin2"></transition>
</task-node>
The real problem is The users of Amin1 are A,B,C,D
Among four user any one can Approve the Registration. I do not know who will do it first.
if any one of the user (A,B,C,D) does approve others should not approve the Registration
So that i use locking the token.
If it is wrong way please suggent the way to do
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/521340#521340
16 years, 3 months