My profile was 'fixed' and I am trying to return to functionality

I had a bug on my laptop and the system experts removed my profile.
That got rid of all of my workspace information. I had a backup, so I started copying everything back. I am close to getting things back, but this isn't horeshoes!
I currently get this in my console,
     at com.businessobjects.reports.sdk.requesthandler.f.a(Unknown Source)
     at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(Unknown Source)
     at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(Unknown Source)
     ... 35 more
Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error
     at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCConnection.Open(Unknown Source)
     at com.crystaldecisions.reports.queryengine.JDBConnectionWrapper.Open(Unknown Source)
     ... 45 more
Parms are; 800/S80/5069723
ERROR -  detected an exception: Unexpected database connector error
     at com.crystaldecisions.reports.queryengine.Connection.t1(Unknown Source)
My program isn't very large and it did work before. I have it below. The params are printing, so the program did read the input control file. It just can't find the database connection. I do have the log4j.properties file and it is in the correct place.
I think I just need to redo the JDBC connection.
Can somebody help me?
What I need to do is re-establish or check my database connection.
import java.io.BufferedReader;
import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.InputStreamReader;
import java.text.SimpleDateFormat;
import javax.swing.SwingUtilities;
import com.crystaldecisions.sdk.occa.report.application.DatabaseController;
import com.crystaldecisions.sdk.occa.report.application.ReportClientDocument;
import com.crystaldecisions.sdk.occa.report.exportoptions.ReportExportFormat;
import com.crystaldecisions.sdk.occa.report.lib.*;
import com.crystaldecisions.sdk.occa.report.data.*;
public class checkReg {
          private static final String REPORT_NAME = "D:\\Inetpub\\ftproot\\CRegister\\CheckRegister.rpt";
          public static void launchApplication() {
          try
               File f1 = new File("D:\\Inetpub\\ftproot\\CRegister\\CReg.jac");
               if (f1.exists())
               {f1.delete();
          java.io.File src = new File("D:\\Inetpub\\ftproot\\CRegister\\CReg.txt");
          java.io.File dest = new File("D:\\Inetpub\\ftproot\\CRegister\\CReg.txt".replace(".txt", ".jac"));
          src.renameTo(dest);
          File f2 = new File("D:\\Inetpub\\ftproot\\CRegister\\CReg.bak");
          if (f2.exists())
               {f2.delete();
               FileInputStream in = new FileInputStream("D:\\Inetpub\\ftproot\\CRegister\\CReg.jac");
               BufferedReader br = new BufferedReader(new InputStreamReader(in));
               String strLine;
               String sDate;
               float tran;
               SimpleDateFormat formatter = new SimpleDateFormat("MMddyyyy");
               java.util.Date date = new java.util.Date();
     // to run for the current day use this -       
               sDate = formatter.format(date);
     // Read the file one line at a time
             while ((strLine = br.readLine()) != null)  
                  String patternStr = ",";
                 String[] args = strLine.split(patternStr);
    // format is vendor_yyyymmdd_check_nbr.pdf
                 String EXPORT_FILE = "D:\\Appdata\\CRegister\\" + args[3] + "_" + sDate + "_" + args[4] + ".pdf";
                 String Params = args[0] + "/" + args[1] + "/" + args[4];
                 System.out.println("Parms are; " + Params);
               try {
     //Open report.
                    ReportClientDocument reportClientDoc = new ReportClientDocument();
                    reportClientDoc.open(REPORT_NAME, 0);
     //Switch all tables on the main report.  See utility method below.
                    switch_tables(reportClientDoc.getDatabaseController());
     //We will be using the ParameterFieldController quite a bit through-out the rest of this function.
                    reportClientDoc.getDatabaseController().logon("procure","procure90");
                    com.crystaldecisions.sdk.occa.report.application.ParameterFieldController paramFieldController = reportClientDoc.getDataDefController().getParameterFieldController();
                    paramFieldController.setCurrentValue("", "cash_code", new String(args[0]));
                    paramFieldController.setCurrentValue("", "bank_code", new String(args[1]));
                    String tranValue = args[4];
                    Float tranTemp = Float.valueOf(tranValue);
                    tran = tranTemp.floatValue();
                    paramFieldController.setCurrentValue("", "tran_code", tran);
                    ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream)reportClientDoc.getPrintOutputController().export(ReportExportFormat.PDF);
     //Release report.
                    reportClientDoc.close();
     //Use the Java I/O libraries to write the exported content to the file system.
                    byte byteArray[] = new byte[byteArrayInputStream.available()];
     //Create a new file that will contain the exported result.
                    File file = new File(EXPORT_FILE);
                    FileOutputStream fileOutputStream = new FileOutputStream(file);
                    ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream(byteArrayInputStream.available());
                    int x = byteArrayInputStream.read(byteArray, 0, byteArrayInputStream.available());
                    byteArrayOutputStream.write(byteArray, 0, x);
                    byteArrayOutputStream.writeTo(fileOutputStream);
     //Close streams.
                    byteArrayInputStream.close();
                    byteArrayOutputStream.close();
                    fileOutputStream.close();
                    System.out.println("Successfully exported report to " + EXPORT_FILE);
               catch(ReportSDKException ex) {
                    ex.printStackTrace();
              System.out.println("The exporting of reports has finished!");
               br.close();
               in.close();
               java.io.File src2 = new File("D:\\Inetpub\\ftproot\\CRegister\\CReg.jac");
               java.io.File dest2 = new File("D:\\Inetpub\\ftproot\\CRegister\\CReg.jac".replace(".jac", ".bak"));
               catch(Exception ex) {
                    System.out.println(ex);               
          private static Object String(String string) {
               // TODO Auto-generated method stub
               return null;
           * Sample utility method for switching the database connection properties of all tables accessible from a databaseController
           * (i.e., could be a main report database controller, or a subreport's database controller) from one database to another.
          private static void switch_tables(DatabaseController databaseController) throws ReportSDKException {
               //Declare the new connection properties that report's datasource will be switched to.
               //NOTE: These are specific to using JDBC against a particular MS SQL Server database.  Be sure to use the
               //DisplayConnectionInfo sample to determine what your own connection properties need to be set to.
               final String TABLE_NAME_QUALIFIER = "xtreme.dbo.";
          //     final String DBUSERNAME = "procure";
          //     final String DBPASSWORD = "procure90";
               final String SERVERNAME = "aix-dblaw2.ochsner.org";
               final String CONNECTION_STRING = "Use JDBC=b(true);Connection URL=s(jdbc:oracle:thin:@aix-dblaw2.ochsner.org:1521:lawocfp);" +
                                                        "Database Class Name=s(jdbc:oracle:thin);Server=s(aix-dblaw2.ochsner.org);" +
                                                        "User ID=s(procure);Password=;Database=s(procure90);Trusted_Connection=b(false);" +
                                                        "JDBC Connection String=s(!jdbc:oracle:thin:@aix-dblaw2.ochsner.org:1521" +
                                                        "DatabaseName={lawocfp};user={procure};password={procure90}!)";
               final String DATABASE_NAME = "lawocfp";
               final String URI = "!jdbc:oracle:thin:@aix-dblaw2.ochsner.org:1521;DatabaseName={lawocfp};user={procure};password={procure90}!";
               final String DATABASE_DLL = "crdb_jdbc.dll";
               //Obtain collection of tables from this database controller.
               Tables tables = databaseController.getDatabase().getTables();
               //Set the datasource for all main report tables.
               for (int i = 0; i < tables.size(); i++) {
                    ITable table = tables.getTable(i);
                    //Keep existing name and alias.
                    table.setName(table.getName());
                    table.setAlias(table.getAlias());
                    //Change properties that are different from the original datasource.
                    table.setQualifiedName(TABLE_NAME_QUALIFIER + table.getName());
                    //Change connection information properties.
                    IConnectionInfo connectionInfo = table.getConnectionInfo();
                    //Set new table connection property attributes.
                    PropertyBag propertyBag = new PropertyBag();
                    //Overwrite any existing properties with updated values.
                    propertyBag.put("Trusted_Connection", "false");
                    propertyBag.put("Server Name", SERVERNAME); //Optional property.
                    propertyBag.put("Connection String", CONNECTION_STRING);
                    propertyBag.put("Database Name", DATABASE_NAME);
                    propertyBag.put("Server Type", "JDBC (JNDI)");
                    propertyBag.put("URI", URI);
                    propertyBag.put("Use JDBC", "true");
                    propertyBag.put("Database DLL", DATABASE_DLL);
                    connectionInfo.setAttributes(propertyBag);
                    //Set database username and password.
                    //NOTE: Even if these the username and password properties don't change when switching databases, the
                    //database password is *not* saved in the report and must be set at runtime if the database is secured. 
                    connectionInfo.setUserName("procure");
                    connectionInfo.setPassword("procure90");
                    connectionInfo.setKind(ConnectionInfoKind.DBFile);
                    table.setConnectionInfo(connectionInfo);
                    //Update old table in the report with the new table.
                    databaseController.setTableLocation(table, tables.getTable(i));
          public static void main(String [] args) {
               SwingUtilities.invokeLater(new Runnable() {
                    public void run() {
                         //Hand-off to worker function to start application.
                         launchApplication();

An update -
The libraries appear to all be in tact, now.
The error I am getting,
Parms are; 800/S80/5069660
ERROR -  detected an exception: Unexpected database connector error
is a connection issue.
Any ideas??

Similar Messages

  • HT4623 Can you remotely access your ipad? my ipad was stolen and I'm trying to locate it

    Can you remotely access an ipad? My ipad was stolen and I'm trying to locate it.

    use find my iphone app, i think u can track ur stolen ipad
               i hope u will find ur ipad....
    god will help the right

  • HT1338 After starting to download the Mountain Lion software, my wifi connection was disconnected. When I attached the ethernet cable, the downloading software was gone, and when I tried redoing the process, the app store would not accept the code. What d

    Hey,
    I just tried redeeming my software online. I went through the whole process, got the password, and proceeded to get the software to download. But soon after, the wifi connection was disconnected, and when I tried to connect the ethernet cable, the entire software had disappeared from my launchpad. When I tried to restart the download, it kept saying that the password had already been used before, and that it could only be used once per computer. What do I do now?

    You shouldn't have to re-enter the code, Lion should be on your purchases list so you can re-download it.  In the App Store, click Purchases...  do you see ML there?

  • Help! Took mac to store today as DVD stuck in drive- 3 hour round trip!!! Told it was fixed and it now won't even switch on :( I press the on button and all I get is a continuos loading symbol and then it shuts down . Worse state than it was before :( :(

    Help! Took mac to store today as DVD stuck in drive- 3 hour round trip!!! Told it was fixed and it now won't even switch on :( I press the on button and all I get is a continuos loading symbol and then it shuts down . Worse state than it was before :( :( not happy at all and not well enough to travel to get it fixed (my mum went today) anyone got any ideas please???

    Oh ok - Thankyou for that. I will be ringing them tomorrow and I will not be happy ! And I'm hoping they can suggest what I'm suppose to do about getting it back to them as I can't take it in myself. SO so angry!!! Does people getting it back in a worse state happen often? :| do read these discussion boards? I hope they do!!!

  • HT1222 My laptop was stolen and i am trying to recover my old itunes account

    My laptop was stolen and i am trying to recover my old itunes account?

    Thanks for sharing.
    Did you have a specific problem?  Do you want help?  If so, tell us exactly what is happening and what error messages are occurring, we're not mind readers.

  • HT1689 my ipod was stolen and i am trying to find out serial number on my accout

    My ipod was stolen and i am tryingt o find out the serial number on my itunes account. Is this available

    Finding serial number for a device - https://discussions.apple.com/message/18246553 - from box or backup file, not from Apple.
    http://support.apple.com/kb/HT2526 - If you registered a device you can use My Support Profile to find a list of serial numbers that have been purchased or registered with your Apple ID.
    My Support Profile - https://supportprofile.apple.com/MySupportProfile.do
    Maybe a way to find serial number after a device is no longer in your possession - https://discussions.apple.com/message/19524469 - "The easiest way to find your serial number is this Open Itunes...click help... run diagnostics.....(tick or untick as necessary) so that you just have ticked the last two, device connectivity and device sync. run these tests. it will say no ipod/ipad found but will give results of test....scroll down to bottom of results... here you will find the serial number of your last attached devices."

  • My old mac was stolen and i'm trying to get my website on my new macbookpro

    My old mac was stolen and i bought a new macbook pro,
    I'm trying to get my website on this new computer from godaddy.com.
    I've tried using filezilla and downloaded the entire website file but havent managed to be able to open it up with iWeb yet. Anyone know how i can download my currently running website from the internet to continue working on it using iWeb with my new mac?

    Welcome to the Apple Discussions. If you don't have a backup copy of the Domain.sites2 file that iWeb uses to create the site you'll have to start over from scratch. However, Chapter 2.3 on the iWeb FAQ.org site has tips on using some of the existing image, audio and/or video files in the published site in the reconstruction of the site.
    Happy Holidays

  • I was playing my ipod  when it shut down and i cant make it turn on again. It was yesterday and i even tried charging it., i was playing my ipod  when it shut down and i cant make it turn on again. It was yesterday and i even tried charging it.

    I was playing yesterday my 4th gen ipod touch when it suddenly turned off. I tried to turn it on again but it stays off... i also tried charging it and it still doesnt even show a light. WHY?? i had so much info on that thing

    thank you guys it freaking helped me!!
    i was listening to GLEE and it shutdown
    but it was charged and all and i tried holding both down but thanx SOO MUCH!!
    much apprieciated to you alll!

  • I Yogi is a complete scam. I have had a problem with my mIPhone 4s and somehow diverted to IYogi who assured me that they could fix the problem if i paid £65.00 The problem was fixed and one month later I received a "No Service" message on my phone. I

    I Yogi is a complete SCAM having already paid for 2 help calls £60 approx I once again had NO SERVICE on my IPhone 4s and was told by their operative that if I paid another £40 for one year cover this would include an upgrade to the IPhone mid August or September. I refused to agree to this and said I would report them to the National Press. Suddenly.... my service was restored. I now want my initial payment refunded and will stop at nothing to get this back.
    What is happening here is this: Once you agree to pay for 2 help calls they then at some point disconnect your service and try to get money from you to reconnect. I will report this SCAM to the Media and hope that this SCAM CAN BE STOPPED.
    I also blame Apple for allowing this to happen in the first place because when trying to access APPLE HELPLINE you are diverted to this I YOGI crowd of thieves and money grabbers who are operating under the mantle of Apple.
    BEWARE.....ONCE YOU AGREE TO PAY YHEIR INITIAL FIRST 2 HELPS THEY THEN AT SOME POINT CAUSE YOU ANOTHER PROBLEM IN AN ATTEMPT TO GET MORE MONEY FROM YOU..... beware of this I YOGI THEY ARE SWINDLERS !!!!!

    TheArtificialNerd wrote:
    I can say 100% that the AppleCare phone number only redirects to other AppleCare groups.
    ALL of them Apple corporate or Apple Authorized partners.

  • During migration of Firefox from Vista computer to windows 7 computer, personal profile was lost and I don't know how to restore it - Profile wizard finds no pr

    When data were transferred from my vista computer to the new windows 7 computer, the profile on firefox was not transferred to the new computer. Because the profile wasn't transferred, profile manager or just typing in the default location don't give a result. All the info on the mozilla web site that I've looked at dealing with profiles don't seem to work. I can probably retrieve and make a copy of the profile from the old computer, but how do I find out where to put it on the new one??

    Problem is SOLVED

  • My ipod touch was fine and then I tried to put it on, but it didn't. What do i do?

    hello, I was using my ipod touch and locked it to go get a drink. When I came back, I couldnt even turn it on! Is my ipod broken? Or is there any way I can fix it?

    Try the troubleshooting here:
    iPod touch: Hardware troubleshooting

  • My contacts and profile was shift and use to my sister and i have her contacts and profile.

    hi i have this problem. i dont know how it happened that im having the my sister profile and contacts on my z10 and shes having mine in her mobile. i cant re install either the bbm on z10. can sombody help me about this???

    I am no expert, but it sounds like you have her sim card installed in your phone, and she has your sim card installed in her phone. Only explanation I can think of.

  • HT1414 I charged my phone with 100% and when i woke up in morning , it was off and when i tried it on my phone it shown me that it is 0 % bettry . i have software version 7.0.3 on iPhone 4s . what should i do to resolve this problem ?

    I am using iphone 4s and i got a problem after update ios 7.0.3 .It is regularly swithced off after charge and shows 0 percent bettry . i charged my phone last night and when i woke up in moring , i got my phone switched off and and when put it on charging it shown me its starting from 1 % . please tell me how can i resolve this problem .

    Whoa mate; what's the original issue.... :O What is iTunes NOT doing for your device.

  • What if my laptop was stolen, and I'm trying to sync my mini?

    I have a ton of books on my mini, and I cannot sync with the new library on my computer. It tells me that I have to erase all the content on the mini in favor of the computer. Is there any way to get these books off?
    ipod mini Windows XP

    this is one option
    http://docs.info.apple.com/article.html?artnum=300173
    or
    you can download third party software which will allow you to take the information on your ipod and transfer it onto your computer..
    you can find this software at www.versiontracker.com
    KoDor

  • HT1329 My laptop was stolen and I am trying to transfer the music from my iPad

    I want to transfer the music from my iPad, most of which is not purchased from iTunes, to the new computer (PC) but getting a message stating that the device is syched to another computer.  Anyway to make my new computer the home computer and transfer the non-iTunes music without erasing the content of the iPad?

    iTunes Store: Transferring purchases from your iOS device or iPod to a computer - http://support.apple.com/kb/HT1848 - only media purchased from iTunes Store
    Sync transfer is one way, computer to device, matching the device content to the content on the computer (except purchased content as mentioned above).  For transferring other items from an i-device to a computer you have to use third party commercial software. Examples (check the web for others; this is not an exhaustive listing, nor do I have any idea if they are any good):
    - Senuti - http://www.fadingred.com/senuti/
    - Phoneview - http://www.ecamm.com/mac/phoneview/
    - MusicRescue - http://www.kennettnet.co.uk/products/musicrescue/ - Mac & Windows
    - Sharepod (free) - http://download.cnet.com/SharePod/3000-2141_4-10794489.html?tag=mncol;2 - Windows
    - Snowfox/iMedia - http://www.mac-videoconverter.com/imedia-transfer-mac.html - Mac & PC
    - Post by Zevoneer: iPod media recovery options - https://discussions.apple.com/message/11624224 - this is an older post and many of the links are also for old posts, so bear this in mind when reading them.
    Syncing to a "New" Computer or replacing a "crashed" Hard Drive - https://discussions.apple.com/docs/DOC-3141
    Do not regard your i-device as a reliable unique storage for your media. It is not a backup device and everything is structured around you maintaining a backup of your media on a computer backup.

Maybe you are looking for

  • Trying to create a customized PDF form to save and re-use

    Hi, New to this program. I have created a "fill-in-the-blanks" PDF form and have saved it. But now when I print the form, there are characters in the beginning of the text boxes.  They are T and E. I don't understand why she characters are there and

  • Selection Screen Validation for Character

    Hi All My query is regarding the selection screen validation for character. I am using a Select-option: S_ORDER FOR VBAK-VBELN OBLIGATORY. and S_order should be only having the numeric field. Please help how to validate it for character field.

  • Safari file association

    After getting an downloading assignment from a teacher that couldnt be read I asked the computer to open it with any program when the prompt came up. Now when I try to open the lecture slide downloades in my class it comes up as gibberish. How do I f

  • Button problem, can't get the bubble to...

    I can't get my button to delete the text in a text area. My code: package events; import java.awt.*; import java.awt.event.MouseListener; import java.awt.event.MouseEvent; import java.awt.event.WindowEvent; import javax.swing.*; public class Main ext

  • Post form parameters to a new URL

    Hello, I want to create a jsf page which has a form that posts data to a payment system, example URL: https://<<<mypayserver>>>/newpayment . However, jsf uses postbacks to post form's data to itself and use the navigation model to navigate through pa