Unable to fetch columns; Invalid state/No Suitable Driver

Hi!
I'm trying to populate a combo box with data from a MySQL database (or any other database for that matter), I create a JDBC connection source, and set the following:
URL = jdbc:mysql://localhost:3306/test
Driver = org.mysql.jdbc.Driver (i have also tried org.gjt.mm.mysql.Driver)
Username = anonymous
Password = <blank>
Next I create a NBJdbcRowSet and set:
Command = SELECT * FROM foo
Connection Provider = connectionSource1 (the above connection source)
Now if I click the elipses next to Default Column Values, I get the message 'Unable to fetch columns; Invalid State'
If I replace the NBJDBCRowSet with a NBCachedRowSet, the error becomes 'Unable to fetch columns; No Suitable Driver'.
The database is browseable in the runtime tab, and the table exists (I can run SQL queries and get the expected results). The anonymous account exists and has access to the tables in question (the same setup is used in a few different applications, all of which work fine). Using the root account gives the same results. Using the PointBase example database gives the same results:
Driver: com.pointbase.jdbc.jdbcUniversalDriver
URL: jdbc:pointbase:server://localhost:9092/sample
Details of setup:
OS: Windows XP Pro SP2
IDE: Sun Java Studio Enterprise 7 2004Q4
Java version in use: 1.4.2_05 (as packaged with the studio)
MySQL: v5.0.7-beta-nt
Connector: MySQL Connector/J 3.0.17-ga
PointBase: As came with Studio Enterprise
I should mention that I can get DB connectivity in my app, I can create a comboBox and set the model to 'nBCachedRowSet1: name' and the contents of that field appears in my comboBox, however I need to create about a dozen tables and I don't relish the thought of manually creating models for each one ;)
Any suggestions are appreciated!
Cheers!
Darren

