Problem running app when released

Hi,
I have created a windows application that calls an oracle procedure returning 2 ref cursors
The application works perfectly fine on the manchine I have developed it on but when I release to my other machine it does not work and I get the following error.
Object reference not set an instance of an object
I have installed the same version of ORACLE DATA PROVIDER FOR .NET 11.1.0.6.20 as on my development machine. I have also done some test to check the app is connecting to the database which it is. The lines which are causing the problem are in bold.
' Connect
Dim con As OracleConnection = Connect(oradb)
' Set the command
Dim cmd As New OracleCommand("QUEUE_CALLS_PKG.QUEUECALLSPLASMADISPLAY", con)
cmd.CommandType = CommandType.StoredProcedure
'Declare refcursor and call public shared function get ref cursor
Dim refCursors As OracleRefCursor() = GetRefCursors(cmd)
Try
Dim ds As New DataSet()
ds.Tables.Add(New DataTable("refcur0"))
ds.Tables.Add(New DataTable("refcur1"))
Dim adpt As New OracleDataAdapter(cmd)
adpt.Fill(ds.Tables("refcur0"), refCursors(0))
adpt.Fill(ds.Tables("refcur1"), refCursors(1))
'bind dataset to datagridview
DataGridView1.DataSource = ds.Tables("refcur0")
DataGridView2.DataSource = ds.Tables("refcur1")
ColourGrids()
'PlaySoundFile()
Catch x As Exception
MessageBox.Show("Queue On Load error: " + x.Message.ToString())
Finally
' Dispose OracleCommand object
cmd.Dispose()
' Close and Dispose OracleConnection object
con.Close()
con.Dispose()
End Try
Just in case your wondering why this is done like this is because I have a procedure returning 2 ref cursors.

Resolved Thanks

