Error: The report source could not be retrieved from the state object.

I have been trying to create a report in a JSF page. The relevant parts are below:
Inside the JSP page, this is the code:
              <jsp:useBean id="MyBean" class="com.nm.facade.rto.POJOViewerBean" scope="session" />
                <jsp:setProperty name="MyBean" property="reportLocation" value="Report1.rpt" />
               <v:reportPageViewer reportSource="#{MyBean.reportSource}"
                                       displayToolbarPrintButton="true"
                                       printMode="ActiveX"
                                       zoomPercentage="100"
                                       displayToolbarExportButton="true"
                                       displayToolbarRefreshButton="true"
                                       viewerName="My Viewer"
               ></v:reportPageViewer>
In the backing bean, this is the relevant code:
    public Object getReportSource() throws ReportSDKException
        if (propertiesChanged || reportSource == null)
            propertiesChanged = false;
            if (reportLocation == null)
                throw new RuntimeException("The reportLocation property must be set before a report source is retrieved");
            ReportClientDocument rcd = new ReportClientDocument();
            rcd.setReportAppServer(ReportClientDocument.inprocConnectionString);
            rcd.open(reportLocation, 0);
            DatabaseController dbc = rcd.getDatabaseController();
            //Create the POJO collection and populate it with data
            ReportData[] data =
              new ReportData("B.B.", "King", 6, new Date(25, 9, 16)),
                new ReportData("Muddy", "Waters", 7, new Date(15, 4, 4)),
                new ReportData("John Lee", "Hooker", 8, new Date(16, 8, 16)),
                new ReportData("Otis", "Rush", 9, new Date(34, 4, 29)),
                new ReportData("Buddy", "Guy", 10, new Date(36, 7, 30))
            //Create the result set from the collection of POJOs
            POJOResultSetFactory factory = new POJOResultSetFactory(ReportData.class);
            factory.setVerbose(true);
            POJOResultSet results = factory.createResultSet(data);
            ResultSetMetaData metaData = results.getMetaData();
            //Set the resultset as the report datasource
                  //Get the table name from the 'Set Datasource Location' dialog in the Crystal Reports designer
            String reportTable = "getReportDataDataSource";
            dbc.setDataSource(results, reportTable, reportTable);       
            IReportSource reportSource = rcd.getReportSource();
            if (reportSource == null)
                throw new RuntimeException("Unable to get a report source.");
        return reportSource;
In the CRConfig.xml, this is what is there:
<?xml version="1.0" encoding="utf-8"?>
<CrystalReportEngine-configuration>
    <reportlocation>../reports</reportlocation>
    <timeout>0</timeout>
    <ExternalFunctionLibraryClassNames>
         <classname></classname>
    </ExternalFunctionLibraryClassNames>
</CrystalReportEngine-configuration>
The report template 'Report1.rpt' is packaged under WEB-INF/reports in the war file.
When I try to generate the report by accessing the JSF page, I am getting an error: "The report source could not be retrieved from the state object. "
I am not sure what is wrong. Can someone help me in resolving this issue?
Edited by: renshai on Jul 9, 2009 3:21 AM

My formatting gets lost and the message looks unintelligible. After some experimentation, I found that if the message exceeds some length, the formatting is removed. Since I couldn't find any way to delete this post, I made another post with the same subject. Please ignore this post and help me to find a solution for the problem posted in the other thread with the same subject. Thanks in advance.

