Quantcast
Channel: Adobe Community : Popular Discussions - Database Access
Viewing all 69606 articles
Browse latest View live

Error Creating Oracle Data Source - no more data to read

$
0
0

I am working with a client who is trying to create an Oracle data source in ColdFusion and is receiving the following error message:

 

Connection verification failed for data source: cqat

java.sql.SQLNonTransientConnectionException: [Macromedia][Oracle JDBC Driver]No more data available to read.

The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][Oracle JDBC Driver]No more data available to read.

 

Here is the information for the given situation:

 

Oracle 11.2 64-bit Enterprise running on Linux (No RAC or encryption on the database server)

ColdFusion 9.0.1.274733 32-bit running on Windows 2008

 

We are trying to create an Oracle data source using the built-in Oracle drivers in CF (data direct).

 

I have never had this issue before when trying to connect to an Oracle server.. even when my CF installation was 32 bit and my Oracle installation is 64 bit.

 

Any help or thoughts would be much appreciated.

 

PS - An ODBC Socket type data source works like a charm.

 

~Mike


CF 10 calls a wrong procedure when it is overloaded in an Oracle Package

$
0
0

Hi

In my application we have oracle packages with overloaded procedure, which is being called from CF gui. The issue is when the CF calls the Stored Procedure from the GUI, it triggers the wrong procedure. The number of arguments are different.(4, 10 and 11 parameters). Has anyone came across this scenario?

 

Thanks

TJ

ByteArray objects cannot be converted to strings

$
0
0
I'm upgrading a site from CF7 to 8, and switched my datasource from the MySQL 3 driver under CF7 to "4/5" under CF8. The database has always been version 4, and so this seems logical to make this switch. However, this introduces an error I didn't have before, "ByteArray objects cannot be converted to strings" on a query field that is from a MySQL concat() function.

I would think that the newer driver would handle things like this better, and not worse? If this were the only error, I could insert the tostring() function to resolve it, but I don't how many other tiimes this case will come up in dozens of applications and maybe thousands of pages. If I revert to the MySQL 3 driver (for my MySQL 4 database) under CF8, the original code works fine.

Suggestions?

How to use the javadbf in cfmx 7?

Socket write error - SQL Server

$
0
0
Hi,
Just started getting the following error yesterday and now we get them approximately every 2 minutes...

Error Executing Database Query.
[Macromedia][SQLServer JDBC Driver]Connection reset by peer:
socket write error

As far as I know, there haven't been any changes made to either the SQL server, the Coldfusion server, or the coldfusion modules.

If you have any suggestions as to possible causes or how to troubleshoot this problem, that would be greatly appreciated.

Thank you!

CF 8.0.1 can't connect to oracle database after upgrade to 11g

$
0
0

Hello,

 

The company where i work is upgrading their Oracle databases from version 10 to version 11. Since this upgrade, i am not able to validate datasources pointing to the new 11g instance (connections to the old oracle 10 instance still work fine, but this will be removed soon).

 

After creating a new or editing an existing datasource, or when clicking the "verify" icon next to the datasource name in the CF admin, i get the error message:

 

Connection verification failed for data source: formZ
java.sql.SQLException: [Macromedia][Oracle JDBC Driver]null
The root cause was that: java.sql.SQLException: [Macromedia][Oracle JDBC Driver]null

 

I am running ColdFusion 8,0,1,195765  Developer Edition on my local workstation (XP Pro), in the J2EE deployment inside weblogic 9.2

 

My java version is 1.5.0_12-b04, my datadirect driver version is 3.6

 

Is anybody here running CF8 with an Oracle 11g database? Did you have to do something special to get this working or was it all fine out of the box?

 

Any help would be appreciated.

 

Regs,

/t

Error Executing Database Query.[Macromedia][SQLServer JDBC Driver]

$
0
0

Error Executing Database Query.[Macromedia][SQLServer JDBC Driver]A problem occurred when attempting to contact the server (Server returned: Software caused connection abort: recv failed). Please ensure that the server parameters passed to the driver are correct and that the server is running. Also ensure that the maximum number of connections have not been exceeded for this server. The specific sequence of files included or processed is: D:\Apps\sitemap.cfm, line: 31

 

