ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Security » Oracle with AMS library include error 2035

Post new topic  Reply to topic
 Oracle with AMS library include error 2035 « View previous topic :: View next topic » 
Author Message
yasaboy
PostPosted: Thu Dec 11, 2014 3:24 am    Post subject: Oracle with AMS library include error 2035 Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

Hi,

We are trying to enable AMS in our application, It is a multi threaded application. When applied the security policies, the library fails giving error 2035 while opening the queue with AMS policy set to it.

How ever we have been in search for the root cause for this for weeks now and have finally found that every time we include ORACLE as a third party library or any other library that has a link to ORACLE it fails giving the exact same error in the child thread. How ever it works in the main thread.

Is there any reason for this and way to fix the issue ?
Back to top
View user's profile Send private message
yasaboy
PostPosted: Thu Dec 11, 2014 6:22 am    Post subject: Reply with quote

Voyager

Joined: 23 Jun 2014
Posts: 90

Hi specifically when we build the amqsputc with a child thread and build it with g++ using oracle libraries and not using oracle it gives below outputs.


Code:
 not working
 g++ -m64 -fsigned-char -o imqsputc_64_r imqsputc_64_r.o  -L/oracle11g_r2.0.2/lib -L/oracle11g_r2.0.2/rdbms/lib -L/opt/mqm/lib64 -Wl,-rpath=/opt/mqm/lib64  -Wl,-rpath=/usr/lib64 -limqc23gl_r -limqb23gl_r -lmqic_r -lclntsh -lnnz11 -lpthread

imqsputc_64_r T.OUTQUEUE MQSSLTESTER

Sample AMQSPUT0 start
target queue is T.OUTQUEUE
MQOPEN ended with reason code 2035
unable to open queue for output
Sample AMQSPUT0 end


working

g++ -m64 -fsigned-char -o imqsputc_64_r imqsputc_64_r.o  [b]-L/oracle11g_r2.0.2/lib -L/oracle11g_r2.0.2/rdbms/lib[/b] -L/opt/mqm/lib64 -Wl,-rpath=/opt/mqm/lib64  -Wl,-rpath=/usr/lib64 -limqc23gl_r -limqb23gl_r -lmqic_r -lpthread

imqsputc_64_r T.OUTQUEUE MQSSLTESTER
main thread started
target queue is T.OUTQUEUE
Sample message added !!
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Dec 11, 2014 6:37 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Well, the actual differences between the two posted commands is the
Code:
-lclntsh -lnnz11


But both of them appear to be missing the -I for includes.
http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.5.0/com.ibm.mq.dev.doc/q030470_.htm

Also, you're talking about using AMS, but you're using the C++ interfaces, and it doesn't look like AMS supports C++

So I'm not really sure what's going wrong.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Security » Oracle with AMS library include error 2035
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.