Topic
  • 6 replies
  • Latest Post - ‏2013-02-22T21:54:34Z by SystemAdmin
SystemAdmin
SystemAdmin
1485 Posts

Pinned topic Client based standalone object grid issue

‏2013-02-19T19:00:47Z |
Hi All

Please help me resolve the below error
When I use standalone websphere extreme to implement client based preloading from database.I use a standalone trial version of extreme scale for the purpose.

I have the following objectgrid.xml:

<?xml version="1.0" encoding="UTF-8"?>
<objectGridConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ibm.com/ws/objectgrid/config ../objectGrid.xsd"
xmlns="http://ibm.com/ws/objectgrid/config">
<objectGrids>
<objectGrid name="SAMPLE">
<backingMap name="Ticket" />
</objectGrid>
</objectGrids>
</objectGridConfig>
My Application snippet is
public class CopyOfApp
{

EntityManager _em;
EntityManagerFactory _emf;
ObjectGridManager _ogm;
static ObjectGrid _og;
Session s= null;
public static void main( String[] args )
{
CopyOfApp a = new CopyOfApp();

a.initGrid();

a.preloadgrid();
public void initGrid(){
_ogm = ObjectGridManagerFactory.getObjectGridManager();

try {

ClientClusterContext ccc = ObjectGridManagerFactory.getObjectGridManager().connect("localhost:2809", null, null);
_og = _ogm.getObjectGrid(ccc, "SAMPLE");

} catch (ObjectGridException e) {
e.printStackTrace();
}
}

public void preloadgrid(){

StateManager stateMgr = StateManagerFactory.getStateManager();

stateMgr.setObjectGridState(AvailabilityState.PRELOAD, _og);
System.out.println(stateMgr.getObjectGridState(_og));
ClientLoader c = ClientLoaderFactory.getClientLoader();
try {
c.load(_og, "Ticket", "SAMPLE", null, Ticket.class, null, null, true, null);

} catch (ObjectGridException e) {
e.printStackTrace();
}

stateMgr.setObjectGridState(AvailabilityState.ONLINE, _og);

}

}

My entity class is TICKET.java
I get the following error
00000026 AsyncOperatio E CWOBJ3113E: The DataGrid agent com.ibm.ws.objectgrid.jpa.batch.InsertAgent execution failed with an exception com.ibm.websphere.objectgrid.ObjectGridRuntimeException: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:java.lang.ClassNotFoundException: com.demo.Ticket
at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateImpl.block(AgentCallbackStateImpl.java:383)
at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateListener.block(AgentCallbackStateListener.java:139)
at com.ibm.ws.objectgrid.datagrid.AgentManagerImpl.callReduceAgent(AgentManagerImpl.java:1113)
at com.ibm.ws.objectgrid.datagrid.AsyncOperationHelper$1.run(AsyncOperationHelper.java:131)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
Caused by: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException originating=10.8.212.42:57127;causedby=10.8.212.42:0;reqId=68;exid=255: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:java.lang.ClassNotFoundException: com.demo.Ticket
at RemovedByServerSerialization.RemovedByServerSerialization(RemovedByServerSerialization:0)
Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:java.lang.ClassNotFoundException: com.demo.Ticket
... 1 more
Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException:com.demo.Ticket
... 1 more
.
main INFO org.hibernate.impl.SessionFactoryImpl - closing
main INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:oracle:thin:@baddb3t:1521:badstrd5
com.ibm.websphere.objectgrid.ObjectGridException: Client load fails: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:java.lang.ClassNotFoundException: com.demo.Ticket
at com.ibm.ws.objectgrid.jpa.ClientLoaderImpl.load(ClientLoaderImpl.java:373)
at com.demo.CopyOfApp.preloadgrid(CopyOfApp.java:262)
at com.demo.CopyOfApp.main(CopyOfApp.java:85)
Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:java.lang.ClassNotFoundException: com.demo.Ticket
at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateImpl.block(AgentCallbackStateImpl.java:383)
at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateListener.block(AgentCallbackStateListener.java:139)
at com.ibm.ws.objectgrid.datagrid.AgentManagerImpl.callReduceAgent(AgentManagerImpl.java:1113)
at com.ibm.ws.objectgrid.datagrid.AsyncOperationHelper$1.run(AsyncOperationHelper.java:131)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
Caused by: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException originating=10.8.212.42:57127;causedby=10.8.212.42:0;reqId=68;exid=255: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:java.lang.ClassNotFoundException: com.demo.Ticket
at RemovedByServerSerialization.RemovedByServerSerialization(RemovedByServerSerialization:0)
Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:java.lang.ClassNotFoundException: com.demo.Ticket
... 1 more
Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException:com.demo.Ticket
... 1 more
Updated on 2013-02-22T21:54:34Z at 2013-02-22T21:54:34Z by SystemAdmin
  • lisaw
    lisaw
    101 Posts