Similar Messages

  • Running app when db is down

    Hi,
    Our application is built on web services which is not totally relied on db (application modules).
    In one of the page to validate the data against database table, we created a db connection and created vo and used in AM to find out the existence of particular record.
    Our current issue is, when db is down we don't want let our application to be down. However, when we try run, we are not even able to run the app, when db is not reachable.
    Can I still run the app irrespective of db status. (if we have any weblogic config params that I can pass to specify, not to worry abt db status)
    Thanks,
    Srini.

    Thanks Timo and Frank for your responses.
    Timo, If I understand it correctly, I have go override am definition to catch the exception and continue.
    Frank, validating the data against db values is one minor functionality, hence buz is anticipating app shdn't be depend on db status. If db is up app shd validate with db values otherwise continue with the rest of the validations.
    Temporarily to run the app locally, when db is down, we removed the connection info from connections.xml.
    Thanks.

  • TS1702 was not having any problem running apps Now now none of the apps will run

    Was not having any problems running any apps on my ipad3 and now none of the apps will launch all apps were with obtained through apple app store the only thing different was on Sun I connected my pad to my pc for the first time to transfer some music to day was the first time I tried to run any apps since then.and that's whei encounter the problem

    Download another app - any free app is fine. See if that helps.

  • Problem running app outside it's directory

    Hi
    I wrote an application that uses System.getProperty("user.dir") to get the path to it's directory. I need it to read certain files on app startup, and also save configuration (everything in the program directory).
    Now as it turns out I cannot start the application outside it's directory. Under Windows links work ok so it's not a problem, but on linux running the app thru a symbolic/hard link when I am not in the application directory is not possible.
    Also under windows I wanted to associate my app with a certain file type. Everything works ok when I run it from inside the application directory and give a full path to the file I want to open (myapp F:\somedir\file), but when I go to the file directory (F:\somedir\ - which is not where I have my application) and try to open it with my app - my app just crashes, sort of like on Linux when using links. It also creates certain files there (in F:\somedir\ for this example) that should be created in the program directory.
    Is there anyway I can get around this (and not make my application less cross-platform)?
    Thanks in advance
    mike

    I think a better way to do it is to not use "user.dir"; you've already correctly concluded that you don't want hard paths to directories.
    A better solution is to use the class loader and its getResourceAsStream method to get an InputStream for those files you want to read.
    For writing, create a /tmp directory or have a path that you can configure externally.
    What is it you're saving? "everything in the program directory" isn't very descriptive. Do you really need a relational database instead?
    As far as file types go, use a FilenameFilter to choose a particular type.
    %

  • Problem running app in default server (Jdev 11g)

    Hi,
    I am pretty new to Java/Jdev and I am facing some problems trying to run the application as laid out in the example tutorial from http://www.oracle.com/technology/products/jdev/11/cuecards/adf_set_22/ccset22_ALL.html. I have followed all the steps and when I run the application as mentioned, the following errors appear in the log message window. Can anyone advise me what to do next?
    [Application BrowseEditApp deployed to Server Instance DefaultServer]
    Target URL -- http://127.0.0.1:7101/BrowseEditApp-ViewController-context-root/faces/adf.task-flow?adf.tfId=orders-flow&adf.tfDoc=/WEB-INF/orders-flow.xml
    May 21, 2009 4:54:24 PM oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl setLifecycleContextBuilder
    WARNING: ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
    May 21, 2009 4:54:24 PM oracle.adfinternal.controller.util.model.AdfmInterface initialize
    INFO: ADFc: BindingContext is present, using ADFm APIs for DataControlFrames.
    May 21, 2009 4:54:24 PM oracle.adfinternal.controller.metadata.provider.MdsMetadataResourceProvider <init>
    INFO: ADFc: Controller caching of MDS metadata resources ENABLED.
    <May 21, 2009 4:54:28 PM GMT+08:00> <Error> <HTTP> <BEA-101017> <[weblogic.servlet.internal.WebAppServletContext@1558d83 - appName: 'BrowseEditApp', name: 'BrowseEditApp-ViewController-context-root', context-path: '/BrowseEditApp-ViewController-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@73534[
    GET /BrowseEditApp-ViewController-context-root/faces/adf.task-flow?adf.tfId=orders-flow&adf.tfDoc=/WEB-INF/orders-flow.xml HTTP/1.1
    Accept: */*
    Accept-Language: en-us
    UA-CPU: x86
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.2; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)
    Connection: Keep-Alive
    ]] Root cause of ServletException.
    java.lang.NullPointerException
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getLastEventId(JUCtrlValueBinding.java:3642)
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlAttrsBinding.getLastADSEventId(FacesCtrlAttrsBinding.java:214)
         at oracle.adfinternal.view.faces.activedata.AttrsActiveDataModelImpl.getCurrentChangeCount(AttrsActiveDataModelImpl.java:139)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager._registerComponent(PageDataUpdateManager.java:281)
         at oracle.adfinternal.view.faces.activedata.PageDataUpdateManager.registerComponentForPPR(PageDataUpdateManager.java:155)
         Truncated. see log file for complete stacktrace
    >

    Try uninstalling Terminal Server

  • Problem Running App with Scripting Bridge on MAC OS X TIger

    Hi,
    I have an application which link with Scripting Bridge Frame work, use XCODE 3.0 and SDK 10.5. I use Scripting Bridge, to control some functionality of ITune from Objective-C. This Application run fine on Leopard and behave as expected. When I Run this application on Tiger this does not load.
    Considering that scripting Bridge was first released om Leopard.
    Can my Above Application Run on Tiger. If not how do I interface ITune from Objective-C, on both Tiger and Leopard? IS there update which suppose to fix this?
    Thanks
    Akhilesh

    webdevcda wrote:
    Considering that scripting Bridge was first released om Leopard.
    Can my Above Application Run on Tiger.
    No.
    If not how do I interface ITune from Objective-C, on both Tiger and Leopard? IS there update which suppose to fix this?
    There will be no update for old products like Tiger. What there is is all you will ever get. For Tiger, you will have to dig into sending Apple Events to iTunes manually. Or it might be easier to define your Apple Scripts as string resources in your application an execute them via a system() call.

  • Problem running app via web start shortcut icon

    Hi,
    I need to install my application using java web start. I have created the jnlp file and when I run the jnlp file by double clicking on it, my app is starting well. Shortcut and desktop icons are being created. But when I double click on the desktop icon, then app does not run at all. In the log file , I notice that it is referring to some other location rather than the cache location and says "File not found".
    Same way, when I use an html file to run the app, then my app does not run at all. That is, the html file displays a link, such that when I click on the link, the jnlp file is run. But app does not start. Log says it is referring to still another location and says "File not found". Can anyone help me out...
    Thanks in advance.

    Yes, this is with IE as the default browser. But, the FileNotFound Exception is not raised for the jnlp file. Instead FileNotFound Exception is raised for other files/folders used in my Application.
    JNLP file is present in the web start cache. Sorry for not telling this clearly in my first post....
    Actually what I need to do is to deploy Jetty server through web start. Jetty's "start.jar" has the main class and this class refers to the xml files and keystores in "etc" folder in the jetty home directory. As I need to transfer them through web start, I pack the "etc" folder into "etc.jar" and transfer it. When I run the JNLP file directly, jetty server is started. But, running the web start icon does not start the server.
    I get the following exception in the console...
    "java.io.FileNotFoundException:C:\Documents and Settings\..\Desktop\etc\jetty.xml(The system cannot find the path specified)
    Is there a way to embed Jetty server in web start....?

  • Problems opening apps when connected 2 USB port and after

    I'm having some problems with my new iphone 3g S... the time I connect my iPhone 2 a USB port it starts charging and sync all my content. The problem is that after the synchronization, when connected and after I disconnect it, I just can’t open any applications I installed! When I try 2 open any apps, the app just blink (the initial screen from the app is shown in half a second) and then it just closes by itself… Am I missing anything here? I find that really weird… I appreciate your help!

    Try this: Connect iPhone to your computer. In iTunes on your computer, deselect one of apps to remove it from your phone & sync. This should remove the app from your phone. Now delete the app from iTunes on your computer. Download the app from iTunes on your iPhone & resync. This should put a clean version of the app back on your computer. Hope this helps.
    Message was edited by: James Acomb1
    Message was edited by: James Acomb1

  • Problem running app

    Hello, i´ve created an app in AIR 1.0, installed it and
    copyed the .exe and the other files / folders created after the
    installation to create a custom installer using Nullsoft Install
    System (NSIS). The installation works OK, but when i try to run the
    app in different PC´s, i get this message "The application
    installation is damaged. Try reinstalling it or contact the editor
    for help"
    Anyone knows how can i use the .exe created to be able to
    build a custom installer for the app like any other developed
    application, like C++ .NET, etc etc?
    Thanks in advise!

    Not only does this not work, but it also violates the terms
    of the AIR EULA.
    If you want to create a native installer that also installs
    your application, you must sign a separate agreement. See
    http://www.adobe.com/products/air/runtime_distribution1.html

  • Problem running app in windows 2003 server

    Hi people.. I have a java application running in w2000 and j2re1.4.2_03 and works fine, i change the server version to win 2003 and j2re1.4.2_03, and after a time the application is closed without a java error, i seek in the even log of the server and get this anyone have a similiar error? or a clue to fix the problem? thanks and have a nice day
    <pre>
    Event Type: Error
    Event Source: Application Error
    Event Category: (100)
    Event ID: 1000
    Date: 8/3/2004
    Time: 1:24:38 PM
    User: N/A
    Computer: MTYSVR03
    Description:
    Faulting application javaw.exe, version 0.0.0.0, faulting module jvm.dll, version 0.0.0.0, fault address 0x00002545.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Data:
    0000: 41 70 70 6c 69 63 61 74 Applicat
    0008: 69 6f 6e 20 46 61 69 6c ion Fail
    0010: 75 72 65 20 20 6a 61 76 ure jav
    0018: 61 2e 65 78 65 20 30 2e a.exe 0.
    0020: 30 2e 30 2e 30 20 69 6e 0.0.0 in
    0028: 20 6a 76 6d 2e 64 6c 6c jvm.dll
    0030: 20 30 2e 30 2e 30 2e 30 0.0.0.0
    0038: 20 61 74 20 6f 66 66 73 at offs
    0040: 65 74 20 30 30 30 30 32 et 00002
    0048: 35 34 35 545
    </pre>

    Try uninstalling Terminal Server

  • Run app when NOT connected to a specific wifi hotspot

    Hi.
    I run Bittorrent Sync and love it. I don't want it to run when I'm connected to my mobile hotspot for obvious reasons.
    How do I stop an application from running when I'm connected to a specific Wi-Fi hotspot?
    Thanks

    I apologize for the confusion.  I should have stated my question such as:
    Is there a way I can run a specific program when I connect to a specific wi-fi hotspot?  Is there an Automator event or an OS event I can listen for and react upon when connecting to a wi-fi hotspot?

  • Hi I have problem running Itunes when a try to open said Aplication support was not found Error 2 can you help me please

    Hi somebody can I help me I can not runn the I tunes in my lap top cause said the Aplication Support was not fund Error 2

    Hello, Mannybt. 
    Thank you for visiting Apple Support Communities.
    Here are the steps I would recommend going through when receiving this error.
    iTunes 11.1.4 for Windows: Unable to install or open
    http://support.apple.com/kb/TS5376
    Cheers,
    Jason H.

  • I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build.  The same call works fine when running on the device

    I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
    I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
    The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
    I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
    I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
    By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
    Anyone have an idea on other things to try to debug/resolve this?
    Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
    Thanks!

    After a week's worth of debugging, I found the issue.
    The Java type returned from the call was defined as ArrayList.  Changing it to List resolved the problem.
    I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid.  And, why it works in Debug mode and not in Release build is even stranger.  Maybe someone can shed some light on the logic here to me.

  • I have iphoto previously installed. running  but when i have synced my iphone4 the iphoto app. cant be launched anymore. a black screen with the hourglass running till it quits automatically.  What should be the problem???o

    i have iphoto previously installed. running  but when i have synced my iphone4 the iphoto app. cant be launched anymore. a black screen with the hourglass running till it quits automatically.  What should be the problem???

    Try the two fixes below in order as needed:
    Fix #1
    1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your HD/User/Home/() Library/Preferences folder.
    2 - delete iPhoto's cache file, Cache.db, that is located in your HD/User/Home()/Library/Caches/com.apple.iPhoto folder. 
    3 - launch iPhoto and try again.
    NOTE: If you're moved your library from its default location in your Home/Pictures folder you will have to point iPhoto to its new location when you next open iPhoto by holding down the Option key when launching iPhoto.  You'll also have to reset the iPhoto's various preferences.
    Fix #2
    Launch iPhoto with the Command+Option keys held down and rebuild the library.
    Select the options identified in the screenshot.
    Click to view full size
    OT

  • TS1702 problem with updated find my iPhone app: when I attempt to open the FMi app, it tells me that I need to be a registered developer and run iOS7 to do so; is anyone else having this problem?  I got the app as a regular update to my existing FMi app w

    problem with updated find my iPhone (FMi) app: when I attempt to open the FMi app, it tells me that I need to be a registered developer and run iOS7 to do so; is anyone else having this problem?  I got the app as a regular update to my existing FMi app which worked great.

    The problem is being reported in the news media, yes. Apparently someone at Apple jumped the gun and uploaded the update before it was ready. They'll probably issue another update shortly, I would expect, but you can go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store. If you have a backup copy of the older version of the app, remove the newer version, restore the old version to iTunes on your computer, and resync.
    Update: Well, that was certainly quick. As of a short time ago, various sites are reporting that the Find My iPhone app is no longer displaying the previous error message. If it still is for you, delete it from your iPhone and re-download from the iTunes Store.
    Regards.

Maybe you are looking for