We are getting the above error in coldfusion. Can anyone please help us in fixing the above issue?

 

The environment used are as follows:

Coldfusion 9

SQL Server 2005.

 

 

Thanks,

Satheesh.

How to connect Oracle 11g in CF9 using tnsnames

$
0
0

Hi, I'm using CF9 running on Solaris and I just had Oracle 11g installed using tnsnames. Can someone explain to me how to add the Oracle string in CF admin? I have confirmed that I can connect to the database but I don't think I have the correct syntax for connection string. I think it should be similar to the following: jdbc:datadirect:oracle:TNSNAMES_FILE=/d01/oracle/product/v.11.2.0.3_client/network/admin/ tnsnames.ora:@dbserver.com:1549:SIDname;driver=oracle.jdbc.Oracle

 

Does anyone have an idea?

 

Thanks in advance


Having problems connecting Coldfusion10 with sql server express 2012

$
0
0

Hi,

 

I am having problems setting up a datasource for a local sql express 2012 server. Its running as the default instance. Connections are working with ODBC and client told just not Coldfusion.

 

When I try to set up a connection using the sql driver I get this error:

 

Connection verification failed for data source: Leaf

java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: 127.0.0.1:1433. Reason: Invalid argument: connect

The root cause was that: java.sql.SQLNonTransientConnectionException: [Macromedia][SQLServer JDBC Driver]Error establishing socket to host and port: 127.0.0.1:1433. Reason: Invalid argument: connect

 

When I try a Socket connection with an ODBC connection I setup in windows I get this error:

 

Connection verification failed for data source: LeafDB

java.sql.SQLException: [Macromedia][SequeLink JDBC Driver]Internal network error, connection closed.

The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver]Internal network error, connection closed.

 

Any ideas?

 

Thanks,

sql add blank row to result

$
0
0
Hi,

I currently use a temporary table to add a blank row to the top/beginning of my query results. I'm moving to MS SQL stored procedures and wanted to know if it's possible to add a blank row right into my SQL so I can eliminate the temporary table solution.

Any thoughts on this are appreciated!

cfwild

Using Unicode with MS-SQL-Server 2000

$
0
0
Hello,
i want to migrate my coldfusion application to support unicode. for that i read some articles here in the knowledge bas e and on the web. So i actually tested with:
* correct use of cfcontent,cfprocessingdirective
* storing source-files with UTF8 (BOM)
* activating Unicode-handling for strings in datasource-settings of coldfusion admin
* using nvarchar instead of varchar on mssql-server

my firsts test displaying diffrent characters of different languages (chinese, japanese, arabic) look good. Tests storing and selecting example strings in that languages also look good.

but now i read, that mssql stores unicode data with the UCS-2 implementation and cannot handle UTF-8 directly. but my coldfusion-application will be converted to UTF-8.
now my question: Do i have to do special handling storing and selecting the application data or does this the mssql jdbc driver for me. What about characters in some languages which use 3 Bytes in UTF8. How are they handled when MS-SQL-Server 2000 uses UCS-2 (max 2 Bytes) instead?

Many regards for your answers
McD

Error Calling Oracle SP

