File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Got an exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Got an exception "Cannot change thread mode after it is set." when call a COM object." Watch "Got an exception "Cannot change thread mode after it is set." when call a COM object." New topic
Author

Got an exception "Cannot change thread mode after it is set." when call a COM object.

SFBB
Greenhorn

Joined: Jul 01, 2002
Posts: 1
I try to use java to call a SQL server's store procedure and that store procedure will call a COM object, but sometimes it return an exception "Cannot change thread mode after it is set."
Any comments!


SFBBB
Sean MacLean
author
Ranch Hand

Joined: Nov 07, 2000
Posts: 621
"SFBB",
Thanks for participating here at the Ranch. However, the name you are using does not comply with the naming convention described at http://www.javaranch.com/name.jsp . We require names to have at least two words, separated by a space, and strongly recommend that you use your full real name (not fictitious monikers). Please log in with a new name which meets the requirements.
Thanks.
Sean
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Got an exception "Cannot change thread mode after it is set." when call a COM object.