Thanks Wolfgang Knauf !!
This problem was solved now that was due to Classloader. issue
the scenario is,I have Mbean application runing in its own classloader
isolation scope and ejb 3.0 ear running in own. Mbean Application is calling
bean from ejb ear. but since in ear-deployer.xml the CallByValue and Isolated
attributes were set to false that was the exact problem, when I switched those
and CallByValue attribute in Jboss-service.xmls' to true Mbean application
is able to call bean but now I have new problem as side effect in ejb
application I am calling another bean using Local Interface that was not
working. could you please help why it would not be able to call Local inteface
of ejb reside in same ear
in response of your question
My Client is an Mbean application that reads data files from one directory then
transform and validate that data using Jboss rule engine(this running in its
own class loader scope) Mbean application contains ejb-client.jar that
contains remote and other classes
DataLoaderThread.java(Client)
| public void run() {
| try {
| PatientFacade patientFacade = new PatientFacade();
| isRunning = true;
| init();
|
| contactCache = new ContactVOCache();
|
| while (isRunning) {
| // TODO: decide (from a system setting) if this server is
supposed to work as data loader, otherwise just go to sleep again.
|
| ZipHandler zipHandler = null;
| File file;
| contactCache.clear();
|
| try {
|
| file = queue.removeFile(); //
This method puts the thread to sleep until a file is available.
| long startTime = System.currentTimeMillis(); // New
file detected. Measure the exucution time for statistic purpose.
| long nextInfoTime = startTime + 5000;
|
| if (logger.isInfoEnabled()) {
| logger.info("New file detected: " + file);
| }
|
| zipHandler = new ZipHandler(file);
|
| RawFileStatus rawFileStatus = zipHandler.getStatus();
| boolean rawFileWasRejectedByInitialValidation =
(rawFileStatus.getError() != null);
|
| long rawFileId = saveRawFile(zipHandler,
rawFileStatus); // Always save the zip file to the raw data archive
|
| if (rawFileWasRejectedByInitialValidation) {
| if (logger.isInfoEnabled()) {
| logger.info("Raw data file " + zipHandler + "
saved with raw data ID " + rawFileId + ". This file was rejected by the initial
validation - no further processing is done.");
| }
| } else {
| String provider = rawFileStatus.getProviderName();
| long dataProducer = 1; // TODO: Transform raw file
"provider" to a dataProducer via database lookup.
|
| if (logger.isInfoEnabled()) {
| logger.info("Raw data file " + zipHandler + "
saved with raw data ID " + rawFileId);
| }
|
| int numberOfContacts = 0;
|
|
| RawZipStreamIterator rawZipStreamIterator = new
RawZipStreamIterator(file);
| while (rawZipStreamIterator.hasNext()) {
| RawFileRecordIndud indud =
rawZipStreamIterator.nextIndud();
| ContactVOAssemblerFromRawdata assembler = new
ContactVOAssemblerFromRawdata();
| ContactVO contactVO =
assembler.createContactVO(indud);
|
contactVO.setReportedByDataProducerID(dataProducer);
|
| contactVO = ruleEngine.process(contactVO); //
NOTE: Remote call means that we get a new instance in contactVO !!!!
|
| numberOfContacts++;
|
| // TODO: contactVO.setValidationStatus(
/* String validationStatus */);
| //TODO contactCache is just dummy classes need
to be chagend with real implemntation
| contactVO.setValidationTimestamp(new Date());
| contactCache.push(contactVO);
|
| if (logger.isInfoEnabled() && nextInfoTime <
System.currentTimeMillis()) {
| nextInfoTime += 5000;
| logger.info("Number of contacts processed
until now: " + numberOfContacts);
| }
| }
|
| rawZipStreamIterator.close();
|
| if (contactCache.getErrorPercentage() >
ERROR_PERCENTAGE) {
| //TODO where we have to go from now
| } else {
| if (logger.isInfoEnabled())
logger.info("Starting to save contacts to the database.");
| ContactFacade contactFacade =
ContactFacade.getInstance();
|
| int saveCounter = 0;
| int saveErrorCounter = 0;
| int saveOkCounter = 0;
| while (contactCache.hasMore()) {
| saveCounter++;
| ContactVO contact = contactCache.pop();
| try {
| contactFacade.saveContact(contact);
| saveOkCounter++;
| } catch (Exception e) {
| saveErrorCounter++;
| logger.error("Could not save contact
no. " + saveCounter, e);
| }
| }
| logger.info("Tried to save " + saveCounter + "
contacts. " + saveOkCounter + " were saved, " + saveErrorCounter + " failed");
| }
|
| if (logger.isInfoEnabled())
| logger.info("Raw file processed. Total number
of contacts: " + numberOfContacts + "." +
| " Execution Time: " +
(System.currentTimeMillis() - startTime) / 1000L + " sec.");
|
| // TODO: update raw file archive, to set the time, when the processing of
this file was completed.x
| // TODO: update the marker for this data producer, that a new total error
list is to be produced
|
| }
|
| zipHandler.close();
| zipHandler = null;
| FileUtils.delete(file);
|
| } catch (DataLoaderException t) {
| logger.error("DataLoaderThread[" + this.getName() + "]
execute error", t);
| } finally {
| if (zipHandler != null) {
| zipHandler.close();
| }
| }
| }
| } catch (InterruptedException e) {
| logger.info("DataLoaderThread[" + this.getName() + "] stopped");
| } catch (Error error) {
| isRunning = false;
| logger.error("Severe error in the worker thread [" +
this.getName() + "]. The thread terminates", error);
| throw error;
| } catch (Throwable t) {
| isRunning = false;
| logger.error("What happend? ... we got an unexpected Exception
in the worker thread [" + this.getName() + "]. The thread terminates", t);
| throw new RuntimeException(t);
| }
| isRunning = false;
| }
|
RuleEngineBean. java(EJB-Bean)
| @Stateful(name = "RuleEngine")
| public class RuleEngineBean implements RuleEngineRemote, RuleEngine{
|
| private static final Logger logger=
Logger.getLogger(RuleEngineBean.class);
| private RuleBase ruleBase = null;
| /**
| * @param contactVO to be validated against rules
| * @return ContactdVo populated with ruleId and Error Source object
| */
| public ContactVO processContact(ContactVO contactVO) {
| try {
| StatelessSession session = ruleBase.newStatelessSession();
| session.execute(contactVO);
| return contactVO;
| } catch (Throwable ex) {
| logger.fatal("Severe error while processing ContactVo rule",
ex);
| throw new EJBException("Fatal error while parsing rule");
| }
| }
| @PostConstruct
| private void getRuleBase(){
| try {
| ruleBase = new RuleBaseBuilder().getRuleBase();
| } catch (RuleParserException ex) {
| logger.error("Rule Parser Exception while initializing
Rulebase");
| throw new EJBException(ex);
| }
| }
|
| /**
| * parse rule as per Drools rules 4 format
| * @param ruleDefinitionVO RuleDefinitionLite
| * @return RuleDefinitionErrorVO if any error found else null
| */
| public void parseRule(RuleDefinitionVO ruleDefinitionVO) throws
RuleParserException{
|
| new RuleParser().parseRule(ruleDefinitionVO);
|
| }
|
| /**
| * clears Cache of RuleBase in Rule Engine
| */
| public void clearCache() {
| try {
| new RuleBaseBuilder().clearCache();
| } catch (Throwable ex) {
| logger.fatal("Severe Error while clearing RuleBase cache", ex);
| throw new EJBException("Fatal error while clearing RuleBase
cache");
| }
| }
| }
RuleBaseBuilder class used by RuleEngineBean and Call another bean Using Local
interface and gives error
|
| public class RuleBaseBuilder implements Serializable {
|
| private final static Logger logger =
Logger.getLogger(RuleBaseBuilder.class);
| private static final RuleBaseCache cache = new RuleBaseCache();
|
| /**
| * getRuleBase method builds and returns rulebase
| * from cache if available, else buils and returns new rule base
| *
| * @return RuleBase with all rules
| */
| public RuleBase getRuleBase() throws RuleParserException {
| RuleBase ruleBase = cache.getRuleBase();
| if (ruleBase == null) {
| ruleBase = buildRuleBase();
| cache.putRuleBase(ruleBase);
| }
| return ruleBase;
| }
|
| /**
| * Clears cache
| */
| public void clearCache() {
| cache.remove();
| }
|
|
| private RuleBase buildRuleBase() {
| List<RuleDefinitionVO> list = this.getDBRules();
| RuleBase rb = RuleBaseFactory.newRuleBase();
|
| for (RuleDefinitionVO ruleVO : list) {
|
| try {
| if(ruleVO.getId()<=100000){continue;}
| rb.addPackage(new RuleParser().buildPackage(ruleVO));
|
| } catch (Exception e) {
| //todo MUST FIX deside what todo if some rules failed to
load in memory
| Rule rule=new Rule(ruleVO) ;
| logger.error("Rule:"+ rule.getId() + " can't loaded to
memory " + e.getMessage());
| }
| }
| return rb;
| }
|
| private List<RuleDefinitionVO> getDBRules() {
| RuleManagerLocal manager = getRuleMangerLocal();
| List<RuleDefinitionVO> list = manager.getAllRules();
| logger.debug("Downloaded Rules from database");
|
| return list;
| }
| /**
| * TODO refactoring
| */
| public RuleManagerLocal getRuleMangerLocal() {
| try {
| return (RuleManagerLocal) new
InitialContext().lookup("lpr/RuleManager/local");
| } catch (NamingException e) {
| throw new LPRException(LPRErrorCode.SYSTEM_INTERNAL_ERROR,
"Failed to get RuleManagerRemote", e);
| } catch (Throwable t) {
| throw new LPRException(LPRErrorCode.SYSTEM_INTERNAL_ERROR,
"Failed to get RuleManagerRemote", t);
| }
| }
| }
|
|
exception stack trace
|
| 09:51:20,994 ERROR [STDERR] java.lang.RuntimeException:
com.logica.heca.lpr.common.exception.LPRException: Failed to get Rule
| ManagerRemote
| 09:51:20,994 ERROR [STDERR] at
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorH
| andler.java:113)
| 09:51:20,994 ERROR [STDERR] at
org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:623)
| 09:51:20,994 ERROR [STDERR] at
org.jboss.ejb3.AbstractPool.create(AbstractPool.java:131)
| 09:51:20,994 ERROR [STDERR] at
org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
| 09:51:20,994 ERROR [STDERR] at
org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50)
| 09:51:20,994 ERROR [STDERR] at
org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| 09:51:20,994 ERROR [STDERR] at
org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:315)
| 09:51:21,010 ERROR [STDERR] at
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:320)
| 09:51:21,010 ERROR [STDERR] at
org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:81)
| 09:51:21,010 ERROR [STDERR] at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
| 09:51:21,010 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 09:51:21,010 ERROR [STDERR] at
org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:139)
| 09:51:21,010 ERROR [STDERR] at $Proxy116.processContact(Unknown Source)
| 09:51:21,010 ERROR [STDERR] at
com.logica.heca.lpr.services.facade.RuleEngineFacade.process(RuleEngineFacade.java:31)
| 09:51:21,010 ERROR [STDERR] at
com.logica.heca.lpr.dataLoader.DataLoaderThread.run(DataLoaderThread.java:129)
| 09:51:21,010 ERROR [STDERR] Caused by:
com.logica.heca.lpr.common.exception.LPRException: Failed to get
RuleManagerRemote
| 09:51:21,010 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleMangerLocal(RuleBaseBuilder.java:95)
|
| 09:51:21,010 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getDBRules(RuleBaseBuilder.java:82)
| 09:51:21,010 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.buildRuleBase(RuleBaseBuilder.java:63)
| 09:51:21,010 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleBase(RuleBaseBuilder.java:48)
| 09:51:21,010 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleEngineBean.getRuleBase(RuleEngineBean.java:46)
| 09:51:21,010 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 09:51:21,010 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 09:51:21,010 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:51:21,010 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:597)
| 09:51:21,010 ERROR [STDERR] at
org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationConte
| xtImpl.java:159)
| 09:51:21,010 ERROR [STDERR] at
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorH
| andler.java:109)
| 09:51:21,010 ERROR [STDERR] ... 14 more
| 09:51:21,010 ERROR [STDERR] Caused by: javax.naming.CommunicationException
[Root exception is java.lang.ClassNotFoundExceptio
| n: No ClassLoaders found for: com.logica.heca.lpr.services.RuleManagerLocal
(no security manager: RMI class loader disabled)]
|
| 09:51:21,010 ERROR [STDERR] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:786)
| 09:51:21,010 ERROR [STDERR] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| 09:51:21,010 ERROR [STDERR] at
javax.naming.InitialContext.lookup(InitialContext.java:392)
| 09:51:21,010 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleMangerLocal(RuleBaseBuilder.java:93)
|
| 09:51:21,010 ERROR [STDERR] ... 24 more
| 09:51:21,025 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: No
ClassLoaders found for: com.logica.heca.lpr.servi
| ces.RuleManagerLocal (no security manager: RMI class loader disabled)
| 09:51:21,025 ERROR [STDERR] at
sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:535)
| 09:51:21,025 ERROR [STDERR] at
java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
| 09:51:21,025 ERROR [STDERR] at
org.jboss.system.JBossRMIClassLoader.loadProxyClass(JBossRMIClassLoader.java:82)
| 09:51:21,025 ERROR [STDERR] at
java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
| 09:51:21,025 ERROR [STDERR] at
sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
| 09:51:21,025 ERROR [STDERR] at
java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531)
| 09:51:21,025 ERROR [STDERR] at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
| 09:51:21,025 ERROR [STDERR] at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
| 09:51:21,025 ERROR [STDERR] at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
| 09:51:21,025 ERROR [STDERR] at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
| 09:51:21,025 ERROR [STDERR] at
java.rmi.MarshalledObject.get(MarshalledObject.java:142)
| 09:51:21,025 ERROR [STDERR] at
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
| 09:51:21,025 ERROR [STDERR] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
| 09:51:21,025 ERROR [STDERR] ... 27 more
| 09:51:21,307 ERROR [DataLoaderThread] What happend? ... we got an
unexpected Exception in the worker thread [DataLoaderThrea
| d-26]. The thread terminates
| javax.ejb.EJBException: java.lang.RuntimeException:
com.logica.heca.lpr.common.exception.LPRException: Failed to get RuleMana
| gerRemote
| at
org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:337)
| at
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:320)
| at
org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:81)
| at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
| at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at
org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:139)
| at $Proxy116.processContact(Unknown Source)
| at
com.logica.heca.lpr.services.facade.RuleEngineFacade.process(RuleEngineFacade.java:31)
| at
com.logica.heca.lpr.dataLoader.DataLoaderThread.run(DataLoaderThread.java:129)
| Caused by: java.lang.RuntimeException:
com.logica.heca.lpr.common.exception.LPRException: Failed to get
RuleManagerRemote
| at
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:113)
| at
org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:623)
| at org.jboss.ejb3.AbstractPool.create(AbstractPool.java:131)
| at org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
| at org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50)
| at org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| at
org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:315)
| ... 8 more
| Caused by: com.logica.heca.lpr.common.exception.LPRException: Failed to get
RuleManagerRemote
| at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleMangerLocal(RuleBaseBuilder.java:95)
| at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getDBRules(RuleBaseBuilder.java:82)
| at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.buildRuleBase(RuleBaseBuilder.java:63)
| at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleBase(RuleBaseBuilder.java:48)
| at
com.logica.heca.lpr.ruleengine.RuleEngineBean.getRuleBase(RuleEngineBean.java:46)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at
org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationContextImpl.java:159)
| at
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorHandler.java:109)
| ... 14 more
| Caused by: javax.naming.CommunicationException [Root exception is
java.lang.ClassNotFoundException: No ClassLoaders found for
| : com.logica.heca.lpr.services.RuleManagerLocal (no security manager: RMI
class loader disabled)]
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:786)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| at javax.naming.InitialContext.lookup(InitialContext.java:392)
| at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleMangerLocal(RuleBaseBuilder.java:93)
| ... 24 more
| Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for:
com.logica.heca.lpr.services.RuleManagerLocal (no sec
| urity manager: RMI class loader disabled)
| at
sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:535)
| at
java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
| at
org.jboss.system.JBossRMIClassLoader.loadProxyClass(JBossRMIClassLoader.java:82)
| at
java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
| at
sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
| at
java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531)
| at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
| at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
| at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
| at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
| at java.rmi.MarshalledObject.get(MarshalledObject.java:142)
| at
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
| ... 27 more
| 09:51:21,338 ERROR [STDERR] Exception in thread "DataLoaderThread-26"
| 09:51:21,338 ERROR [STDERR] java.lang.RuntimeException:
javax.ejb.EJBException: java.lang.RuntimeException: com.logica.heca.l
| pr.common.exception.LPRException: Failed to get RuleManagerRemote
| 09:51:21,338 ERROR [STDERR] at
com.logica.heca.lpr.dataLoader.DataLoaderThread.run(DataLoaderThread.java:199)
| 09:51:21,338 ERROR [STDERR] Caused by: javax.ejb.EJBException:
java.lang.RuntimeException: com.logica.heca.lpr.common.excepti
| on.LPRException: Failed to get RuleManagerRemote
| 09:51:21,338 ERROR [STDERR] at
org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:337)
| 09:51:21,338 ERROR [STDERR] at
org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:320)
| 09:51:21,338 ERROR [STDERR] at
org.jboss.ejb3.remoting.IsLocalInterceptor.invokeLocal(IsLocalInterceptor.java:81)
| 09:51:21,338 ERROR [STDERR] at
org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:72)
| 09:51:21,338 ERROR [STDERR] at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| 09:51:21,354 ERROR [STDERR] at
org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:139)
| 09:51:21,354 ERROR [STDERR] at $Proxy116.processContact(Unknown Source)
| 09:51:21,354 ERROR [STDERR] at
com.logica.heca.lpr.services.facade.RuleEngineFacade.process(RuleEngineFacade.java:31)
| 09:51:21,354 ERROR [STDERR] at
com.logica.heca.lpr.dataLoader.DataLoaderThread.run(DataLoaderThread.java:129)
| 09:51:21,354 ERROR [STDERR] Caused by: java.lang.RuntimeException:
com.logica.heca.lpr.common.exception.LPRException: Failed
| to get RuleManagerRemote
| 09:51:21,354 ERROR [STDERR] at
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorH
| andler.java:113)
| 09:51:21,354 ERROR [STDERR] at
org.jboss.ejb3.EJBContainer.invokePostConstruct(EJBContainer.java:623)
| 09:51:21,354 ERROR [STDERR] at
org.jboss.ejb3.AbstractPool.create(AbstractPool.java:131)
| 09:51:21,354 ERROR [STDERR] at
org.jboss.ejb3.InfinitePool.get(InfinitePool.java:49)
| 09:51:21,354 ERROR [STDERR] at
org.jboss.ejb3.ThreadlocalPool.create(ThreadlocalPool.java:50)
| 09:51:21,354 ERROR [STDERR] at
org.jboss.ejb3.ThreadlocalPool.get(ThreadlocalPool.java:90)
| 09:51:21,354 ERROR [STDERR] at
org.jboss.ejb3.cache.simple.SimpleStatefulCache.create(SimpleStatefulCache.java:315)
| 09:51:21,354 ERROR [STDERR] ... 8 more
| 09:51:21,354 ERROR [STDERR] Caused by:
com.logica.heca.lpr.common.exception.LPRException: Failed to get
RuleManagerRemote
| 09:51:21,354 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleMangerLocal(RuleBaseBuilder.java:95)
|
| 09:51:21,354 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getDBRules(RuleBaseBuilder.java:82)
| 09:51:21,369 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.buildRuleBase(RuleBaseBuilder.java:63)
| 09:51:21,369 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleBase(RuleBaseBuilder.java:48)
| 09:51:21,369 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleEngineBean.getRuleBase(RuleEngineBean.java:46)
| 09:51:21,369 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| 09:51:21,369 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| 09:51:21,369 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| 09:51:21,369 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:597)
| 09:51:21,369 ERROR [STDERR] at
org.jboss.ejb3.interceptor.LifecycleInvocationContextImpl.proceed(LifecycleInvocationConte
| xtImpl.java:159)
| 09:51:21,369 ERROR [STDERR] at
org.jboss.ejb3.interceptor.LifecycleInterceptorHandler.postConstruct(LifecycleInterceptorH
| andler.java:109)
| 09:51:21,369 ERROR [STDERR] ... 14 more
| 09:51:21,369 ERROR [STDERR] Caused by: javax.naming.CommunicationException
[Root exception is java.lang.ClassNotFoundExceptio
| n: No ClassLoaders found for: com.logica.heca.lpr.services.RuleManagerLocal
(no security manager: RMI class loader disabled)]
|
| 09:51:21,369 ERROR [STDERR] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:786)
| 09:51:21,385 ERROR [STDERR] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
| 09:51:21,385 ERROR [STDERR] at
javax.naming.InitialContext.lookup(InitialContext.java:392)
| 09:51:21,385 ERROR [STDERR] at
com.logica.heca.lpr.ruleengine.RuleBaseBuilder.getRuleMangerLocal(RuleBaseBuilder.java:93)
|
| 09:51:21,385 ERROR [STDERR] ... 24 more
| 09:51:21,385 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: No
ClassLoaders found for: com.logica.heca.lpr.servi
| ces.RuleManagerLocal (no security manager: RMI class loader disabled)
| 09:51:21,385 ERROR [STDERR] at
sun.rmi.server.LoaderHandler.loadProxyClass(LoaderHandler.java:535)
| 09:51:21,385 ERROR [STDERR] at
java.rmi.server.RMIClassLoader$2.loadProxyClass(RMIClassLoader.java:628)
| 09:51:21,385 ERROR [STDERR] at
org.jboss.system.JBossRMIClassLoader.loadProxyClass(JBossRMIClassLoader.java:82)
| 09:51:21,385 ERROR [STDERR] at
java.rmi.server.RMIClassLoader.loadProxyClass(RMIClassLoader.java:294)
| 09:51:21,385 ERROR [STDERR] at
sun.rmi.server.MarshalInputStream.resolveProxyClass(MarshalInputStream.java:238)
| 09:51:21,385 ERROR [STDERR] at
java.io.ObjectInputStream.readProxyDesc(ObjectInputStream.java:1531)
| 09:51:21,385 ERROR [STDERR] at
java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1493)
| 09:51:21,385 ERROR [STDERR] at
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
| 09:51:21,400 ERROR [STDERR] at
java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
| 09:51:21,400 ERROR [STDERR] at
java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
| 09:51:21,400 ERROR [STDERR] at
java.rmi.MarshalledObject.get(MarshalledObject.java:142)
| 09:51:21,400 ERROR [STDERR] at
org.jnp.interfaces.MarshalledValuePair.get(MarshalledValuePair.java:72)
| 09:51:21,400 ERROR [STDERR] at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:710)
| 09:51:21,400 ERROR [STDERR] ... 27 more
|
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241662#4241662
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241662
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user