Is it a bug in JDK1.3?

Here's a simple program that I compiled and executed by using JDK1.3. The program had worked all very well as long as I typed in 'C' , 'P', 'N', 'A', 'b', or other single characters. Just by curiosity, I kept keying 'c' for 6 or 7 times and of course the computer kept telling me "Entry must be C or P or N!". After that, when I key in 'C', 'P', or 'N' again, strange things happened. I was still confronted with the same message as if I had keyed in invalid characters. The situation lasted until after I typed the command java ChooseManager. Then I got the correct response for the last 'C', 'P' or 'N' that I had entered. Is it a bug in JDK1.3?
Here is the program:
public class ChooseManager
static final double CORP_RATE = 75.99;
static final double PRI_RATE = 47.99;
static final double NON_PROF_RATE = 40.99;
public static void main(String[] args) throws Exception
     char eventType;
     Chap4Event anEvent;
     System.out.println("Enter type of event you are scheduling");
     System.out.println("C for a corporate event");
     System.out.println("P for a private event");
     System.out.println("N for non-profit event");
     eventType=(char)System.in.read();
     while(eventType != 'C' && eventType != 'P' && eventType != 'N')
          System.in.read(); System.in.read();
          System.out.println("Entry must be C or P or N!");
          eventType = (char)System.in.read();
     System.out.print("The manager for this event will be ");
     switch (eventType)
          case 'C':
          System.out.println("Dustin Britt");
          anEvent = new Chap4Event(eventType, CORP_RATE);
          break;
          case 'P':
          System.out.println("Carmen Lindsey");
          anEvent = new Chap4Event(eventType, PRI_RATE);
          break;
          default:
          System.out.println("Robin Armanetti");
          anEvent = new Chap4Event(eventType, NON_PROF_RATE);
          break;
     System.out.println("Event type is " + anEvent.getEventType());
     System.out.println("Minimum rate charged is $" + anEvent.getEventMinRate());