    Re: Client based standalone object grid issue

    ‏2013-02-19T19:38:14Z  
    If you are using XIO, and do not specify the class, you will need to use COPY_TO_BYTES as the copyMode. Check out the gettingstarted sample in your install/ObjectGrid/gettingstarted directory that has an example objectgrid.xml.

    
    <?xml version=
    "1.0" encoding=
    "UTF-8"?> <objectGridConfig xmlns:xsi=
    "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=
    "http://ibm.com/ws/objectgrid/config ../objectGrid.xsd" xmlns=
    "http://ibm.com/ws/objectgrid/config"> <objectGrids> <objectGrid name=
    "SAMPLE"> <backingMap name=
    "Ticket" copyMode=
    "COPY_TO_BYTES" /> </objectGrid> </objectGrids> </objectGridConfig>
    


    Try that out.

    • Lisa

    Websphere eXtreme Scale Development
  • SystemAdmin
    SystemAdmin
    1485 Posts

    Re: Client based standalone object grid issue

    ‏2013-02-19T20:36:41Z  
    • lisaw
    • ‏2013-02-19T19:38:14Z
    If you are using XIO, and do not specify the class, you will need to use COPY_TO_BYTES as the copyMode. Check out the gettingstarted sample in your install/ObjectGrid/gettingstarted directory that has an example objectgrid.xml.

    <pre class="jive-pre"> <?xml version= "1.0" encoding= "UTF-8"?> <objectGridConfig xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation= "http://ibm.com/ws/objectgrid/config ../objectGrid.xsd" xmlns= "http://ibm.com/ws/objectgrid/config"> <objectGrids> <objectGrid name= "SAMPLE"> <backingMap name= "Ticket" copyMode= "COPY_TO_BYTES" /> </objectGrid> </objectGrids> </objectGridConfig> </pre>

    Try that out.

    • Lisa

    Websphere eXtreme Scale Development
    Hi Lisa I tried that too but hte stack still throws the erorr. I am repasting the stack:
    main INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    2/19/13 15:38:29:350 EST 00000028 AsyncOperatio E CWOBJ3113E: The DataGrid agent com.ibm.ws.objectgrid.jpa.batch.InsertAgent execution failed with an exception com.ibm.websphere.objectgrid.ObjectGridRuntimeException: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateImpl.block(AgentCallbackStateImpl.java:383)
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateListener.block(AgentCallbackStateListener.java:139)
    at com.ibm.ws.objectgrid.datagrid.AgentManagerImpl.callReduceAgent(AgentManagerImpl.java:1113)
    at com.ibm.ws.objectgrid.datagrid.AsyncOperationHelper$1.run(AsyncOperationHelper.java:131)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
    Caused by: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException originating=10.8.212.42:60596;causedby=10.8.212.42:0;reqId=82;exid=8: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at RemovedByServerSerialization.RemovedByServerSerialization(RemovedByServerSerialization:0)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException:com.demo.Ticket
    ... 1 more
    .
    main INFO org.hibernate.impl.SessionFactoryImpl - closing
    main INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:oracle:thin:@baddb3t:1521:badstrd5
    com.ibm.websphere.objectgrid.ObjectGridException: Client load fails: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.jpa.ClientLoaderImpl.load(ClientLoaderImpl.java:373)
    at com.demo.CopyOfApp.preloadgrid(CopyOfApp.java:262)
    at com.demo.CopyOfApp.main(CopyOfApp.java:85)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateImpl.block(AgentCallbackStateImpl.java:383)
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateListener.block(AgentCallbackStateListener.java:139)
    at com.ibm.ws.objectgrid.datagrid.AgentManagerImpl.callReduceAgent(AgentManagerImpl.java:1113)
    at com.ibm.ws.objectgrid.datagrid.AsyncOperationHelper$1.run(AsyncOperationHelper.java:131)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
    Caused by: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException originating=10.8.212.42:60596;causedby=10.8.212.42:0;reqId=82;exid=8: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at RemovedByServerSerialization.RemovedByServerSerialization(RemovedByServerSerialization:0)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException:com.demo.Ticket
    ... 1 more
  • lisaw
    lisaw
    101 Posts

    Re: Client based standalone object grid issue