Hi Thanks for your reply.
I've retried with PointBase and the Sample DB:
* New project. New JFrame.
* Create ConnectionSource, NBJdbcRowSet, ComboBox
* Config ConnectionSource:
- Driver: com.pointbase.jdbc.jdbcUniversalDriver
- URL: jdbc:pointbase:server://localhost:9092/sample
- Username/pass: as per PointBase setup
* Config NBJdbcRowSet
- ConnectionProvider: connectionSource1
- Command: SELECT * FROM CUSTOMERINFO
- Default Column Values: <open GUI>, <Fetch Columns>, "Unable to fetch columns; Invalid State"
So this is where I get the problem, I'm not sure if i've buggered it up though, so I continue to see if I can get data:
- Add Column: NAME
- OK, Close
* Config ComboBox
- Open Model dialog
- Select Mode: ComboBoxEditor
- RowSet: nBJdbcRowSet1 (this throws the error again)
- Column: NAME (entered manually, dropdown is empty)
- OK, Close
* Run app
Errors!
Seems like the GUI builder did something wrong - it generated a bunch of functions for each thing i added, like this:
public void setJComboBox1(JComboBox val) {
this.jComboBox1 = val;
and the project won't compile. I figure out it should be like this:
public void setJComboBox1(javax.swing.JComboBox val) {
this.jComboBox1 = val;
but the functions aren't doing anything anyway, so I delete them all. I'm starting to think my installation is borked.
Project now compiles and runs, but there's no data, and I get:
ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
At this point i should probably find the jar with that driver in it and mount this/add it to the classpath, but the boss has decided we'll use Borland Delphi 2005 .NET anyways, so I won't take this any further...
Thanks for your help guys!
Darren

Similar Messages

  • ORA-01403: no data found  .  Error Unable to fetch row

    Hi
    I have a form that, when inserting a new record, should submit the form but remain in the same page with the same info. I have set up the "after processing" branch (unconditional) to redirect to that specific page (page 5), the "reset pagination for this page" option selected and "clear cache" option empty. What happens is that, when inserting a new record, i get error ORA-01403 indicating that it's unable to fetch the record. Although i get this error, the new record is inserted in the DB... I have also selected option "Only when current value in session state is null" for source used for all fields of form. What am i doing wrong? I thank in advance all replies!

    Hi again
    Because you have a trigger on the table that selects the current max(ID)+1, when creating the form you should have used "Existing Trigger"when defining the source for the primary key, not "Existing Sequence". You should also change the trigger to use the sequence.NEXTVAL for the ID.
    When you created the form using "Exisitng Sequence", Apex would have created a "Get PK" process which gets the primary key value from the sequence before passing control to the DML process. You should delete the Get PK process and let the database trigger do it's job.
    In the DML process, set "Item Containing Primary Key Column Value" to the page item name e.g. "P5_ID", and set "Primary Key Column" to "ID" (the name of your table column).
    That should do the trick.
    Cheers
    Richard
    Message was edited by:
    Richard.

  • Unable to fetch Peformance Report in SCOM

    Hi,
    I am unable to fetch the Performance reports for certain servers from 5th of this month. Tried troubleshooting the agent issue by clearing cache,bouncing health state folder and reinstalling the agents. But still the reports cant be fetched.
    The event viewer logs in lot of Health service module 10103 and 11903.
    Event Type: Warning
    Event Source: Health Service Modules
    Event Category: None
    Event ID: 10103
    Date: 5/29/2014
    Time: 4:22:17 AM
    User: N/A
    Computer: XXXXXXX
    Description:
    In PerfDataSource, could not find counter Process, % Processor Time, sqlservr* in Snapshot. Unable to submit Performance value. Module will not be unloaded. 
    One or more workflows were affected by this.  
    Workflow name: XXXXX.ProcessSQLServerprocessortime70 
    Instance name: Servername
    Instance ID: {38F12648-F8B0-32E3-684F-38C8A0AF457E} 
    Management group: XXXXXXXX
    Event Type: Information
    Event Source: Health Service Script
    Event Category: None
    Event ID: 10212
    Date: 5/29/2014
    Time: 4:22:22 AM
    User: N/A
    Computer: XXXXXXXX
    Description:
    xxxx.Windows2003.PerfRules.DSC1.vbs : 
    The script has been launched under following credentials : SYSTEM.
    3 arguments have been passed in parameter : 
     - {1F0CE61C-D50D-9BF6-37AF-B0D80D774AF8}
     - {38F12648-F8B0-32E3-684F-38C8A0AF457E}
     - xxxxxxxxxxxxxxxxxxxxx
    The debug mode value for the Management Pack is set to : FALSE
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type: Error
    Event Source: Health Service Modules
    Event Category: None
    Event ID: 11903
    Date: 5/29/2014
    Time: 4:22:54 AM
    User: N/A
    Computer: xxxxxxxxxxxxxxxx
    Description:
    The Microsoft Operations Manager Expression Filter Module could not convert the received value to the requested type. 
    Property Expression: ^(1069)$ 
    Property Value: ^(1069)$ 
    Conversion Type: DataItemElementTypeUnsignedInteger(6) 
    Original Error: 0x80FF005A 
    One or more workflows were affected by this.  
    Workflow name: MomUIGeneratedRule3973b32e15a14a8585bed8f442676d93 
    Instance name: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    Instance ID: {38F12648-F8B0-32E3-684F-38C8A0AF457E} 
    Management group: xxxxxxxxxxxx
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Event Type: Warning
    Event Source: HealthService
    Event Category: Health Service 
    Event ID: 1103
    Date: 5/29/2014
    Time: 4:22:54 AM
    User: N/A
    Computer: zxxxxxxxxxxx
    Description:
    Summary: 5 rule(s)/monitor(s) failed and got unloaded, 1 of them reached the failure limit that prevents automatic reload. Management group "xxxxxxxx". This is summary only event, please see other events with descriptions of unloaded rule(s)/monitor(s).
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Please advise how to take this forward.
    Jesty

    Hi ,
    The problematic servers are 2008 r2 servers. I had performed all troubleshooting steps like renaming health state folder, clearing cache and Reinstalling the agent. PSB the events that are triggered after the health service is restarted.
    Event Type:
    Warning
    Event Source:
    Health Service Modules
    Event Category:
    None
    Event ID:
    10103
    Date:
    5/29/2014
    Time:
    4:22:17 AM
    User:
    N/A
    Computer:
    XXXXXXX
    Description:
    In PerfDataSource, could not find counter Process, % Processor Time, sqlservr* in Snapshot.
    Unable to submit Performance value. Module will not be unloaded. 
    One or more workflows were affected by this.  
    Workflow name: XXXXX.ProcessSQLServerprocessortime70 
    Instance name: Servername
    Instance ID: {38F12648-F8B0-32E3-684F-38C8A0AF457E} 
    Management group: XXXXXXXX
    Event Type:
    Information
    Event Source:
    Health Service Script
    Event Category:
    None
    Event ID:
    10212
    Date:
    5/29/2014
    Time:
    4:22:22 AM
    User:
    N/A
    Computer:
    XXXXXXXX
    Description:
    xxxx.Windows2003.PerfRules.DSC1.vbs : 
    The script has been launched under following credentials : SYSTEM.
    3 arguments have been passed in parameter : 
     - {1F0CE61C-D50D-9BF6-37AF-B0D80D774AF8}
     - {38F12648-F8B0-32E3-684F-38C8A0AF457E}
     - xxxxxxxxxxxxxxxxxxxxx
    The debug mode value for the Management Pack is set to : FALSE
    Jesty

  • Invalid State Identifier Error

    Hi All,
    I have implemented breadcrumb by using "a href="javascript:history.back()". The naviagtion is upto 5 repots and hence the breadcrumb will have 5 links. The issue is sometimes i get "Invalid State identifier" error with some random number when i click on any link in the breadcrumb.
    Unable to trace the root cause of this issue. Please provide your thoughts.
    Regards,
    Swati

    Thanks!!! Do you have any idea about Invalid state error? I have tried inserting the following as suggested by Oracle but doesnt help much.
    <StatePool>
    <MemoryExpireMinutes> 1440 </MemoryExpireMinutes>
    <DiskCleanupIntervalMinutes> 1440 </DiskCleanupIntervalMinutes>
    </StatePool>
    Regards,
    Swati

  • How to solve this problem 'Uncaught exception: dssma: invalid state(5): 25 in blackberry curve 8520?

    HELLO, I have blackberry curve 8520. i have got error in my phone. the error is "Uncaught exception: DSSMA: invalid state(5): 25. I am unable to open my Inbox messages and unable to view phone's call history. the phone shows the same message again and again 'Uncaught exceptionSSMA: invalid state(5): 25'. Please help me how to solve it? I am unable to read sms in my phone. Please help me.
    Solved!
    Go to Solution.

    Hi and Welcome to the Community!!
    There's pretty much no diagnosing those -- they are the equivalent of the random errors in Windows for which tracing the root cause is fruitless. Basically, these are the last out in the programming code -- some event occurred for which there is no handler in the code. The fix is a code update that handles the event...but, again, knowing what the event is is pretty much impossible. So, there are a few things to try:
    Sometimes, the code simply becomes corrupt and needs to be refreshed -- just like a reboot:
    Anytime random strange behavior or sluggishness creeps in, the first thing to do is a battery pop reboot. With power ON, remove the back cover and pull out the battery. Wait about a minute then replace the battery and cover. Power up and wait patiently through the long reboot -- ~5 minutes. See if things have returned to good operation. Like all computing devices, BB's suffer from memory leaks and such...with a hard reboot being the best cure.
    If it won't boot up cleanly, then you may need to try Safe Mode:
    KB17877 How to start a BlackBerry smartphone in safe mode
    There might be an updated code set from the carrier -- check them via this portal:
     http://na.blackberry.com/eng/support/downloads/download_sites.jsp
    The toughest possible cause is a badly behaving app. To find it, there are a couple of options. One is to see if you can read the log file:
    Go to the home screen. Hold down the "alt" key and type 'lglg'. (You will not see anything while you type).This will bring up the log file. Scroll down (probably many pages) untill you see a line that says 'uncaught execption'. Click on this line. The name of the app will be in the info. Alternative methods for bringing up the logs are in this KB:
    KB05349How to enable, access, and extract the event logs on a BlackBerry smartphone
    The other method is to remove apps one at a time, waiting a while in between (I usually recommend a week), until the problem ceases...thereby discovering the offending app. Still another method is to reload the BB OS cleanly, leaving some time between adding other apps onto the BB so as to be able to determine exactly which one is the cause.
    Good luck and let us know!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • Unable to fetch 50,000 records from SQL using Orchestrator

    Hi Team,
    I have a table in MS SQL which is having more than 50,000 records. I am trying to fetch 50,000 records using orchestrator, but unable to fetch the records..
    There is no problem with the SQL query because I can able to get 40,000 records..
    I am using SCORCH DEV - SQL Integration Pack.
    Regards,
    Soundarajan.

    Hi,
    Thanks for your query.
    I have also used timeout parameter but it is not working.. As you said I also tried with Query database Activity which is out of the box...
    Now i can able to fetch more than 80,000 records but the output what i am getting is not in the format which we are looking for..
    Attached the output...
    How to edit this..?
    I tried to write the output in excel but all the data sits in the first column itself..
    Regards,
    Soundarajan.

  • Error Unable to fetch authentication_scheme

    I have imported a HTMLDB application into a new workspace.
    When I try to run the application I get the error:
    Error Unable to fetch authentication_scheme in application 100
    I need to be able to use this application with other workspaces (the schemas are owned by different owners but are identical).
    Please help ... Thank you, Rick
    Here is the Debug information:
    0.01: S H O W: application="100" page="1" workspace="" request="" session="1302816591079752337"
    0.02: ...Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-us
    0.02: alter session set nls_language="AMERICAN"
    0.02: alter session set nls_territory="AMERICA"
    0.02: ...Setting NLS Decimal separator="."
    0.02: ...Setting NLS Group separator=","
    0.02: ...Setting NLS date format="DD-MON-RR"
    0.02: NLS: Language=en-us
    0.02: Application 100, Authentication: CUSTOM2, Page Template: 5231931949198887
    0.02: Show ERROR page...
    0.02: Fetch session state from database

    I don't know what APEX is?
    What I have is one instance or SID called "smb"
    I installed htmldb there.
    I also have created 4 identical schemas there. (one for each of my developers)
    I have created 4 htmldb workspaces (one for each schema).
    I built the application (to edit some of the tables in the schema) in one of the workspaces.
    All I want to do is get the application into the other workspaces so that the other developers can use it.
    I used the export/import button at the application level to export the application:
    File Format: UNIX
    Owner Override: the schema of the new developer
    Build Status Override: Run and Build Application
    It created a file f114.sql
    I then logged in to htmldb in the new workspace of the schema for the new developer.
    I clicked on the "Create Application Button" then selected "From an Application Export File"; browsed for the exported file and opened it. This put its path in the Import File text box. I selected File Type: Application/Page Export.
    I got:
    The export file has been imported successfully. If you wish to use this file to install press Install:
    I pressed Install and got:
    Logged Into Workspace: KODIESMB1
    Export File WorkspaceID: 633628732993759
    Export File Application: 114
    Export File Version: 2004.07.04
    Export File Parse As Schema: KODIESMB1
    Application Origin: This application was exported from another workspace.
    Parse As Schema - Select Schema - KODIESMB1
    Build Status - No Build Option - Run Application Only Run and Build Application
    Install As Application Reuse Application ID 114 From Export File
    Auto Assign New Application ID
    Change Application ID
    I pressed "Install Application" and got:
    The application could not be installed because it already exists in different workspace. If you wish to install the application, please do the following:
    Remove the existing application from the workspace it currently exists in.
    OR
    Change the application ID in your export file. An application ID that's currently available you can use is 101.
    Upload the changed export file to the repository, and re-install your application.
    It took me to the repository ... I selected the import and changed the ID to 101 and pressed install and got:
    Application 101 installed
    I pressed the Run button and got:
    Error Unable to fetch authentication_scheme in application 101.
    OK
    I pressed OK and it took me back to the Post-App Install Utility Option.
    I do not know what to do since I don't understand the Error?
    Thanks,
    Rick

  • Crystal Reports XI - Unable to fetch data error

    Hi all,
    I get the below error when i click next or previous buton in my report after navigating the report for about 5 to ten minutes.
    JRCAgent3 detected an exception: Unable to fetch data for the subreport 'Subreport1' at this position.
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.eA(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.E(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.aB(Unknown Source)
    at com.businessobjects.reports.sdk.b.b.byte(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b2.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
    at com.crystaldecisions.report.web.event.av.a(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
    at com.dnb.asip.report.viewer.ReportViewerTag.doEndTag(ReportViewerTag.java:94)
    at org.apache.jsp.Reports.JSP.VIPReport_jsp._jspService(VIPReport_jsp.java:247)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
    at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
    at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1063)
    at org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestProcessor.java:263)
    at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:386)
    at org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(TilesRequestProcessor.java:318)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:229)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
    at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:534)
    any help woul be greatly appreciated.
    some times i get the below error
    "com.crystaldecisions.reports.queryengine.bo: The position is already past the end of the rowset." I am getting very wired errors but not in the same page everytime. what could be the issue?
    Thanks,
    Prem

    hi,
      These are the other exception which i get while clicking the buttons in my report after navigating for sometime.
    I get DatabaseVerify error for all the subreports in my report since i have checked verify on first refresh option. can i remove that option? I am using a JDBC/JNDI connection.So the database will change in the runtime depending upon development ,CERT or production environment
    here are few other wierd errors that occurs to me. All these error doesnt occur consistently,They all occur after accessin the report for some period of time(10 mins)
    1. Exception:java.lang.outofMemory
    2. A message is shown as Error 1 in the UI but the log shows 'the Unable to fecth data for subreport exception',  agian the Message in the UI is not conistent sometime it is 1 and sometimes it is 0
    3. when i click on the prevoius,last,nextor first after acessing the report for a lon time i get this exception
    RCAgent2 detected an exception: Error fetching total page count: Unable to fetch data for the subreport 'Subreport74' at this position.
    at com.businessobjects.reports.sdk.b.b.a(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    4.When i click on the search button some times i get the below exception
    Exception:
    com.crystaldecisions.reports.formatter.formatter.c: Invalid data position
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.be.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bf.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.ca.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.a9.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.aB(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.b.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.b.do(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.b.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.b.a(Unknown Source)
    at com.businessobjects.reports.sdk.b.b.try(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.findText(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.findText(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.findText(Unknown Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.findText(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.u.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
    at com.crystaldecisions.report.web.event.av.a(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
    at com.dnb.asip.report.viewer.ReportViewerTag.doEndTag(ReportViewerTag.java:92)
    at org.apache.jsp.Reports.JSP.VIPReport_jsp._jspService(VIPReport_jsp.java:251)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:534)
    Caused by: com.crystaldecisions.reports.dataengine.ag: Invalid data position
    at com.crystaldecisions.reports.dataengine.bk.V(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.n(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.n(Unknown Source)
    ... 71 more
    4.Too many open files Error message is shown in the UI wheni try to load my report.
    5. I get the below exception when accessin the report for a long time.
    Exception:
    JRCAgent2 detected an exception: java.lang.NullPointerException
    at com.crystaldecisions.reports.dataengine.bk.new(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.do(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.int(Unknown Source)
    at com.crystaldecisions.reports.dataengine.bk.G(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bv.eA(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.E(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.cd.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.b3.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.m.for(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.objectformatter.bt.a(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.l(Unknown Source)
    at com.crystaldecisions.reports.formatter.formatter.e.p.aB(Unknown Source)
    at com.businessobjects.reports.sdk.b.b.byte(Unknown Source)
    at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
    at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.ReportSource.getPage(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.AdvancedReportSource.getPage(Unknown Source)
    at com.crystaldecisions.sdk.occa.report.application.NonDCPAdvancedReportSource.getPage(Unknown Source)
    at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.getPage(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.ac.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b2.a(Unknown Source)
    at com.crystaldecisions.report.web.event.b7.broadcast(Unknown Source)
    at com.crystaldecisions.report.web.event.av.a(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.do(Unknown Source)
    at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)
    at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)
    at com.dnb.asip.report.viewer.ReportViewerTag.doEndTag(ReportViewerTag.java:94)
    at org.apache.jsp.Reports.JSP.VIPReport_jsp._jspService(VIPReport_jsp.java:237)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
    at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
    at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
    at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
    at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
    at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
    at java.lang.Thread.run(Thread.java:534)
    Am i missing out something very basic:-s Do i need to put any entry in my CRConfig.xml?
    I am using JDTS JDBC Driver to connect to my Database and JBoss4.04 A is my application server
    Sincerely,
    Prem

  • Error Unable to fetch authentication_scheme in application 134.

    Hi,
    I got the following error while migrating one of my application from one workspace to another in the same APEX (2.2) instance but the schemas are different in both cases.
    "Error Unable to fetch authentication_scheme in application 134."
    Here are the more detailed information:
    1) I have a workspace 'SUM_DEMO' under schema 'DEM_DEV'
    2) Created a new workspace 'MUD_DEV'. Also, created a new schema 'MUD_DEV' in the process of creating this workspace. I had choosen 'New Schema' rather than 'use existing schema' and created this new schema.
    3) Developed an application 'TestPrinter' in workspace 'SUM_DEMO'.
    4) Export this application using Export functionality of Apex.
    below are the some of the parameters that I have selected during export.
         Owner Override : MUD_DEV
         File Format: DOS
    5) Import this application in workspace 'MUD_DEV' that is under different schema 'DEM_DEV'.
    below are the some of the parameters that I have selected during import.
         Parse as Schema: MUD_DEV
         Auto Assign New Application ID
    6) getting this error:
         "Error Unable to fetch authentication_scheme in application 134."
    though application 'TestPrinter' doesn't has any authentication !!
    For more information, I am pasting the debug information from the page.
    0.00:
    0.00: S H O W: application="138" page="1" workspace="" request="" session="1938540460984835"
    0.00: Language derived from: FLOW_PRIMARY_LANGUAGE, current browser language: en-gb
    0.00: alter session set nls_language="ENGLISH"
    0.00: alter session set nls_territory="UNITED KINGDOM"
    0.00: NLS: CSV charset=WE8MSWIN1252
    0.00: ...NLS: Set Decimal separator="."
    0.00: ...NLS: Set NLS Group separator=","
    0.00: ...NLS: Set date format="DD-MON-RR"
    0.00: ...Setting session time_zone to dbtimezone
    0.00: NLS: Language=en-gb
    0.01: Application 138, Authentication: CUSTOM2, Page Template: 10291226255067961
    0.01: Show ERROR page...
    0.01: Performing rollback...
    0.01: Fetch session state from database
    0.01: Processing point: AFTER_ERROR_HEADER
    ORA-0000: normal, successful completion
    Error Unable to fetch authentication_scheme in application 138.
    OK
    0.01: Processing point: BEFORE_ERROR_FOOTER
    0.01: ...Determine if user "DEV" workspace "5389124302818204" can develop application "138" in workspace "5389124302818204"
    Please suggest me some way to get rid of it.
    Thanks,
    Sumit

    Sumit,
    5) Import this application in workspace 'MUD_DEV' that is under different schema 'DEM_DEV'.I don't understand "under different schema 'DEM_DEV' ". How many schemas are assigned to workspace MUD_DEV and what are those schema names?
    What do you want the parsing schema of the application to be in the MUD_DEV workspace?
    Scott

  • ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value

    I have an application made in devlopment which is working fine and i jsut migrated it to production but when i am running one of the page in the app in production it si throwing this error "ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small"... this report is ment for generating report.
    Now what i have done, i compared both dev and prod environment but i have not found and changes except this one. In the page of both the application in dev and prod under shared component under under template the region of breadcrum and report region is showing in different position. i dont think it a problem because of that i am facing problem.
    If anybody have idea how could i recitfy the prbs i will be highly thankful to you
    Regards
    Adi

    friends i have seen where the error is coming but i am unable to trace out how to increase the size of lov which i have made.
    when i am taking display as select list(named lov) it is throwing me the error "ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small" but if i am taking display as "popup lov(named lov)" under tablular form element under one of the column in the report, it is working properly. but not shwoing the report the way we want it to show. For that reason i want to increase the size of the love which i have made.

  • Classic Report - report error:ORA-20001: Error fetching column value

    Hi,
    In Apex 4 I have created an SQL report which errors with ORA-20001: Error fetching column value: ORA-01403: no data found.
    It works fine if I hard code the start and end dates but fails when I use page items as parameters.
    I call a stored function as below:
    DECLARE
    l_sql VARCHAR2(4000);
    BEGIN
    SELECT ICDB_PCT_MRSA_POS_REP(v('P40_NEWSTARTDATE'),
    v('P40_NEWENDDATE'))
    INTO l_sql
    FROM dual;
    RETURN(l_sql);
    END;
    although I have used the :P40_NEWSTARTDATE form too, with the same result.
    Any suggestions will be welcome.
    Thanks,
    Chris

    Hi Chris,
    have you debugged if ICDB_PCT_MRSA_POS_REP is raising the no-data-found error or if it's the actual SQL statement which got returned?
    Comment out the call to ICDB_PCT_MRSA_POS_REP and return a hard coded SQL statement with
    return 'select [... here comes a sample sql statement returned by ICDB_PCT_MRSA_POS_REP]';to rule out that ICDB_PCT_MRSA_POS_REP is raising the error.
    BTW what is the purpose of the select from dual? Just call the ICDB_PCT_MRSA_POS_REP directly like
    return ICDB_PCT_MRSA_POS_REP(:P40_NEWSTARTDATE, :P40_NEWENDDATE);Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • Package procedure in invalid state

    Hi all,
    We are having an application in C# and backend oracle 10g placed in Location1.
    There is modification in Packaged procedure. So we remotely (from Location2) connected to Location1 and that Packaged procedure is created.
    This Packaged procedure has been created (in Location1 ) without any errors. But this procedure is in INVALID state. We tried to compile it remotely by using following statements, but still this is in invalid state .
    ALTER PACKAGE my_package COMPILE;
    ALTER PACKAGE my_package COMPILE BODY;
    If we run this package and package body manually, without any modifications after creating it remotly, it is becoming VALID state.
    I am not getting any idea, why it is creating in INVALID state. Any help is appreciated.
    Thanks in advance,
    Pal

    Ok, here's a previous response that I gave re. packages and their "states". Should give you a good idea what a state is...
    Packages tend to fail because of their "package state". A package has a "state" when it contains package level variables/constants etc. and the package is called. Upon first calling the package, the "state" is created in memory to hold the values of those variables etc. If an object that the package depends upon e.g. a table is altered in some way e.g. dropped and recreated, then because of the database dependencies, the package takes on an INVALID status. When you next make a call to the package, Oracle looks at the status and sees that it is invalid, then determines that the package has a "state". Because something has altered that the package depended upon, the state is taken as being out of date and is discarded, thus causing the "Package state has been discarded" error message.
    If a package does not have package level variables etc. i.e. the "state" then, taking the same example above, the package takes on an INVALID status, but when you next make a call to the package, Oracle sees it as Invalid, but knows that there is no "state" attached to it, and so is able to recompile the package automatically and then carry on execution without causing any error messages. The only exception here is if the thing that the package was dependant on has changes in such a way that the package cannot compile, in which case you'll get an Invalid package type of error.
    And if you want to know how to prevent discarded package states....
    Move all constants and variables into a stand-alone package spec and reference those from your initial package. Thus when the status of your original package is invlidated for whatever reason, it has no package state and can be recompiled automatically, however the package containing the vars/const will not become invalidated as it has no dependencies, so the state that is in memory for that package will remain and can continue to be used.
    As for having package level cursors, you'll need to make these local to the procedures/functions using them as you won't be able to reference cursors across packages like that (not sure about using REF CURSORS though.... there's one for me to investigate!)
    This first example shows the package state being invalided by the addition of a new column on the table, and causing it to give a "Package state discarded" error...
    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  /
    Table created.
    SQL>
    SQL> insert into dependonme values (5)
      2  /
    1 row created.
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  /
    Package created.
    SQL>
    SQL> create or replace package body mypkg is
      2    v_statevar number := 5; -- this means my package has a state
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
    10
    11      myval := myval * v_statevar;
    12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
    13    end;
    14  end mypkg;
    15  /
    Package body created.
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALID
    SQL>
    SQL>
    SQL> alter table dependonme add (y number)
      2  /
    Table altered.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    BEGIN mypkg.myproc; END;
    ERROR at line 1:
    ORA-04068: existing state of packages has been discarded
    ORA-04061: existing state of package body "CRISP_INTELL.MYPKG" has been invalidated
    ORA-06508: PL/SQL: could not find program unit being called: "CRISP_INTELL.MYPKG"
    ORA-06512: at line 1
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALIDAnd this next example shows how having the package variables in their own package spec, allows the package to automatically recompile when it is called even though it became invalidated by the action of adding a column to the table.
    SQL> drop table dependonme
      2  /
    Table dropped.
    SQL>
    SQL> drop package mypkg
      2  /
    Package dropped.
    SQL>
    SQL> set serveroutput on
    SQL>
    SQL> create table dependonme (x number)
      2  /
    Table created.
    SQL>
    SQL> insert into dependonme values (5)
      2  /
    1 row created.
    SQL>
    SQL> create or replace package mypkg is
      2    procedure myproc;
      3  end mypkg;
      4  /
    Package created.
    SQL>
    SQL> create or replace package mypkg_state is
      2    v_statevar number := 5; -- package state in seperate package spec
      3  end mypkg_state;
      4  /
    Package created.
    SQL>
    SQL> create or replace package body mypkg is
      2    -- this package has no state area
      3
      4    procedure myproc is
      5      myval number;
      6    begin
      7      select x
      8      into myval
      9      from dependonme;
    10
    11      myval := myval * mypkg_state.v_statevar;  -- note: references the mypkg_state package
    12      DBMS_OUTPUT.PUT_LINE('My Result is: '||myval);
    13    end;
    14  end mypkg;
    15  /
    Package body created.
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        VALID
    SQL>
    SQL> alter table dependonme add (y number)
      2  /
    Table altered.
    SQL>
    SQL> select object_name, object_type, status from user_objects where object_name = 'MYPKG'
      2  /
    OBJECT_NAME
    OBJECT_TYPE         STATUS
    MYPKG
    PACKAGE             VALID
    MYPKG
    PACKAGE BODY        INVALID
    SQL>
    SQL> exec mypkg.myproc
    My Result is: 25
    PL/SQL procedure successfully completed.

  • Form apply changes results in Unable to fetch custom authentication functio

    created a simple form/report application using the wizard and no modification of any kind and I can do everything except apply changes to any field on form screen -
    got the following error:
    Unable to fetch custom authentication function body in application - HTTP 500 Internal Server Error
    any ideas??
    Thanks.

    I am using data base account.
    more info:
    the table I am working with is an existing table with large number of columns. to simplify testing I created the following table as a select from original table:
    CREATE TABLE APPS.FGS_TEMP_2
    TASK_ID NUMBER(15) NOT NULL,
    PROJECT_ID NUMBER(15),
    TASK_NUMBER VARCHAR2(25 BYTE) NOT NULL
    CREATE UNIQUE INDEX APPS.FGS_TEMP_2_IDX1 ON APPS.FGS_TEMP_2
    (TASK_ID)
    LOGGING
    ALTER TABLE APPS.FGS_TEMP_2 ADD (
    CONSTRAINT FGS_TEMP_2_CON
    PRIMARY KEY
    (TASK_ID)
    USING INDEX APPS.FGS_TEMP_2_IDX1);
    and again used wizard to create a simple tabular form to view and edit - now I am able to edit and apply changes to PROJECT_ID , TASK_NUMBER but not TASK_ID ?? which I guess is a different problem.
    here is the table I am trying to create the form for to edit and add - this is an existing table with few thousands rows.
    CREATE TABLE HED.EDD_CPR_EMP
    EDD_CPR_ID NUMBER NOT NULL,
    UNIQUE_PAYROLL_ID VARCHAR2(10 BYTE) NOT NULL,
    CPR_PERSON_ID NUMBER,
    LEGACY_PAYROLL VARCHAR2(7 BYTE),
    GEN_LEGACY_PAYROLL_FLAG VARCHAR2(1 BYTE),
    LOGIN_ID VARCHAR2(7 BYTE),
    BEMS_ID VARCHAR2(10 BYTE),
    STD_USER_ID VARCHAR2(10 BYTE),
    STD_UNIX_ID VARCHAR2(10 BYTE),
    CMS_PERSON_ID NUMBER,
    PERSON_TITLE VARCHAR2(10 BYTE),
    FIRST_NAME VARCHAR2(30 BYTE),
    MIDDLE_INITIAL VARCHAR2(1 BYTE),
    LAST_NAME VARCHAR2(40 BYTE),
    SUFFIX VARCHAR2(10 BYTE),
    EXT_FULL_NAME VARCHAR2(80 BYTE),
    KNOWN_AS VARCHAR2(30 BYTE),
    ORIGINAL_HIRE_DATE DATE,
    BENEFIT_DATE DATE,
    LAST_HIRE_DATE DATE,
    HIRE_CODE VARCHAR2(30 BYTE),
    HIRE_CODE_DESC VARCHAR2(30 BYTE),
    TERMINATION_DATE DATE,
    TERMINATION_REASON_CODE VARCHAR2(3 BYTE),
    TERMINATION_REASON_DESC VARCHAR2(30 BYTE),
    LAST_DAY_WORKED DATE,
    BADGE_EXPIRATION_DATE DATE,
    ACCT_BUSINESS_UNIT VARCHAR2(2 BYTE),
    ACCT_LOCATION VARCHAR2(2 BYTE),
    ACCT_DEPARTMENT VARCHAR2(4 BYTE),
    ACCT_BUSINESS_UNIT_DESC VARCHAR2(30 BYTE),
    ACCT_LOCATION_DESC VARCHAR2(30 BYTE),
    ACCT_DEPARTMENT_DESC VARCHAR2(30 BYTE),
    HR_DEPARTMENT VARCHAR2(10 BYTE),
    HR_ORG_LEVEL_CODE VARCHAR2(15 BYTE),
    HR_ORG_STRUCTURE_CODE VARCHAR2(12 BYTE),
    HR_ORG_FUNCTION_CODE VARCHAR2(2 BYTE),
    HR_DEPARTMENT_DESC VARCHAR2(30 BYTE),
    HR_ORG_LEVEL_DESC VARCHAR2(30 BYTE),
    HR_ORG_STRUCTURE_DESC VARCHAR2(51 BYTE),
    HR_ORG_FUNCTION_DESC VARCHAR2(30 BYTE),
    HR_PARENT_DEPARTMENT VARCHAR2(10 BYTE),
    US_PERSON_STATUS VARCHAR2(30 BYTE),
    SHIFT VARCHAR2(1 BYTE),
    SCHEDULED_WORK_WEEK_HOURS VARCHAR2(3 BYTE),
    PART_TIME_CODE VARCHAR2(1 BYTE),
    EXPLICIT_EMAIL_ADDRESS VARCHAR2(240 BYTE),
    STABLE_EMAIL_ADDRESS VARCHAR2(240 BYTE),
    URL_ADDRESS VARCHAR2(240 BYTE),
    PERSON_STATUS_CODE VARCHAR2(1 BYTE),
    PERSON_STATUS_DESC VARCHAR2(12 BYTE),
    PERSON_TYPE_CODE VARCHAR2(1 BYTE),
    PERSON_TYPE_DESC VARCHAR2(16 BYTE),
    HRMS_STATUS_CODE VARCHAR2(1 BYTE),
    HRMS_STATUS_DESC VARCHAR2(30 BYTE),
    MANAGER_BEMS_ID VARCHAR2(10 BYTE),
    MANAGER_NAME VARCHAR2(85 BYTE),
    SJC_OCCUPATION_CODE VARCHAR2(2 BYTE),
    SJC_JOB_FAMILY_CODE VARCHAR2(2 BYTE),
    SJC_FLSA_CODE VARCHAR2(1 BYTE),
    SJC_LEVEL_CODE VARCHAR2(1 BYTE),
    SJC_SMC_CODE VARCHAR2(3 BYTE),
    EEO1_CAT_CODE VARCHAR2(1 BYTE),
    SJC_OCCUPATION_DESC VARCHAR2(25 BYTE),
    SJC_JOB_FAMILY_DESC VARCHAR2(25 BYTE),
    SJC_FLSA_DESC VARCHAR2(30 BYTE),
    SJC_SMC_DESC VARCHAR2(25 BYTE),
    EEO1_CAT_DESC VARCHAR2(25 BYTE),
    HOURLY_JOB_CODE VARCHAR2(5 BYTE),
    JOB_TITLE VARCHAR2(60 BYTE),
    HOURLY_GRADE VARCHAR2(2 BYTE),
    HOURLY_UNION_CODE VARCHAR2(20 BYTE),
    HOURLY_UNION_DESC VARCHAR2(60 BYTE),
    DIRECT_INDIRECT_CODE VARCHAR2(1 BYTE),
    MANAGEMENT_LEVEL_CODE VARCHAR2(1 BYTE),
    MANAGEMENT_LEVEL_DESC VARCHAR2(30 BYTE),
    TEMPORARY_ASSIGNMENT_CODE VARCHAR2(1 BYTE),
    WORK_SCHEDULE_CODE VARCHAR2(30 BYTE),
    ROLE_TYPE VARCHAR2(1 BYTE),
    ROLE_DESCRIPTION VARCHAR2(13 BYTE),
    PERSON_CREATION_DATE DATE,
    PERSON_LAST_UPDATE_DATE DATE,
    LOCATION1_BUILDING_NUMBER VARCHAR2(6 BYTE),
    LOCATION1_FLOOR_NUMBER VARCHAR2(6 BYTE),
    LOCATION1_ROOM_NUMBER VARCHAR2(6 BYTE),
    LOCATION1_STREET_ADDRESS1 VARCHAR2(60 BYTE),
    LOCATION1_STREET_ADDRESS2 VARCHAR2(60 BYTE),
    LOCATION1_STREET_ADDRESS3 VARCHAR2(60 BYTE),
    LOCATION1_CITY VARCHAR2(30 BYTE),
    LOCATION1_STATE VARCHAR2(2 BYTE),
    LOCATION1_POSTAL_CODE VARCHAR2(30 BYTE),
    LOCATION1_COUNTRY VARCHAR2(70 BYTE),
    LOCATION1_LAST_UPDATE_DATE DATE,
    LOCATION2_BUILDING_NUMBER VARCHAR2(6 BYTE),
    LOCATION2_FLOOR_NUMBER VARCHAR2(6 BYTE),
    LOCATION2_ROOM_NUMBER VARCHAR2(6 BYTE),
    LOCATION2_STREET_ADDRESS1 VARCHAR2(60 BYTE),
    LOCATION2_STREET_ADDRESS2 VARCHAR2(60 BYTE),
    LOCATION2_STREET_ADDRESS3 VARCHAR2(60 BYTE),
    LOCATION2_CITY VARCHAR2(30 BYTE),
    LOCATION2_STATE VARCHAR2(2 BYTE),
    LOCATION2_POSTAL_CODE VARCHAR2(30 BYTE),
    LOCATION2_COUNTRY VARCHAR2(70 BYTE),
    LOCATION2_LAST_UPDATE_DATE DATE,
    MAIL1_SITE_CODE VARCHAR2(3 BYTE),
    MAIL1_STATION VARCHAR2(10 BYTE),
    MAIL1_LAST_UPDATE_DATE DATE,
    MAIL2_SITE_CODE VARCHAR2(3 BYTE),
    MAIL2_STATION VARCHAR2(10 BYTE),
    MAIL2_LAST_UPDATE_DATE DATE,
    WORK_PHONE1 VARCHAR2(20 BYTE),
    WORK_PHONE1_LAST_UPDATE_DATE DATE,
    WORK_PHONE2 VARCHAR2(20 BYTE),
    WORK_PHONE2_LAST_UPDATE_DATE DATE,
    CELLULAR1 VARCHAR2(20 BYTE),
    CELLULAR1_LAST_UPDATE_DATE DATE,
    CELLULAR2 VARCHAR2(20 BYTE),
    CELLULAR2_LAST_UPDATE_DATE DATE,
    PAGER1 VARCHAR2(20 BYTE),
    PAGER1_PIN VARCHAR2(30 BYTE),
    PAGER1_LAST_UPDATE_DATE DATE,
    PAGER2 VARCHAR2(20 BYTE),
    PAGER2_PIN VARCHAR2(30 BYTE),
    PAGER2_LAST_UPDATE_DATE DATE,
    PAGER3 VARCHAR2(20 BYTE),
    PAGER3_PIN VARCHAR2(30 BYTE),
    PAGER3_LAST_UPDATE_DATE DATE,
    FAX VARCHAR2(20 BYTE),
    FAX_LAST_UPDATE_DATE DATE,
    CREATED_BY NUMBER,
    CREATION_DATE DATE,
    LAST_UPDATED_BY NUMBER,
    LAST_UPDATE_DATE DATE,
    REQUEST_ID NUMBER(15),
    PROGRAM_APPLICATION_ID NUMBER(15),
    PROGRAM_ID NUMBER(15),
    PROGRAM_UPDATE_DATE DATE,
    LAST_UPDATE_LOGIN NUMBER,
    WIN2K_CREATED_BY VARCHAR2(25 BYTE),
    WIN2K_UPDATED_BY VARCHAR2(25 BYTE),
    L3_EMP_ID VARCHAR2(9 BYTE),
    MANAGER_CPR_ID NUMBER,
    SALARY_JOB_CODE VARCHAR2(10 BYTE),
    JOB_FLSA VARCHAR2(10 BYTE),
    BADGE_NUMBER VARCHAR2(50 BYTE)
    Thanks for the help.

  • Why Package Specification only in INVALID State

    Hi All,
    Why Package spec is going to invalid state when I change a Procedure which is called in Package body
    and why package body is still in VALID state. Can some one please clarify my doubt.

    May be only specification got errors and not the package.
    May be the constants / variables declared in package specification has wrong reference
    like var1 tab1.col1%type which column doesnexists....
    OR
    V number(1) :=10;
    or
    improper closing / ending of a procedure..

  • OnError in form: Error Unable to fetch row

    Hello,
    I'm trying to create such functionality, that in report "edit" link leads to form on another table. Everything is ok with rows, that exist in that table (i can edit them in form). But I want, that if row does not exist - the form should open the "Create record" window.
    Now i get an error:
    ORA-01403: no data found
    Error Unable to fetch row.
    Maybe some computation needs to be done for primary key?
    Thanks.
    Edited by: user11022609 on 2009.4.14 03.38

    I requested for workspace in apex.oracle.com, but i solved the problem sooner. I created one more column ir report (using the unique column left join), which was the primary key of the other table and included it into EDIT link.
    Edited by: user11022609 on 2009.4.14 06.12

Maybe you are looking for

  • ACH CTX - Addenda Record Type 7

    Hi, I am working on ACH CTX file for vendor payments through Wells Fargo bank. I need some help on the Addenda Record type 7. The format generated by standard SAP for this record type 7 is not acceptable by the bank. And they are not able to help us

  • Macbook air turned off without warning?

    Hi! Last night my macbook air turned off without warning and wouldn't turn back on until I tried again this morning. A few weeks ago I had my battery and logic board replaced and since then it the screen has gone blue for a few seconds and then back

  • Represinting my data and relations between records in diagram " not by the hierarchic

    hi all , if there is a group of people in one table and the other table contains another group of people, and there is a relation between those groups, how to create a form or a report representing diagram for this relation. This diagram should be dy

  • How to run automated maintenance task on a logical standby database ?

    Hi I realize that i do not see any job runs for automated maintenance tasks on my logical standby database. Which are the conditions that must be fulfilled for automated maintenance tasks to run? Thanks Christoph

  • Charting Question: "Group By?"

    Hi all, I came across a problem yesterday that, so far, I have been unable to solve. I'm wondering if I need to write my own handler. Here goes. I have a data set that looks like this:[ {name="y2005", value="1.2", otherName="Texas"}, {name="y2005", v