The exception error,didn't catch the connection of null user name,help!

help me !
I use the occi and vc to execute a program,
when i use a NULL database name or use a NULL user name to connect the oracle,the statement "try...catch(SQLException ex)"
didn't catch the error,how i can do?
who can tell me how to change the code,and give me the code of resolved.
the code is:
try
env=Environment::createEnvironment(Environment::DEFAULT);
conn=env->createConnection(m_user,m_pwd,m_dbbase);
}catch(SQLException ex)
when the m_dbbase is NULL or m_user is NULL,the Exception didn't being catched.

#include"iostream.h"
#include <string>
#ifndef occi_ORACLE
#define WIN32COMMON
#include "occi.h"
#pragma comment(lib,"D:\\oracle\\product\\10.1.0\\Db_1\\oci\\lib\\msvc\\vc6\\oraocci10.lib")
using namespace oracle::occi;
using namespace std;
#endif
void main()
     Environment *env;
     Connection * con;
try
env = Environment::createEnvironment(Environment::DEFAULT);
con = env->createConnection("","","");
catch(SQLException excep)
cout<<"Error while connect: "<<excep.getMessage().c_str();
the code is as over,my system is windows2003,the Oracle is 10g,the VC is 6.0,
when I build the program,No error,when go(F5) to the statement "con = env->createConnection("","","");",popup a MessageBox----"Unhandled exception in testt.exe (ORACLINT10.DLL):0xC0000005:Access Ciolation.",the con value is 0xCCCCCCCC,
and another question being found,the statement "cout<<"Error while connect: "<<excep.getMessage().c_str();" be decreased the .c_str();
error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' (or there is no acceptable conversion)
how to use the string type?which top file i must add?

