JDK-4335360 : java.lang.IllegalArgumentException: Illegal Load: 0.75 at java.util.Hashtable
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 1.3.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt,windows_2000
  • CPU: x86
  • Submitted: 2000-05-03
  • Updated: 2001-04-17
  • Resolved: 2001-04-17
Related Reports
Duplicate :  
Relates :  
Description
onent.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
att java.awt.EventDispatchThread.run(Unknown Source)
(Review ID: 104316) 
======================================================================


Name: stC104175			Date: 05/03/2000


This is an applet, so we run it using Netscape 4.7 and JRE 1.3RC3

In certain PC's (Compaq Presarios 2266), users start getting hashtable
exceptions:

This problem happens in different places without consistency.  The same code ran fine on the same PC's under JRE 1.22.  We
have noticed a change (the new Float.isNaN(loadFactor) check) in the Hashtable class (listed below) in JDK 1.3 RC3. 
Please forward the following exception traces to the developer(s) who modified the Hashtable class. 


Public Hashtable(int initialCapacity, float loadFactor) { 
     if (initialCapacity < 0) 
        throw new IllegalArgumentException("Illegal Capacity: "+ initialCapacity); 
     if (loadFactor <= 0 || Float.isNaN(loadFactor)) 
        throw new IllegalArgumentException("Illegal Load: "+loadFactor); 
     if (initialCapacity==0) 
        initialCapacity = 1; 
      this.loadFactor = loadFactor; 
      table = new Entry[initialCapacity]; 
     threshold = (int)(initialCapacity * loadFactor); 
} 

public Hashtable(int initialCapacity) { 
    this(initialCapacity, 0.75f); 
} 

public Hashtable() { 
    this(11, 0.75f); 
} 
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Illegal Load: 0.75
at java.util.Hashtable.<init>(Unknown Source)
at java.util.Hashtable.<init>(Unknown Source)
at javax.swing.JComponent.registerWithKeyboardManager(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at javax.swing.JMenuBar.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at javax.swing.plaf.basic.BasicInternalFrameTitlePane.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at javax.swing.JLayeredPane.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at touchtone.jwintouch.JWintouchUtil.show(JWintouchUtil.java:1031)
at touchtone.jwintouch.JWintouchUtil.show(JWintouchUtil.java:1022)
at touchtone.jwintouch.AccountSearch.doActionPerformed(AccountSearch.java:173)
at
touchtone.jwintouch.JWintouch$JWintouchAction.actionPerformed(JWintouch.java:248
)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.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.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.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.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Item #10
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Illegal Load: 0.75
at java.util.Hashtable.<init>(Unknown Source)
at java.util.Hashtable.<init>(Unknown Source)
at javax.swing.JComponent.getClientProperties(Unknown Source)
at javax.swing.JComponent.putClientProperty(Unknown Source)
at
touchtone.jwintouch.AccountSummary.createASUDComponents(AccountSummary.java:404)
at touchtone.jwintouch.AccountSummary.<init>(AccountSummary.java:109)
at touchtone.jwintouch.AccountSummarySubMDI.<init>(AccountSummarySubMDI.java:92)
at touchtone.jwintouch.AccountSummarySubMDI.<init>(AccountSummarySubMDI.java:75)
at touchtone.jwintouch.AccountSearch.showResult(AccountSearch.java:74)
at touchtone.jwintouch.ACSearch.finished(ACSearch.java:86)
at touchtone.jwintouch.SwingWorker$1.run(SwingWorker.java:46)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
 Item #11
Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Illegal Load: 0.75
at java.util.Hashtable.<init>(Unknown Source)
at java.util.Hashtable.<init>(Unknown Source)
at javax.swing.text.AbstractDocument.getDocumentProperties(Unknown Source)
at javax.swing.text.AbstractDocument.putProperty(Unknown Source)
at javax.swing.text.AbstractDocument.<init>(Unknown Source)
at javax.swing.text.DefaultStyledDocument.<init>(Unknown Source)
at javax.swing.text.DefaultStyledDocument.<init>(Unknown Source)
at javax.swing.text.StyledEditorKit.createDefaultDocument(Unknown Source)
at javax.swing.JEditorPane.setEditorKit(Unknown Source)
at javax.swing.JTextPane.setEditorKit(Unknown Source)
at javax.swing.JTextPane.<init>(Unknown Source)
at touchtone.jwintouch.chat.XChannelWindow.<init>(XChannelWindow.java:22)
at touchtone.jwintouch.chat.XChatApp.onChannelJoin(XChatApp.java:409)
at org.relayirc.chatengine.ChatEngine$3.notify(ChatEngine.java:308)
at org.relayirc.chatengine.ChatEngine.notifyListeners(ChatEngine.java:115)
at org.relayirc.chatengine.ChatEngine.sendJoin(ChatEngine.java:307)
at
touchtone.jwintouch.chat.XChatApp$EnterMyChannelAction.actionPerformed(XChatApp.
java:661)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
t javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown
Source)
at java.awt.Component.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.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)



Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Illegal Load: 0.75
at java.util.Hashtable.<init>(Unknown Source)
at java.util.Hashtable.<init>(Unknown Source)
at javax.swing.text.SimpleAttributeSet.<init>(Unknown Source)
at javax.swing.text.AbstractDocument$BidiElement.<init>(Unknown Source)
at javax.swing.text.AbstractDocument.<init>(Unknown Source)
at javax.swing.text.AbstractDocument.<init>(Unknown Source)
at javax.swing.text.PlainDocument.<init>(Unknown Source)
at javax.swing.text.PlainDocument.<init>(Unknown Source)
at javax.swing.text.DefaultEditorKit.createDefaultDocument(Unknown Source)
at javax.swing.plaf.basic.BasicTextUI.installUI(Unknown Source)
at javax.swing.JComponent.setUI(Unknown Source)
at javax.swing.text.JTextComponent.setUI(Unknown Source)
at javax.swing.text.JTextComponent.updateUI(Unknown Source)
at javax.swing.text.JTextComponent.<init>(Unknown Source)
at javax.swing.JTextField.<init>(Unknown Source)
at javax.swing.JTextField.<init>(Unknown Source)
at touchtone.lib.IntegerTextField.<init>(IntegerTextField.java:64)
at touchtone.lib.IntegerTextField.<init>(IntegerTextField.java:53)
at
touchtone.jwintouch.ExtendedProfile.createNStaticSDF(ExtendedProfile.java:294)
at touchtone.jwintouch.ExtendedProfile.<init>(ExtendedProfile.java:84)
at
touchtone.jwintouch.ExtendedProfileListing.selectOrAdd(ExtendedProfileListing.ja
va:126)
at
touchtone.jwintouch.ExtendedProfileListing.select(ExtendedProfileListing.java:14
1)
at
touchtone.jwintouch.ExtendedProfileListing.actionPerformed(ExtendedProfileListin
g.java:76)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.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 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.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)



 Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Illegal Load factor: 0.75
