Error in Connecting to MS SQL 2005 via JDBC Driver
Here's the setup
CF MX7 resides on a centOS wid Apache 2.0 webserver box.
I need to established a datasource connection between the
Coldfusion server and a MSSQL 2005 Express+SP1 database sitting on
a remote XP wid SP2 setup.
I've also downloaded and installed on the /lib folder of the
CFMX7 server the corresponding JDBC drivers (versions 1.1 and 1.0)
for the MS SQL server.
The thing is, this problem always occurs:
Connection verification failed for data source:
datasourcename
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for
JDBC]Error establishing socket.
The root cause was that: java.sql.SQLException:
[Microsoft][SQLServer 2000 Driver for JDBC]Error establishing
socket.
The datasource connection info is as follows:
CF Datasource Name: datasourcename_JDBCdriver
JDBC URL:
jdbc:microsoft:sqlserver://192.168.0.47:1433;DatabaseName=nameofdatabase
Driver Class: com.microsoft.sqlserver.jdbc.SQLServerDriver
Driver Name: mssql2005
Username: sa
Password: userdefinedpassword
I've already tried these settings:
* Enabled mix mode of authentication under the SQL server
* Affix a /MSSQLSERVER instance name on the jdbc url setting
"jdbc:microsoft:sqlserver://192.168.0.47\MSSQLSERVER:1433;DatabaseName=nameofdatabase"
but a different error had occured:
The root cause was that: java.sql.SQLException:
[Microsoft][SQLServer 2000 Driver for JDBC]The requested instance
is either invalid or not running.
so i remove it since its only an optional setting
* Configured the SQL 2005 Express, under the SQL Server
Configuration Manager, to listen to protocol TCP/IP under port 1433
(this is the ONLY ENABLE protocol)
I've checked using Telnet and netstat and the SQL service is
normally listening to the said port.
* Disabled windows firewall under XP (came with SP2)
and even tried using other JDBC drivers such as:
* macromedia drivers
* jtds driver
but to no avail.
Is the problem still within the MS SQL 2005 Express wid
XP+SP2 box or a connecting issue on the Cf server under the
centOS/Apache machine?
A little help would do wonders just about now.
I had the same problem, but do not have express version. In
the configuration manger, I viewed the properties of the enabled
tcp/ip protocol. On the IP addresses tab, I found that though the
IPs were enabled, the drop down beside active was no. I changed all
to yes, applied it and restarted my instance. Then in the cf
datasource I left the port blank and everything worked.
Similar Messages
-
Connecting to MS SQL 2005 via JDBC Driver
I have an application in which I use Java to abstract
database elements as objects and handle most of the server-side
processing. This is done by creating a Java object via
CreateObject(). The Java then connects to a MS SQL 2005 database
using the JDBC 1.1 Driver.
The following tutorial explains how to set this up:
http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=ded4216b.
It instructs you to create a Data Source, much like how you
typically would in "regular" ColdFusion applications. Then, using
some simple Java, I am successfully able to connect to the
database, query it, and get results. The connection code is
attached.
As you can see, I am still passing all the connection
parameters to the Database class constructor. My question is: how
would I go about connecting to the database by simply using the
Data Source Name, as you would, again, in "regular" ColdFusion
applications. Is this possible at all?
Thanks!Thanks for the input guys.
Perhaps I did not explain my intent very clearly. What I am
trying to accomplish is have a vast majority of the server-side
code done in Java. With that, I would be able to do things like:
<cfset myUser = CreateObject("java", "User").init(5)>
<cfoutput>#myUser.getFirstName()#</cfoutput>
However, unless I am able to connect to the database in Java
(which I currently AM able to do, but just not quite the way I want
to), I would have to run all the queries in CF and then pass them
to the different objects so that they can then process the query
results. This isn't a very smart thing to do, seeing that it binds
me to a lot of CF while I am trying use it as little as possible
(session management and user interface "tier" only).
So no, I am not going all out with Java just to avoid passing
username/password, but instead to use true OOP instead of CF
Components. I realize ColdFusion too passes this info, but it does
not show up in the source code, which is precisely what I need to
do, but with Java.
Basically, I have everything working the way I need now,
except I need to be able to connect using a data source name rather
than passing the parameters, if at all possible. -
Trying to connect to Microsoft SQL Server via JDBC
This is what I've got:
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
con = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://databasename:1433", "user", "pass");This is what I get:
java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriverDoes anyone know what I'm doing wrong?Well, you must have tested to make sure that the socket value is indeed the correct value. But with that error, and you are certain that the socket value is correct, then it becomes difficult.
-
Not able to connect to MS SQL 2005 Evaluation version
Hi,
I have installed MS SQL 2005 Evaluation version(downloaded from microsoft site) on my win2k3 Enterprise Edition I am writing a java application that connects to MS SQL 2005.
I have downloaded the MS SQL 2005 JDBC driver. And i unjarred the
I have unjarred the sqljdbc.jar file and kept the com folder and my .java file in the same folder.
When i am trying to connect, I am getting the following error:
com.microsoft.sqlserver.jdbc.SQLServerException: Failed Logon:com.microsoft.sqlserver.jdbc.SQLServerException: TCP/IP connection failed to host:155.35.54.160 java.net.ConnectException: Connection refused:connect
My code look like this:
try {
Class.forName ("com.microsoft.sqlserver.jdbc.SQLServerDriver");
String fs = File.separator;
String conn_str = "jdbc:sqlserver://155.35.54.160:1433;user=sa;password=SA;databaseName=asdb";
conn = DriverManager.getConnection ( conn_str );
catch (Exception e) {System.out.println(e); }
Please reply.
Thanks and Regards,
Sudheer GajulaFirst aid check list for "connection refused":
- Check host name in connect string.
- Check port number in connect string.
- Try numeric IP address of server host in connect string, in case name server is hosed.
- Are there any firewalls between client and server blocking the port.
- Check that the db server is running.
- Check that the db server is listening to the port. On the server, try: "telnet localhost the-port-number". Or "netstat -an", there should be a listening entry for the port. You need to configure the database to accept TCP connections; read the documentation or google.
- Try "telnet server-host-name the-port-number" from the client, to see if firewalls are blocking it.
- If "telnet" fails: try telnet with the numeric ip address.
- If "telnet" fails: does it fail immediately or after an obvious timeout? How long is the timeout?
- Does the server respond to "ping serverhost" or "telnet serverhost" or "ssh serverhost"? -
Change the sql 2005 database C drive to E drive
hi,
it is possible to change the sql 2005 database C drive to E drive
if ,yes then step:-?
Regards
AmitHello Amit,
>it is possible to change the sql 2005 database C drive to E drive
>if ,yes then step:-?
You can also check note [363018|http://service.sap.com/sap/support/notes/363018].
Regards,
Eduardo -
MS SQL Server 2000 JDBC driver and databasename
Hi,
I have tried to switch from using WebLogic jDriver for MS SQL Server to using
MS SQL Server 2000 JDBC Driver as recommended by Bea for WebLogic 7.0. I can get
the connection pooling to work with the new driver but I cannot get it to work
for certain database. It seems to always connect to the defaul database even though
I specify the database in console with property databasename=DBNAME. Any ideas
what could be wrong?
Thanks!
Cheers,
JouniWe had this working fine with WLS7, this is the entry from our config.xml
<JDBCConnectionPool DriverName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
InitialCapacity="50" MaxCapacity="50" Name="SQLServerConnectionPool" Password="{3DES}UkODkM1JaCU="
Properties="user=Destin8;SelectMethod=cursor;databaseName=Destin8V3" ShrinkingEnabled="false"
Targets="Destin8Cluster1" URL="jdbc:microsoft:sqlserver://mcp1:1433"/>
Hope this helps..
Pete
"Jouni Peltonen" <[email protected]> wrote:
>
Hi,
I have tried to switch from using WebLogic jDriver for MS SQL Server
to using
MS SQL Server 2000 JDBC Driver as recommended by Bea for WebLogic 7.0.
I can get
the connection pooling to work with the new driver but I cannot get it
to work
for certain database. It seems to always connect to the defaul database
even though
I specify the database in console with property databasename=DBNAME.
Any ideas
what could be wrong?
Thanks!
Cheers,
Jouni -
MS SQL Server 2000 JDBC Driver + Tomcat 4
Will the MS SQL Server 2000 JDBC Driver (http://www.microsoft.com/SQL/downloads/2000/jdbc.asp) work with a JSP application on the Tomcat Server. The JSP is to access a MS SQL Server Database. Would it b able to do this with this Driver or do I need another one (type) for Tomcat?
Thanx
YazHi Yasir,
1. It should be OK.
(2. Check the requirement to see if you have everything)
--Paul. -
Hi,
Should there be a difference of compatibility between Windows 8.1 (laptop A) and Windows 8.1 Pro (laptop B) when connecting to a SSAS instance on a remote 2005 SQL Server via SSMS 2014?
I am able to connect to the SSAS from laptop A without having set any permissions explicitly, or otherwise. While on laptop B it cannot connect, stating"Forcibly Closed by Remote Host" as the error. I have run a SQL Server Profiler trace, laptop A
logs in as Administrator, again no permissions were set explicitly, compared to laptop B that attempts to login as anonymous.
I also tested connecting to the SSAS via Excel 2013 from both laptops. Laptop A connects without issues whereas Laptop B gives an error pertaining to the transport layer.
Why is this happening? What is the problem and how do I go about fixing it?
Thank you.By default, SSAS only support windows account. Have you configured the HTTP access to SSAS? If yes, what’s the authentication setting? Can you connect to SSAS via the URL in SSMS? Anyway, just for test purpose, change the authentication to windows Integrated,
disable Anonymous access for the pump
http://stackoverflow.com/questions/4785686/adomd-net-an-existing-connection-was-forcibly-closed-by-the-remote-host
https://social.msdn.microsoft.com/Forums/sqlserver/en-US/62e5968c-6f83-4ff7-9b63-051020df2b80/security-configuration-for-http-connection?forum=sqlanalysisservices -
Coldfusion connection to MS SQL 2005
Please help with this issue if you have any suggestions. I am
trying to establish a connection from my IIS server with ColdFusion
to another local server with an MS SQL 9.0 database. I can connect
to this database using Enterprise from another computer, but when I
use the same username and password within ColdFusion I get the
following error:
Connection verification failed for data source: FORMS
java.sql.SQLException: [Macromedia][SQLServer JDBC
Driver][SQLServer]Login failed for user 'domain\coldfusion'. The
user is not associated with a trusted SQL Server connection.
The root cause was that: java.sql.SQLException:
[Macromedia][SQLServer JDBC Driver][SQLServer]Login failed for user
'domain\coldfusion'. The user is not associated with a trusted SQL
Server connection.
I have reinstalled ColdFusion with no errors and have also
installed the MS JDBC driver for MS SQL 2005 but still get the same
error.
Thanks for any suggestions you might have.
CraigIf there is anyone else with this problem I have something
that you may want to try. This did work for me and I'm able to
connect to SQL 2005 using ODBC Socket. The IIS computer was using
system credentials and not the ColdFusion credentials I had
created.
On the ColdFusion application server goto the Properties of
CF's ODBC server and agent. Under LogOn change the LogOn
information to the username and password you have set up for
ColdFusion for both and restart these services. When setting up
your ODBC Socket do not include username or password information.
Hopefully CF8 will include Windows Authentication. Even with
this workaround we may need to switch to mixed authentication on
SQL which is not ideal. -
Unable to establish connection to MS SQL 2005 from topology manager in ODI
Hi,
My environment:
WinXP pro SP3, MS SQL SERVER2005, Oracle data integrator latest version.
MS SQL 2005 JDBC 2.0 DRIVER, JRE 1.4.2
com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc:microsoft:sqlserver://testserver:1433;SelectMethod=cursor;databaseName=AdventureWorksDW;integratedSecurity=false
I set the classpath, odi_home path and path poiting to jdbc driver in odi home->drivers and to odi->jre->1.4.2
Before i begin, i would like to mention, i have gone through many forum topicson this one and made sure my string is all right.
When I try to create a new data server in topology manager, it says connection is successful, but after that when i try to click OK, it gives me a error:
java.lang.UnsupportedClassVersionError: com/microsoft/sqlserver/jdbc/SQLServerDriver (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.graphical.frame.b.jz.dP(jz.java)
at com.sunopsis.graphical.frame.b.jz.bD(jz.java)
at com.sunopsis.graphical.frame.bo.bz(bo.java)
at com.sunopsis.graphical.frame.b.jz.em(jz.java)
at com.sunopsis.graphical.frame.b.jz.<init>(jz.java)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at com.sunopsis.graphical.frame.bb.b(bb.java)
at com.sunopsis.graphical.tools.utils.swingworker.v.call(v.java)
at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:176)
at com.sunopsis.graphical.tools.utils.swingworker.l.run(l.java)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Unknown Source)
Someone please help me.
Thank you.
Edited by: user9946607 on Feb 7, 2010 7:20 AM
Edited by: user9946607 on Feb 7, 2010 7:21 AMHi John,
Thank you for your reply. The link was good, but it did not solve my problem.
The artcile you provided me, lead me to another one: http://msdn.microsoft.com/en-us/library/ms378422.aspx
I download JRE 1.5.
Based on these, I have JDBC 2.0 (sqljdbc and sqljdbc4.0) files.
I copy only sqljdbc to my classpath = C:\OraHome_1\oracledi\drivers\sqljdbc.jar
my ODI_JAVA_HOME = C:\OraHome_1\jre\jre1.5.0_11
Same error in topology manager.
Data server name: test.ahu.edu, 1444
Conntection string:
com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc:microsoft:sqlserver://test.ahu.edu:1444;SelectMethod=cursor;databaseName=AdventureWorksDW;integratedSecurity=false
I am not sure show the share screen shots here, but if there is a way, please let me know, I can upload the screen shots.
Please help me.
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getDriver(Unknown Source)
at com.sunopsis.sql.SnpsConnection.u(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.a(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.sql.SnpsConnection.testConnection(SnpsConnection.java)
at com.sunopsis.graphical.l.pm.o(pm.java)
at com.sunopsis.graphical.l.pm.r(pm.java)
at com.sunopsis.graphical.l.pm.g(pm.java)
at com.sunopsis.graphical.l.pm.a(pm.java)
at com.sunopsis.graphical.l.pm.a(pm.java)
at com.sunopsis.graphical.l.iz.actionPerformed(iz.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.Dialog$1.run(Unknown Source)
at java.awt.Dialog$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at com.sunopsis.graphical.l.pm.q(pm.java)
at com.sunopsis.graphical.l.pm.<init>(pm.java)
at com.sunopsis.graphical.frame.b.jh.bx(jh.java)
at com.sunopsis.graphical.frame.bo.w(bo.java)
at com.sunopsis.graphical.frame.bo.d(bo.java)
at com.sunopsis.graphical.frame.w.actionPerformed(w.java)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Thank you. -
Error export from my database sql 2005 with Windows 2003 abap+java
Hi all
I'm trying to create an Export from my database sql 2005 with Windows 2003, but SAPINST starts with an error. ABAP+JAVA stack
While running the export preparation, I am getting the following error;
INFO 2010-09-08 12:12:43
Output of C:\j2sdk1.4.2_13-x64\bin\java.exe -classpath D:\usr\sap\BID\SYS\global\sltools\sharedlib\launcher.jar -showversion -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.sl.ut.manager.UtlMain
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_jce.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_jsse.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_smime.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_ssl.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/w3c_http.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comsl.ut.infoprovider_lib.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comsl.ut.manager.offline.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/antlr.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/exception.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/jddi.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/logging.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/offlineconfiguration.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/opensqlsta.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/tc_sec_secstorefs.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comtcsdtcvlimpl.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/SDMutil.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/SLUtil.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\base.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\util.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\sqlserver.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\spy.jar -export -type=keydb "-expfile=C:/Program Files/sapinst_instdir/NW04S/LM/COPY/MSS/EXP/CENTRAL/AS/PREEXP/usages_data.xml" -log=UTL_load_usages.log -sid=BID -dsn=jdbc/pool/BID -ssprops=D:/usr/sap/BID/SYS/global/security/data/SecStore.properties -ssk=D:/usr/sap/BID/SYS/global/security/data/SecStore.key is written to the logfile C:/Program Files/sapinst_instdir/NW04S/LM/COPY/MSS/EXP/CENTRAL/AS/PREEXP/UTL.java.log.
WARNING 2010-09-08 12:12:46
Execution of the command "C:\j2sdk1.4.2_13-x64\bin\java.exe -classpath D:\usr\sap\BID\SYS\global\sltools\sharedlib\launcher.jar -showversion -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.sl.ut.manager.UtlMain
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_jce.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_jsse.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_smime.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_ssl.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/w3c_http.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comsl.ut.infoprovider_lib.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comsl.ut.manager.offline.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/antlr.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/exception.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/jddi.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/logging.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/offlineconfiguration.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/opensqlsta.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/tc_sec_secstorefs.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comtcsdtcvlimpl.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/SDMutil.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/SLUtil.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\base.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\util.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\sqlserver.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\spy.jar -export -type=keydb "-expfile=C:/Program Files/sapinst_instdir/NW04S/LM/COPY/MSS/EXP/CENTRAL/AS/PREEXP/usages_data.xml" -log=UTL_load_usages.log -sid=BID -dsn=jdbc/pool/BID -ssprops=D:/usr/sap/BID/SYS/global/security/data/SecStore.properties -ssk=D:/usr/sap/BID/SYS/global/security/data/SecStore.key" finished with return code 64. Output:
java version "1.4.2_13"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_13-b06)
Java HotSpot(TM) 64-Bit Server VM (build 1.4.2_13-b06, mixed mode)
ERROR 2010-09-08 12:12:46
CJS-30071 Execution of UTL tool 'C:\j2sdk1.4.2_13-x64\bin\java.exe -classpath D:\usr\sap\BID\SYS\global\sltools\sharedlib\launcher.jar -showversion -Xmx256m com.sap.engine.offline.OfflineToolStart com.sap.sl.ut.manager.UtlMain
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_jce.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_jsse.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_smime.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/iaik_ssl.jar;
JRBIWD/sapmnt/BID/SYS/global/security/lib/tools/w3c_http.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comsl.ut.infoprovider_lib.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comsl.ut.manager.offline.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/antlr.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/exception.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/jddi.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/logging.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/offlineconfiguration.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/opensqlsta.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/tc_sec_secstorefs.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/sap.comtcsdtcvlimpl.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/SDMutil.jar;D:/usr/sap/BID/SYS/global/sltools/sharedlib/SLUtil.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\base.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\util.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\sqlserver.jar;D:\usr\sap\BID\DVEBMGS01\exe\mssjdbc\spy.jar -export -type=keydb "-expfile=C:/Program Files/sapinst_instdir/NW04S/LM/COPY/MSS/EXP/CENTRAL/AS/PREEXP/usages_data.xml" -log=UTL_load_usages.log -sid=BID -dsn=jdbc/pool/BID -ssprops=D:/usr/sap/BID/SYS/global/security/data/SecStore.properties -ssk=D:/usr/sap/BID/SYS/global/security/data/SecStore.key' aborts due to database connection error with return code 64.<br>DIAGNOSIS: The connection parameters are wrong or the database server is shutdown.<br> SOLUTION: Check 'UTL_load_usages.log' and 'C:/Program Files/sapinst_instdir/NW04S/LM/COPY/MSS/EXP/CENTRAL/AS/PREEXP/UTL.java.log' for more information.
ERROR 2010-09-08 12:12:46
FCO-00011 The step getUsageTypes with step key |NW_Prepare_Export|ind|ind|ind|ind|0|0|NW_Java_Prepare_Export_Dialog|ind|ind|ind|ind|5|0|getUsageTypes was executed with status ERROR .
Could anyone please help me out on this, if possible?
Thanks
JMHi,
please ensure that you use a SAP supported JDK as below:
716604 for the Sun JDK (Windows, Linux, Solaris)
709140 Recommended JDK and VM Settings for the WebAS630/640/7.0
And the re try the export pls.
Regards,
Snow -
Database connection to MS SQL 2005 (URGENT Help Needed)
Hi all,
Does anyone know how to connect my adobe form to MS SQL 2005?
I have this code:
try {
InitialContext initialContext = new InitialContext ();
DataSource dataSource = (DataSource) initialContext.lookup ("jdbc/MyAlias");
java.sql.Connection connection = dataSource.getConnection ();
} catch (SQLException e) {
// handle exception
} catch (NamingException e) {
// handle exception
Other than these, what else do i need to do inorder to get my database connection up?
And after my database connection is up, how do i test to check if my database connection is up or not?
How do i extract the information from the database and put them onto the textfields/dropdownlists on my form?
Thanks In AdvanceHi Mel,
After implementing the codes and modifying them, some of them are underlined, why is this so? =X
Or are u willing to exchange msn so i could send u the screenshot instead?
Thanks In Advance
(Sorry im not that good in this)
(I shall underline the areas which represents the red underline in my web dynpro)
//Code for database connection.
InitialContext ctx = new InitialContext();
DataSource ds = (DataSource)_ctx.lookup("jdbc/JXDataSource");_
Connection conn = ds.getConnection();
Statement st = null;
ResultSet rs = null;
IPrivateDetailed_Claims_FormView.IFillDataElement dataEle = null;
st = conn.createStatement();
// Execute the appropriate SQL query
rs = st.executeQuery("SELECT NAME WHERE VENDORCODE='9000116L' ");_
while (rs.next()) {
// Code that will populate your VN based on the data obtained in the ResultSet.
dataEle = wdContext.createFillDataElement();
dataEle.setName(_rs.getString(1)_);
// dataEle.setAge(rs.getInt(2));
// dataEle.setAddress(rs.getString(3));
//wdContext.nodeFillData.addElement(dataEle);
// Close the connections
rs.close();
st.close();
conn.close();
Edited by: JingXuan Lim on Jan 25, 2008 4:59 AM
Edited by: JingXuan Lim on Jan 25, 2008 5:00 AM -
Error while connecting to external SQL table using BCS identity in SharePoint 2010
Hi all,
I am working on SharePoint Foundation 2010. I have a stand alone setup. Now I am trying to connect to a SQL table in another server. I have used SharePoint Designer to connect using BCS. I have selected "BCS Identity" for authenticating with SQL
in the external content type. then I created a list with this external content type.
I get the following error upon opening the external list.
Login failed for user 'INYKGW\sp_farm'.
I am confused. how do I solve this error.
any help is greatly appreciated.
Thanks.Hi letShare ,
Whether the account 'INYKGW\sp_farm' is current user account or a service managed account?
Could you please provide detail error message of ULS log to determine the exact cause of the error.
For SharePoint 2010, by default, ULS log is at
C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS
Also please have a look at the blog :
http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=82
Best Regards,
Eric
Eric Tao
TechNet Community Support -
BC4J connect to Microsoft SQL*Server via Allaire Jrun JDBC
This post is in answer to Matteo Tamburini's questions about
connecting to SQL*Server using the allaire jdbc drivers.
see Re: Version 10.1.0.3.03 of Oracle Data Provider for .NET
These drivers are available for download from Macromedia at:
http://www.macromedia.com/v1/Handlers/index.cfm?ID=22399&Method=Full
They are shipped as one jar file: jrun_drivers.jar
I installed it into <jdev_home>\lib
To make a connection from designtime, follow (roughly)
the steps in the HowTo walkthrough:
Notice that the JDBC driver class is:
allaire.jrun.jdbc.JRunDriver
and the URL is something like:
jdbc:jrun:sqlserver://machinenane:1433;Selectmethod=cursor
There are two gotchas:
1. the Selectmethod=cursor is important
2. you will get an error saying that the class
allaire/jrun/servlet/JRunSE
can't be found.
Indeed - that package is not to be found inside the .jar
file; I suspect it is a rogue import in the source.
The workaround is to ask the VM not to verify classes - do this
by specifying -Xverify:none in the Java Options box of the
"Runner" tab of project properties.
I did successfully test a project deployed as a JSP inside OC4J:
the caveats are that you have to enter the jar file location
in j2ee\home\config\application.xml (as in Matteo's thread)
and that the -Xverify:none switch needs to go on the CLIENT
project, because it launches the embedded OC4J
hope all this helps, Karl McHorton (BC4J Development)Well, you must have tested to make sure that the socket value is indeed the correct value. But with that error, and you are certain that the socket value is correct, then it becomes difficult.
-
DB SCHEMA INFO error when connecting to AZURE SQL through OLE DB
Created a virtual machine in Azure and connected to Azure SQL server. I have been able to access the Azure SQL server through 2014 SQL Server Management Studio.
I have connected my program to the Azure SQL through a OLE DB connection. I am able to connect and create a new database through this connection, however when I try to connect to the newly created database, i get the following error:
Error creating connection: Not a Market(our product) database: Invalid object name 'db_schema_info'.
I am not sure what is going on and why this error is showing up. Is it because of the OLE DB connection? The fact that the login mysql.database.windows.net has periods and a login login@mysql? I have had issues with punctuation in the past when connecting
through OLE DB. Please help me to either find the right code or another work around option.
I can connect my program to a local SQL server hosted on the VM the same process as above without any issues. This is not a viable option as I need to connect multiple VMs to the same SQL server.Hi,
Thanks for posting here.
Connecting to Microsoft Azure SQL Database by using OLE DB or ADO is not supported on SQL Azure.
Ref: http://www.connectionstrings.com/sql-azure/
Microsoft does not announce support for OLE DB connections to Azure and there are limitations. Some required OLE DB schema rowsets are not available from an Azure connection, and some properties that identify features in SQL Server are not adjusted to represent
SQL Azure limitations. For most common connect/query/update tasks it seems to work fine.
Provider=SQLNCLI11;Password=myPassword;User ID=[username]@[servername];
Initial Catalog=databasename;Data Source=tcp:[servername].database.windows.net;
Ref: http://msdn.microsoft.com/en-us/library/azure/ee336245.aspx
You can also check
Connectivity Considerations for SQL Server in Azure Virtual Machines
Hope this helps you.
Girish Prajwal
Maybe you are looking for
-
While playing a game my iphone went completely frozen, it does not respond to any input, not even to holding down the on/off hey. Any ideas?
-
HP Pavilion G6 1006sh external display doesn't work with Windows 8.1
Hi All, After performing a clean install of Windows 8.1 Professional on my Pavilion G6 1006sh I can not use my external Samsung monitor connected on HDMI port. The windows install went smoothly without any issues the OS had builtin drives for all of
-
Remove Attachment in Mail Adapter Module
Hi! My problem: I get an email with an attachment which I process in an adapter module for the mail adapter. With the resulting XML I set a new payload, but the old attachment still exists. This gets to a problem when I route the message back to the
-
Why can I not convert pdf into word file?
why can I not convert pdf into word file?
-
How do you add new template layout to a Concurrent Program?
hello. I've created several rtf templates via MS Words BI Publisher and somehow they get attached to template layout that can be selected before running the Concurrent Program - but does anybody know how this is done as I can't find how? thanks in ad