HELP, jsalonen. Something wrong with Readerbuffer. Why complier state can't resolve class:reader, InputStreamReader and BufferedReader ? Must I input something first?
public class PetAdvice
     public static void main(String[] args) throws Exception
          char resiType;
          char hour;
          System.out.println("Please cateory your residence type");
          System.out.println("'A' for apartment;");
          System.out.println("'H' for house;");
          System.out.println("'D' for dormiory;");
          Reader resiType = new InputStreamReader(System.in);
          BufferedReader in = new BufferedReader(reader);
          String inputLine = in.readLine();
          while(!(inputLine.equals("A") |
               inputLine.equals("H") |
               inputLine.equals("D")))
               {   System.out.println("entry: "+inputLine+" Entry must be A or H or D");
          inputLine = in.readLine();
          System.out.println("Please specify the average hours you will spend at home.");
          System.out.println("A) 18 or more;");
          System.out.println("B) 10 to 17;");
          System.out.println("C) 8 to 9;");
System.out.println("D) 6 to 7;");
          System.out.println("E) 0 to 5;");
          hour = (char)System.in.read();
          while (hour != 'A' && hour != 'B' && hour != 'C' && hour != 'D' && hour != 'E')
System.in.read(); System.in.read();
               System.out.println("Invalid input, pls choose again.");
               resiType = (char)System.in.read();
if (resiType == 'H' && hour == 'A')
System.out.println("Our recommendation is Pot bellied pig");
          else if (resiType == 'H' && (hour == 'B' || hour == 'C'))
               System.out.println("Our recommendation is Dog.");
          else if (resiType == 'H' && (hour == 'D' || hour == 'E'))
          System.out.println("Our recommendation is Snake.");
          else if (resiType == 'A' && (hour == 'A' || hour == 'B' ))
          System.out.println("Our recommendation is Cat.");
          else if (resiType == 'A' && (hour =='C' || hour == 'D' || hour == 'E'))
          System.out.println("Our recommendation is Hamster.");
          else if (resiType == 'D' && (hour == 'D' || hour == 'C' || hour == 'B' || hour == 'A'))
          System.out.println("Our recommendation is Fish.");
          else if (resiType == 'D' && hour == 'E')
          System.out.println("Our recommendation is Ant Farm.");
          else
               System.out.println("Sorry, no recommendation currently.");

Similar Messages

  • Is this a bug in JDK1.4.1 regarding JDesktopPane

    Is this a bug in JDK1.4.1 regarding JDesktopPane, when i drag my JInternalFrame in JDesktopPane it becomes little bit sticky and flickery, but when i run same application with JDK1.4.0, works fine, any idea/comments why ?

    Is this a bug in JDK1.4.1 regarding JDesktopPane, when i drag my JInternalFrame in JDesktopPane it becomes little bit sticky and flickery, but when i run same application with JDK1.4.0, works fine, any idea/comments why ?

  • How to fix the bug of JDK1.3?

    i installed Tomcat 3.2.3 as Windows NT service successfully. but when i logged out and logged in again, the tomcat service stopped! you know, i've set the service as auto-start. so i used jdk1.2.2 instead of jdk1.3, and it worked well.
    but i still want to use jdk1.3. how to solve the problem? i haven't tried it with jdk1.4 or tomcat4.0. i wonder whether tomcat4.0 can work with IIS.
    btw, i cannot understand the bug report on http://developer.java.sun.com/developer/bugParade/bugs/4323062.html well. can you help me out?
    thanks so much!
    freeado

    What you need to do is use JDK 1.3.1 instead, which has a fix for this issue. Then, add the flag -Xrs to your command line to stop it being terminated by logoff.

  • Does JOptionPane have a bug in jdk1.4?

    Sorry to post this again, but last time had posted it under a different title/topic. The following piece of code works fine with jdk1.3, but HANGS with jdk1.4-import java.awt.event.*;
    import javax.swing.*;
    public class TestDriver extends JPanel {
       JTextField textField1, textField2;
       MyInputVerifier inputVerifier;
       public TestDriver() {
          initPanel();
       private void initPanel() {
          textField1 = new JTextField(10);
          textField1.setName("Test");
          textField2 = new JTextField(10);
          this.add(textField1);
          this.add(textField2);
          inputVerifier = new MyInputVerifier();
          textField1.setInputVerifier(inputVerifier);
       public static void main(String[] args) {
          JFrame frame = new JFrame();
          frame.getContentPane().add(new TestDriver());
          frame.setSize(200, 100);
          frame.setVisible(true);
          frame.addWindowListener(new WindowAdapter() {
             public void windowClosing(WindowEvent e) {
                System.exit(0);
       class MyInputVerifier extends InputVerifier {
          public boolean verify(JComponent comp) {
             //only when the user enters "Test" in the first text field, should the focus be
             //transferred to the next text field
             if(comp.getName().equals("Test")) {
                String text = ((JTextField)comp).getText();
                if(("Test").equals(text)) {
                   return true;
                } else {
                   showError();
                   return false;
             return true;
       private void showError() {
          //this works fine with both jdk1.3 and jdk1.4
          System.out.println("Wrong!\n Enter \"Test\"");
          //this is where the program hangs when run with jdk1.4
          JOptionPane.showMessageDialog(this, "Wrong!\n Enter \"Test\"");
    }Can anyone please confirm that it really doesn't work with jdk1.4? Also please let me know if anything is wrong with the program.
    I searched in the bug database and found that a few bugs on similar topics have already been reported. But I didn't find one (which is open) particularly on this topic. Is anyone aware of a bug on this topic already reported? If so, could you please post the appropriate link here.
    Thanks a lot.

    Thanks for the reply. The problem is not related to JOptionPane. It's related to verify method of InputVerifier. First of all, as per the jdk1.4 Javadocs, the verify method is not allowed to have side effects. So calling JOptionPane.showMessageDialog() from within verify is not a correct implementation. But the javadocs say that shouldYieldFocus of InputVerifier is allowed to have side effects. So basically the shouldYieldFocus method needs to be implemented and it should pou up a dialog when the input is incorrect.
    BUT, it doesn't work either. It has a bug (4532517). Here is the link to the related bug report-http://developer.java.sun.com/developer/bugParade/bugs/4532517.html
    A workaround has been given there and after using that, the program works fine.
    I have no idea, why it works fine with 1.3. As you said, due to changes in the Focus mechanism in jdk1.4, this problem has arisen.
    Thanks.

  • Is That a bug of JDK1.4 beta3: too many paint times!!!!!

    Try to run the following program, ( u can use your img instead of mine)
    //package com.zhaoyoubing.java2d;
    import java.awt.*;
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import java.awt.image.*;
    import java.net.*;
    public class JavaImgTest extends JFrame {
    Image img;
    int it = 0;
    static String title = "Sooooooooo many paints ";
    public JavaImgTest() {
    super(title);
    setSize(300, 200);
    setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    img = loadImage("http", "www.cad.zju.edu.cn", "/home/zhaoyb/yi-s.jpg");
    public void paint(Graphics g) {
    it++;
    setTitle(title + it);
    System.out.println(it);
    ((Graphics2D) g).drawImage(img, 10, 25, this);
    // this function from billday.com
    Image loadImage(String protocol, String machine, String file) {
    //Create the URL object representing our image bits.
    URL imageURL = null;
    try {
    imageURL = new URL(protocol,machine,file);
    } catch (MalformedURLException e) {
    System.out.println("Please verify your imageURL.");
    System.exit(1);
    //Now that we have a reference to the bits, let's create and
    //return the actual Image object to store them.
    Image myImage = getToolkit().getImage(imageURL);
    return myImage;
    public static void main(String[] args) {
    JavaImgTest img1 = new JavaImgTest();
    img1.show();
    following r my test paint times:
    1.4 beta3
    linux 66 84 48 90 75
    win2000 170 170 170 170 170
    1.3.1
    linux 3 3 3 3 3
    win2000 2 2 2 2 2
    1.2.2
    linux 5 6 6 4 3
    win2000 3 3 4 3 2
    I guess it should be a bug!!!

    I am not sure but shouldn't this line be:
    img = loadImage("http", "www.cad.zju.edu.cn", "/home/zhaoyb/yi-s.jpg");this:
    img = loadImage("http://", "www.cad.zju.edu.cn", "/home/zhaoyb/yi-s.jpg");

  • Bug in JDK1.4.x Calendar ???

    Hi,
    I have the below function for calculating the days between two dates. Its working fine in JDK 1.3.x version resulting correct values and in JDK1.4.2_04 version its giving wrong values. For any dates that overlap with Daylight savings Start and End dates the results are off by 1 day.
    Ex:
    04/02/2005 and 04/04/2005 (MM/DD/YYYY) .The result shd be 2 but its giving as 1. In JDK 1.3.x version it is giving 2.
    Its a production issues with high priority need help .....
    Thanks you all,
    public static long diffTwoDays(Timestamp tsStart, Timestamp tsEnd) throws Exception
    String methodName = "diffTwoDays";
    String strStartDate=null;
    String strEndDate=null;
    long lStart=0;
    long lEnd=0;
    long numDays=0;
    try
    strStartDate=tsStart.toString();
    Calendar cal1 = Calendar.getInstance();
    cal1.set(Calendar.YEAR,Integer.parseInt(strStartDate.substring(0,4)));
    cal1.set(Calendar.MONTH,(Integer.parseInt(strStartDate.substring(5,7))-1));
    cal1.set(Calendar.DAY_OF_MONTH,Integer.parseInt(strStartDate.substring(8,10)));
    cal1.set(Calendar.HOUR_OF_DAY,0);
    cal1.set(Calendar.MINUTE,0);
    cal1.set(Calendar.SECOND,0);
    cal1.set(Calendar.MILLISECOND,0);
    cal1.set(Calendar.ZONE_OFFSET,0);
    lStart=(cal1.getTime().getTime());
    strEndDate=tsEnd.toString();
    Calendar cal2 = Calendar.getInstance();
    cal2.set(Calendar.YEAR,Integer.parseInt(strEndDate.substring(0,4)));
    cal2.set(Calendar.MONTH,(Integer.parseInt(strEndDate.substring(5,7))-1)) ;
    cal2.set(Calendar.DAY_OF_MONTH,Integer.parseInt(strEndDate.substring(8,10)));
    cal2.set(Calendar.HOUR_OF_DAY,0);
    cal2.set(Calendar.MINUTE,0);
    cal2.set(Calendar.SECOND,0);
    cal2.set(Calendar.MILLISECOND,0);
    cal2.set(Calendar.ZONE_OFFSET,0);
    lEnd=(cal2.getTime().getTime());
    numDays=(lEnd-lStart)/(1000*60*60*24);
    } catch (Exception e)
    LogTracer.writeTracerLog(className,methodName,e);
    throw new Exception(e.getMessage());
    return numDays;
    }

    If I were you, I'd make diffTwoDays a little less error-prone. Setting fields in the Calendar object can have bad consequences if you don't know what you're doing. As warnerja said, the TIMEZONE_OFFSET should not be explicitly set, especially not after you've set everything else. Also, don't assume the format of Timestamp.toString(); and don't try to calculate things you don't (need to) understand. There's probably a more efficient way of doing this....
    public static long diffTwoDays(Timestamp tsStart, Timestamp tsEnd)
         Calendar s = Calendar.getInstance();
         s.setTimeInMillis(tsStart.getTime());
         Calendar e = Calendar.getInstance();
         e.setTimeInMillis(tsEnd.getTime());
         long numDays = 0;
         int i;
         while (e.get(Calendar.YEAR) > s.get(Calendar.YEAR))
              i = e.get(Calendar.DAY_OF_YEAR);
              numDays += i;
              e.add(Calendar.DAY_OF_YEAR, -i);
         while (e.get(Calendar.MONTH) > s.get(Calendar.MONTH))
              i = e.get(Calendar.DAY_OF_MONTH);
              numDays += i;
              e.add(Calendar.DAY_OF_MONTH, -i);
         return numDays + e.get(Calendar.DATE) - s.get(Calendar.DATE);
    }

  • Jdk1.3.1 bug with rmic -iiop?

    Hi
    Does anyone know whether there is a bug with the rmic -iiop feature of jdk1.3.1?
    When I try to use rmic -iiop, with the -classpath option, it throws a java.lang.ClassFormatError.
    e.g.
    rmic -classpath .;C\irfeclient\requestrecord.jar -iiop com.ch.irfe.curvegen.xtools.CurveGenImpl
    If I leave out the current directory when setting the classpath, the compiler says it can't find the implementation class com.ch.irfe.curvegen.xtools.CurveGenImpl.
    If I just try using rmic without -iiop, it works. However I need to generate iiop stubs.
    Has anyone managed to resolve this one?
    many thanks
    Lyndsey

    I've done some further investigation and I think it is a bug with jdk1.3.1. I have tried using IBMs JDK that comes with WebSphere 3.5, and it works fine.

  • Moving from jdk1.3 to jdk1.4

    Hi everybody,
    I need one info.
    There is a bug in JDK1.3 related with HTTPClasses and Sun Says it has been fixed in JDK1.4.
    So i want to move to JDK1.4 .
    NOW what are the possible problems . My application uses Swing , XML ( xalan parser) .
    Can someone please give me some info on this?
    regds,
    Rajesh

    Hi ,
    my concern is for parsers what we are using Xalan and Xerces .
    If they would be using deprecated API then it could be a problem,
    as I remember reading similar problem somewhere. So wanted to
    ask the Forum.
    thanx,
    Rajesh

  • Labels in jdk1.4

    Hi, I just started using jdk1.4 and all the labels that used to have this java light purple color are now black. Is this a bug in jdk1.4 or do you have to manualy configure the labels in jdk1.4.

    What are you seeing different the background or the forground color? When I switched from jdk1.3 to 1.4 I didn't see any difference in the labels (using Metal or Motif look and feel) . The label foreground color was being set to black and the background was default.

  • JNI_CreateJavaVM fail in JDK1.4

    Dear all,
    I made a simple test program to create Java VM in C++ code on Sun 5.8 with JDK1.4. The error is as below:
    #./jnitest
    There was an error trying to initialize the HPI library.
    Please check your installation, HotSpot does not work correctly
    when installed in the JDK 1.2 Solaris Production Release, or
    with any JDK 1.1.x release.
    Can't create Java VM
    The code of test program jnitest.cxx is as below:
    #include <jni.h>
    #include <stdio.h>
    #include <string.h>
    #include <stdlib.h>
    #include <iostream.h>
    main() {
    JavaVMInitArgs vm_args;
    JavaVMOption options[4];
    JNIEnv *env;     // pointer to JNI environment
    JavaVM *vm;    // pointer to Java virtual machine
    jint res;
    options[0].optionString = "-Djava.compiler=NONE"; /* disable JIT */
    options[1].optionString = "-Djava.class.path=./"; /* user classes */
    vm_args.version = JNI_VERSION_1_4; //change it to JNI_VERSION_1_2
    // for JDK1.3
    vm_args.options = options;
    vm_args.nOptions = 2;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    res = JNI_CreateJavaVM(&vm, (void **)&env, &vm_args);
    if (res < 0)
    cerr << "Can't create Java VM\n";
    exit(1);
    } else {
    cerr << "Java VM initialized\n";
    vm->DestroyJavaVM();
    cerr << "Java VM destroyed\n";
    I use the following command to do the compiling:
    /opt/corp/inm_3rdparty/SUNWspro/bin/CC -I./ -I/opt/corp/inm_3rdparty/j2sdk_1.4.0/include -I/opt/corp/inm_3rdparty/j2sdk_1.4.0/include/solaris -L/opt/corp/inm_3rdparty/j2sdk_1.4.0/jre/lib/sparc -ljvm jnitest.cxx -o jnitest
    I got the executible jnitest. Then set up LD_LIBRARY_PATH as below:
    setenv LD_LIBRARY_PATH /opt/corp/inm_3rdparty/j2sdk_1.4.0/jre/lib/sparc
    Run jnitest, then I got error message which is posted in the beginning.
    If I change the compiling and environment LD_LIBRARY_PATH to JDK1.3.1 and change JNI version to JNI_VERSION_1_2 in jnitest.cxx, everything works. The VM can be created properly. So is it bug in JDK1.4? How can I create Java VM in C++ in JDK1.4? I checked the JDK1.4 JNI API, I don't find any difference for this method JNI_CreateJavaVM between JDK1.3 and JDK1.4.
    Thank you very much for the help,
    Linda ----looking forward your valuable comments :-)

    where did you find that you are supposed to set version to 1.4?
    vm_args.version = JNI_VERSION_1_4; //change it to JNI_VERSION_1_2the only thing i have found is to use 1.2.
    vm_args.version = JNI_VERSION_1_2;i am using jdk 1.4 and i am successfully creating a JVM but im on windows 2000. i think the highest version of JNI is 1.2....(maybe)...
    good luck

  • Is it a bug? GridBagLayout  with textField

    Hi,
    The following method does not work fine.
    The textfield field gets all the space
    but if i change
    JTextField field = new JTextField();
    with
    JPanel field = new JPanel();
    it will work fine.
    I think there is a problem with GridBagLayout
    and textField. is it a bug in jdk1.2
    public JPanel getCPane() {
    int XUNIT = 5;
    int YUNIT = 100;
    JPanel pane = new JPanel();
    JPanel pane1 = new JPanel();
    JTextField field = new JTextField();
    pane1.setBackground(Color.red);
    pane1.setPreferredSize(new Dimension(2*XUNIT, YUNIT));
    field.setPreferredSize(new Dimension(6*XUNIT, YUNIT));
    pane.setLayout(new GridBagLayout());
    GridBagConstraints c = new GridBagConstraints();
    c.fill = GridBagConstraints.BOTH;
    c.insets = new Insets(0,0,0,0);
    c.weightx = c.weighty = 0;
    c.gridx = 0; c.gridy = 0;
    c.gridwidth = 2*XUNIT; c.gridheight = YUNIT;
    pane.add(pane1, c);
    c.weightx = c.weighty = 1;
    c.gridx = 2; c.gridy = 0;
    c.gridwidth = 6*XUNIT; c.gridheight = YUNIT;
    pane.add(field, c);
    return pane;

    Any solution please

  • SAXParserFactory on jdk1.4

    I use jdk1.4 to compile my java files which includes the using of SAXParserFactory class. The compile failed, and say that the bad class found in rt.jar(javax.xml.parsers.SAXParserFactory), the version 48 found but version 47 expected.
    I cannot figure out what happened. Anyone can help me out? Thanks.

    Actually the code is simple as follow,
    SAXParserFactory factory = SAXParserFactory.newInstance();
    try{
    SAXParser saxParser = factory.newSAXParser();
    }catch(Throwable t){
    //t.printStackTrace();
    return null;
    I guess it may be a bug in jdk1.4. Maybe I should report to the bug database.

  • Jdk1.4,a problem

    I have used jdk1.3.1 write a application,in it,chinese can be shown well,but when i use jdk1.4,chinese changed to square,why? Is this a bug in jdk1.4?
    How to resolve it?
    thanks!

    i can use setFont() method to resovle it,but why in jdk1.3 may not use method setFont()???

  • Error while installing Sneak preview Netweaver 2004 --SP15 on WindowsXP+SP1

    hi, i'm getting a error while installing the Sneak preview NetWeaver 2004-SP15 on Windows XP + SP1.
    error message: Corrupt GZip trailer
    JDK version: 1.4.2_08 and 1.4.2_09
    i searched this error on google and i found it's a bug of jdk1.4.2_08.(see this page:<a href="http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4262583">http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4262583</a>) it said this version can't run when the uncompressed file is 2GB or larger. and this bug was fixed after <b>jdk1.5</b>. but i noted that Sneak preview was not tested on jdk1.5.Ignore it, i uninstalled jdk1.4.2_08 and Sneak preview,then i installed jdk1.5 and reinstalled Sneak preview.Unfortunated, i got another error.The error code is <b>3018</b>.
    could anyone please help me?
    Regards
    bo

    I faced this problem while I was installation.
    Following are my installation's step, is there any problem?
    1.I have a new system just for installation, it is WindowsXP + SP1(2.5G memory and 2 CPU);
    2.download JDk 1.4.2_09 from sun.com and installed it;
    3.download Sneak preview Netweaver2004SP15 from sdn.sap.com. There are 3 files total.
      Two are NW04SneakPreviewSP15.rar, the other is DeveloperStudioSP15.rar;
    4.uncompressed NW04SneakPreviewSP15.rar. I used winrar, it's OK.
    5.start install NW04SneakPreviewSP15.rar step by step according to the installation guid.
    6.to this step 'SAP J2EE Engine Server Core', all are right;
    7.error in the step 'Load Java Database Content';
    Following are part of the log file 'jload.java.log':
    java version "1.4.2_09"
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_09-b05)
    Java HotSpot(TM) Client VM (build 1.4.2_09-b05, mixed mode)
    2006-3-22 18:26:37 com.sap.inst.jload.Jload main
    ÐÅÏ¢: Jload -sec J2E,jdbc/pool/J2E,C:usrsapJ2ESYSglobal/security/data/SecStore.properties,C:usrsapJ2ESYSglobal/security/data/SecStore.key -dataDir C:/backup/NW04SneakPreviewSP15/NWSneakPreviewSP15/SAP_NetWeaver_04_SR_1_Installation_MasterIM01_NT_I386....SneakPreviewContentJDMP -job C:Program Filessapinst_instdirNW04SR1WEBAS_COPYONE_HOST/IMPORT.XML -log C:Program Filessapinst_instdirNW04SR1WEBAS_COPYONE_HOST/jload.log
    2006-3-22 18:26:40 com.sap.inst.jload.db.DBConnection connectViaSecureStore
    ÐÅÏ¢: connected to J2E on jdbc/pool/J2E
    2006-3-22 18:26:41 com.sap.inst.jload.JobStatus readStatus
    ÐÅÏ¢: trying to read status file C:usrsapJ2EJC00j2eesltoolsIMPORT.sta
    2006-3-22 18:26:41 com.sap.inst.jload.JobStatus readStatus
    ÐÅÏ¢: status file IMPORT.sta doesn't exist - no restart
    2006-3-22 18:26:41 com.sap.inst.jload.Jload dbImport
    ÐÅÏ¢: trying to create table ADS_LICENSED_FORMS
    2006-3-22 18:26:42 com.sap.inst.jload.Jload dbImport
    ÐÅÏ¢: table ADS_LICENSED_FORMS created
    2006-3-22 18:26:42 com.sap.inst.jload.Jload dbImport
    ÐÅÏ¢: ADS_LICENSED_FORMS loaded (2 rows)
    2006-3-22 18:48:58 com.sap.inst.jload.Jload dbImport
    ÐÅÏ¢: trying to create table J2EE_CONFIGENTRY
    2006-3-22 18:48:58 com.sap.inst.jload.Jload dbImport
    ÐÅÏ¢: table J2EE_CONFIGENTRY created
    2006-3-22 19:07:53 com.sap.inst.jload.Jload logStackTrace
    ÑÏÖØ: java.io.IOException: Corrupt GZIP trailer
    at java.util.zip.GZIPInputStream.readTrailer(GZIPInputStream.java:174)
    at java.util.zip.GZIPInputStream.read(GZIPInputStream.java:89)
    at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:105)
    at java.io.DataInputStream.readBoolean(DataInputStream.java:310)
    at com.sap.inst.jload.db.FieldHandler.checkAndSetNullValue(FieldHandler.java:46)
    at com.sap.inst.jload.db.BigIntHandler.setValue(TinyIntHandler.java:164)
    at com.sap.inst.jload.db.DBTable.load(DBTable.java:274)
    at com.sap.inst.jload.Jload.dbImport(Jload.java:323)
    at com.sap.inst.jload.Jload.executeJob(Jload.java:397)
    at com.sap.inst.jload.Jload.main(Jload.java:621)
    2006-3-22 19:07:53 com.sap.inst.jload.db.DBConnection disconnect
    ÐÅÏ¢: disconnected
    I also tried jdk1.4.2_08 and I also installed in Windows2000+SP4. But I faced the same problem too.
    From sun.com, I know this error is a bug of jdk. They explained that this version can't run OK
    when zip-file is larger than 2G. Then I found here's a file
    (name is 'NW04SneakPreviewSP15NWSneakPreviewSP15SneakPreviewContentSDMSDMKIT.JAR'). It's size
    is 2.08G. I suppose installation can't manage it.
    I tried unzip this file and renamed unziped folder to 'SDMKIT.JAR'.
    Then I found another large file in the unziped folder(name is 'F:NW04SneakPreviewSP15NWSneakPreviewSP15SneakPreviewContentSDMSDMKIT.JARpackpackedRoot.jar')
    , so I also unzip this file and renamed unziped folder to 'packedRoot.jar'.
    Then I reinstalled, of course, It's no work.
    Unexpectedly, I found this download link is not available on the sdn.sap.com(see this page:https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/cfc19866-0401-0010-35b2-dc8158247fb6).
    It say that 'We apologize that this version is currently not available to download.'.
    I guess there are any problem in this version, are there?
    So, now I think I must download another version to install.
    Thanks,
    Bo
    Message was edited by: bo zeng

  • Slow DataBase Access using JDK 1.5 and MySQL

    Hi EveryBody,
    I am using Jdk1.5 in my project and mysql 5.0 as my database server.
    The problem is that, to create a connection for the first time it takes upto 20 to 25 seconds.
    when i use the 1.4.2 with the same mysql version it takes only 2 seconds.
    In both the cases i am using the JDBC driver (com.mysql.jdbc.Driver )
    I cannot understand the problem with the jdk1.5,
    so, please help me in resoving this issue.

    I encountered same problem with connecting Oralce.
    It's a bug of JDK1.5.
    You need upgrade JDK1.5 to latest version,or use IP address instead of machine name(such as locahost etc.).
    Message was edited by:
    LucasLee

Maybe you are looking for

  • Why does my ipod no longer work with my alpine car stereo

    my ipod connects directly to my alpine car stereo and up til now it has worked great. i recently synced my ipod to my computer and i think it updated the software on my ipod and now my ipod no longer works with my alpine stereo. what is up? did apple

  • Stop and start charging without cause.

    My macbook stops charging and the red light in the cable plug turns off. After a sec the light turns on, but green, and in the battery icon reads "no charging". After a sec, the light in the cable plug turns into red and the macbook starts recharging

  • Can I save my username and password to login to a wifi network on a pop-up window?

    At my college, we have two ways to loging to the wifi. Either directly on the browser, or an annoying pop up window comes up. What I want to do is either stop the pop up window entirely, (preferrable) or save my password to the pop up window. Also, t

  • Iphone 4s after upgrade 8.1.2 charging stuck at 85%

    Dear i have upgraded my iphone 4s to 8.1.2 after that every time chanring not reach 100% , sometimes 80 or 85% . please help me .

  • ABAP Kernal version vs JAVA kernal Version

    Hi Experts, We are running on ABAP+JAVA stack on AIX 5.3 and ORA 10g as Backend, SAP ECC 6.0 SR3   Our ABAP kernal is at 175.  I have downloaded the kernal and patches for JAVA.  JAVA kernal which I have downloaded is 185.  Can I apply 185 to JAVA or