[JBoss Web Services] - Re: JAXWS error on jboss 6.0
by Jayaram Pradhan
Jayaram Pradhan [https://community.jboss.org/people/jayaramimca] created the discussion
"Re: JAXWS error on jboss 6.0"
To view the discussion, visit: https://community.jboss.org/message/726451#726451
--------------------------------------------------------------
Hello Jay,
Thanks for the quick reply, Please go ahed to move this post and let me know how can I will keep track of this issue.
I need to add one more point to the above, On hit and trail basics trying to resolve the issue, I put spring-beans-3.0.5.RELEASE.jar to ${JBOSS-SERVER}/lib/
folder, Now the
Caused by: java.lang.ClassNotFoundException: org.springframework.beans.BeansException , issue is not coming, where as its not able to detect the proxy class created by wsimport, I mean not able to inject this service.
Thanks,
Jayaram.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/726451#726451]
Start a new discussion in JBoss Web Services at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years
[jBPM] - Re: Difficult workflow question
by John Bize
John Bize [https://community.jboss.org/people/jbize] created the discussion
"Re: Difficult workflow question"
To view the discussion, visit: https://community.jboss.org/message/727247#727247
--------------------------------------------------------------
I am using the Process Editor in eclipse and am having problems.
* The "Multiple Instances" Component does not have an "Exception Handlers" property. I thought that was where I would specify the handler for the "Yes" event. (the boundary event handler)
* When I create a "Multiple Instances" sub-process, exit, and reenter the editor, all of the components have large negative x & y locations. They aren't even visible. The "Multiple Instances" component becomes a scrolling pane, and I have to drag each embedded component back into position. I thought adding a UniqueId to the enclosing sub-process would help, but there's no MetaData property either.
* I'm using the Error Event to signal the Yes event, again, with no "Exception Handlers," but it looks like I can only use a Signal Event to continue the process outside the sub-process. There doesn't seem to be a "catch" version of the Error Event.
In short, I couldn't draw your diagram. Is there a better editor I should be using?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/727247#727247]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years
[JBoss AOP] - Jboss AOP classloading bug
by ud1
ud1 [https://community.jboss.org/people/ud1] created the discussion
"Jboss AOP classloading bug"
To view the discussion, visit: https://community.jboss.org/message/715200#715200
--------------------------------------------------------------
I'm using JBoss 6.0.0 with AOP for logging user actions and function call durations. Functions of interest are marked by our custom @Trace annotation and there is an our tracing aspect, that do all the work. But sometimes, probably after jboss restart, some random functionality of the project becomes unavailable, e.g. some dropdown lists didn't working or some buttons pressing do nothing. After second rebooting everething work fine. I can't reproduce this on my machine, but customers regulary (once or twice a month) reporting about the problem. Here is the typical log with org.jboss.classpool logging on:
http://pastebin.com/f4TEduCB http://pastebin.com/f4TEduCB
When all is functioning properly the log look's like:
http://pastebin.com/zZKPk643 http://pastebin.com/zZKPk643
I have made some investigation and degugging, so probably I have found the cause of the problem.
At first, if you look at ClassPoolToDomainAdapter with a lot of byte array class paths in it, you could see the difference, at normal working this list
contains BaseClassLoader@xxxxxx{vfs:///D:/retailHub/loan/server/default/deploy/myProject.ear} ClassPath at the end, but then the problem is it doesn't.
After deepest code investigation I figured out, that this could happen then something call close() on а ClassPool, and this probably happens inside unregisterClassLoader() function.
During joint point constraction Aspect Manager calls several times unregisterClassLoader() function:
ClassPoolRepository
public void unregisterClassLoader(ClassLoader classLoader)
{
registryHandler.unregisterClassLoader(classLoader); // <-- calls JBossClRegistryHandler.unregisterClassLoader()
if (callbacks != null && callbacks.size() > 0)
{
for (ClassPoolRepositoryCallback callback : callbacks)
{
callback.classLoaderUnregistered(classLoader);
}
}
}
which in turn calls JBossClRegistryHandler.registerClassLoader() functions with possible result of a closing the class pool.
JBossClRegistryHandler
public ClassPool registerClassLoader(ClassLoader classLoader)
{
ScopedClassPool classPool = (ScopedClassPool) successor.registerClassLoader(classLoader);
if (classPool == null) // <-- true
{
// TODO check this works; was delegate before
successor.unregisterClassLoader(classLoader); // <-- calls classLoader.close()
}
else
{
Module module = getModuleForClassLoader(classLoader);
this.registeredModules.put(module, classPool);
}
return classPool;
}
I can't understand what is the purpose of the DefaultClassLoaderRegistryHandler, but it can return null from registerClassLoader() function,
probaly then several jointpoints are generated concurrently from different threads:
ClassPoolRepository$DefaultClassLoaderRegistryHandler
public ClassPool registerClassLoader(ClassLoader classLoader)
{
if (classLoader == null)
{
classLoader = SecurityActions.getContextClassLoader();
}
if (currentClassLoaders.putIfAbsent(classLoader, Boolean.TRUE) != null)
{
return null; // <-- Returns null
}
ScopedClassPool classPool = (ScopedClassPool) ClassPoolRepository.super.registerClassLoader(classLoader);
currentClassLoaders.remove(classLoader);
return classPool;
}
ScopedClassPoolRepositoryImpl:
public void unregisterClassLoader(ClassLoader cl) {
synchronized (registeredCLs) {
ScopedClassPool pool = registeredCLs.remove(cl);
if (pool != null)
pool.close(); // <-- close
}
}
ScopedClassPool:
public void close() {
this.removeClassPath(classPath); // <-- remove BaseClassLoader@xxxxxx{vfs:///D:/retailHub/loan/server/default/deploy/myProject.ear} classpath
classPath.close();
classes.clear();
softcache.clear();
}
During joint point creation the myProject.war class loader is used, it redirects calls to JBossClClassPoolDomain, and in turn to SuperClassesFirstWeavingStrategy, and finally
the reference to the old ClassPool (with a lot of byte array class paths) is used. Is has no myProject.ear ClassLoader any more, so NotFoundException is fired.
I don't know how to fix this, I will appreciate your help.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/715200#715200]
Start a new discussion in JBoss AOP at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years