dcsimg
OSA Parley charging framework..
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   mandy_singh
Posted On:   Tuesday, January 22, 2008 12:44 AM

I am making a client-server model using OSA Parley standard API's for charging of mobile VAS services implementing CORBA. On the server end there are two classes: 1.ChargingManager which extends from IpChargingManagerPOA and 2.Charging which extends from IpChargingSessionPOA. Now when the client is hitting the server for setting callback and creating the charging session on the ChargingManager everything is fine and it successfully returns a reference of Charging class to the client. Now when the client calls an API 'debitRequest()' of Charging reference the client throws an exception which shows that the call instead to be forwarded to IpCHargingSessionPOA is delegated to IpChargingManagerPOA where it throws 'BAD_OPERATION'(no   More>>

I am making a client-server model using OSA Parley standard API's for charging of mobile VAS services implementing CORBA.
On the server end there are two classes:
1.ChargingManager which extends from IpChargingManagerPOA and 2.Charging which extends from IpChargingSessionPOA.

Now when the client is hitting the server for setting callback and creating the charging session on the ChargingManager everything is fine and it successfully returns a reference of Charging class to the client.
Now when the client calls an API 'debitRequest()' of Charging reference the client throws an exception which shows that the call instead to be forwarded to IpCHargingSessionPOA is delegated to IpChargingManagerPOA where it throws 'BAD_OPERATION'(no method found)...Please help me out ..I am attaching the required code snippets....

/*

* Setting callback for charging

**/

try {
IpChargingManager.setCallback(mChargeListener._this(orb));

}catch (Exception ex){

log.error("Charging Callback setting failure",ex);

}

.................

/**

* Creating a new charging Session

*/

try {

tpChargingSessionId = IpChargingManager.createChargingSession(this.mChargeListener._this(orb),sessionDesc,tpMerchantAccountId,tpAddress,tpCorrelationId);

}catch (Exception ex) {

log.error("IpChargingManager exception",ex);

}


This tpChargingSessionId gives back the reference of the Charging class as:

IpChargingSession = tpChargingSessionId.ChargingSessionReference;


but the problem occurs when the following code is executed:

try {
mIpChargingSession.directDebitAmountReq(sessionId,tpAppDesc,tpChgParamArray,tpChargingPrice,requestNumber);

}catch (Exception ex) {

log.error("IpChargingSession exception",ex);

}


The exception is ::

org.omg.CORBA.BAD_OPERATION: ----------BEGIN server-side stack trace----------

org.omg.CORBA.BAD_OPERATION: vmcid: 0x0 minor code: 0 completed: Maybe

at org.csapi.cs.IpChargingManagerPOA._invoke(IpChargingManagerPOA.java:35)

at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:637)

at com.sun.corba.se.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:189)

at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1680)

at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1540)

at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:922)

at com.sun.corba.se.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)

at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:694)

at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:451)

at com.sun.corba.se.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1187)

at com.sun.corba.se.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:417)


----------END server-side stack trace---------- vmcid: 0x0 minor code: 0 completed: Maybe

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

at java.lang.reflect.Constructor.newInstance(Constructor.java:494)

at com.sun.corba.se.impl.protocol.giopmsgheaders.MessageBase.getSystemException(MessageBase.java:902)

at com.sun.corba.se.impl.protocol.giopmsgheaders.ReplyMessage_1_2.getSystemException(ReplyMessage_1_2.java:99)

at com.sun.corba.se.impl.protocol.CorbaMessageMediatorImpl.getSystemExceptionReply(CorbaMessageMediatorImpl.java:572)

at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:430)

at com.sun.corba.se.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:326)

at com.sun.corba.se.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:129)

at org.omg.CORBA.portable.ObjectImpl._invoke(ObjectImpl.java:457)

at org.csapi.cs._IpChargingSessionStub.directDebitAmountReq(_IpChargingSessionStub.java:222)

at com.handler.client.charge(client.java:309)

   <<Less
About | Sitemap | Contact