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 » WebSphere Message Broker (ACE) Support » Server Name string issue related to JDBC configuration

Post new topic  Reply to topic
 Server Name string issue related to JDBC configuration « View previous topic :: View next topic » 
Author Message
Venkat10
PostPosted: Wed Sep 10, 2014 6:23 am    Post subject: Server Name string issue related to JDBC configuration Reply with quote

Novice

Joined: 10 Mar 2014
Posts: 19

I am working on a mapping node which connects to SQL server.

As Mapping node requires I configured JDBC4 type connection MYSQL and I have a server name like "TESTSQL\SERVER" and port as 0.

But my flow is failing with the below error :
Insert
Type:INTEGER:5
Text:CHARACTER:jdbc:sqlserver://TESTSQLSERVER:0
Insert
Type:INTEGER:5
Text:CHARACTER: error message: The TCP/IP connection to the host TESTSQLSERVER port 1433 has failed. Error: "null. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall."., SQLState value: 08S01, stack trace: [com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:190)
com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:241)
com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2243)

For some reason \ is missing from the Server name string when mapping node is trying to connect.

Can someone please help me out in resolving this. Thanks.
Back to top
View user's profile Send private message
vicentius
PostPosted: Wed Sep 10, 2014 6:52 am    Post subject: Reply with quote

Apprentice

Joined: 01 Mar 2013
Posts: 28

Please try to escape the "\" between the server name and the instance name. If I recall correctly, you use "\" as an escape character, so go with TESTSQL\\SERVER.
I don't have access to a SQL Server instance here to check myself right now.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Sep 10, 2014 6:55 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Typical java stuff
\ is an escape character. So if you want \\hostname you really need to enter \\\\hostname ...

However this being java I would try to go with //hostname/...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Venkat10
PostPosted: Wed Sep 10, 2014 8:27 am    Post subject: It's working Reply with quote

Novice

Joined: 10 Mar 2014
Posts: 19

It's working guys. Thanks a lot.

"////" worked
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 » WebSphere Message Broker (ACE) Support » Server Name string issue related to JDBC configuration
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.