$
0
0
I'm running ColdFusion 6,1,0,63958 Enterprise. I've registered a DSN (using CFMX's Oracle driver) to an Oracle 9.2.0.4 database and I'm having problems calling a stored procedure from ColdFusion. Here's what my code looks like:

<cfstoredproc procedure="lib.getContact" datasource="#attributes.dsn#">
<cfprocparam type="in" cfsqltype="CF_SQL_VARCHAR" dbvarname="P_CUST_ID" value="642798" null="no" maxlength="10">
<cfprocparam type="in" cfsqltype="CF_SQL_VARCHAR" dbvarname="P_SUBGROUP_ID" null="yes" maxlength="10">
<cfprocparam type="in" cfsqltype="CF_SQL_VARCHAR" dbvarname="P_COMMITTEE" null="yes" maxlength="30">
<cfprocparam type="in" cfsqltype="CF_SQL_VARCHAR" dbvarname="P_STATUS" value="ACTIVE" maxlength="30">
<cfprocparam type="Out" CFSQLType="CF_SQL_BLOB" variable="P_CONTACT">
<cfprocparam type="Out" CFSQLType="CF_SQL_VARCHAR" variable="P_SUCCESS" maxlength="10">
<cfprocparam type="Out" CFSQLType="CF_SQL_VARCHAR" variable="P_MSG_TEXT" maxlength="32767">
<cfprocresult name="contactInfo">
</cfstoredproc>

Here's the error I get:
Error Executing Database Query.
[Macromedia][Oracle JDBC Driver]Unhandled sql type

Can someone please shed some light? I've been dealing with this for the past 2-3 days.

TIA

Login failed for user ''. when verifying datasource connection in Coldfusion Admin

$
0
0

All other datasource connections are verified OK except one connection to SQL Server and on verification it gives an error Login failed for user".

I'm using mixed mode authentication in SQL Server. Can 't seem to think what else to get rid of the error.

 

Please advise,

Thanks,

Jyoti.

Dynamic column name in cfquery

$
0
0
I have a scenario in which database column names are in a format COLUMN1, COLUMN2, ...COLUMNn. Number of column is not known while coding. But usually the column names are hard code while accessing the cfquery result like
cfqueryresult.COLUMN1.

I want to get the column names from 'cfqueryresult.ColumnList' and from that result i want to fetch the column values.
Is it possible to achieve this in coldfusion?

Could not find prepared statement with handle 1.

$
0
0

[Macromedia][SQLServer JDBC Driver][SQLServer]Could not find prepared statement with handle 1.

 

I'm getting this error message in what appear to be random ways. The first time I look at a page I might not get it, but the second time I might. I discovered that removing a cfqueryparam tag worked, but that is not really a safe solution. I checked that the cf_sql_type matched the database field, and in one case changed a cf_sql_varchar to a cf_sql_char so it would match a SQL Server nchar(10) field. But still these errors. Any ideas? I've not had any luck Googling this.

 

I should add that I'm running Coldfusion 9 as a Tomcat webapp on a Linux server. The database is SQL Server 2005, I think.


Error Executing Database Query, Network problem

$
0
0
I am getting the following error when trying to run an Oracle stored procedure that returns a ref cursor using CF MX 7.0.2.142559:
Error Executing Database Query.
[Macromedia][SequeLink JDBC Driver]Network problem, session aborted due to internal error in remote procedure call, connection closed.

I am connecting to the database through an ODBC Socket DSN. The CF DSN was created without error. I have verified that the ODBC DSN is connecting without error.

I am getting the following in the application log:
"Error","jrpp-0","09/11/08","11:25:31","Surplus","Error Executing Database Query.[Macromedia][SequeLink JDBC Driver]Network problem, session aborted due to internal error in remote procedure call, connection closed. The specific sequence of files included or processed is: C:\Inetpub\wwwroot\assocproducts\ken.cfm, line: 14 "

I am getting the following in the exception log:
"Error","jrpp-0","09/11/08","11:25:31","Surplus","Error Executing Database Query.[Macromedia][SequeLink JDBC Driver]Network problem, session aborted due to internal error in remote procedure call, connection closed. The specific sequence of files included or processed is: C:\Inetpub\wwwroot\assocproducts\ken.cfm, line: 14 "
coldfusion.tagext.sql.QueryTag$DatabaseQueryException: Error Executing Database Query.
at coldfusion.tagext.sql.StoredProcTag.doEndTag(StoredProcTag.java:201)
at cfCategory_Procs2ecfc417114750$funcGETCATEGORYLIST.runFunction(C:\Inetpub\wwwroot\assocpr oducts\includes\Category_Procs.cfc:14)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:344)
at coldfusion.filter.SilentFilter.invoke(SilentFilter.java:47)
at coldfusion.runtime.UDFMethod$ReturnTypeFilter.invoke(UDFMethod.java:290)
at coldfusion.runtime.UDFMethod$ArgumentCollectionFilter.invoke(UDFMethod.java:254)
at coldfusion.filter.FunctionAccessFilter.invoke(FunctionAccessFilter.java:56)
at coldfusion.runtime.UDFMethod.runFilterChain(UDFMethod.java:207)
at coldfusion.runtime.UDFMethod.invoke(UDFMethod.java:169)
at coldfusion.runtime.CfJspPage._invokeUDF(CfJspPage.java:1807)
at cfken2ecfm1820770350.runPage(C:\Inetpub\wwwroot\assocproducts\ken.cfm:14)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:225)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:51)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:86)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:69)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:2 8)
at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:115)
at coldfusion.CfmServlet.service(CfmServlet.java:107)
at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:78)
at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:257)
at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:541)
at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:204)
at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:318)
at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:426)
at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:264)
at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66)