Similar Messages

  • We bought a reconditioned IMac and time capsule,about a month ago the hard drive died and only left our files on the capsule which could not be retrieved from the time capsule so it got stored as a file on the operating system

    Our IMac's hard drive died and we thought great we bought a time capsule to back up the immages and files,except when we had the hard drive replaced the time capsule did not recognize the newer opperating system and would not reboot the files back,so the apple store tech loaded them into a file folder and loaded them to the main screen and erased the time capsule,the problem now is how to load this file back permenantly and watch video's that are stored,when in I Photo when I try to view video content I get a message stating that I may need to download more software to support this format.

    If anyone is reading this still looking for what caused the issue and how to fix it here is what I discovered.
    The antivirus program our company uses, Bitdefender Antivirus Plus, was causing some of the PDF files not to open. After troubleshooting the different modules and settings the culprit was..
    Scan SSL in Privacy Control Settings. Turning it OFF solved the problem and all the PDF files that previously would not open now open just fine. This issue has been sent to Bitdefender for them to review. If you use a different antivirus program and are having this issue try locating the Scan SSL setting and see if turning it off solves the problem.

  • [Security:090809]The key pair could not be retrieved

    Hi All,
    I have created the key pair successfully and then exported them to file and then imported to DemoTrust.jks also by those commands:
    keytool -genkeypair -alias wlpkey -keypass password -keyalg rsa -keysize 1024 -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -dname "CN=Oracle Corp, OU=WLP, O=Oracle, L=Boulder, ST=CO, C=US"
    keytool -exportcert -alias wlpkey -keypass password -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -file wckey.der
    keytool -importcert -keystore DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase -file wckey.der -alias wlpkey -keypass password
    I can see that my alias is present in DemoTrust.jks by this command:
    keytool -list -keystore DemoTrust.jks -storepass DemoTrustKeyStorePassPhrase
    Now When I want to modify the SAML Security by creating a new Security Credential Mapping in weblogic admin console (Home >Security Realms >myrealm >Credential Mappings>PKI>New), I am getting following exceptions:
    +[Security:090809]The key pair could not be retrieved from the keystore with the supplied alias wlpkey and its password.+
    An error occurred while creating a security credential. Please check the log for more details.
    Can anyone point out anything to overcome this error?
    I am using WLP 10.3.4.
    I have tried this by creating the certificates from WLP_HOME/OFM_HOME and WLP_HOME/wlserver_10.3/server/lib also.
    What else can I try?
    Regards
    Jay
    Edited by: 902059 on Apr 6, 2012 2:14 AM

    The password that you have configured is incorrect and hence the error.
    [Security:090809]The key pair could not be retrieved from the keystore with the supplied alias wlpkey and its password.
    An error occurred while creating a security credential. Please check the log for more details.You need to give the password of the private key (that you have used while creating the key pair) in the PKI credential mapping configuration. The one highlighted below:
    keytool -genkeypair -alias wlpkey -keypass password -keyalg rsa -keysize 1024 -keystore DemoIdentity.jks -storepass DemoIdentityKeyStorePassPhrase -dname "CN=Oracle Corp, OU=WLP, O=Oracle, L=Boulder, ST=CO, C=US"Thanks,
    Patrick

  • URL Data Control: Connection to the URL source could not be created

    Using JDev Studio 10.1.3.2
    Trying to use a new URL data control pointing to a csv file.
    I have successfully create a new URL data control using the New Gallery->Web Services->URL Services Data Control. I have successfully tested the connection and I am able to see the Data control in the DC Palette. The attributes shown are correct.
    However, when I create a test client displaying the new CSV Data Control attributes in a table and try to run it, I get the following error:
    "Apr 21, 2008 3:40:46 PM oracle.adfinternal.model.adapter.url.csv.CSVDataControl invokeOperation
    WARNING: Exception invoking method from CSV data control. Cause: javax.naming.NameNotFoundException; remaining name 'URLConnection1'
    Apr 21, 2008 3:40:46 PM oracle.adfinternal.model.adapter.url.csv.CSVDataControl invokeOperation
    WARNING: Exception invoking method from CSV data control. Cause: javax.naming.NameNotFoundException; remaining name 'URLConnection1'
    Exception in thread "main" oracle.adf.model.adapter.AdapterException: DCA-50006: The URL data control call failed. A connection to the URL source could not be created.
    The data controls configuration file is shown below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <DataControlConfigs xmlns="http://xmlns.oracle.com/adfm/configuration"
    version="10.1.3.40.66" Package="com.xp.model"
    id="DataControls">
    <AdapterDataControl id="URLDataControl1"
    FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl"
    ImplDef="oracle.adfinternal.model.adapter.url.csv.CSVDCDef"
    SupportsTransactions="false" SupportsSortCollection="true"
    SupportsResetState="false" SupportsRangesize="false"
    SupportsFindMode="false" SupportsUpdates="false"
    Definition="URLDataControl1" BeanClass="URLDataControl1"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol">
    <Source>
    <Definition xmlns="http://xmlns.oracle.com/adfm/adapter/url/csv"
    ConnectionName="URLConnection1"
    Source="http://phusca-w20909:8080/client_war/WRK_COMPUTERS.csv" Delimiter=","
    QuoteChar="{none}" IsFirstRowNames="true" Encoding="UTF-8"/>
    </Source>
    </AdapterDataControl>
    </DataControlConfigs>

    Using JDev Studio 10.1.3.2
    Trying to use a new URL data control pointing to a csv file.
    I have successfully create a new URL data control using the New Gallery->Web Services->URL Services Data Control. I have successfully tested the connection and I am able to see the Data control in the DC Palette. The attributes shown are correct.
    However, when I create a test client displaying the new CSV Data Control attributes in a table and try to run it, I get the following error:
    "Apr 21, 2008 3:40:46 PM oracle.adfinternal.model.adapter.url.csv.CSVDataControl invokeOperation
    WARNING: Exception invoking method from CSV data control. Cause: javax.naming.NameNotFoundException; remaining name 'URLConnection1'
    Apr 21, 2008 3:40:46 PM oracle.adfinternal.model.adapter.url.csv.CSVDataControl invokeOperation
    WARNING: Exception invoking method from CSV data control. Cause: javax.naming.NameNotFoundException; remaining name 'URLConnection1'
    Exception in thread "main" oracle.adf.model.adapter.AdapterException: DCA-50006: The URL data control call failed. A connection to the URL source could not be created.
    The data controls configuration file is shown below:
    <?xml version="1.0" encoding="UTF-8" ?>
    <DataControlConfigs xmlns="http://xmlns.oracle.com/adfm/configuration"
    version="10.1.3.40.66" Package="com.xp.model"
    id="DataControls">
    <AdapterDataControl id="URLDataControl1"
    FactoryClass="oracle.adf.model.adapter.DataControlFactoryImpl"
    ImplDef="oracle.adfinternal.model.adapter.url.csv.CSVDCDef"
    SupportsTransactions="false" SupportsSortCollection="true"
    SupportsResetState="false" SupportsRangesize="false"
    SupportsFindMode="false" SupportsUpdates="false"
    Definition="URLDataControl1" BeanClass="URLDataControl1"
    xmlns="http://xmlns.oracle.com/adfm/datacontrol">
    <Source>
    <Definition xmlns="http://xmlns.oracle.com/adfm/adapter/url/csv"
    ConnectionName="URLConnection1"
    Source="http://phusca-w20909:8080/client_war/WRK_COMPUTERS.csv" Delimiter=","
    QuoteChar="{none}" IsFirstRowNames="true" Encoding="UTF-8"/>
    </Source>
    </AdapterDataControl>
    </DataControlConfigs>

  • On some of my files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?" Then when I click "Locate", I get nothing.

    I'm really dumbfounded on this one and it's driving me bonkers!!!! On some of my music files there is a ! in front of it, if I try to play the song, I get an error message; "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    This began to happen when Chuck made playlists2burn on2CD-and then he would delete the playlist; sending all the song files into oblivion. Certain songs have a ! right next to the file name, and as I stated before, i get that error message:
    "The song "_____" could not be used, because the original file could not be found. Would you like to locate it?"
    So I click on "Locate". No help. I get a menu with folders that say "catroot" and other folders which names I cannot remember, but I scroll PAST the file folders, & it's just a bunch of ".DLL" files.....I don't understand what any of the names of the folders mean...it's frustr8ing-coz this is my 2nd iTouch, my 1st one got stolen & I can't afford2buy my music back at this time & i NEVER before had a single problem with losing song file locations.
                  Is there anyone out there who has been through this frustrating game of chasing your tail?....<that's how I feel>
    If so I would be ever so gr8ful if maybe someone with the knowledge would be so kind as 2 tell me how/where 2 retrieve these songs & how to put everything back where it belongs, I would be 4ever gr8ful !!!
    I can't afford 2 replace the songs just like I'm unable 2 buy back my old music from my stolen iTouch....man that was an awesome collection-someday I'll be able 2 afford 2 do that & I would like 2 have all the new music that I paid 4 but cannot find when I got my new iTouch....that would just be  wonderful.
                 I hope someone sees this post that can help me retrieve these files....losing $100.00 of iTunes is a REAL BUMMER!!!!!!
                                                      ThanQ SO very much!
                                                                             [email protected] or [email protected] or [email protected] .
                                                                                               You can also find me on Facebook, my given name is Tiffinie Trimmer, &
                                                                                                that's my Facebook "handle".    ThanQ 4 taking the time 2 read all of this!
                                                                                                hope 2 get a reply someday....I'll B checking all my emails & my Facebook, as well
                                                                                                as marking this page in my FAVORITES so I can find it fast! Take Care!!!

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • I tried to play my iTunes and suddenly get an error message that says "The song (name) could not be used because the original file could not be found.  Would you like to locate it now?"  It happens on all my tunes and each one I select ends up with a "?"

    I tried to play my iTunes and suddenly get an error message that says "The song (name) could not be used because the original file could not be found.  Would you like to locate it now?"  It happens on each tune I select and a "?" appears beside the song.  Does this sound familiar to anyone?

    I was not complete clear.
    Since you never changed the settings in the advanced section of iTunes preferecnes, you have to chech that your music is really in the location setted in the folders reported in the advanced section.  If not you have 2 ways: reset the position of this folders or in the actual disk organisation or in the pointing on the preferences.
    If you press the reset button you just give to itunes its default setting as for the position of the music files: probably this will be a good choice if you have never changed any default preference.
    But before I would check the folders and see if the songs are really there
    In my iTune I have this, and I believe it is the default.
    Users/YOURHOMEFOLDERNAME/Music/iTunes/iTunes Music

  • On Firefox I get The requested URL could not be retrieved On Internet explorer it works What is wrong?

    ERROR
    The requested URL could not be retrieved
    While trying to retrieve the URL: http://www.google.com.au/
    The following error was encountered:
    * Unable to forward this request at this time.
    This request could not be forwarded to the origin server or to any parent caches. The most likely cause for this error is that:
    * The cache administrator does not allow this cache to make direct connections to origin servers, and
    * All configured parent caches are currently unreachable.
    Your cache administrator is webmaster.
    Generated Tue, 08 Jun 2010 03:40:48 GMT by proxy.syd.connect.com.au (squid/2.7.STABLE5)

    It could be a firewall or other security software blocking the access for Firefox - if you use the default Windows Firewall in XP, you can find help in article [[Configuring Windows Firewall]].
    If you use a 3rd party security program, you could look for help with configuration in our KB articles (use yellow Search box on right side of this page - search on provider, like Norton, AVG, F-Secure), or post the name here and we'll help you find relevant link(s).
    If the problem persists, this article might also help you solve it:
    [[Error loading web sites]] (comprehensive article with solutions and links to other articles).
    When you get online, I would recommend updating Firefox. The latest version is Firefox 3.6.3. You can get it from [http://getfirefox.com getfirefox.com] and install it over your current version. Also see article [[Updating Firefox]] for info.
    Please let us know how above works out, and if we can be of further assistance. Detailed feedback is appreciated and helps us to help you better, plus enables us to better help more users with similar problems.

  • I am not able to activate my iPhone 3GS after upgrading it to IOS 5.1.1 since it shows the error message "your iPhone could not be activated because the activation server is temporarily unavailable. I am asked to retry after some time. How can I avoid thi

    i am not able to active my ipone 3gs after upgrat to ios5.1.1. it show error message " your iphone could not be activted because the activation server is temperarily unavailable.try connecting you iphone to itunes to activate it, or try again in a couple of munutes" i retry many time, could not sold problem.

    You had a jailbreak and unlock.
    When you updated you cooked it.
    Your phone is done.
    Time for a new one.

  • TS1368 I am unable to connect to the itunes store; I get the message 'Itunes could not be connected to the itunes store.  An unknown error occured (-3212).  Also when I plug my iphone in to the computer it doesn't ever pick it up

    I am unable to connect to the itunes store; I get the message 'Itunes could not be connected to the itunes store.  An unknown error occured (-3212).  Also when I plug my iphone in to the computer it doesn't ever pick it up please help!!

    same here no solutions

  • Error message saying iTunes could not connect you to the Music Store

    error message saying iTunes could not connect you to the Music Store
    Make sure your network connection is active and try again
    someone help!!!!!!!!

    ya, im having the same problem 2, im not sure, maybe the systems down or something, if someone has connected to the music store in the last 12 hrs plz speak up.

  • Error submitting tasks: Operation could not be completed within the specified time

    I've created a Batch Application and I'm having an issue running a job.  Its suppose to synchronize 2 azure blob containers.
    In my JobSplitter, I compare 2 azure blob containers and find the files in the first container that need to be copied over to the second one.  Just figuring out which files to copy over can take about 5 to 6 minutes the first time this is run depending
    on the number of files that need to get copied over.
    Once we have the files that need to be copied, we group them into sets and create a task for each set.
    The exe that the TaskProcessor runs doesn't do anything just yet. All it does is write the arguments sent to it into a file. Nothing major.
    On the last run, about 900 tasks were created. Four of the tasks completed successfully. I can download the output files for them just fine. The next 4 tasks failed with an error.
    Looking in the JobLogs, I see this:
    The job orchestrator finished
    Failed to process job ac8dd4a3-d882-4ec1-847d-48844fa3e1f4: Error submitting tasks: Operation could not be completed
    within the specified time. RequestId:27eab612-c8ce-4e4b-8dfb-00e7024c71ec Time:2015-01-29T00:37:03.5943898Z
    Has anyone seen this before?
    Thanks,
    matt

    This error is usually a transient error, typically related to an internal storage timeout.  We're working on a fix for it.
    In the meantime, if you go into the Batch Apps portal, select the failed job and click Reprocess in the command bar, Batch Apps should re-run the failed tasks and the not-run tasks.  (Note that the tasks that already succeeded will not be re-run, and
    we will not re-run the job splitter to create new tasks.)
    Please let us know if you continue to see this problem or if reprocessing the job doesn't work for you.

  • When I try to import pictures from media card to iPhoto, I'm getting the error 'The following file could not be imported. The file is in an unrecognized format.'  The file is a jpeg and I've never had this problem before.

    When I try to import pictures from media card to iPhoto, I'm getting the error 'The following file could not be imported. The file is in an unrecognized format.'  The file is a jpeg and I've never had this problem before.

    What version of iPhoto?
    What colour profile is the shot?
    As a Test:
    Hold down the option (or alt) key and launch iPhoto. From the resulting menu select 'Create Library'
    Import a few pics into this new, blank library. Is the Problem repeated there?

  • When I try to play a song in my itunes libery I get an error saying "this song could not be used because the original file could not be found".  I do I restore the file?

    When I rry to paly a song in my itunes libery, I get an error saying "this song could not be used because the original file could not be found". I do I find the orginal file?

    Hello crispinofromfl,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    Where are my iTunes files located?
    http://support.apple.com/kb/ht1391
    Have a nice day,
    Mario

  • How do I fix the following error? itunes counld not back up the iphone because the back up could not be saved on the computer?

    How do I fix the following error? itunes counld not back up the iphone because the back up could not be saved on the computer?

    I updated to iOS 5.0.1 days ago and didn't receive that notification until just now...
    This time I synced new photos I took yesterday, and it gave me the:
    "iTunes Sync: 54 items could not be synced. See iTunes for more information"
    Perhaps it kicks off when new items get synced.
    I've decided to rent a movie yesterday. Once it gets deleted, I'm curious to see if it jumps to 55 items.

  • My itunes app was working fine then all of a sudden I'm getting an error - The Itunes application could not be opened.  The required folder cannot be found.  But it doesn't tell me what folder.

    I am using Windows Vista.  My itunes launched fine until now.  Now I get an error - "The Itunes application could not be opened.  The required folder cannot be found".  I have no idea what file it is looking for.  Has anyone seen this error? 
    I have also tried to uninstall the package and I get the error Could not access network location %APPDATA%\.  And it won't uninstall.  I don't know why it's complaining in both cases. 
    Itunes was working 3 weeks ago with no problem.
    HELP!!! 

    hey did u ever get you itunes fixed?

Maybe you are looking for

  • I have premier elements 9. I can no longer create videos. Is it because of upgrade? Please tell me what to do. TY

    When I open elements 9- to create a new video- it is now just a blank, black/gray screen. I can no longer create videos. I can't upload from computer, etc. Is this from the new download of Rebel? Please tell me what to do, where to go. I realize this

  • Thumbnails on Bridge are unsharp - what is wrong?

    Some of my thumbnails on Bridge are not sharp ... the ones that are not sharp seem to have a black border around then.  When I open the files in photoshop they are fine ... also find that moving the file to another folder SOMETIMES fixes the problem.

  • Running test message problem

    hello interface MQ2IDOC - trying to run from RWB a message, and recieve this error Error when sending message: 403 Forbidden how can I fix it?

  • 8110 Camera not working

    I have Pearl 8110. Whenever i try using my camera i get error saying "Could not start camera.Close other applications and try opening the camera again". I am not using anyother application which might be using camera. I even reintalled the OS but the

  • Videos on iPod Touch, how do I do it??

    Videos on iPod Touch, how do I do it?? I can't figure this out. I can upload my photos but not videos I have. Using 3.1 software. What's the secret? Please help. Thanks