    ‏2013-02-20T16:08:43Z  
    Hi Lisa I tried that too but hte stack still throws the erorr. I am repasting the stack:
    main INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    2/19/13 15:38:29:350 EST 00000028 AsyncOperatio E CWOBJ3113E: The DataGrid agent com.ibm.ws.objectgrid.jpa.batch.InsertAgent execution failed with an exception com.ibm.websphere.objectgrid.ObjectGridRuntimeException: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateImpl.block(AgentCallbackStateImpl.java:383)
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateListener.block(AgentCallbackStateListener.java:139)
    at com.ibm.ws.objectgrid.datagrid.AgentManagerImpl.callReduceAgent(AgentManagerImpl.java:1113)
    at com.ibm.ws.objectgrid.datagrid.AsyncOperationHelper$1.run(AsyncOperationHelper.java:131)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
    Caused by: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException originating=10.8.212.42:60596;causedby=10.8.212.42:0;reqId=82;exid=8: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at RemovedByServerSerialization.RemovedByServerSerialization(RemovedByServerSerialization:0)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException:com.demo.Ticket
    ... 1 more
    .
    main INFO org.hibernate.impl.SessionFactoryImpl - closing
    main INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:oracle:thin:@baddb3t:1521:badstrd5
    com.ibm.websphere.objectgrid.ObjectGridException: Client load fails: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.jpa.ClientLoaderImpl.load(ClientLoaderImpl.java:373)
    at com.demo.CopyOfApp.preloadgrid(CopyOfApp.java:262)
    at com.demo.CopyOfApp.main(CopyOfApp.java:85)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateImpl.block(AgentCallbackStateImpl.java:383)
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateListener.block(AgentCallbackStateListener.java:139)
    at com.ibm.ws.objectgrid.datagrid.AgentManagerImpl.callReduceAgent(AgentManagerImpl.java:1113)
    at com.ibm.ws.objectgrid.datagrid.AsyncOperationHelper$1.run(AsyncOperationHelper.java:131)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
    Caused by: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException originating=10.8.212.42:60596;causedby=10.8.212.42:0;reqId=82;exid=8: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at RemovedByServerSerialization.RemovedByServerSerialization(RemovedByServerSerialization:0)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException:com.demo.Ticket
    ... 1 more
    You also don't have a backingMapPlugin for your loader in the objectgrid.xml, you'll need something like this to point to your Ticket and Loader class.

    
    <backingMap name=
    "Ticket" pluginCollectionRef=
    "myPlugin" writeBehind=
    "T200;C100"/> <backingMapPluginCollections> <backingMapPluginCollection id=
    "myPlugin"> <bean id=
    "Loader" className=
    "class.path.to.Loader"> <property name=
    "Ticket" type=
    "java.lang.String" value=
    "class.path.to.Ticket" /> </bean> </backingMapPluginCollection> </backingMapPluginCollections>
    


    Sorry, I didn't notice it before. The infocenter has a bit to say about how to write loaders for preloading, also check out Plug-ins for communicating with databases for another objectgrid.xml example.

    • Lisa

    Websphere eXtreme Scale Development
  • lisaw
    lisaw
    101 Posts

    Re: Client based standalone object grid issue