Similar Messages

  • My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

    My station is listed on Itunes Radio stations, but there's a problem with the connection. Does any body help us regarding this issue? The station name is KRAL FM under the Top 40 / Pop category

  • 3rd gen iPod touch. I just get a blank screen (after a few secs of the apple symbol) when it is switched on or when connected for charging. I know the connections are OK. Suggestions/help please

    3rd gen iPod touch. I just get a blank screen (after a few secs of the apple symbol) when it is switched on or when connected for charging. I know the connections are OK. Suggestions/help please

    I took the iPod to the local Apple shop. The guy put the iPod onto a docking station and checked it - answer "connections are OK". I have used the link before but have not gone through all its suggestions (although picked on the most relevant ones). I may have to go back. Thanks again for your suggestions

  • I can listen to my music with samsung soundbar wh 550 but i cannot do that with my mac book air. I can connect to samsung soundbar with my mac but the connection drops immediately. Please help  MacBook Air, iOS 10.9.4

    I can listen to my music with samsung soundbar wh 550 but i cannot do that with my mac book air.
    I can connect to samsung soundbar with my mac but the connection drops immediately. Please help.
    MacBook Air, iOS 10.9.4

    Contact Samsung for help.
    Barry

  • Create subscription not having the correct created by user name and date

    Last week we upgraded our system to SP14 from SP11. When a user creates
    a new document request from a template (refer attachment-screen shots),
    subscription notification is sent with the wrong created by user name &
    date. Instead of showing the user who created the request using the
    template, it is showing the user’s name & date who loaded the templates
    to the repository.
    Also, when the user creates new document request from template, the
    name of the templates defaults in the system property “name” without any
    extension, in other words it looks like it is overwriting the same file
    name to all the requests & is not able to identify the user’s name. We
    did not see this behavior in SP11.
    Since we are already in production & this is causing lot of issues &
    confusion, if any of you have experienced this issue, please let me know how it was resolved.
    I am also attaching the log files with errors for your reference.
    Errors thrown in trace files for template stuff
    #1.5#0003BA0ED980001D000000000000218B00040A023494CCAC#1136904495221#com.sapportals.wcm.util.logging.CatchBlockHandler#sap.com/irj#com.sapportals.wcm.util.logging.CatchBlockHandler.ResourceImpl#9kgollap#2342##woody_EPD_613400651#9kgollap#dc44ab8081e611dac2ff0003ba0ed980#SAPEngine_Application_Thread[impl:3]_4##0#0#Error##Plain###[ECB] Can't move /documents/Templates/SingleTemplates/New_ Document_ Number_ Required_Engr Spec.doc to /QIS_content/ELYR_Manufacturing/New_ Document_ Number_ Required_Engr Spec_0_.doc: com.sapportals.wcm.repository.NotSupportedException: Can't move /documents/Templates/SingleTemplates/New_ Document_ Number_ Required_Engr Spec.doc to /QIS_content/ELYR_Manufacturing/New_ Document_ Number_ Required_Engr Spec_0_.doc
                at com.sapportals.wcm.repository.ResourceException.fillInStackTrace(ResourceException.java:400)
                at java.lang.Throwable.<init>(Throwable.java:195)
                at java.lang.Exception.<init>(Exception.java:41)
                at com.sapportals.wcm.WcmException.<init>(WcmException.java:59)
                at com.sapportals.wcm.util.content.ContentException.<init>(ContentException.java:38)
                at com.sapportals.wcm.repository.ResourceException.<init>(ResourceException.java:163)
                at com.sapportals.wcm.repository.NotSupportedException.<init>(NotSupportedException.java:64)
                at com.sapportals.wcm.repository.manager.cm.CmNamespaceAndContentManager.copy(CmNamespaceAndContentManager.java:1313)
                at com.sapportals.wcm.repository.ResourceImpl.internalCopyManager(ResourceImpl.java:3142)
                at com.sapportals.wcm.repository.ResourceImpl.internalCopy(ResourceImpl.java:3232)
                at com.sapportals.wcm.repository.ResourceImpl.copy(ResourceImpl.java:2041)
                at com.sapportals.wcm.repository.ResourceImpl.copy(ResourceImpl.java:2014)
                at com.sapportals.wcm.rfadapter.CopyUtility.copy(CopyUtility.java:116)
                at com.sapportals.wcm.service.template.TemplateService.createFromTemplate(TemplateService.java:409)
                at com.sapportals.wcm.rendering.uicommand.cm.UITemplateCommand.execute(UITemplateCommand.java:129)
                at com.sapportals.wcm.rendering.control.cm.CommandDispatcher.onExecute(CommandDispatcher.java:77)
                at com.sapportals.wcm.rendering.control.cm.WdfProxy.onExecute(WdfProxy.java:2152)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at com.sapportals.wdf.stack.Control.dispatchHtmlbEvent(Control.java:386)
                at com.sapportals.wdf.WdfEventDispatcher.dispatch(WdfEventDispatcher.java:175)
                at com.sapportals.wdf.WdfCompositeController.onWdfEvent(WdfCompositeController.java:538)
                at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                at java.lang.reflect.Method.invoke(Method.java:324)
                at com.sapportals.htmlb.page.DynPage.doProcessCompositeEvent(DynPage.java:204)
                at com.sapportals.htmlb.page.DynPage.doProcessCurrentEvent(DynPage.java:142)
                at com.sapportals.htmlb.page.PageProcessor.handleRequest(PageProcessor.java:115)
                at com.sapportals.portal.htmlb.page.PageProcessorComponent.doContent(PageProcessorComponent.java:134)
                at com.sapportals.wcm.portal.component.base.ControllerComponent.doContent(ControllerComponent.java:73)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)
                at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)
                at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:646)
                at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)
                at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)
                at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)
                at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)
                at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)
                at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
                at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
                at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
                at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
                at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
                at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
                at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
                at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
                at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    Thanks,
    Viji

    Hi Viji,
    have you also logged a support message in the Online Support System?
    If not, please do so. SDN will not necessarily trigger a bugfix from SAP development, in case this here makes one necessary.
    Regards,
    Karsten

  • Which table stores the information about a user (name, username etc.)

    Which table stores the information about a user (name, username etc.) .Is it LDAP server or MSSQL server? then hw to go to that table ?

    I guess this is a question about CAD - and it doesn't matter much if it's UCCE or Express. The info is in the LDAP called Directory Services. In UCCE the Sync process updates the LDAP from the ICM config database.
    You can use a free LDAP browser to connect to the LDAP (anonymous connection) and read the LDAP.
    Regards,
    Geoff

  • How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    How can I get the attributes details like user name, mail , from sAMAccount csv or notepad file through powershell or any other command in AD?

    Ok what about If i need to get all important attributes by comparing Email addresses from excel file and get all required answers
    currently I am trying to verify how many users Lines are missing , Emp numbers , Phones  from AD with HR list available to me.
    I am trying to Scan all the AD matching HR Excel sheet and want to search quickly how many accounts are active , Line Managers names , Phone numbers , locations , title , AD ID .
    these are fields I am interested to get in output file after scanning Excel file and geting reply from AD in another Excel or CSV file
    Name’tAccountName’tDescri ption’tEma I IAddress’tLastLogonoate’tManager’tTitle’tDepartmenttComp
    any’twhenCreatedtAcctEnabled’tGroups
    Name,SamAccountName,Description,EmailAddress,LastLogonDate,Manager,Title,Department,Company,whenCreated,Enabled,MemberOf | Sort-Object -Property Name
    Can you modify this script to help me out :)
    Hi,
    Depending on what attributes you want.
    Import-Module ActiveDirectory
    #From a txt file
    $USERS = Get-Content C:\Temp\USER-LIST.txt
    $USERS|Foreach{Get-ADUser $_ -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    #or from a csv file
    $USERS = Import-CSV C:\Temp\USER-LIST.csv
    $USERS|Foreach{Get-ADUser $_.SAMAccountName -Properties * |Select SAMAccountName, mail, XXXXX}|Export-CSV -Path C:\Temp\USERS-ATTRIBUTES.csv
    Regards,
    Dear
    Gautam Ji<abbr class="affil"></abbr>
    Thanks for replying I tried both but it did not work for me instead this command which i extended generated nice results
    Get-ADUser -Filter * -Property * | Select-Object Name,Created,createTimeStamp,DistinguishedName,DisplayName,
    EmployeeID,EmployeeNumber,Enabled,HomeDirectory,LastBadPasswordAttempt,LastLogonDate,LogonWorkstations,City,Manager,MemberOf,MobilePhone,PasswordLastSet,BadLogonCount,pwdLastSet,SamAccountName,UserPrincipalName,whenCreated,whenChanged
    | Export-CSV Allusers.csv -NoTypeInformation -Encoding UTF8
    only one problem is that Manager column is generating this outcome rather showing exact name of the line Manager .
    CN=Mr XYZ ,OU=Users,OU=IT,OU=Departments,OU=Company ,DC=organization,DC=com,DC=tk

  • Log on the other computer with user name and password

    How to use labview to write a software to log on the other computer with user name and password?

    Jimmyzeng wrote:
    Nobody can help on this?
    Besides repeatedly asking the same question in thread after thread, you are not providing enough information to answer the question. You have been given answers already stating that operating systems do not make this very easy to do using programs for security concerns. In addition, the authentication process varies depending on what service you are communicating with. You really need to provide more information if you want to get meaningful answers to your questions.
    Mark Yedinak
    "Does anyone know where the love of God goes when the waves turn the minutes to hours?"
    Wreck of the Edmund Fitzgerald - Gordon Lightfoot

  • HT1277 I recently used icloud on my phone to back up my phone.  After I did that my gmail stopped working, so I deleted it and when I go to add my gmail account I get an error message.  It says cannot get mail, user name or passwork incorrect? What do I d

    I recently used icloud on my phone to back up my phone.  After I did that my gmail stopped working, so I deleted it and when I go to add my gmail account I get an error message.  It says cannot get mail, user name or passwork incorrect? What do I do?

    Hi,
    Just wanted to say I found out the answer. I should have looked first to see if anyone else was having the same problem but I didn't. 

  • The proxy server is refusing connections on a user name on my desktop. How do I repair that?

    Hello,
    My computer has 2 users on here. Under my username when I try to go on the internet I get a pop up that say "The proxy server is refusing connections. Firefox is configured to use a proxy server that is refusing connection." I have tried going into my control panel under internet options and changing my LAN setting to automatic and that did not work. I also tried to place where is searches for the proxy and I am unable to connect on y user. I can switch users and go under my daughters and then I am able to connecto to the internet.

    If you have problems with updating or with the permissions then easiest is to download the full version and trash the currently installed version to do a clean install of the new version.
    Download a new copy of the Firefox program and save the DMG file to the desktop
    * Firefox 5.0.x: http://www.mozilla.com/en-US/firefox/all.html
    * Trash the current Firefox application to do a clean (re-)install
    * Install the new version that you have downloaded
    Your profile data is stored elsewhere in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Firefox Profile Folder], so you won't lose your bookmarks and other personal data.

  • So i locked myself out the ipod and i followed the steps to restore. it was restoring,,in the last eight minutes my ipod went back on and it said ipod disabled..but there was still restoring and then it said the connectioned timed out i need help

    i locked myself out of my ipod and i tryed unlocking it and then the "ipod is disabled" remark shoowed up. I knew what to do to restores it but in the last one minute of restoring a message popped up and said something about it cant finish it and the connectioned timed out. I tried this at my buddies house and it did the same. Ieven my freind (whos very good in electronics and computers) couldnt do it, i need help is there anyway possible?

    Try disabling the computer's antivirus and firewall.
    - Next try the manual install method of:
    iDevice Troubleshooting 101 :: iPhone, iPad, iPod touch
    Place the iPod in recovery mode after the firmware download is complete and then restore using the instructions in the article. Sometimes recovery mode timeouts and returns to disabled before the firmware download is complete.

  • Not able to connect through Application user name in Discoverer Admin

    Hi,
    I created an EUL with all privileges it needed. I created a business area from that EUL and shared it to Application User name through giving access privileges (from Security and Privileges). When I am trying to login through the Application User name in Discoverer Admin it is giving the error like:
    Failed to connect to database - Unable to connect to Oracle Applcations database: invalid username/password.
    Earlier I did in another instance it worked fine but now itself I am facing the problem.
    Thanks & Regards,
    Arun Babu R.

    Hi,
    Please post the application release along with the database version and OS.
    What is the Discoverer version?
    Please see these docs.
    Connecting to an E-Business Suite EUL Using Any Discoverer Component Fails With "Authentication Failed" or "ORA-01017: invalid username/password;logon denied" [ID 364665.1]
    Discoverer 10g (10.1.2) Connections To Oracle E-Business Suite 12 Fails With 'Invalid Username/Password' [ID 443661.1]
    Discoverer 10g (10.1.2) Plus/Viewer Connection To E-Business Suite Database Fails With " invalid username/password" Error [ID 467919.1]
    Connecting to Oracle EBS 11.5.10 with Discoverer 4i/10g Fails with ORA-01017 Invalid Username/Password Error [ID 295037.1
    Discoverer Desktop/Administrator 10g (10.1.2.2) Fails To Connect With Error 'Unable to connect to Oracle Applications database: invalid username/password. ' Only Between Certain Hours [ID 757384.1]
    Connecting to Oracle EBS with Discoverer Fails with ORA-01017 Invalid Username/Password Error [ID 784358.1]
    Discoverer 4i Viewer/Plus Logon To Oracle Applications EUL Fails with "ORA-1017 Invalid Username/Password" Unless a Colon '' : '' is Entered After Username [ID 360314.1]
    Questions And Guidance For Troubleshooting Common Discoverer Desktop and Administrator Connection Issues [ID 415614.1]
    Thanks,
    Hussein

  • Im trying to restore my iphone 4 and i keep getting the error messase 3014 and now all my phone has on it is the connected to itunes picture please HELP

    im trying to restore my iphone but i keep getting the error 3014 and im at a loss at what to do

    1. Connect your iPhone to the computer and start iTunes.
    2. Turn off your iPhone by holding down the Sleep button and slide to power off.
    3. Press and hold down the Sleep button and Home button simultaneously.
    4. After 10 seconds release the Sleep button but continue to hold the Home button down.
    5. iTunes will pop up a window that says it has "detected an iPhone in recovery mode."
    Your device is now in DFU mode and can be restored using iTunes. The iPhone screen will remain black until iTunes restores the iPhone.

  • HT1766 my phone is stuck in the "connect to itunes" mode.  HELP

    I went to itunes and synced by phone,  Then I tried to upgrade to the 5.0 .  It said I didn't have enough memory space, so I tried to restore it, but now the phone is stuck in a mode that shows "connect to itunes" on phone screen.

    1)Turn off iPhone – Hold down the Sleep/Wake button for a few seconds until the red slider appears, then slide the red slider. Ignore this step if your iPhone is already off.
    2)Press and hold down the Home button for about 10 seconds until a yellow triangle with a text which says Please Connect to iTunes appears.
    3)Plug the iPhone into Mac or Windows PC. Release the button if you haven’t.
    3)Run and open iTunes if it’s not already opened yet.
    4)iTunes will prompt a message that says iTunes has detected an iPhone in recovery mode. Click OK.
      You will be taken to the iPhone pane. Then, click on Restore
    try this it should factory reset your iphone even if it is stuck in connect to itunes

  • HT201263 I've tried this over and over again, but cannot get the "connect to itunes" screen.  HELP!

    Son swears passcode did not change, but it no longer works. 
    Tried instructions to force restore, but can't get the 4th step (connect to itunes) to work!

    Try DFU mode and then restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings

Maybe you are looking for