at java.util.HashMap.<init>(Unknown Source)
at java.util.HashMap.<init>(Unknown Source)
at touchtone.jwintouch.MDIKernel.<init>(MDIKernel.java:89)
at touchtone.jwintouch.chat.XChatApp.<init>(XChatApp.java:61)
at touchtone.jwintouch.chat.XChatApp.getInstance(XChatApp.java:39)
at touchtone.jwintouch.chat.XChatRunner.getChatApp(XChatRunner.java:15)
at touchtone.jwintouch.chat.XChatRunner.startChat(XChatRunner.java:22)
at
touchtone.jwintouch.JWintouch$JWintouchAction.actionPerformed(JWintouch.java:287
)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.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.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.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.pumpOneEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at  java.awt.EventDispatchThread.run(Unknown Source)




Exception occurred during event dispatching:
java.lang.IllegalArgumentException: Illegal Load: 0.75
at java.util.Hashtable.<init>(Unknown Source)
at java.util.Hashtable.<init>(Unknown Source)
at javax.swing.JComponent.getClientProperties(Unknown Source)
at javax.swing.JComponent.putClientProperty(Unknown Source)
at javax.swing.JComponent.registerWithKeyboardManager(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at javax.swing.JRootPane.addNotify(Unknown Source)
at java.awt.Container.addNotify(Unknown Source)
at javax.swing.JComponent.addNotify(Unknown Source)
at java.awt.Container.addImpl(Unknown Source)
at javax.swing.JLayeredPane.addImpl(Unknown Source)
at java.awt.Container.add(Unknown Source)
at touchtone.jwintouch.JWintouchUtil.show(JWintouchUtil.java:1031)
at touchtone.jwintouch.JWintouchUtil.show(JWintouchUtil.java:1022)
at touchtone.jwintouch.chat.XChatApp.onChannelJoin(XChatApp.java:409)
at org.relayirc.chatengine.ChatEngine$2.notify(ChatEngine.java:279)
at org.relayirc.chatengine.ChatEngine.notifyListeners(ChatEngine.java:115)
at org.relayirc.chatengine.ChatEngine.sendJoin(ChatEngine.java:277)
at org.relayirc.chatengine.ChatEngine.sendJoin(ChatEngine.java:314)
at
touchtone.jwintouch.chat.XChatApp$EnterMyChannelAction.actionPerformed(XChatApp.
java:661)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown
Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(Unknown
Source)
at java.awt.Component.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.Comp

Comments
WORK AROUND Name: stC104175 Date: 05/03/2000 None ======================================================================
11-06-2004

EVALUATION It would appear that Float.isNaN is not working properly on the architecture in question ("Certain PCs, Compaq Presarios 2266"). We may have difficulty reproducing this bug in house due to its platform-specific nature. joshua.bloch@Eng 2000-05-04 Robert, this bug is easily reproducible with the 4342163 in -Xcomp mode.
04-05-2000