    ‏2013-02-20T16:38:12Z  
    Hi Lisa I tried that too but hte stack still throws the erorr. I am repasting the stack:
    main INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
    2/19/13 15:38:29:350 EST 00000028 AsyncOperatio E CWOBJ3113E: The DataGrid agent com.ibm.ws.objectgrid.jpa.batch.InsertAgent execution failed with an exception com.ibm.websphere.objectgrid.ObjectGridRuntimeException: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateImpl.block(AgentCallbackStateImpl.java:383)
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateListener.block(AgentCallbackStateListener.java:139)
    at com.ibm.ws.objectgrid.datagrid.AgentManagerImpl.callReduceAgent(AgentManagerImpl.java:1113)
    at com.ibm.ws.objectgrid.datagrid.AsyncOperationHelper$1.run(AsyncOperationHelper.java:131)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
    Caused by: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException originating=10.8.212.42:60596;causedby=10.8.212.42:0;reqId=82;exid=8: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at RemovedByServerSerialization.RemovedByServerSerialization(RemovedByServerSerialization:0)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException:com.demo.Ticket
    ... 1 more
    .
    main INFO org.hibernate.impl.SessionFactoryImpl - closing
    main INFO org.hibernate.connection.DriverManagerConnectionProvider - cleaning up connection pool: jdbc:oracle:thin:@baddb3t:1521:badstrd5
    com.ibm.websphere.objectgrid.ObjectGridException: Client load fails: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.jpa.ClientLoaderImpl.load(ClientLoaderImpl.java:373)
    at com.demo.CopyOfApp.preloadgrid(CopyOfApp.java:262)
    at com.demo.CopyOfApp.main(CopyOfApp.java:85)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: Unexpected error on the target partition. Resubmit the request: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateImpl.block(AgentCallbackStateImpl.java:383)
    at com.ibm.ws.objectgrid.datagrid.AgentCallbackStateListener.block(AgentCallbackStateListener.java:139)
    at com.ibm.ws.objectgrid.datagrid.AgentManagerImpl.callReduceAgent(AgentManagerImpl.java:1113)
    at com.ibm.ws.objectgrid.datagrid.AsyncOperationHelper$1.run(AsyncOperationHelper.java:131)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1613)
    Caused by: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException originating=10.8.212.42:60596;causedby=10.8.212.42:0;reqId=82;exid=8: com.ibm.ws.xsspi.xio.exception.ObjectGridXIOException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    at RemovedByServerSerialization.RemovedByServerSerialization(RemovedByServerSerialization:0)
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:com.ibm.websphere.objectgrid.ObjectGridRuntimeException: java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: com.ibm.websphere.objectgrid.ObjectGridRuntimeException: com.ibm.websphere.objectgrid.ObjectGridRuntimeException:java.lang.ClassNotFoundException: com.demo.Ticket
    ... 1 more
    Caused by: java.lang.ClassNotFoundException: java.lang.ClassNotFoundException:com.demo.Ticket
    ... 1 more
    Otherwise, if you are using an agent, your client has the Ticket class but your server where your agent is trying to load doesn't know what Ticket is. You'll need Ticket in your server classpath. If you don't want to have to have the Ticket class on the server side, you'd need to convert to serializedKeys and SerializedValues.

    Three are a few options I keep thinking about with this issue. The main problem is that you must have both your client and server know what your Ticket class is because right now, agents serialize your class, so you need to deserialize it.

    If you weren't using the agent, the loader plugin is also an option, but has the same issue.

    • Lisa

    Websphere eXtreme Scale Development
  • SystemAdmin
    SystemAdmin
    1485 Posts

    Re: Client based standalone object grid issue

    ‏2013-02-20T19:45:54Z  
    • lisaw
    • ‏2013-02-20T16:08:43Z
    You also don't have a backingMapPlugin for your loader in the objectgrid.xml, you'll need something like this to point to your Ticket and Loader class.

    <pre class="jive-pre"> <backingMap name= "Ticket" pluginCollectionRef= "myPlugin" writeBehind= "T200;C100"/> <backingMapPluginCollections> <backingMapPluginCollection id= "myPlugin"> <bean id= "Loader" className= "class.path.to.Loader"> <property name= "Ticket" type= "java.lang.String" value= "class.path.to.Ticket" /> </bean> </backingMapPluginCollection> </backingMapPluginCollections> </pre>

    Sorry, I didn't notice it before. The infocenter has a bit to say about how to write loaders for preloading, also check out Plug-ins for communicating with databases for another objectgrid.xml example.

    • Lisa

    Websphere eXtreme Scale Development
    Hi LISA

    I feel I am missing out on some config somewhere.

    When I introduce any bean component or backing map components which you asked me to include in objectgrid .xml and try to start the standalone container servers (after catalog servers have started), with reference to the object grid file it throws me error "Failed to start."Only when i remove the components from the xml fie , I am able to start the container.

    I have attached the error log on starting the conatainer.

    I am using this product for the first time as a POC to write dat from a sample DB table to the cache .

    currently i have a sample table .with help of jpa and appropiate persistence .xml i am able to get all the table in a list but unable to write them to the cache while running the cache as standalone client based.

    Intersetingly with local instance i have received success in simply invoking put/update methods fom api to write the list to the map.
    I need to carry out as a clinet based standalone cache .

    I am not sure where am i missing something.An equivalent example project may be helpful if you have one.
    if you need further deytails onm my project ,i can attach them or email you.
  • SystemAdmin
    SystemAdmin
    1485 Posts

    Re: Client based standalone object grid issue

    ‏2013-02-22T21:54:34Z  
    • lisaw
    • ‏2013-02-20T16:38:12Z
    Otherwise, if you are using an agent, your client has the Ticket class but your server where your agent is trying to load doesn't know what Ticket is. You'll need Ticket in your server classpath. If you don't want to have to have the Ticket class on the server side, you'd need to convert to serializedKeys and SerializedValues.

    Three are a few options I keep thinking about with this issue. The main problem is that you must have both your client and server know what your Ticket class is because right now, agents serialize your class, so you need to deserialize it.

    If you weren't using the agent, the loader plugin is also an option, but has the same issue.

    • Lisa

    Websphere eXtreme Scale Development
    Hi LISA

    Thanks for your help and guidance .I am now able to run the client succesfully .There were some configuration missin gon my part which is now sorted and my preload method is doing good.

    ---Pritish