on 08-21-2009 10:52 PM
Hi!! I'm getting the following message: Error connecting using JCO.Client: null
I'm sure the JCos are fine because that only happens with one particular user, and I'm also sure that it exists in the backend and it's not locked...
The only thing that seemed to work was resetting the backend server, but I'd like to know why.
What else could I check to get it work?
Thanks
PD: I've checked some posts, but none os the sugestions worked
Hi
1.May be JCO's are not configured properly.Check your JCO's are up and running by pinging it in ContentAdmin->WebDynpro.
2. its a simple problem of connection pooling. In your JCO connection settings change the maximum connections to 200. It will work.it is good After you execute the Model please release the connection. The reason you are getting this JCO Client null is because the connection is not getting released.
When you say the following code
wdContext.current<BAPI_INPUT>.modelObject().execute();
//Get the reference to the model and release the connection
If your Model name is say "MO_Mymodel" then
MO_Mymodel model = (MO_Mymodel) WDModelFactory.getModelInstance(MO_Mymodel.class);
model.disconnectIfAlive();
This should release your connections. Also ensure you release the connections even if there is a exception :).
Please refer the below forum also:
Thanks
susmita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hola Alejandro,
You say resetting the backend-server (J2EE?) helped? That probably meant that the system was out of JCO connections (the pool was empty). The other users are still keeping the JCO connections to them selves. In the future another user will get the problem.
If you are only using SAP standard software: increase the amount of JCO connctions in the pool.
If you are using also self-made webdynpro software: Ask the developers to check if they are really closing all connetions. If they do: Increase the amount of JCO connections in the pool.
J
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Permissions are fine, since the user hasn't been modified in a while ans he was able to enter (roles are set to 31.12.9999)...
As for the connections pool... They seem to be fine because that's the only user with the problem now (although it's the third)... We reset the R/3 System and worked for the other. We also tried with this 3rd restarting the webdynpro instance and it wasn't successful.
The connections are being closed when the user leaves the component and we checked the sm04 to view them... it had only 4 connections (they're good because that's the amount of connections that the application needs). Anyway, we used the same transaction to end those connections and it still didn't work.
This error might indicate insufficent permissions in the backend system.
Is the JCO configured with logon ticket (SSO)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.