Upgrading from Java 1.4 to Java 1.5

Hi.
I upgraded my JSDK/JRE from 1.4 to 1.5. All modules in my application work well except for the reports. Below is the method that is being called by print, next to it is the error I am encountering. Please, anyone tell me what's wrong with my code? I am using JasperReport 3.0, Java 1.5 and Eclipse 3.0.
Regards,
CODE:
private void doPrint(){
          String SQLQuery = "";
          String reportpath1 = ".\\src\\report\\ReportJRE.xml";
          try {
               ConnectDB con = new ConnectDB();               
               //JasperDesign jasperDesign1 = JasperManager.loadXmlDesign( reportpath1 );
               JasperDesign jasperDesign1 = JRXmlLoader.load( reportpath1 );
               //JasperReport jasperReport1 = JasperManager.compileReport(jasperDesign1);
               JasperReport jasperReport1 = JasperCompileManager.compileReport(jasperDesign1);
               Map parameters1 = new HashMap();
               SQLQuery = "SELECT * FROM cdts_sys_usr_acc order by grp_id,usr_name";
               parameters1.put("SQLQuery", SQLQuery);
               JasperPrint jasperPrint1 = JasperFillManager.fillReport(jasperReport1, parameters1, con.connection);
               new ReportViewer(jasperPrint1, "User List");
          } catch (ClassNotFoundException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (SQLException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
          } catch (JRException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
This is the error I am encountering:
net.sf.jasperreports.engine.JRException: Errors were encountered when compiling report expressions class file:
C:\eclipse\workspace\ReportJRE\ReportJRE_1214472907404_571745.java:18: cannot access java.lang.Object
bad class file: C:\Program Files\Java\jre1.5.0_15\lib\rt.jar(java/lang/Object.class)
class file has wrong version 49.0, should be 48.0
Please remove or make sure it appears in the correct subdirectory of the classpath.
public class ReportJRE_1214472907404_571745 extends JREvaluator
^
1 error
     at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:193)
     at net.sf.jasperreports.engine.JasperCompileManager.compileReport(JasperCompileManager.java:219)
     at src.SampleRPT.doPrint(SampleRPT.java:125)
     at src.SampleRPT.access$0(SampleRPT.java:116)
     at src.SampleRPT$1.actionPerformed(SampleRPT.java:88)
     at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
     at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
     at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
     at java.awt.Component.processMouseEvent(Unknown Source)
     at javax.swing.JComponent.processMouseEvent(Unknown Source)
     at java.awt.Component.processEvent(Unknown Source)
     at java.awt.Container.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at javax.swing.plaf.basic.BasicInternalFrameUI$Handler.retargetMouseEvent(Unknown Source)
     at javax.swing.plaf.basic.BasicInternalFrameUI$Handler.forwardMouseEvent(Unknown Source)
     at javax.swing.plaf.basic.BasicInternalFrameUI$Handler.mouseReleased(Unknown Source)
     at java.awt.Component.processMouseEvent(Unknown Source)
     at javax.swing.JComponent.processMouseEvent(Unknown Source)
     at java.awt.Component.processEvent(Unknown Source)
     at java.awt.Container.processEvent(Unknown Source)
     at java.awt.Component.dispatchEventImpl(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
     at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
     at java.awt.Container.dispatchEventImpl(Unknown Source)
     at java.awt.Window.dispatchEventImpl(Unknown Source)
     at java.awt.Component.dispatchEvent(Unknown Source)
     at java.awt.EventQueue.dispatchEvent(Unknown Source)
     at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
     at java.awt.EventDispatchThread.run(Unknown Source)

[ JasperReports 3.0.0|http://www.jasperforge.org/index.php?option=com_joomlaboard&Itemid=&func=view&catid=9&id=42461#42461]
Looks like something is still using SDK 1.4 or eclipse is set to compile to 1.4 compliance.

Similar Messages

  • Failure when Upgrading from Java 1.2 to Java 1.3

    After upgrading from Java 1.2 to Java 1.3 I get an "Internal Server Error" when trying to run even the simplest jsp.
    Java 1.3 runs successfully in other cases such as compiling and running from the command prompt or from JDeveloper.
    I have the following configuration on my server:
    - Windows 2000
    - Oracle 8.1.7
    - Apache 1.3
    - Tomcat 3.2.3.
    I'm testing the jsp by using a client that has:
    - Windows 2000
    - Internet Explorer
    Any help would be appreciated.

    I get this even with the new 1.4 beta 2 - currently
    reverted back to original

  • Upgrade from java 1.4_02 to java 1.5 beta (verify error)

    I cant run any of my main classes, without specifying the -noverify option...
    any one know why??
    I was getting an Verification Error..
    java.lang.VerifyError: (class: com/gui/MbsGuiFrame, method: <init> signature: ()V) Incompatible object argument for function call
         at com.Mbs.<init>(Mbs.java:35)
         at com.Mbs.main(Mbs.java:74)
    Exception in thread "main"
    and same thing for other classes with main's. ???

    Hi Folks,
    I am trying to upgrade my project from "java 1.4.2_03-b02" to "java 1.5.0-beta2-b51". I run my pre-compiled project by using a "runProject.bat" file and use "java" command of "java 1.5.0-beta2-b51" then project is running fine. I am facing two problems as below:
    1- When browsing for some location by using JFileChooser dialog of my project, I get warning messages with title "Problem with Shortcut" and message is "The drive or network connection that the shortcut 'test.txt.lnk' refers to is unavailable......". This message appears with different file shortcut names one by one. HOW CAN I GET RID OF IT?
    2- I am using "JBuilder 7" to compile/re-build my project. If I configure "java 1.5.0-beta2-b51" to compile/re-build my project then compiler gives error message "method: main signature: ([Ljava/lang/String;)V) Incompatible object argument for function call" and terminates compiling. WHAT AM I MISSING AND WHAT SHOULD I DO/READ?
    Can you please guide me to resolve these all or anyone?
    Regards,
    Pakigem
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • BRF+ Upgrade from JAVA stack to ABAP stack. Tutorials Required.(Beginer)

    Dear All,
    We are Proceeding with and Upgrade on our JAVA based Stack to ABAP Stack of EHP6.
    The new System extensivly uses BRF+ Techonolgy and SAP Workflows.
    Could you please Provide certain Basic links to Start of with it? As of now its totally new CONCEPT to start with in coming time for us.
    We have skill set avilable in ABAP developemnt,PI,Worklfows and other ABAP object but not so far in BRF+ concept.
    If any Tutorails are avaialble then please share across.
    PS: I have not been able to Procure " SAP Press Book Availability (BRFplus - Business Rule Management for ABAP Applications)"
    Thanks a lot.
    Regards
    Vishal

    Read the papers etc on the Business Rule Framework plus.
    Especially take a look at the online training. But be careful with papers for NW 701. This is an old version and you may find stuff in there that is not relevant for you as you are on a much higher release.
    There is also a paper that explains how BRFplus can be used in combination with SAP Business Workflow.
    Why can't you get the BRFplus book? On the SAP Press page there is also an online version´

  • Upgrade from Java 2 sdk 1.4.2_05 to Java sdk 6.0

    Hello. I am currently researching the effort involed in upgrading our servers from 1.4.2_05 to 6.0.
    Can I just install 6.0 on the servers and expect the apps compiled under 1.4 to run, or will I need to recompile all the apps under 6.0?
    Thanks in advance.

    Either result is possible. Either try it (with, or without recompiling) or research the changes between versions (documented in each version's release documentation.)
    If program code is no longer valid, it may need rewriting.

  • Want to upgrade from java 1.1 to 1.3_08

    Hi,
    I Currently have java version 1.1, but in order to run web services I need to have java 1.3_08. How do uninstall the old one and install the newer version on linux mandrake 9.0.I'm a real novice to computers so I need really basic step by step instructions. I have it downloaded the major problem is getting rid of the old and getting the new to run.
    Thanks ever so much.
    Please help your time will be eternally apppreciated

    Hello
    You can install several j2sdk all have own directory
    on redhat /usr/java/j2sdk1.1 and j2sdk1.4_08
    so you just correct our path to point to latter one
    and delete or keep the old one.
    Peter

  • Problem upgrading from 1.4.1.02 to 1.4.2 with WInXP

    I wish to upgrade from Java 1.4.1.02 to 1.4.2 ((Please ignore my previous garbled posting, and read this instead).
    After downloading the Java SDK 1.4.2 Netbeans 3.5 co-bundle I tried to uninstall the old Java SDK 1.4.1.02 from Windows XP professional.
    This was entirely unsuccessful (see later for details), so I installed the cobundle anyway.
    The co-bundle installed and works OK, but it did not update the Java plugin (found in the control panel). I really want the new plugin working.
    I believe that I need to manually uninstall 1.4.1.02, including the Java plugin.
    Will I need to uninstall + reinstall 1.4.2 to get the most up to date plugin? And if so, should I do it before manually uninstaling 1.02?
    How do I do a manual uninstallation in windows XP?
    Details of Remove Program woes:
    In the windows Add/Remove programs panel there were 2 entries for the JRE 1.4.1.02. I managed to run the uninstallation of the first 1.4.1.02 JRE in the list, but the other failed. When I rebooted, both were still listed on the Add/Remove Programs. Running uninstallation again produced the same results. One uninstalls, one fails, but both remain on the Programs list. I have tried all combinations: Uninstall 1st by itself, 2nd by itself, both, both in the other order, neither. Same result every time.
    I need to remove both of these, and I need to uninstall the Java Plugin (as I want to upgrade the plugin to 1.4.2)

    Thanks for the information, but my goal was to replace the horrible java 1.4.1.x plugin (see Windows Control panel) with the supposedly improved 1.4.2 version.
    I ended up deleting every file and registry key with java 1.4.1.02, which let me install the updated plugin successfully - but using the sdk install, not the netbeans co-bundle.
    The icon for the old plug-in is still there in control panel (but is not attached to any program). Still haven't worked out how to get rid of it - I figure if it's not in the registry, I'm not likely to ever work it out myself.

  • Problem with Java Script after upgrade from BW 3.5 to BI7

    Dear Colleagues,
    We're facing the issue with Java Script after upgrade of BW 3.5 to BI7.
    Just after update we checked the basic functionality and it occured that some of web templates that use Java Script don't work. They generate seelction screen, but after selection the screen becomes blank without any error messages.
    We're currently stucked since web templates weren't converted to BI7 version so they should work exactly as before the upgrade.
    We compared the Java code with other environment that was not upgraded - it's perfectly the same.
    The only explanation that comes to my mind is that some Java Script settings on the server level were changed during the upgrade but I have no idea where I can check that.
    Thanks in advance for any suggestions,
    Andrzej Bobula

    Hi Deepu,
    Thanks, it was great to read your reply and then few minutes later talk to you live on SDN Day!
    Unfortunately, http cache clean-up did not help. But there is another funny thing I found - for exactly the same 3.5 webtemplate html code returned from WebAS 3.5 was different then from 7.0.
    Unfortunately, this editor does not allow to paste complete code, even in CODE brackets, but here are main differences:
    <b>3.5</b>
       if (navigator.appName == "Microsoft Internet Explorer")
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=1&REQUEST_NO=1&CMD=GET_TEMPLATE"
    name="Content">
    and
    <b>7.0</b>
       if (navigator.appName.indexOf("Microsoft Internet Explorer")!=-1)
    <frame src="/sap/bw/BEx?SAP-LANGUAGE=E&PAGENO=8&REQUEST_NO=0&CMD=GET_TEMPLATE"
    name="Content" 0nLoad="javascript:loadTitle()">
    (I intentionaly put 0 i/o o in 0nLoad, otherwise Forum's editor does not accept the text.
    How about SAP's claim that technical upgrade from 3.x to 7.0 changes nothing?
    Regards,
    Vitaliy

  • I'm running 10.5.8 on a MacBook Pro and need to update to Java 7 in order to take a software assessment test for a potential job. The Java app will only upgrade from 10.6 or higher. What can I do?

    I'm running 10.5.8 on a MacBook Pro and need to update to Java 7 to take software assessment tests online for a potential job. What can I do?

    Apple Java for Mac OS X 10.5 Update 10
    Apple Java for Mac OS X 10.6 Update 17
    Apple Java 2013-005
    I would suggest you upgrade your computer's OS minimally to Snow Leopard 10.6.8.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mountain Lion if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading from Snow Leopard to Lion or Mountain Lion
    You can upgrade to Mountain Lion from Lion or directly from Snow Leopard. Mountain Lion can be downloaded from the Mac App Store for $19.99.
    If you sign into the App Store and try to purchase Mountain Lion but the App Store says your computer is not compatible then you may still be able to upgrade to Lion per the following information.
    A. Upgrading to Mountain Lion
    To upgrade to Mountain Lion you must have Snow Leopard 10.6.8 or Lion installed. Purchase and download Mountain Lion from the App Store. Sign in using your Apple ID. Mountain Lion is $19.99 plus tax. The file is quite large, over 4 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
         OS X Mountain Lion - System Requirements
           Macs that can be upgraded to OS X Mountain Lion
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
         For a complete How-To introduction from Apple see Upgrade to OS X Mountain Lion.
    B. Upgrading to Lion
    If your computer does not meet the requirements to install Mountain Lion, it may still meet the requirements to install Lion.
    You can purchase Lion by contacting Customer Service: Contacting Apple for support and service - this includes international calling numbers. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.

  • Upgrade from 46c to ECC6.0 : Java or Java-AddIn ?

    Hello
    Can you explain me what is the difference between Java and Java-AddIn as proposed in evaluation phsae of an upgrade from 46c to ECC6.0?
    Thank You.

    Hi Alain,
    But if we implement a JavaAddin solution today, do you think it will be possible to create a Java instance later to create a Portal solution ?
    If you implement a java addin today then you can use later for portal solution.
    Regards,
    Anil

  • 10.1.3.3 setup Java problem when upgrading from 10.1.3.2

    Hi guys!
    I have a problem with upgrade from 10.1.3.2 to 10.1.3.3 on Windows
    The documentation is old what you can download! So I cannot find anything.
    The Infrastructure Installation and Configuration Guide is for 10.1.3.2.1 and from april 2007
    The Infrastructure Upgrade Guide goes from Siebel to OBI and from december 2006
    The problem is
    I have a fully functional 10.1.3.2 with all Java and everything.
    When I start the server install I get the following error in a small window:
    Java.lang.NoClassDefFoundError: run Exeption in thread "main"
    Where should I look? Should I uninstall the previous version?
    Thanx,
    Istvan

    I had the same problem when I did the upgrade the very same day of the release. And the solution for me was to login using my battery. For some reason, GDM won't let me in if I'm plugged (I know it sounds crazy, but it works for me)
    Best of luck

  • Do we need SSL recertification if we upgrade from j2sdk 1.4.2 to Java 1.5.0

    Hi!!
    I've upgraded my Java from 1.4 to Java 5. My application runs on JBoss 4 and Tomcat 5.5. Initially J2SDK 1.4.2_03 using and now changed to J2SDK 1.5.0_17. Can I use the same SSL certificate that I'm using with old environment (jdk 1.4, JBoss 4 and Tomcat 5.5) with the new environment (Java 5, JBoss 4 and Tomcat 5.5)?
    Thanks,
    Jithesh

    You only need a new certificate when the old one expires. Changing JDKs has nothing to do with it.

  • JAVA Upgrade from CRM 5.0 to CRM 2007

    Hi,
    I need help.  I'm trying to upgrade our CRM 5.0 to CMR2007 and encountered a problem during the JAVA Prepare Phase.
    Here is the error I received.
    The execution of  ended in error.                                                                               
    Could not load class com.sap.sdt.j2ee.phases.PhaseTypeDetermineSystemId.  
    com.sap.sdt.util.misc.LoaderException: Class com.sap.sdt.j2ee.phases.PhaseTypeDetermineSystemId not found using classpath.
    com.sap.sdt.ucp.pce.ctrl.PhaseLoaderException                          
    Could not load class com.sap.sdt.j2ee.phases.PhaseTypeDetermineSystemId.
    DETERMINE_SIDS                                                         
    INIT                                                                   
    PREPARE                                                                
    NetWeaver Upgrade                                                      
    SAPJup                                                                 
    Java Upgrade  
    Thanks,

    Hi Ramon,
    In subdirectory trc you should find a file SAPJup.TRC containing some more details on the exception that happened. Add the stack if you find it there.
    PhaseTypeDetermineSystemId is the first phase class to be loaded from package lib/sdt_j2ee.jar. So, you should check if this jar is around.
    Regards,
    Thomas

  • UCES Upgrade from 6.04 to 6.35 - Suggestions for tool to merge java customized code

    We are planning to upgrade from UCES 6.04 to UCES 6.35. As the customized Java code will be lost after upgrade, I will need to merge the customized code with UCES 6.35 code.
    Do you know any good tool which will be useful to merge customized java code with UCES 6.35 code?

    Hi Siva,
    it will not be lost if you patch the system correctly, but after patching you will have to use the conflict manager to process every single conflict manually - painful.
    I assume you did directly modify the SAP standard files instead of seperating any code changes by maintaining it within a custom SC like "myCustomer.co.uk-UCES" instead of "sap.com-UCES". This custom SC includes a DC for war (JSP code), java (obviously all java coding) and a EAR file (to create your custom application.
    I normally would setup a project and directly create custom SCs. Almost in the same way of how UCES does extend BD, i would apply the same logic and extend UCES with my own SC. I highly recommend to do that approach.
    The best would be to compare your current version using the vanilla SAP code of 6.04. Every difference you find you should isolate. Move them into your own SC. Once you have seperated your code, you can always patch the SAP standard and your custom coding gets merged into the vanilla SAP. In the end you get your own custom EAR version right next to the vanilla EAR version.
    Hope that helps a bit

  • Upgrade from SCM 5.0 to SCM 7.0 without Java Stack

    Hello,
    My query is we have a SCM 5.0 system which has a java stack in it. But now we are going to upgrade it to SCM 7.0. - Is SCM 7.0 has a java stack ?
    If it doesn't have , can we upgrade SCM 5.0 to SCM 7.0 without Java Stack ? Is it posssible to upgrade without Java Stack or not ?
    Is it possible that we can convert Java Stuff into ABAP web dyn pro ? If yes , how shall we can achieve it ? If not, how shall we proceed in an alternate way ?
    Thanks for your help in advance.
    Madhu

    Hi Manoj,
    Yes the system is running okay and I can login without problem. The question I have is that the upgrade program started with default system number 00 loaded, where I don't know how to change it to match our system setting. Our system is currently having system number 01.
    Thanks,
    Eric

Maybe you are looking for

  • IPhone 5 and iPad v4 not detected in devices over wifi

    A week ago my iPhone and iPad were both linked with my desktop for wifi sync and the Remote app.  A few days ago they both stopped appearing in iTunes unless they are physically connected and my desktop's library no longer appear in the Remote app fo

  • Why is there no Apple Pay option on my iPhone 6 with iOS 8.1 update?

    I have iOS 8.1 on my iPhone 6, but there is no option to set up Apple Pay. I have checked the settings, and have checked passport itself. I have search Spotlight on the iPhone, nothing comes up. I live in Toronto, Canada. Is it just because of where

  • How to use TeleCheck service with coldfusion page

    hi, I m new to coldfusion want to use TeleCheck service on coldfusion page. can any one provide me technical support in this regards with thanks Shane

  • CS4 Installation files on desktop

    CS4 successfully installed for me (Yay!!). But, because I've never been a Macaroni, putting files on the desktop just isn't part of my work habits. So, now I've got all of these CS4 installation files on my desktop. Now that CS4 is in da house, can I

  • Export Grayscale PDF from a color InDesign doc

    A much needed feature is a setting in the Export as PDF to export a color ID document as grayscale. I, like many designers I'm sure, often am asked to create a black and white or grayscale version PDF of an existing document. Right now I have to crea