JDK 1.3.1 Problem with Pentium 4....
I have same porblems with JDK 1.3.1 .
The same configuration on to computers:
Borland JBuilder and JDK1.3.1
On Pentium 3 and WIN2K it run fine, but on
Pentium 4 and XP it can not run...
Avry sing that i do with java or javaw i have
error...
I have the same problem. I am trying to install Bluestone Application Manager (BAM)on a Pentium 4 with a JDK 1.3.1_03. I get the following error:
"java.exe has generated errors and will be closed by windows. You will need to restart the program. An error log is being generated."
I uninstalled the jdk1.3.1_03 and installed the jdk1.2.2_011 that is suggested as a solution to this bug. This did not fix anything. I still get the same error.
Then I tried to rename and then delete the symcjit.dll to see if that would help. (Upon suggestions from other threads regarding the same problem). Still the same error.
BTW, have restarted after the above changes too and no solution.
The Application Manager works fine on Pentium 3 computers within my office.
Any other solutions out there?
Similar Messages
-
When installed JDK but I have problem with System vars may install bundle
When installed JDK but I have problem with System vars may install bundle [netbeans&JDK] WITHOUT UNISTALLING initial JDK or needed uninstall first ?
With the word 'automatically', yes you do need pulseaudio. I'm sure you could cook up some udev or related rule to do that in Alsa, but pulseaudio would be easier.
-
is there any known problems using older versions of JDK 1.2.2 with pentium 4 chips?
Known Software Issue(s)
CPUID detection for Intel� Pentium� 4 processor system:
Intel has identified that applications which use the Symantec Just in Time Compiler library file ("symcjit.dll" for Microsoft Windows* operating system and "symc_jlt.nlm" for Novell Netware* 5.1) may not run properly on Pentium� 4 processor systems because the library does not properly identify the processor. The failure typically is that the affected application such as Oracle 8i, simply terminates. Under Microsoft Windows*, the properties of the DLL are: "Symantec Java! JustInTime Compiler Version 3.10.107 for JDK 1.2 Copyright (C) 1996-99 Symantec Corporation Dynamic Link Library file". DLLs older than this will also not work. To confirm the version you are using, select the DLL, right click on the selected DLL and select Properties, and then the Version tab. Intel encourages all Software developers to do the following immediately:
Check if your application(s) uses the Symantec Just in Time Library file
Request an updated library file from your provider
Test your application with the new library file on Pentium� 4 processor system
Ensure you have plans in place to provide application updates and address customer concerns
*Other brands and names are property of their respective owners
http://developer.intel.com/design/processor/future/manuals/knownissue.htm -
JDK 1.4.2_10; problem with applet/classpath/OBJECT tag
I'm supporting an applet that needs to run in JDK 1.4.2_10 in order to work. (I don't own the code, so I can't fix the issue)
I'd like to force that particular applet to run under JDK 1.4.2_10, but allow other applets to run on the current default JVM.
I'm trying to do this by using the JDK's htmlconverter.exe utility to force the use of JDK 1.4.2_10. That part is working as expected, but I'm experiencing a side effect.
The problem is that, when I use the OBJECT tag instead of the APPLET tag, the browser attempts to download the class with this URL
http://hostname.here.com/app.testing/app.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
instead of this URL
http://hostname.here.com/app.testing/app.testbed/classes/appls/DOLARS/user/Applet.class
The second URL works; the first does not. When I use the APPLET tag, it generates the second URL and downloads the class successfully.
I'd like to a) use the OBJECT tag. b) get it to use the correct URL to download the Applet.class file. What do I need to do to make this happen?
Thanks,
Tom ValeskyHere's the exception I'm getting (slightly sanitized):
Java Plug-in 1.4.2_10
Using JRE version 1.4.2_10 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\tvalesky
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to
load: class appls/DOLARS/user/Applet.class not found.
java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed:http://hostname.com/DOLARS.testing/dolars.testbed/classes/appls%2fDOLARS%2fuser%2fApplet%2fclass.class
at sun.plugin2.applet.Applet2ClassLoader.getBytes(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.access$000(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
... 7 more
Exception: java.lang.ClassNotFoundException: appls.DOLARS.user.Applet.class -
Jinitiator 1.1.7.27 problem with Pentium 4 class Intel Processors
If you intend on using this version of jinitiator on a Pentium 4 processor you will need to obtain a compatible version of symcjit.dll from Oracle. This file will need to be copied to the c:\Program Files\Oracle\jinitiator 1.1.7.27 Export directory.
Hi,
Thread 0 Crashed:
0 libobjc.A.dylib 0x90a594c0 objc_msgSend + 16
1 ...eRiotFacebookInputManager 0x02446e54 -OneRiotFacebookLoader loadOneRiotFaceBook + 240
2 ...eRiotFacebookInputManager 0x02446c46 -OneRiotFacebookLoader init + 96
Remove the following files/folder and give Safari another try:
/Library/InputManagers/SIMBL/SIMBL.bundle
/Library/InputManagers/OneRiot Facebook/
(That Library folder is the one present at the top level of your hard drive, not the one under your user account.) -
8.1.7 Installation Problem on Pentium IV Sony VAIO PCV-RX651 with XP Operating System
Have problem installing Oracle 8i Enterprise Edition on a SONY VAIO with XP Personal Edition. The "Explore CD" and "Browse Documents" buttons of the Oracle Universal Installer/Autorun responded but the "Install/DeInstall Products" button did not. Oracle 8i DB from the same CD was installed and ran just fine on a Pentium III Toshiba laptop with Win2000 ?! Please help.
Thanks.
CNguyen
[email protected]================================================================
Doc ID:
Note:131299.1
Subject:
Oracle Installer 8.1.X Hangs on Machines with Pentium 4
Processors
Type:
ALERT
Status:
PUBLISHED
Content
Type:
TEXT/PLAIN
Creation
Date:
02-JAN-2001
Last
Revision Date:
18-APR-2001
This alert was modified 16-January-2001 by specifying specific
Oracle Universal
Installer Versions in the the Versions Affected section.
Oracle Universal Installer (OUI) for 8.1.x Hangs on Machines
with Pentium 4
Processors
~~~~~~~~~~~~~~~~~~
Versions Affected
~~~~~~~~~~~~~~~~~
Oracle 8.1.5
============
Oracle Universal Installer 1.6.0.9.0
Oracle 8.1.6
=============
Oracle Universal Installer 1.7.0.19.0
Oracle 8.1.7
==============
Oracle Universal Installer 1.7.1.9.0
Platforms Affected
~~~~~~~~~~~~~~~~~~
Any platform that uses the Intel Pentium 4 processor, with the
Sun JRE
and Symmantec JIT will encounter this problem. Windows NT,
Windows 2000
and NetWare platforms are confirmed to be affected.
Description
~~~~~~~~~~~
When installing Oracle Products with the Oracle Universal
Installer (8.1.x)
on machines that use the Sun JRE and Symmantec JIT, the
installer hangs.
Specifically for the Windows platform, the following version
of the Symmantec
JIT or earlier will encounter the failure:
Symantec Java! JustInTime Compiler Version 3.10.107 for JDK
1.2.
Details regarding this issue can be found at:
http://developer.intel.com/design/processor/future/manuals/knowni ssue.htm
How to determine if you have Symmantec Java for JDK 1.2:
1. Select the file "symcjit.dll" and right click on it.
2. Select Properties, then the Version tab.
3. Under Microsoft Windows*, the properties of the DLL are:
"Symantec Java! JustInTime Compiler Version 3.10.107 for
JDK 1.2 Copyright (C)
1996-99 Symantec Corporation Dynamic Link Library file".
DLLs older than this will also not work. "
Likelihood of Occurrence
~~~~~~~~~~~~~~~~~~~~~~~~
Any platform that uses the Intel Pentium 4 processor, with the
Sun JRE
and Symmantec JIT will encounter this problem. Windows NT,
Windows 2000 and NetWare platforms are confirmed to be
affected.
Possible Symptoms
~~~~~~~~~~~~~~~~~
The failure typically is that the affected application simply
terminates.
Workaround
~~~~~~~~~~
Not only will OUI be affected by this bug, most of the
post-install
configuration tools will also be affected. Running these
tools with "-nojit"
specified will avoid the hang, but it is not simple to specify
"-nojit" for
some of the products.
The following workaround works for the Windows operating
system:
a. Copy only the install directory from the CD to the hard
disk ,say, e:\temp.
b. Open oraparam.ini and make the following modifications
(Assuming CD
drive is f:)
* Change the "SOURCE=" line to use the full path to the CD
instead of a
relative path. (i.e., SOURCE=f:\stage\products.jar)
* Change the "JRE_LOCATION" line to use the full path to the
CD instead of a
relative path. (i.e.,
JRE_LOCATION=f:\stage\Components\oracle\swd\jre\1.1.7\1\DataFiles
\Expanded)
* Change the "OUI_LOCATION" line to use the full path to the
CD instead of a
relative path. (i.e.,
OUI_LOCATION=f:\stage\Components\oracle\swd\oui\1.6.0.9.0\1\DataF
iles\Expanded
* Change the "JRE_MEMORY_OPTIONS" line to add "-nojit" as the
first argument.
(i.e., JRE_MEMORY_OPTIONS=-nojit -ms16m -mx32m)
^^^^^^
* Other entries should remain the same
c. Launch setup.exe from the temporary location on your hard
drive (i.e.
e:\temp\install\win32\setup.exe). This will use the
modified
oraparam.ini and pick up the information from the CD since
the absolute
locations are specified.
Choose a Custom install and choose not to create a database
during the
install. This way, the Database Configuration Assistant will
not be launched
during installation.
The Net8 Configuration Assistant will still be launched, and
there is no way
to suppress it. You will need to kill the Net8 Configuration
Assistant if it
hangs due to the bug. The installation still will have been
successful, and
you can run the DBCA and NetCA after installation.
To kill NetCA if it hangs during installation:
In the "Configuration Tools" window, highlight the "Net8
Configuration
Assistant" and click "Stop". If that does not work, look for
the most recent
JRE process using the Task Manager, and kill it manually.
NOTE: the OUI
itself will also have a jre process. Be sure to kill the one
with the most
recent date, which should be the jre process being used for
Net8CA, not the
one for OUI itself.
After killing the configuration tools and continuing through
the installation
to the "End of Installation" screen, you should modify the
configuration tools
to use "-nojit", then call the appropriate tools from the
Start Menu.
Once installation is complete, each of the following files in
the ORACLE_HOME
needs to be modified:
assistants\dbca\dbassist.cl
assistants\dbma\dbmig.cl
assistants\ifa\ifa.cl
bin\elogin.cl
bin\owm.cl
ldap\oidamdin\oidadmin.cl
network\tools\netasst.cl
network\tools\netca.cl
owm\install\instelogin.cl
owm\install\instowm.cl
Edit the contents of the above files to add "-nojit" as shown
below:
Command=("C:\Program Files\Oracle\jre\1.1.7\BIN\JREW" -nojit
-classpath ....
this is the only thing you need to add --> ^^^^^^
Then, launch the necessary tools, like Net8CA and DBCA from
the Start Menu.
Patches
~~~~~~~
Currently there is not a patched installer available to deal
with this
problem, the workaround listed above must be used.
References
~~~~~~~~~~
[BUG:1507768] INSTALLER FAILS WHEN RUNNING ON NEW PENTIUM 4
(IV) PROCESSORS
[BUG:1507946] INSTALLER FAILS WHEN RUNNING ON NEW INTEL
PENTIUM 4 (IV) PROCESSORS
@[BUG:1518935] SYMCJIT.DLL DOESN'T WORK WITH THE NEW P4
PROCESSORS
Oracle
Support Services.
Copyright (c) 1995,2000 Oracle Corporation. All Rights
Reserved. Legal Notices and Terms of Use.
================================================================
The solution of making a local copy of the installation CD on
the hard disk and renameing symcjit.dll to symcjit.old does
work to allow installation of Oracle Client 8.1.7 on a Pentium 4
This function is useful and you can find two file to rename
===============================================================
Windows ME
Solution to the installation of Oraclei8.1.7 PE in Windows Millennium
Oracle does not support installing version 8.1.7 PE into
Windows Millennium.
As an unsupported workaround, you may add the following line
to the [compatibility95] section of win.ini prior to
installation:
Jrew=0x00080000
After setup is complete, Oracle will recommend a reboot.
There is one additional step necessary prior to reboot;
Oracle may add a non-standard path statement to the
autoexec.bat file. Please modify this SET PATH
statement to use short-filenames if you find a quoted
LFN string represented as part of the path. You can
confirm that the path was merged successfully into the
registry after reboot by examining the PATH variable
in the registry at
HKLM\System\CurrentControlSet\Control\SessionManager\Environment
Symptoms of a missing Oracle path statement in the registry are that Net8 Easy Config will not launch.
Please note that Oracle does not support the use of this
product in Windows ME, but have authorized these workarounds
for testing purposes only.
===============================================================
Windows XP Home Edition
Oracle 8i is not certified on windows XP. Even if yes, it must be Windows XP Professional.
You can install Oracle8i on windows XP Home Edition, try like this:
1 - Copy your Oracle CD into hard disk in your
machine. For example Copy from oracle8i CD into C:\Oracle\ ...
2 - Search the two files named Symcjit.dll on the D drive (where you have copied Oracle8i. You can found them in (example):
C:\Oracle\stage\Components\oracle.swd.jre\1.1.7.30\1
\DataFiles\Expanded\jre\win32\bin\symcjit.dll
3 - Rename this file (Example): symcjit_back.dll (make sure to find two files and rename them)
4 - Execute the Oracle setup.exe from C:\Oracle\setup.exe
===============================================================
When Oracle 8i dies on the install or the installer hangs, here is the fix for this, make sure that you have Service Pack 2 installed.
1. \JRE\1.3.1\ From Sun. (You can download java program at http://java.sun.com/products/jdk/1.1/jre/download-jre-windows.html)
2. Install the java file.
There is also a problem in the installation disk.
3. Make a copy of the Oracle 8i disk on the local hard disk.
4. Do a search for the two files called symcjit.dll and rename them for example: symcjit.old.
5. Install Oracle from the win32 directory.
================================================================
PLEASE NOTE THAT ORACLE DOESN'T SUPPORT THE USE OF THOSE PRODUCTS IN WINDOWS ME, BUT HAVE AUTHORIZED THESE WORKAROUNDS FOR TESTING PURPOSES ONLY -
Memory problem with jdk/jre 1.1.8
My name is BERGMANN Yannick.
I'm working for IRM in Li?ge and we developped an application (user interface for an industrial measurement system) in Java (JDK/JRE version : 1.1.8).
We have a big memory problem with this application :
- This user interface is running on a WINDOWS NT PC with 128MB.
- This is the command to lanch our application :
C:\Program Files\JavaSoft\JRE\1.1\bin\jrew.exe" -ms32m -mx32m -cp "\Program Files\HMI\HMI.zip;\Velocis\Add_On\Jdbc\raima.jar;\Program Files\Swing-1.1.1\swingall.jar" be.irm.hmi.kernel.HMI -t15 -d"Velocis rdstcp" -newdb -mf1m -mr20
- When our application is running, everything seems to be OK in memory for it. The garbage collector seems to work properly and our application has always at least 5MB free memory (We use the java instruction "Runtime.getRuntime().freeMemory()" to know this).
- But when we look in the "Windows NT task manager" for the "jrew" application, the memory increases ALWAYS.
- After 5 days our application is completely frozen and blocked ...???
- here is a memory map of our Windows NT PC :
"jre.exe" "commit total" "commit limit" "commit peak" "physical total" "physical available" "physical file cache"
Monday 92264 109256 194944 109424 130484 19492 6216
Thuesday 106196 123072 194944 123348 130484 6072 5840
Wednesday 110836 132288 194944 132416 130484 4408 5140
Thursday 108200 144980 194944 145140 130484 4888 5148
Friday 109440 158319 194944 161334 130484 4911 4992
Monday 111600 209060 228548 209148 130484 5184 3484
Have you any idea of what is happening with "jrew" in memory ?
We have had this problem for six month and we are totaly out of idea.
If you can give us any idea, we'll appreciate a lot.
Thanks in advance,
BERGMANN Yannick
IRM SA - Software Engineer
Tel. (32)4/239.90.10
Tel. (32)4/239.90.74 (direct)
Fax (32)4/263.40.97
E-mail [email protected]We had a memory problem with a swing applet in our company. The major reason for this was that we added new components in a JTree and removed them later again, and the components we removed were never garbage collected. This was because with these components we added different listeners, and we didn't remove the listeners after we didn't need the components anymore. After we corrected this, the components where garbage collected.
Perhaps it's a similar problem you have, or I have no idea. Check that you remove actionlisteners, mouselisteners etc from components you want to be garbage collected.
You could also test your application with OptimizeIt to see what objects you create and how many you get of them over time: http://www.vmgear.com -
I have a project that runs great on oc4j 10.0.3.4 under jdk 1.6. (everything worked great)
I recently tried to run it under jdk 1.5 and i've run into a little problem with the shared-lib's:
The classloader's debug file reports the following: (i have translated some of it)
Class error: oracle.classloader.util.AnnotatedNoClassDefFoundError:
Missing class: javax.xml.bind.JAXBContext
Dependant class: nl.comp.util.XmlUtil
Classloader: comp:0.1
Code-source: /C:/programs/oc4j/j2ee/home/shared-lib/comp/0.1/comp.jar
Configuration: <code-source> in /c:/programs/oc4j/j2ee/home/config/server.xml
The missing class is available from the following location:
1. Code-source: /C:/programs/oc4j/lib/xml.jar (from <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\programs\oc4j\j2ee\home\oc4j.jar)
This code-source is available from classloader oracle.xml:10.1.0_2
2. Code-source: /C:/programs/oc4j/j2ee/home/shared-lib/jaxb/2.1.6/jaxb-api.jar (from <code-source> in /c:/programs/oc4j/j2ee/home/config/server.xml)
This code-source is available from classloader jaxb:2.1.6.
So the classloader knows where to find the necessary lib, but it isn't loading it? If i run the exact same code (with same descriptors and everything) under jdk 1.6, it works, under 1.5 i get the above error.
What is different on the class loader level between the two jdk versions that might affect the program in such a way?
Need i update a descriptor or do something else?Jack,
Not a definitive answer for you (sorry), just a few suggestions (that I assume you are unaware of).
1. Try unsetting your "ClassPath" variable. Open a "command" window and type the following:
set ClassPath=2. Launch OC4J from the directory where the "oc4j.jar" file is located, for example:
D:
cd oc4j\j2ee\home
java -jar oc4j.jar3. I'm just guessing, but if your drive "D:" is a mapped, network drive, this may be causing the problem. Perhaps try installing OC4J on a local drive?
Hope this helps.
Good Luck,
Avi. -
Performance problems with jdk 1.5 on Linux plattform
Performance problems with jdk 1.5 on Linux plattform
(not tested on Windows, might be the same)
After refactoring using the new features from java 1.5 I lost
performance significantly:
public Vector<unit> units;
The new code:
for (unit u: units) u.accumulate();
runs more than 30% slower than the old code:
for (int i = 0; i < units.size(); i++) units.elementAt(i).accumulate();
I expected the opposite.
Is there any information available that helps?Here's the complete benchmark code I used:package test;
import java.text.NumberFormat;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.Vector;
public class IterationPerformanceTest {
private int m_size;
public IterationPerformanceTest(int size) {
m_size = size;
public long getArrayForLoopDuration() {
Integer[] testArray = new Integer[m_size];
for (int item = 0; item < m_size; item++) {
testArray[item] = new Integer(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
for (int index = 0; index < m_size; index++) {
builder.append(testArray[index]);
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getArrayForEachDuration() {
Integer[] testArray = new Integer[m_size];
for (int item = 0; item < m_size; item++) {
testArray[item] = new Integer(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
for (Integer item : testArray) {
builder.append(item);
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getArrayListForLoopDuration() {
ArrayList<Integer> testList = new ArrayList<Integer>();
for (int item = 0; item < m_size; item++) {
testList.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
for (int index = 0; index < m_size; index++) {
builder.append(testList.get(index));
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getArrayListForEachDuration() {
ArrayList<Integer> testList = new ArrayList<Integer>();
for (int item = 0; item < m_size; item++) {
testList.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
for (Integer item : testList) {
builder.append(item);
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getArrayListIteratorDuration() {
ArrayList<Integer> testList = new ArrayList<Integer>();
for (int item = 0; item < m_size; item++) {
testList.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
Iterator<Integer> iterator = testList.iterator();
while(iterator.hasNext()) {
builder.append(iterator.next());
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getLinkedListForLoopDuration() {
LinkedList<Integer> testList = new LinkedList<Integer>();
for (int item = 0; item < m_size; item++) {
testList.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
for (int index = 0; index < m_size; index++) {
builder.append(testList.get(index));
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getLinkedListForEachDuration() {
LinkedList<Integer> testList = new LinkedList<Integer>();
for (int item = 0; item < m_size; item++) {
testList.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
for (Integer item : testList) {
builder.append(item);
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getLinkedListIteratorDuration() {
LinkedList<Integer> testList = new LinkedList<Integer>();
for (int item = 0; item < m_size; item++) {
testList.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
Iterator<Integer> iterator = testList.iterator();
while(iterator.hasNext()) {
builder.append(iterator.next());
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getVectorForLoopDuration() {
Vector<Integer> testVector = new Vector<Integer>();
for (int item = 0; item < m_size; item++) {
testVector.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
for (int index = 0; index < m_size; index++) {
builder.append(testVector.get(index));
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getVectorForEachDuration() {
Vector<Integer> testVector = new Vector<Integer>();
for (int item = 0; item < m_size; item++) {
testVector.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
for (Integer item : testVector) {
builder.append(item);
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
public long getVectorIteratorDuration() {
Vector<Integer> testVector = new Vector<Integer>();
for (int item = 0; item < m_size; item++) {
testVector.add(item);
StringBuilder builder = new StringBuilder();
long start = System.nanoTime();
Iterator<Integer> iterator = testVector.iterator();
while(iterator.hasNext()) {
builder.append(iterator.next());
long end = System.nanoTime();
System.out.println(builder.length());
return end - start;
* @param args
public static void main(String[] args) {
IterationPerformanceTest test = new IterationPerformanceTest(1000000);
System.out.println("\n\nRESULTS:");
long arrayForLoop = test.getArrayForLoopDuration();
long arrayForEach = test.getArrayForEachDuration();
long arrayListForLoop = test.getArrayListForLoopDuration();
long arrayListForEach = test.getArrayListForEachDuration();
long arrayListIterator = test.getArrayListIteratorDuration();
// long linkedListForLoop = test.getLinkedListForLoopDuration();
long linkedListForEach = test.getLinkedListForEachDuration();
long linkedListIterator = test.getLinkedListIteratorDuration();
long vectorForLoop = test.getVectorForLoopDuration();
long vectorForEach = test.getVectorForEachDuration();
long vectorIterator = test.getVectorIteratorDuration();
System.out.println("Array for-loop: " + getPercentage(arrayForLoop, arrayForLoop) + "% ("+getDuration(arrayForLoop)+" sec)");
System.out.println("Array for-each: " + getPercentage(arrayForLoop, arrayForEach) + "% ("+getDuration(arrayForEach)+" sec)");
System.out.println("ArrayList for-loop: " + getPercentage(arrayForLoop, arrayListForLoop) + "% ("+getDuration(arrayListForLoop)+" sec)");
System.out.println("ArrayList for-each: " + getPercentage(arrayForLoop, arrayListForEach) + "% ("+getDuration(arrayListForEach)+" sec)");
System.out.println("ArrayList iterator: " + getPercentage(arrayForLoop, arrayListIterator) + "% ("+getDuration(arrayListIterator)+" sec)");
// System.out.println("LinkedList for-loop: " + getPercentage(arrayForLoop, linkedListForLoop) + "% ("+getDuration(linkedListForLoop)+" sec)");
System.out.println("LinkedList for-each: " + getPercentage(arrayForLoop, linkedListForEach) + "% ("+getDuration(linkedListForEach)+" sec)");
System.out.println("LinkedList iterator: " + getPercentage(arrayForLoop, linkedListIterator) + "% ("+getDuration(linkedListIterator)+" sec)");
System.out.println("Vector for-loop: " + getPercentage(arrayForLoop, vectorForLoop) + "% ("+getDuration(vectorForLoop)+" sec)");
System.out.println("Vector for-each: " + getPercentage(arrayForLoop, vectorForEach) + "% ("+getDuration(vectorForEach)+" sec)");
System.out.println("Vector iterator: " + getPercentage(arrayForLoop, vectorIterator) + "% ("+getDuration(vectorIterator)+" sec)");
private static NumberFormat percentageFormat = NumberFormat.getInstance();
static {
percentageFormat.setMinimumIntegerDigits(3);
percentageFormat.setMaximumIntegerDigits(3);
percentageFormat.setMinimumFractionDigits(2);
percentageFormat.setMaximumFractionDigits(2);
private static String getPercentage(long base, long value) {
double result = (double) value / (double) base;
return percentageFormat.format(result * 100.0);
private static NumberFormat durationFormat = NumberFormat.getInstance();
static {
durationFormat.setMinimumIntegerDigits(1);
durationFormat.setMaximumIntegerDigits(1);
durationFormat.setMinimumFractionDigits(4);
durationFormat.setMaximumFractionDigits(4);
private static String getDuration(long nanos) {
double result = (double)nanos / (double)1000000000;
return durationFormat.format(result);
} -
Hangs up (problem with jdk?)
Hi,
we are developing an application using the Java API with Ifs 1.1.9 on Sun Solaris, Oracle 8.1.7.
We parse files and an invoke perform some actions with the parsed data.
Java Api and Parsing workd fine, until I encountered the following problem:
In a certain function the action hangs up,
meaning the function does not come to an end, after all I got a time-out from the ftp session.
By debugging method I could identify that the hang up occurs within in the following step:
Hashset hs = new HashSet();
I changed the code to
Vector v = new Vector();
and got the same problem.
Meaning that there might be a problem with the JDK-Library-Calls.
When I call the same funtion with same argument from a JSP-Session, everything works fine.
Is there anything known about that behavior?
I have compiled the java-files on windows NT using an JDK1.3 installation and put it to the custum_classes directory on the sun machine.
Might it be that I have to use jdk1.2.2.
(for compilation?, for run-time on sun?)
Help appreciated,
ThomasThanks for reply
As suggested by you, i tried the 1.4.2_08 version, but i am facing the same kind of problems with this version also -
Problems with download jdk 6 update 3 online and offline
Hello,
I am italian.
I have same problems with download of jdk 6 update 3 for Windows Vista 32bit HomePremium.In passed i download without problems jdk 6,6 up 1,6 up 3 and 6 up 3(past saturday).For problems with my pc i installing new jdk but i have problems:
In online installation recive error with download file cabinet and in offline installation i recive error with file "st160000.cab" that is corrupted.
I have equal error with Xp sp2,Millenium edition and Vista Business edition.Help me.ThanksI add that the connection internet tested are variouse:gprs,adsl 2Mb,4Mb anda fastADSL 20Mb
-
Binary data problem with web services on JRockit but not Sun JDK
I have a problem with binary data in SOAP and JRockit
(jrrt-3.0.0-1.6.0-linux-x64.bin) . I have an set of web services based
on EJB 3.0 which return images as byte arrays inside a SOAP envelope
to be consumed by .NET 2 services. The host app server is Oracle
Application Server 10.3.1 on RHEL Linux update 4, on 64 bit Xeon 5500
series HP blade hardware.
While most images are fine most of the time, one particular image
gives this message when being consumed in the .NET client:
The '■' character, hexadecimal value 0x1F, cannot be included in a
name. Line 2, position 380038.
The MSDN suggests that this is usually caused by non-escaping of reserved XML characters like < but this isn't one of those.
The SOAP looks ok and for the life of me I can't see why this ought to
be a problem, especially since the problem doesn't arise running with
the SUN JDK 1.6_06 64 bit)
When making the same call from the OAS Enterprise Manager, I can make the same call with no problem (but the data is just rendered as character data in a browser) which maybe suggests some incompatibility with how JRockit is serializing the data ?
Any ideas, I would be very happy to hear - JRockit gives a 15% or so
speed boost to the website that these services power so obviously we
want to use it if possible.
Edited by: RichLiv on Nov 14, 2008 4:54 AMSeems to be the case that using MTOM stops this problem with JRockit. Strange but apparently true (so far).
-
SQL Developer 1.5 having problems with JDK 6 Update 7
I tried to open a table using SQL Developer 1.5 but connection timed out. when using SQL developer 1.2 i don't get any problems opening it.
i have JDK 6 update 7 installed.
the only problem with SQL Developer 1.2 is that i get a jdbc in the error log
how do i get to fix the SQL Developer 1.5?--The sql developer is connected using tnsnames.ora, with read only access
--i'm using windows XP SP3
--I have jdk 6 update 7 installed
--The tables that I can't View is listed under Other Users.
--I thought it was just because i have no permission to view it, but when i used the old sql developer 1.2, it displayed it properly.
--The reason i want to use SQL developer 1.5 is because i don't want to see any JDBC error on log messages, which happens on the sql developer 1.2
--i dont get to see any errors, sql developer suddenly can't view and lost the connection. it says connection is currently busy. and suddenly stops responding, the only way i can get it working again is by using the taskbar, when it close the program it gets java is not responding..
--also when i try running sqlcli.bat i get error with it.. is it because of my java?
--What more details do you need?
Edited by: user10285639 on Oct 15, 2008 4:47 PM
Edited by: user10285639 on Oct 15, 2008 4:53 PM -
Problems with client.jar - generated from webservices toolkit from JDK 1.1.7
We have deployed a web application using the webservices in WL 6.1 using JDK 1.3.1.
The clients were able to successfully access the servlet it generated and download
the client.jar. Unfortunately this client.jar seems to be dependent on JDK 1.2
and beyond. It seems to use java.util.Map class in the JNDI-SOAP SPI.
Is there any workaround or fix to this problem, so this jar can be used from a
JDK 1.1.7 env?.
Our objective is to use WL 6.1 EJB's from WL 4.5.1 using Webservices. Are there
any known problems with this approach (Ofcourse other than this).
Thank you.
Dora Potluri
Here is the stack trace from using the client.jar
Class not found java.lang.ClassNotFoundException: java.util.Map
[Root exception is java.lang.ClassNotFoundException: java.util.Map]javax.naming.
NamingException: Class not found java.lang.ClassNotFoundException: java.util.Map
at java.lang.Throwable.<init>(Compiled Code)
at java.lang.Exception.<init>(Compiled Code)
at javax.naming.NamingException.<init>(Compiled Code)
at weblogic.soap.http.SoapContext.throwNamingException(Compiled Code)
at weblogic.soap.http.SoapContext.lookup(Compiled Code)
at javax.naming.InitialContext.lookup(Compiled Code)
at weatherEJB.WeatherBean.getTemp(Compiled Code)
at weatherEJB.WeatherBeanEOImpl.getTemp(Compiled Code)
at weatherEJB.WeatherBeanEOImpl_WLSkel.invoke(Compiled Code)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(Compiled Code
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(Compiled
Co
de)
at weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.ex
ecute(Compiled Code)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)
Fri Sep 21 10:47:12 CDT 2001:<I> <EJB> Transaction: '1001087185816_1' rolled bac
k due to EJB exception:Yes, there is an expectation that the client jar will be run on JDK 1.3x. WLS 6.1 is certified on JDK 1.3x only. This
applies to the WebServices client as well. For details on platform support see
http://e-docs.bea.com/wls/platforms/index.html
Thanks,
Jim
Jim Rivera
Product Manager, WebLogic Server
BEA Systems, Inc.
Dora Potluri wrote:
I started testing using the client.jar generated by webservices WL 6.1 and found
that it uses reflection API interfaces that are not available til JDK 1.3. Is
there an expectation that the clients of Webservices are all going to be JDK 1.3.X.
Here is the stack trace we get.
java.lang.NoClassDefFoundError: java/lang/reflect/InvocationHandler
at weblogic.soap.http.SoapContext.lookup(SoapContext.java:76)
at javax.naming.InitialContext.lookup(InitialContext.java:280)
at weatherEJB.WeatherBean.getTemp(WeatherBean.java:106)
at weatherEJB.WeatherBeanEOImpl.getTemp(WeatherBeanEOImpl.java:47)
at weatherEJB.WeatherBeanEOImpl_WLSkel.invoke(WeatherBeanEOImpl_WLSkel.java:90)
at weblogic.rmi.extensions.BasicServerObjectAdapter.invoke(BasicServerObjectAdapter.java:261)
at weblogic.rmi.extensions.BasicRequestHandler.handleRequest(BasicRequestHandler.java:56)
at weblogic.rmi.extensions.BasicRequestDispatcher$BasicExecuteRequest.execute(BasicRequestDispatcher.java:166)
at weblogic.t3.srvr.ExecuteThread.run(Compiled Code) -
BC4J temporary focus problem with JDK 1.4.2
Hello all,
we have got a tricky problem with BC4J (Oracle JDeveloper 9.0.3.2)
using the JDK 1.4.2 (Sun):
There is a JFrame with a JMenuBar, containing a BC4J data panel with the controls on it.
Now if one enters a value in a control and now directy clicks on the JMenuBar, the control
gets a focusLost event but is not validated through BC4J and not set to the model.
If a commit would be called from the menue the entered data is lost !
In case of the JDK 1.3.1_02, which comes with the JDeveloper, everything works fine: after
the focusLost event, the data is validated and set to the model.
We have investigated the problem more deeper. The difference between
the 1.4 and 1.3 is, that the 1.4 creates a temporary FocusEvent and the 1.3 not.
We stepped up the stack into the Method oracle.jbo.uicli.jui.JUSVUpdateableFocusAdapter.focusLost:
the temporary focusEvent causes this method to return and to do nothing:
* Performs a setAttribute() on the control binding to save the changes made by
* the control to the attribute value.
public void focusLost(FocusEvent e)
if (e.isTemporary())
return;
JUCtrlAttrsBinding binding = (JUCtrlAttrsBinding)mAttrBinding;
I think it is a general problem with 1.4, because many things dealing with focus
have been expaned and changed.
Is this a bug or should BC4J not be used with 1.4 ?
Greetings9.0.3.2 is not tested with JDK 1.4, so issues like this are not a surprise.
However we will test this with our current development branch (which is being tested on JDK 1.4x) and verify if the behavior is reproducible.
Maybe you are looking for
-
When to use import and export directives?
I'm very confused about what the import and export language extensions do and when one should use them. I have a Bridge application with multiple source files. As long as I don't call code in another file from the startup execution path (before all s
-
Derived logical column using Row values in OBIEE11g
Hi Experts I have a requirement whereby I need to create say 100 new logical column in obiee using the row values of one dimension. For eg. say I have dimension values like A and B in one of the table , I need to create logical columns like C=A+B an
-
LabVIEW Functions and reentrant execution
Are the LabVIEW functions reentrant? I am writing a threaded application where the same code is used for the multiple threads. I have made the top level and lower level VIs reentrant but am wondering if the LabVIEW functions (specifically TCP Read an
-
Status of the Cockpit (trans.: CKMLCP)
Hi people, Please, could you tell me what is the table where keep the status of the Cockpit? It means, I would like to know where I can see the status "closed ok" by "table", after executing CKMLCP. Thanks, Rosana.
-
How to replace hard drive on micro ph
does anyone know how to replace the hard dri've on the zen micro photo ? can u pls tell me all the instructions or a link to the instructions thanks a bunch