Hi Brain,
I been caught up with something else, today I got some breathing time and
I tried that.
I am getting the following exception on client side
log4j:WARN No appenders could be found for logger
(org.jboss.security.SecurityAssociation).
| log4j:WARN Please initialize the log4j system properly.
| java.lang.reflect.UndeclaredThrowableException
| at $Proxy1.returnAnswer(Unknown Source)
| at
com.wdpro.commerce.wdw.be.client.delegate.WDWIBCAppDelegate.getAnswer(WDWIBCAppDelegate.java:213)
| at CacheTestClient.main(CacheTestClient.java:11)
| Caused by: java.io.IOException: unexpected exception type
| at
java.io.ObjectStreamClass.throwMiscException(ObjectStreamClass.java:1353)
| at
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:815)
| at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
| at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
| at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
| at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
| at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
| at java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
| at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:410)
| 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:324)
| at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
| at sun.rmi.transport.Transport$1.run(Transport.java:148)
| at java.security.AccessController.doPrivileged(Native Method)
| at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
| at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
| at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
| at java.lang.Thread.run(Thread.java:534)
| at
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
| at
sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
| at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:133)
| at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown
Source)
| at
org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:119)
| at
org.jboss.invocation.InvokerInterceptor.invokeInvoker(InvokerInterceptor.java:227)
| at
org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:167)
| at
org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
| at
org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
| at
org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
| at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
| ... 3 more
| Caused by: java.lang.reflect.InvocationTargetException
| 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:324)
| at
org.jboss.cache.aop.collection.CollectionInterceptorUtil.invoke(CollectionInterceptorUtil.java:122)
| at
org.jboss.cache.aop.collection.CachedListInterceptor.invoke(CachedListInterceptor.java:125)
| at
org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:98)
| at AOPClassProxy$0.toArray(AOPClassProxy$0.java)
| at java.util.ArrayList.<init>(ArrayList.java:136)
| at
com.wdpro.commerce.common.be.model.template.Answer.writeObject(Answer.java:76)
| 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:324)
| at
java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:809)
| at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1296)
| at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
| at
java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1332)
| at
java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1304)
| at
java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1247)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
| at java.rmi.MarshalledObject.<init>(MarshalledObject.java:92)
| at
org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:410)
| 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:324)
| at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
| at sun.rmi.transport.Transport$1.run(Transport.java:148)
| at java.security.AccessController.doPrivileged(Native Method)
| at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
| at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
| at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
| at java.lang.Thread.run(Thread.java:534)
| Caused by: org.jboss.cache.aop.AopOperationNotSupportedException:
CachedListImpl: List.toArray(a) operation not supported
| at
org.jboss.cache.aop.collection.CachedListImpl.toArray(CachedListImpl.java:125)
| ... 36 more
|
My class looks as
| package com.wdpro.commerce.common.be.model.template;
|
| /**
| *
| * @@org.jboss.cache.aop.AopMarker
| */
| import java.io.IOException;
| import java.util.ArrayList;
|
| import com.wdpro.commerce.common.be.model.BaseIBCModel;
|
| public class Answer extends BaseIBCModel {
| private String itemCode;
|
| private String description;
|
| private boolean defaultItem;
|
| private ArrayList parentItemCodeList;
|
| // **********************TOGETHER FIELDS,DON'T CHANGE IGNORE THEM
| /**
| * @clientCardinality 1
| * @supplierCardinality 1
| * @link aggregation
| */
| // *******************************************************************
|
|
|
| public Answer() {
|
| parentItemCodeList = new ArrayList();
| }
|
| public boolean getDefaultItem() {
| return defaultItem;
| }
|
| public void setDefaultItem(boolean defaultItem) {
| this.defaultItem = defaultItem;
| }
|
| public String getDescription() {
| return description;
| }
|
| public void setDescription(String description) {
| this.description = description;
| }
|
| public String getItemCode() {
| return itemCode;
| }
|
| public void setItemCode(String itemCode) {
| this.itemCode = itemCode;
| }
|
| public ArrayList getParentItemCodeList() {
| return parentItemCodeList;
| }
|
| public void setParentItemCodeList(ArrayList parentItemCodeList) {
| this.parentItemCodeList = parentItemCodeList;
| }
|
| public void setParentItemCode(String parentItemCode) {
| parentItemCodeList.add(parentItemCode);
| }
|
| private void writeObject(java.io.ObjectOutputStream out) throws
IOException {
| out.writeObject(itemCode);
| out.writeObject(description);
| out.writeBoolean(defaultItem);
| out.writeObject(new ArrayList(parentItemCodeList));
|
| }
|
| private void readObject(java.io.ObjectInputStream in) throws
IOException,
| ClassNotFoundException {
| itemCode = (String) in.readObject();
| description = (String) in.readObject();
| defaultItem = in.readBoolean();
| parentItemCodeList = (ArrayList) in.readObject();
|
| }
|
| }
|
|
Do you have any idea what this means, is there anyway I can get rid of this.
Please let me know.
Anu
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3928277#3928277
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3928277
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user