Trouble in a minimal application : Can't Connect, worthless Exceptions
Hi all,
I have tried to connect to an oracle db from within an app i maintain. since i had trouble doing so, I isolated the connection into an app of its own, in order to debug it.
It's a windows form in C#, and here's the source (and that really IS all!)
InitializeComponent();
OracleConnection conn = new OracleConnection("Data
Source=TEST.Provider;User Id=TestUser;Password=TestPass;");
try
conn.Open();
catch (OracleException e)
Console.Out.WriteLine("holy cow");
I tried the connectionString (which is non-breaking, the forum's textarea wraps it up) in another application, and it works.
the stack trace doesn't give me any useful hints :
bei Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx* pOpoSqlValCtx, Object src, String procedure)
bei Oracle.DataAccess.Client.OracleConnection.Open()
bei WindowsApplication2.Form1..ctor() in C:\profiles\sebi\Eigene Dateien\Visual Studio 2005\Projects\WindowsApplication2\WindowsApplication2\Form1.cs:Zeile 18.
By the way, I use Oracle.Access.Client from the Oracle DP10g Data Access Assembly.
I'm a bit stuck here, after 3 hours of not getting it to work....Can anyone help me please?
Hi,
This machine has several things installed, yes. In the installed Software list i can find OracleClient version 9.0.
In my application, I use an DP10g assembly (Oracle.DataAccess.Client)
How can I check on ODP?
Similar Messages
-
My application can not connect to FMS2
My application can not connect to FMS2
hi,all, Some things block me. Who can you help me? I
appreciate your support.
Server: FMS 2.0
Client : Flash 8 ,Flex 2.0.1
I find Flash 8 code is fine. It can connect to FMS2 with on
error. I can find connect show in FMS console.
But I find AS3 codes can not connect to FMS2. Why? I am very
puzzle...:-(
Error messages is nse.info.code:NetConnection.Connect.Failed
nse.info.level:error...help me please..Thank you very much.
My codes below.
==========Flash 8 code =========
stop();
// Open connection to FlashCom
client_nc = new NetConnection();
// Handle status message
client_nc.onStatus = function(info) {
trace("Level: " + info.level + newline + "Code: " +
info.code);
client_nc.connect("rtmp://127.0.0.1/tutorial_text");
// Initialize the typing stage
TypingStage.text = "";
// Create a remote shared object. client_nc.uri is the URI of
the
// NetConnection the shared object will use to connect to the
// server. I.e., the one just created.
text_so = SharedObject.getRemote("sharedtext", client_nc.uri,
false);
// The following is very important, nothing happens otherwise
text_so.connect(client_nc);
// Each time something changes in the shared object, the
server
// sends out a synchronization message. This onSync handler
// updates the movie based on the information.
text_so.onSync = function(list) {
// Update the textArea in the typing stage with the latest
// text from the shared object. The 'for' loop condition
searches
// through the list of changes, and the 'if' condition
ensures
// that we apply the relevant change only if someone other
than
// this client has changed the value.
for ( var i = 0; i < list.length; i++ )
if ( list.name == "textValue" && list.code !=
"success")
TypingStage.text = text_so.data.textValue;
break;
// Update the shared object every time the user types in new
text
TypingStage.onChanged = function()
text_so.data.textValue = TypingStage.text;
===============Flex2
代码如下====================
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" creati>
<mx:Script>
<![CDATA[
import flash.net.*;
import mx.controls.Alert;
import flash.events.SyncEvent;
private var client_nc:NetConnection;
private var text_so:SharedObject;
public function init():void
flash.system.Security.allowDomain("
http://127.0.0.1");
rte.text = "";
public function ioEvent(ioe:IOErrorEvent):void
rte.text = rte.text+"/n"+" io:"+ioe.text;
public function connectStatus(nse:NetStatusEvent):void
//trace("Level: " + nse.info);
rte.text = rte.text+"/n"+" nse.info.code:"+nse.info.code+"
nse.info.level:"+nse.info.level;
public function click():void
client_nc = new NetConnection();
client_nc.addEventListener(NetStatusEvent.NET_STATUS
,connectStatus);
client_nc.addEventListener(IOErrorEvent.IO_ERROR,ioEvent);
rte.text = "connect rtmp://127.0.0.1/tutorial_text ";
client_nc.connect("rtmp://127.0.0.1/tutorial_text");
///tutorial_text
text_so = SharedObject.getRemote("sharedtext",
client_nc.uri, false);
text_so.addEventListener(SyncEvent.SYNC,syncShareObject);
text_so.connect(client_nc);
public function syncShareObject(se:SyncEvent ):void
var list:Array = se.changeList;
var i:int;
for (i = 0; i < list.length; i++ ){
if ( list.name == "textValue" && list.code !=
"success"){
rte.text = text_so.data.textValue;
break;
public function changeRTE():void
text_so.data.textValue = rte.text;
public function disconnect():void{
if (client_nc.connected){
client_nc.close();
]]>
</mx:Script>
<mx:RichTextEditor id="rte" x="23" y="19" width="626"
height="337" cornerRadius="20" change="changeRTE()">
</mx:RichTextEditor>
<mx:Button x="105" y="381" label="Start Connection"
width="204" click="click()"/>
<mx:Button x="317" y="381" label="Disconnect" width="209"
click="disconnect()"/>
</mx:Application>Action Script uses AMF3 format to communicate. However, Flash
Media Server 2 only understands the AMF0 format.....
Do the following:
var client_nc:NetConnection = new NetConnection();
client_nc.objectEncoding = flash.net.ObjectEncoding.AMF0;
client_nc.connect("rtmp:/FLEX");
This should connect .... however, you might run into other
issues like me... I am having issues with NetStream after that ...
however, let me know if this works ... -
Applications can't connect to the Internet
Hello,
I have problem with my Nokia 5800 XM. Some of my applications can't connect to the internet. After I run them and allow them to connect it says that I have bad internet settings, which are fine because I can use web browser and Skype. Please help me because I'm really desperate, after I tried resetting my internet settings several time I even tried to reinstall software and it still doesn't work.
Thank youWhat are the apps?
If i have helped at all a click on the white star below would be nice thanks.
Now using the Lumia 1520 -
Oracle Developer Suite Applications Can't connect to Oracle 8i database
Hello,
I have Oracle 8i installed on my PC.
Now I have installed Oracle Developer Suite on it.
During the installation it never asked for a Oracle home directory. It may be detecting the same.
It has created separate menus and configuration files like tnsnames.ora for this installation. The SQL * Plus version is also different, which is 10.1.0.4.2.
Now when I try to connect using usual scott/tiger authentication it gives error
ORA-12560: TNS: Protocol adapter error.
Even after correcting the tnsnames.ora file, which is installed by DS with proper service name, the problem persists.
Please help.
-SameerI have uninstalled Oracle 8i.
Removed all the services from Windows services by deleting corresponding registry entries and deleted the Oracle folder.
I have reinstalled Oracle 8i, this time i changed the name of global database to oracledb.
I channged the tnsnames.ora file from DevSuite appropriately as:
# tnsnames.ora Network Configuration File: C:\DevSuiteHome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
EXTPROC_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = TCP)(HOST = mscserver)(PORT = 1521))
(CONNECT_DATA =
(SERVICE_NAME = ORACLEDB)
Still it can't login using scott/tiger authentication.
What may be the problem? Please help.
-Sameer -
My JDBC Application can't connect MySQL Server
What does it mean?
("Is there a MySQL server running on the mac
hine/port you are trying to connect to?)"
Problem occured on my application or Server?
Thanksit means that ur driver isnot able to find the mysql server. so check that it is effectively running and then check the url u've given ('machine' and 'port' number - also if u're using mysql default, no port number is required in the url -)
-
Can't connect after installing
I installed the VS.NET integration tools and now an asp.net application can't connect to a 9i database. I haven't changed anything in the original app.
I get the following error:
ORA-12154: TNS:could not resolve the connect identifier specified
Any insight into why this has happened?
Thanks,
ChristianOr 3. Set TNS_ADMIN in the registry so that you only
ever have to maintain one file. This is documented on
technet. I should however have read the original reply first. I strongly suspect that your particular problem will be caused by the new 10g Home becoming the default Oracle home. This can be changed by firing up the OUI and choosing installed products and then the environment tab and setting the first home to be the 9i home. Alternatively of course you could consider moving the whole system to use the 10g client :)
Niall -
Hi,
I can't connect to my iMessage account with the Messages application from my Mac ( 10.8.5)
I am retyping my user/password - which works for my other Apple services ( iCloud, iTunes store,...) but the Messages app can't connect.
Also, the FaceTime application can't connect either.
Thanks,for the Points.
8:00 pm Wednesday; April 23, 2014
iMac 2.5Ghz i5 2011 (Mavericks 10.9)
G4/1GhzDual MDD (Leopard 10.5.8)
MacBookPro 2Gb (Snow Leopard 10.6.8)
Mac OS X (10.6.8),
Couple of iPhones and an iPad -
After I upgraded to IOS 8 my iPhone is not working well at all .. the most serious issue is the wifi which is too slow and can't connect to apple store and can't update my application .. also tried to search or update for ios 8 but also can't connect . safari also always can't connect to any the server . please check and advise
Hey ahmedfromtanta,
Thanks for the question. After reviewing your post, it sounds like trouble with Wi-Fi. I would recommend that you read this article, it may be able to help you resolve or isolate the issue.
iOS: Troubleshooting Wi-Fi networks and connections
Thanks for using Apple Support Communities.
Have a nice day,
Mario -
Adobe cloud application manager - can not connect to internet
To ADOBE - The Adode cloud Order no is DSSY006786009DT and is current
The Adobe cloud application manager - can not connect to internet even though there is internet connection and says it might be time zone error but that is correct - Sydney Australia
Question:
1. Is anybody else having this problem
2. How do we fix
I already changed the time zone east coast US - did not change anything
Could it be a corrupt program - thus requiring to reinstall program Application manager
I am using Windows 7.
It has been like it for ten days - It asks to log in everytime I turn computer on
All programs in Creative Cloud work
Any suggestions and solution
Online help and phone help had no solutions other than what I suggested - that is reload application manager
Thanks for help
Ian ClelandThe Creative Cloud File Synching was just offline, should be online now again.
See top off: http://forums.adobe.com/community/creative_cloud/creative_cloud_connection
Maybe that was your problem. -
Frustrated with my Mac book pro. It's 4 yrs old and I've taken it in 3 times this year for different issues. Just last week they said my Cd Rom has packed it in. As of this week, I can't connect to wifi or get any of my applications to respond. Also won't hold a charge :(. Is it possible I need a new one? I paid 2200.00 for thus one. Seems like it should last longer than that. Any help or advice would be greatly appreciated.
You would do better to ask in the Mac Forum - this is the iPad forum.
-
Hi, my iTunes application is not connecting to the iTunes store. It is coming up with the following error message "we could not complete your itune store request. An unknown error occured (11222)" Can you please assist?
Hi Laura-Wedders,
Thanks for visiting Apple Support Communities.
On August 7th, some users may have been unable to make purchases from the App Store, iTunes Store, Mac App Store, or iBookstore. Apple worked quickly to resolve these issues, however you may have experienced them.
To check the current status of these systems please see:
Apple - Support - System Status
http://www.apple.com/support/systemstatus/
If you are still experiencing issues, you may want to troubleshoot with the following articles:
Can't connect to the iTunes Store
http://support.apple.com/kb/TS1368
iTunes: Advanced iTunes Store troubleshooting
http://support.apple.com/kb/TS3297
All the best,
Jeremy -
I can't connect to the itunes store. I've tried everything in the articles for trouble shooting and nothing works. My library comes up, my ipod syncs, and I get no alert messages. I'm running Vista.
I can't connect to the itunes store. I've tried everything in the articles for trouble shooting and nothing works. My library comes up, my ipod syncs, and I get no alert messages. I'm running Vista.
-
Can I connect my application to mssql server
Can I connect my application to mssql server ?
nioe wrote:
Something more specific, my search on Google does not appear something abuot mssql
Perhaps you could help the process along by being a little more specific. Is this an in-house application. Will it ever leave your local network? Or does it need to run over the internet? Regardless, the best option will likely be some type of REST web service that any client can use. -
TS1398 i have trouble connecting to wifi i can only connect from less than a feet from my router
i have a iphone4 and i am haveing trouble conneting to wifi can only connect to wireless router from one feet away
Hi there,
You may want to take a look at the troubleshootings steps found in the article below.
Wi-Fi: How to troubleshoot Wi-Fi connectivity
http://support.apple.com/kb/HT4628
-Griff W. -
Can't connect to Application server
Hello.
i have installed sccm 2012 r2 with Application catalog web service and website roles. Status of all roles is "Ok".
But when i try to open http://ap-server/cmapplicationcatalog/, i get error "Can't connect to Application server"
What is the problem? Thanks.If you have IPV6 enabled on SCCM server then disable it.
Few similar threads:-
http://social.technet.microsoft.com/Forums/en-US/267352b5-01d2-4c8e-b40b-0a7ab669b65b/application-catalog-cannot-connect-to-the-application-server-error?forum=configmanagerapps
http://social.technet.microsoft.com/Forums/en-US/e741b7db-26f1-45af-b074-77f420476267/application-catalog-cannot-connect-server-error-due-to-fqdn?forum=configmanagerapps
Prajwal Desai, http://prajwaldesai.com
Maybe you are looking for
-
I need detailed explanation of the OC4J config/*.xml files.
Anybody know where I can find good descriptions of the OC4J config files?? I've found some stuff on www.orionserver.com but they aren't good enough. Specifically, I have someone who wants a <lib> entry made for his app into the server.xml file. I wan
-
OS Windows 7 (64). Photoshop CS5 Extended, v.12.1. Lightroom 3. When I open an image in photoshop that has been modified using a plug in (e.g., Alien Skin Snap Art 4) the changes made to the image do not appear. The original image appears. When I
-
Reference date of last data load in query
Is it possible to referece the date of the data load in a query via user exit / formula variable or some other way? We have a requirement to display data in a query based on when the data was last loaded. If the data load has not occured this month,
-
Popup with window.open should arise only once onclick
i want a popup that should arise only once onclick but i am getting that popup how many times i am clicking
-
Hello, Im using the latest vs of 10.10.3. When launch the Photo app the only pictures on it are pictures I took with mi iPhone or iPad. I thought the Pictures App was suppose to replace iPhoto and import all my pictures/albums? thanks