Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

COM/MTS error

Status
Not open for further replies.

Powerj

Programmer
Oct 16, 2000
10
US
Hi,
I have run into some production problems. I have
tried
researching so much and could not come up with
anything as of yet.

I am working on an application which is written in
java. However it uses COM components written in VB6
and installed on MTS. And this COM is used in the java
application with wrapper classes in VJ++.
When a user logins, the COM compoents are instantiated
in the application at this time. Everything works just
fine. No problem here.
However the problem occurs only when the user logins
in the application and does not work on
it, say for some 30 minutes or more(if the user is
busy with some
other work) and when he eventually gets
back to the application the user is faced with all
sorts of error messages when he tries to perform
retreiving any data..like as tho the connection is
somehow lost....

The first error message that occurs is :
Exception occurred during event dispatching:
com.ms.com.ComError: COM object bound to dll/class
instance failed QueryInterface(_class):
The requested object does not exist.
at dll/class.method

And if one persists, and tries to perform any
operation for example click on any of the
buttons on the front end screen, the java console
shows some more error messages like:

RPC server is unavailable.
or
Caught Exception while invoking Query in the Component
:com.ms.com.ComFailException:
(0x800706ba) The RPC server is unavailable.

The time out factor for the component package is set
to 10 minutes, due to time out problems
experienced before this issue( I donno if this is wise
move to increase the time by such a large amount).
Whereas the command
object in the coding is timed out at 180 seconds. And
the identity is Interactive user and with Server
package activation on the MTS component. (Do you think
it should be changed to Library activation...if yes,
what are the advantages of doing this?)
MSDTC time out is default one, 60 seconds. (Do you
think I need to increase this? If yes, will this solve
the time out issues?) Or do you think this is
due to network traffic?

Now I am unable to figure out what's going on? Can you
help me on this.. What do I need
to look into. Where is the problem occuring. Which is
occuring very often.
How can I solve this issue...

Then there are problems yet some other times when
even after starting to work immediately after logging
on the application .
The problem is the time out issue, which is occurring
quite often when this component is retrieving/updating
data in the
database when the system is performing under heavy
load at the peak time with
other applications running too.

The exact error is -2147217871 Microsoft OLE DB
Provider for ODBC
Drivers.ExcuteSP(----ExcuteSP , this is a method
written in MTS
component---)[Microsoft][ ODBC SQL Server Driver]
Timeout expired.

Any help , suggestions would be greatly
appreciated...I need it
very badly.
I am awaiting to hear anything on this anxiously.....

Thanks in advance.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top