I can't find anything on the net that helps me resolve this. I tried using the Oracle JDBC driver as well, but got cryptic errors with that as well.

Any help on this greatly appreciated.

Thanks!
Ken

Greek Characters displayed as ??????

$
0
0
Hi, I have a website hosted by a provider which provides web hosting, coldfusion and mySQL.
My .cfm pages are in Greek letters and I use a mySQL database with Greek letters inside the fields.
Before I posted this site I developed it locally using local coldfusion and mySQL servers and the .cfm page displayed correctly (in Greek) the static text and the dynamic text which was taken from the greek mySQL database.
After I posted it I see correct Greek static text but ?????? for the dynamic text that is taken from my database.
Of course I can't change the system variables on mySQL server on my Host provider for the reason that it is a shared one.
Going through cf documentation I discuvered ways to manipulate the connection with the database dictating the character set to use for the transactions. All my efforts came to the same ?????? for dynamic text.
I want to add that my database is in utf8 and the tables inside it.
Is there any code I have to include in my .cfm page so I can have the dynamic Greek text displayed correctly?

I would really appreciate any useful answers.

Insert GIF file into BLOB

$
0
0
when i try to insert a gif file into a blob via ImageGetBlob(), i get the following error:
An error occured in converting the image to base64 in the required image encoding. Base64 images can be created with ColdFusion in BMP,JPEG,PNG,PNM,and TIFF formats.

is there no way to insert a gif into a blob in coldfusion?
thanks in advance!

Deleting multple entries in MySql

$
0
0
Hi all,

Perhaps I should send this to a MySql list but I thought that I'd give it a go here (Still very much a Coldfusion novice):

I've created a MySql table to store names of orders waiting for collection at our works stores, a simple cfm web page displays the orders for folk at work to know which ones have arrived. Using cfm addtional orders can be added by the stores staff; an order number is allocated by an autoincrement field in the MySql table. Using the generated order number as a key I can then use cfm to send a delete statement to the MySql table to delete that order when it is collected.

Now our stores staff have asked me if it is possible to delete several entries at a time.

I thought of a form with check boxs. Cfm can put a value to each check box but submitting the form results in a long string of comma separated order numbers. How can I translate that into a MySql statement to delete the orders with those numbers.

I hope that makes sense. Any theories welcomed.. (I am still quite a beginner at this).

Cheers,

Paul.

Getting Java Connection Error with MySQL

$
0
0
I've ben working on a site for the passed month and now suddenly I'm getting error it was working fine yesterdand it suddenly stopped. Nothing has changed what does this error mean

Communications link failure due to underlying exception: ** BEGIN NESTED EXCEPTION ** java.net.ConnectException MESSAGE: Connection refused: connect STACKTRACE: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:519) at java.net.Socket.connect(Socket.java:469) at java.net.Socket.(Socket.java:366) at java.net.Socket.(Socket.java:209) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:173) at com.mysql.jdbc.MysqlIO.(MysqlIO.java:267) at com.mysql.jdbc.Connection.createNewIO(Connection.java:2739) at com.mysql.jdbc.Connection.(Connection.java:1553) at com.mysql.jdbc.NonRegistering...

Viewing all 69606 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>