Weblogic 5.1 SP10 with JDK 1.3 as NT Service

I'm trying to set up Weblogic to run as an NT service. I set the configuration using wlconfig.exe then ran install.exe and it installs and starts with no error but I know that the weblogic server has not started because there is nothing in the weblogic.log file. If I try to manually run wlserver.exe I get this error:
Java Ver: 1.3 C:\Cybrant572\_AppServer\jdk1.3
"DumpThreads" is not defined.
Weblogic server can not be run in your jvm.
loadIt: InitFunctions returned error (2)
The Windows registry is misconfigured
for the WebLogic Server
Can't start WebLogic Server: (Can't start Java VM) err=0x2000001
Any help would be greatly appreciated.

I am also getting the same error. I had jdk1.2.2 earlier and when i installed
jdk1.3, i used wlconfig to change the JAVA_HOME. that was the only change i did.
It is giving error. wlconfig says JAVA_HOME is c:\jdk1.3
"Andrew Horton" <[email protected]> wrote in message news:<[email protected]>...
i run wlserver.exe and then wrap that with srvany utility from msoft -
therefore running weblogic as a service.
to get wlserver to run with sp9 the registry needed changing
hkeylocalmachine\software\weblogic\5.1.0
needed changing to
hkeylocalmachine\software\weblogic\5.1.0sp9
so maybe you should try 5.1.0sp10
try it - it's easy enough to change back.
Andrew Horton
Open Business Exchange
[email protected]
Tel: +44 (0) 20 7947 2150
Mobile: +44 (0) 7973 737495
Fax: +44 (0) 20 7947 2168
www.obexchange.com
"Ted Dong" <[email protected]> wrote in message
news:3c55abcb$[email protected]..
I'm trying to set up Weblogic to run as an NT service. I set theconfiguration using wlconfig.exe then ran install.exe and it installs and
starts with no error but I know that the weblogic server has not started
because there is nothing in the weblogic.log file. If I try to manually run
wlserver.exe I get this error:
Java Ver: 1.3 C:\Cybrant572\_AppServer\jdk1.3
"DumpThreads" is not defined.
Weblogic server can not be run in your jvm.
loadIt: InitFunctions returned error (2)
The Windows registry is misconfigured
for the WebLogic Server
Can't start WebLogic Server: (Can't start Java VM) err=0x2000001
Any help would be greatly appreciated.

Similar Messages

  • Weblogic 6.0 SP2 with JDK1.3 as a Win2kPro Service Fails

    I have installed the weblogic server 6.0 with sp2 with the intergrated jdk1.3.0. Everything seems to be fine when I manually run it. Bun whenever I am trying to run as a win2k service it fails. To be more specific whenever I am trying to start the service I can can see in the services list that the service is running. After about 10 secs when I refresh the services list the weblogic service is stopped. My first thought was that I had to do something with the password option, I checked it and I corrected it but the problem still exists.

    I have installed the weblogic server 6.0 with sp2 with the intergrated jdk1.3.0. Everything seems to be fine when I manually run it. Bun whenever I am trying to run as a win2k service it fails. To be more specific whenever I am trying to start the service I can can see in the services list that the service is running. After about 10 secs when I refresh the services list the weblogic service is stopped. My first thought was that I had to do something with the password option, I checked it and I corrected it but the problem still exists.

  • Is there service pack available for weblogic 5.1 to work with JDK 1.4 for NT Environment

    Is there service pack available for weblogic 5.1 to work with JDK 1.4 for NT Environment

    Hi.
    This is definitely not supported, and I don't know that any work is scheduled in the future
    to support this JDK on WLS 5.1.
    Having said that, I was able to start WLS 5.1sp12 with JDK 1.4 with no errors. I didn't
    exercise any features, however.
    Regards,
    Michael
    Rakesh Gupta wrote:
    Is there service pack available for weblogic 5.1 to work with JDK 1.4 for NT Environment--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Weblogic 5.1 sp10/Solaris 7/jdk 1.2.09

    I got the following exception from the console, I don't know whether it is
    my servlet code problem or the weblogic setup problem. I am using Weblogic
    5.1 sp10 in Solaris 7. Thanks
    <ServletContext-General> Servlet failed with Exception
    java.lang.IllegalStateException: already committed response
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at java.lang.IllegalStateException.<init>(Compiled Code)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.clearBuffer(Compiled Code)
    at weblogic.servlet.jsp.JspWriterImpl.clear(Compiled Code)
    at jsp_servlet._jsp._bbs.__post._jspService(Compiled Code)
    at weblogic.servlet.jsp.JspBase.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
    Code)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)

    "> I got the following exception from the console, I don't know whether it
    is
    my servlet code problem or the weblogic setup problem. I am using Weblogic
    5.1 sp10 in Solaris 7. Thanks
    <ServletContext-General> Servlet failed with Exception
    java.lang.IllegalStateException: already committed response
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.<init>(Compiled Code)
    at java.lang.Exception.<init>(Compiled Code)
    at java.lang.RuntimeException.<init>(Compiled Code)
    at java.lang.IllegalStateException.<init>(Compiled Code)
    at
    weblogic.servlet.internal.ServletOutputStreamImpl.clearBuffer(CompiledCode)
    at weblogic.servlet.jsp.JspWriterImpl.clear(Compiled Code)
    at jsp_servlet._jsp._bbs.__post._jspService(Compiled Code)
    at weblogic.servlet.jsp.JspBase.service(Compiled Code)
    atweblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled
    Code)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at
    weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at
    weblogic.servlet.internal.ServletContextManager.invokeServlet(CompiledCode)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.kernel.ExecuteThread.run(Compiled Code)

  • Is weblogic 8.1 not compatible with JDK 1.5?

    Hi ,
    I am trying to run the weblogic 8.1 with JDK 1.5?
    Is it possible?Is it recommonded?
    I am getting the following exception at start up... I had changed the start up files to point to JDK 1.5.
    java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUI
    D = 7043855487133450673, local class serialVersionUID = 8644704819898565848
    at java.io.ObjectStreamClass.initNonProxy(Ljava.io.ObjectStreamClass;Ljava.lang.Class;Ljava.lang.ClassNotFoundExceptio
    n;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readNonProxyDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readClassDesc(Z)Ljava.io.ObjectStreamClass;(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readArray(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.defaultReadFields(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readSerialData(Ljava.lang.Object;Ljava.io.ObjectStreamClass;)V(Unknown Source)
    at java.io.ObjectInputStream.readOrdinaryObject(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject0(Z)Ljava.lang.Object;(Unknown Source)
    at java.io.ObjectInputStream.readObject()Ljava.lang.Object;(Unknown Source)
    at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:261)
    at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:366)
    at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:130)
    at weblogic.management.AdminServer.<init>(AdminServer.java:59)
    at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:771)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
    at weblogic.Server.main(Server.java:32)
    Is weblogic 8.1 not compatible with JDK 1.5?
    Thanks in advance,
    Binu

    Hi,
    I was trying WL 8.1 SP4 and was trying to run some classe within a encyption security jar that requires jre1.6. So for this can I mapped it in server prop the higher version and referred it in sever config files but still I am having the same problem. The exception dump is given below .... any help from the BEA side will be appreciated.
    <Quote>
    WebLogic XMLX Module 8.1 SP4 Mon Nov 29 16:21:29 PST 2004 471647 >
    The WebLogic Server did not start up properly.
    java.io.InvalidClassException: javax.management.MBeanAttributeInfo; local class incompatible: stream classdesc serialVersionUI
    D = 7043855487133450673, local class serialVersionUID = 8644704819898565848
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:562)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readArray(ObjectInputStream.java:1667)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1323)
    at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1945)
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:480)
    at javax.management.MBeanInfo.readObject(MBeanInfo.java:669)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
    at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1846)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
    at weblogic.management.internal.TypesHelper.getMBeanInfo(TypesHelper.java:261)
    at weblogic.management.internal.TypesHelper.getAdminOrConfigMBeanInfo(TypesHelper.java:366)
    at weblogic.management.internal.ConfigurationMBeanImpl.<init>(ConfigurationMBeanImpl.java:130)
    at weblogic.management.AdminServer.<init>(AdminServer.java:59)
    at weblogic.management.AdminServerAdmin.initialize(AdminServerAdmin.java:245)
    at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:771)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:670)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:344)
    at weblogic.Server.main(Server.java:32)
    <Unquote>
    Bye
    Bappa

  • Is it possible to run OAS 10.1.2  with JDK 1.6 ???

    Well on the one hand we have Oracle ADF BC application that was developed with JDeveloper 10.3.4 and runs fine on OAS 10.1.2 JDK 1.4 on the other hand we have a 3rd party Map Server (servlet + java code) that is black box and only runs on JDK 1.6 because it needs JDK 1.6 features.
    Currently the only available course of going forward is to introduce a new open source 1.6 compliant server to run the Map Server and use AJAX to cross domain communicate the two. Client would like to avoid this, would like one application on one server.
    Restrictions are
    1) To get the Map Server in JDK 1.4 format is not an option and
    2) Upgrading to a Oracle Server that is JDK 1.6 and supports the ADF BC application is not an option. And not sure if OAS 11 can run the ADF BC application since I did a quick test by trying to compile the ADF BC application JDeveloper 10.3.4 code in JDeveloper 11 with out any success.
    So to my question if I could run OAS 10.1.2 JDK 1.6 it might solve the problem before i attempt that I like to ask the ideas of others that might have faced such integration issues before.
    This is urgent any help is welcome by anyone and everyone and especially the Gurus.
    thanks in advanced health and happiness to every one

    AFAIK, Oracle AS 10.1.2 is not certified with JDK 1.5 or higher.
    Oracle AS 10.1.3 is certified with JDK 1.5 and 1.6 on some platforms. (Check metalink.oracle.com -> certify for details)
    Oracle FMW 11.1.1.0.1 (aka WebLogic 10.3 plus JDeveloper 11.1.1.0.1) is certified with JDK 1.6
    Not certified means use it on your own risk - no support.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • J2SE 1.3 client - Weblogic 8.14 Problem with unmarshal exception

    Hi
    I have problem with using RMI IIOP with J2SE 1.3.1_01 - Weblogic 8.1 SP4. Client is runing good, methods are working perfectly, but when EJB throws my exception, it is not serialized and thrown on client but MarshalException is thrown.
    I did everything as it is in weblogic documentation and I really do not know what to do.
    Also I read in weblogic documentation this note:
    Limitations Using RMI-IIOP on the Client
    Use WebLogic Server with JDK 1.3.1_01 or higher. Earlier versions are not RMI-IIOP compliant. Note the following about these earlier JDKs:
    Do not correctly unmarshal unchecked exceptions.But I am using 1.3.1_01 ...
    When I run it with 1.4 it is of course running without problem.
    Martin
    My Exception :
    java.io.IOException:
         at com.sun.corba.se.internal.io.IIOPInputStream.throwExceptionType(Native Method)
         at com.sun.corba.se.internal.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:272)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:245)
         at com.sun.corba.se.internal.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:207)
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1059)
         at com.upsscs.europe.cdmv.spl.ejb.service._SBTelnetKitting_Stub.getPickList(Unknown Source)
         at Pokus.main(Pokus.java:59)
    java.rmi.MarshalException: CORBA MARSHAL 0 No; nested exception is:
         org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor code: 0 completed: No
    org.omg.CORBA.MARSHAL: Unable to read value from underlying bridge : minor code: 0 completed: No
         at com.sun.corba.se.internal.iiop.CDRInputStream.read_value(CDRInputStream.java:1065)
         at com.upsscs.europe.cdmv.spl.ejb.service._SBTelnetKitting_Stub.getPickList(Unknown Source)
         at Pokus.main(Pokus.java:59)
    Exception in thread "main"

    Hi,
    I am sending the supported configuration link
    please go through it.
    http://e-docs.bea.com/platform/suppconfigs/configs81/81_over/overview.html#1146550
    Regards
    Prasanna Yalam

  • How To Configure Maven With Weblogic 10.3.1 With JDK6

    Hi,
    I have recently upgraded my JDK from 1.5 to 1.6. Can any one help what changes is needed for using Maven for remote deployment with JDK 1.6.
    Regards,
    Swain

    Hi,
    I am getting the below error when using Maven with JDK6
    [INFO] --- weblogic-maven-plugin:2.9.1:deploy (default-cli) @ Spring-JDBC ---
    [INFO] Weblogic Deployment beginning with parameters DeployMojoBase[adminServerHostName = 10.60.246.49, adminServerProtocol = t3, adminServerPort = 8003, userId = weblogic, password = system103, artifactPath = D:\EspaceDeTravail\Projets\MigrationPiloteDiargramme\workspace\Spring-JDBC\target/Spring-JDBC-1.1, projectPackaging = war, name = Spring-JDBC, targetNames = MDAD1, remote = true]
    [INFO] Weblogic Deployment parameters [-adminurl, t3://10.60.246.49:8003, -username, weblogic, -password, system103, -verbose, -noexit, -name, Spring-JDBC, -targets, MDAD1, -upload, -source, D:\EspaceDeTravail\Projets\MigrationPiloteDiargramme\workspace\Spring-JDBC\target/Spring-JDBC-1.1.war, -deploy]
    weblogic.Deployer invoked with options: -adminurl t3://10.60.246.49:8003 -username weblogic -verbose -noexit -name Spring-JDBC -targets MDAD1 -upload -source D:\EspaceDeTravail\Projets\MigrationPiloteDiargramme\workspace\Spring-JDBC\target/Spring-JDBC-1.1.war -deploy
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    [INFO] ------------------------------------------------------------------------
    [INFO] Total time: 33.218s
    [INFO] Finished at: Wed Mar 09 11:48:29 CET 2011
    [INFO] Final Memory: 7M/43M
    [INFO] ------------------------------------------------------------------------
    [ERROR] Failed to execute goal org.codehaus.mojo:weblogic-maven-plugin:2.9.1:deploy (default-cli) on project Spring-JDBC: Exception encountered during artifact start: weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 't3://10.60.246.49:8003': invalid type code: 31. Ensure the url represents a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server. DeploymentManagerCreationException: ServerConnectionException: CommunicationException: failed to unmarshal class weblogic.security.acl.internal.AuthenticatedUser; nested exception is:
    [ERROR] java.io.StreamCorruptedException: invalid type code: 31
    [ERROR] -> [Help 1]

  • JSTL 1.1.2 tags with JDK 1.4.2_12

    Hi,
    We have used JSTL 1.1.2 tags in our application. It works fine with JDK 1.4.2_05 on weblogic server 8.1 sp4. The same application throws error on use with JDK 1.4.2_12. Is any patch available for support of JSTL in JDK 1.4.2_12. Kindly do reply on the same.
    Thanks in advance
    Thanks & Regards
    V. Pravina

    I ran into a similiar problem with JBuilder 5. The answers on their boards indicate the problem traces to the change Sun made with versioniong class files in JDK1.4.
    Someone offers a patch tool for JBuilder, but Borland does not support it. It will be interesting to see what Oracle does with this problem.
    Mark

  • Login on to WLS with jdk 1.4 doesnot work

    Hi,
    I had ealier posted a question on how to debug ejb's on wls with eclipse and
    was directed to this site "http://www.genuitec.com/products.htm#weblogic_jdk14".
    There I found a document on how to setup WLS into debug and how to setup WLS to
    work with jdk 1.4.
    I followed the instructions but the password I am enetering is revoked. form
    the trace given bellow the NT username taken from the profile is bk608, is it
    the username for which I have to give the password or the ususal WLS management
    password ? Please help.
    Thanks,
    Gavin.
    PS: Here is the trace.....
    C:\bea\wlserver6.0>set PATH=C:\java\j2sdk1.4.0\bin;C:\WINNT\MS\SMS\CORE\BIN;c:\d
    mi\win32\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\MSSQL7\BINN;C:
    \java\jdk1.3.1_02\bin;C:\java\jakarta-ant-1.4.1\bin
    C:\bea\wlserver6.0>set PATH=.\bin;C:\java\j2sdk1.4.0\bin;C:\WINNT\MS\SMS\CORE\BI
    N;c:\dmi\win32\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\MSSQL7\B
    INN;C:\java\jdk1.3.1_02\bin;C:\java\jakarta-ant-1.4.1\bin
    C:\bea\wlserver6.0>set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
    C:\bea\wlserver6.0>"C:\java\j2sdk1.4.0\bin\java" -hotspot -ms64m -mx64m -classpa
    th .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar -Dweblogic.Domain=mydomain -Dweblo
    gic.Name=myserver "-Dbea.home=C:\bea" "-Djava.security.policy==C:\bea\wlserver6.
    0/lib/weblogic.policy" -Dweblogic.management.password= "-Djava.security.auth.log
    in.config=C:\bea\wlserver6.0/lib/login.conf" weblogic.Server
    [NTLoginModule] succeeded importing info:
    userID = bk608
    domain = HK2OSL
    domainSID = S-1-5-21-161959346-607994573-1935560845
    userSID = S-1-5-21-161959346-607994573-1935560845-14617
    primary group ID = S-1-5-21-161959346-607994573-19355608
    45-513
    group ID = S-1-5-21-161959346-607994573-1935560845-513
    group ID = S-1-1-0
    group ID = S-1-5-21-314861234-1864712239-1573738576-1007
    group ID = S-1-5-32-544
    group ID = S-1-5-32-545
    group ID = S-1-5-21-161959346-607994573-1935560845-1796
    group ID = S-1-5-21-161959346-607994573-1935560845-1898
    group ID = S-1-5-21-161959346-607994573-1935560845-1904
    group ID = S-1-5-21-161959346-607994573-1935560845-1907
    group ID = S-1-5-21-161959346-607994573-1935560845-1908
    group ID = S-1-5-21-161959346-607994573-1935560845-1934
    group ID = S-1-5-21-161959346-607994573-1935560845-10808
    group ID = S-1-5-5-0-49130
    group ID = S-1-2-0
    group ID = S-1-5-4
    group ID = S-1-5-11
    impersonationToken = 928
    [NTLoginModule] added NTPrincipal to Subject
    Starting WebLogic Server ....
    <Apr 16, 2002 10:11:19 AM CEST> <Notice> <Management> <Loading configuration fil
    e .\config\mydomain\config.xml ...>
    log file: C:\bea\wlserver6.0\.\config\mydomain\logs\weblogic.log
    <Apr 16, 2002 10:11:21 AM CEST> <Info> <Logging> <Only log messages of severity
    "Error" or worse will be displayed in this window. This can be changed at Admin
    Console> mydomain> Servers> myserver> Logging> General> Stdout severity threshol
    d>
    <Apr 16, 2002 10:11:22 AM CEST> <Emergency> <Security> <Authentication failure
    reenter password to boot weblogic server:>
    <Apr 16, 2002 10:11:23 AM CEST> <Emergency> <Security> <Authentication failure
    reenter password to boot weblogic server:>
    <Apr 16, 2002 10:11:27 AM CEST> <Emergency> <Server> <Unable to initialize the
    s
    erver: 'Fatal initialization exception
    Throwable: java.lang.SecurityException: Authentication for user guest denied
    java.lang.SecurityException: Authentication for user guest denied
    at weblogic.security.SecurityService.initializeSuid(SecurityService.java
    :360)
    at weblogic.security.SecurityService.initialize(SecurityService.java:125
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    '>
    The WebLogic Server did not start up properly.
    Exception raised: java.lang.SecurityException: Authentication for user guest den
    ied
    java.lang.SecurityException: Authentication for user guest denied
    at weblogic.security.SecurityService.initializeSuid(SecurityService.java
    :360)
    at weblogic.security.SecurityService.initialize(SecurityService.java:125
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception
    C:\bea\wlserver6.0>goto finish
    C:\bea\wlserver6.0>cd config\mydomain
    C:\bea\wlserver6.0\config\mydomain>ENDLOCAL

    add -Dweblogic.management.password=yoursystempassword to the java command line
    when you start WebLogic. Or specify it in the startWebLogic.cmd if you use the
    standard startup script:
    @rem Set WLS_PW equal to your system password for no password prompt server startup.
    set WLS_PW=yoursystempassword
    Gavin <[email protected]> wrote:
    Hi,
    I had ealier posted a question on how to debug ejb's on wls with eclipse and
    was directed to this site "http://www.genuitec.com/products.htm#weblogic_jdk14".
    There I found a document on how to setup WLS into debug and how to setup WLS to
    work with jdk 1.4.
    I followed the instructions but the password I am enetering is revoked. form
    the trace given bellow the NT username taken from the profile is bk608, is it
    the username for which I have to give the password or the ususal WLS management
    password ? Please help.
    Thanks,
    Gavin.
    PS: Here is the trace.....
    C:\bea\wlserver6.0>set PATH=C:\java\j2sdk1.4.0\bin;C:\WINNT\MS\SMS\CORE\BIN;c:\d
    mi\win32\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\MSSQL7\BINN;C:
    \java\jdk1.3.1_02\bin;C:\java\jakarta-ant-1.4.1\bin
    C:\bea\wlserver6.0>set PATH=.\bin;C:\java\j2sdk1.4.0\bin;C:\WINNT\MS\SMS\CORE\BI
    N;c:\dmi\win32\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\MSSQL7\B
    INN;C:\java\jdk1.3.1_02\bin;C:\java\jakarta-ant-1.4.1\bin
    C:\bea\wlserver6.0>set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar
    C:\bea\wlserver6.0>"C:\java\j2sdk1.4.0\bin\java" -hotspot -ms64m -mx64m -classpa
    th .;.\lib\weblogic_sp.jar;.\lib\weblogic.jar -Dweblogic.Domain=mydomain -Dweblo
    gic.Name=myserver "-Dbea.home=C:\bea" "-Djava.security.policy==C:\bea\wlserver6.
    0/lib/weblogic.policy" -Dweblogic.management.password= "-Djava.security.auth.log
    in.config=C:\bea\wlserver6.0/lib/login.conf" weblogic.Server
    [NTLoginModule] succeeded importing info:
    userID = bk608
    domain = HK2OSL
    domainSID = S-1-5-21-161959346-607994573-1935560845
    userSID = S-1-5-21-161959346-607994573-1935560845-14617
    primary group ID = S-1-5-21-161959346-607994573-19355608
    45-513
    group ID = S-1-5-21-161959346-607994573-1935560845-513
    group ID = S-1-1-0
    group ID = S-1-5-21-314861234-1864712239-1573738576-1007
    group ID = S-1-5-32-544
    group ID = S-1-5-32-545
    group ID = S-1-5-21-161959346-607994573-1935560845-1796
    group ID = S-1-5-21-161959346-607994573-1935560845-1898
    group ID = S-1-5-21-161959346-607994573-1935560845-1904
    group ID = S-1-5-21-161959346-607994573-1935560845-1907
    group ID = S-1-5-21-161959346-607994573-1935560845-1908
    group ID = S-1-5-21-161959346-607994573-1935560845-1934
    group ID = S-1-5-21-161959346-607994573-1935560845-10808
    group ID = S-1-5-5-0-49130
    group ID = S-1-2-0
    group ID = S-1-5-4
    group ID = S-1-5-11
    impersonationToken = 928
    [NTLoginModule] added NTPrincipal to Subject
    Starting WebLogic Server ....
    <Apr 16, 2002 10:11:19 AM CEST> <Notice> <Management> <Loading configuration fil
    e .\config\mydomain\config.xml ...>
    log file: C:\bea\wlserver6.0\.\config\mydomain\logs\weblogic.log
    <Apr 16, 2002 10:11:21 AM CEST> <Info> <Logging> <Only log messages of severity
    "Error" or worse will be displayed in this window. This can be changed at Admin
    Console> mydomain> Servers> myserver> Logging> General> Stdout severity threshol
    d>
    <Apr 16, 2002 10:11:22 AM CEST> <Emergency> <Security> <Authentication failure
    reenter password to boot weblogic server:>
    <Apr 16, 2002 10:11:23 AM CEST> <Emergency> <Security> <Authentication failure
    reenter password to boot weblogic server:>
    <Apr 16, 2002 10:11:27 AM CEST> <Emergency> <Server> <Unable to initialize the
    s
    erver: 'Fatal initialization exception
    Throwable: java.lang.SecurityException: Authentication for user guest denied
    java.lang.SecurityException: Authentication for user guest denied
    at weblogic.security.SecurityService.initializeSuid(SecurityService.java
    :360)
    at weblogic.security.SecurityService.initialize(SecurityService.java:125
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    '>
    The WebLogic Server did not start up properly.
    Exception raised: java.lang.SecurityException: Authentication for user guest den
    ied
    java.lang.SecurityException: Authentication for user guest denied
    at weblogic.security.SecurityService.initializeSuid(SecurityService.java
    :360)
    at weblogic.security.SecurityService.initialize(SecurityService.java:125
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:343)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:169)
    at weblogic.Server.main(Server.java:35)
    Reason: Fatal initialization exception
    C:\bea\wlserver6.0>goto finish
    C:\bea\wlserver6.0>cd config\mydomain
    C:\bea\wlserver6.0\config\mydomain>ENDLOCAL
    Dimitri

  • What is wrong with JDK 1.5 ????

    Greetings: On two identical machines I ran this simple program several times:
    import TurtleGraphics.StandardPen;
    class DrawSquare
    public static void main ( String args[] )
         StandardPen pen = new StandardPen();
         //pen.up();
         //pen.move(25);
         //pen.turn(90);
         //pen.move(25);
         //pen.down();
         for ( int counter = 1; counter <= 180 ; counter++ )
         pen.turn ( 2 );
         pen.turn(90); pen.move(150);
         pen.turn(90); pen.move(150);
         pen.turn(90); pen.move(150);
         pen.turn(90); pen.move(150);
    The Machine with JDK 1.4.2 executed it in 2 secs and drew a circle, while the one with JDK 1.5 took 60 secs. Is the cost of the new JDK extreme slowness in running programs ???????????????
    BMR

    I've seen a dramatic slowdown using the 1.5 jre as well. I haven't done any profiling, so I don't know exactly what my problem is, but this link seemed pretty interesting: http://jroller.com/comments/bloritsch/Weblog/interesting_discovery_with_jdk_1
    He says that java programs that were compiled with a 1.4 sdk perform extremely slow on a 1.5 jre, when compared with programs compiled with a 1.5 sdk using a 1.5 jre.
    Can you see if your external library (TurtleGraphics) can be re-compiled with 1.5?

  • Error while running Dev60 with jdk 11711o

    Dear OTN Members / Oracle Development Team.
    Have any one tried it. Help required form Oracle Devlopemnt
    Team.
    hi i am using oracle8 OAS 4.0.7, Developer 6.0 production
    with NT 4.0 and service Pack 3
    when i try to run the form through jinitinator or JDK provided
    with the package i get the following error.
    running with jinitator
    Oracle JInitiator version 1.1.7.11
    Using JRE version 1.1.7.11o
    User home directory = E:\WINNT\Profiles\Administrator
    Proxy Configuration: no proxy
    java.io.FileNotFoundException: \forms60\f60all.jar
    at java.io.FileInputStream.<init>(FileInputStream.java:56)
    at sun.net.www.protocol.file.FileURLConnection.connect(Compiled
    Code)
    at
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileUR
    LConnection.java:162)
    at
    sun.net.www.protocol.http.HttpURLConnection.openConnectionCheckRe
    directs(Compiled Code)
    at
    sun.applet.AppletCache.getInputStream(AppletCache.java:588)
    at
    sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java
    171)
    at sun.applet.JinitAppletPanel.loadJarFiles(Compiled
    Code)
    at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)
    at
    sun.applet.JinitAppletPanel.runLoader(JinitAppletPanel.java:500)
    at sun.applet.JinitAppletPanel.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:466)
    and with JDK
    Microsoft (R) VM for Java, 5.0 Release 5.0.0.3165
    ==============================================
    ? help
    c clear
    f run finalizers
    g garbage collect
    m memory usage
    q quit
    t thread list
    ==============================================
    com.ms.security.SecurityExceptionEx[oracle/forms/engine/Main.init
    ]: cannot access file E:\WINNT\Java\.hotjava
    at com/ms/security/permissions/FileIOPermission.check
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at com/ms/security/StandardSecurityManager.checkRead
    at java/io/File.exists
    at java/io/File.mkdirs
    at sun/applet/AppletViewer.<clinit>
    at java/lang/ClassLoader.findSystemClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    Error getting package information: sun/applet
    com.ms.packagemanager.PackageManagerException: Package not
    ound
    at com/ms/packagemanager/PackageManager.getPackage
    at
    com/ms/security/SecurityClassLoader.getSecurityInfoFromPackage
    at
    com/ms/security/SecurityClassLoader.findPackageManagerClass
    at
    com/ms/security/SecurityClassLoader.findPackageManagerClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    java.lang.ClassNotFoundException: sun.applet.AppletViewer
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    what could be the problem have any one encountered this kind of
    problem.
    pls help required.
    mobeen
    null

    Dear OTN Members / Oracle Development Team.
    Have any one tried it. Help required form Oracle Devlopemnt
    Team.
    hi i am using oracle8 OAS 4.0.7, Developer 6.0 production
    with NT 4.0 and service Pack 3
    when i try to run the form through jinitinator or JDK provided
    with the package i get the following error.
    running with jinitator
    Oracle JInitiator version 1.1.7.11
    Using JRE version 1.1.7.11o
    User home directory = E:\WINNT\Profiles\Administrator
    Proxy Configuration: no proxy
    java.io.FileNotFoundException: \forms60\f60all.jar
    at java.io.FileInputStream.<init>(FileInputStream.java:56)
    at sun.net.www.protocol.file.FileURLConnection.connect(Compiled
    Code)
    at
    sun.net.www.protocol.file.FileURLConnection.getInputStream(FileUR
    LConnection.java:162)
    at
    sun.net.www.protocol.http.HttpURLConnection.openConnectionCheckRe
    directs(Compiled Code)
    at
    sun.applet.AppletCache.getInputStream(AppletCache.java:588)
    at
    sun.applet.AppletResourceLoader.loadJar(AppletResourceLoader.java
    171)
    at sun.applet.JinitAppletPanel.loadJarFiles(Compiled
    Code)
    at sun.plugin.AppletViewer.loadJarFiles(Compiled Code)
    at
    sun.applet.JinitAppletPanel.runLoader(JinitAppletPanel.java:500)
    at sun.applet.JinitAppletPanel.run(Compiled Code)
    at java.lang.Thread.run(Thread.java:466)
    and with JDK
    Microsoft (R) VM for Java, 5.0 Release 5.0.0.3165
    ==============================================
    ? help
    c clear
    f run finalizers
    g garbage collect
    m memory usage
    q quit
    t thread list
    ==============================================
    com.ms.security.SecurityExceptionEx[oracle/forms/engine/Main.init
    ]: cannot access file E:\WINNT\Java\.hotjava
    at com/ms/security/permissions/FileIOPermission.check
    at com/ms/security/PolicyEngine.deepCheck
    at com/ms/security/PolicyEngine.checkPermission
    at com/ms/security/StandardSecurityManager.chk
    at com/ms/security/StandardSecurityManager.checkRead
    at java/io/File.exists
    at java/io/File.mkdirs
    at sun/applet/AppletViewer.<clinit>
    at java/lang/ClassLoader.findSystemClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    Error getting package information: sun/applet
    com.ms.packagemanager.PackageManagerException: Package not
    ound
    at com/ms/packagemanager/PackageManager.getPackage
    at
    com/ms/security/SecurityClassLoader.getSecurityInfoFromPackage
    at
    com/ms/security/SecurityClassLoader.findPackageManagerClass
    at
    com/ms/security/SecurityClassLoader.findPackageManagerClass
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    java.lang.ClassNotFoundException: sun.applet.AppletViewer
    at com/ms/vm/loader/URLClassLoader.loadClass
    at java/lang/ClassLoader.loadClassInternal
    at oracle/forms/engine/Main.init
    at com/ms/applet/AppletPanel.securedCall0
    at com/ms/applet/AppletPanel.securedCall
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.processSentEvent
    at com/ms/applet/AppletPanel.run
    at java/lang/Thread.run
    what could be the problem have any one encountered this kind of
    problem.
    pls help required.
    mobeen
    null

  • Weblogic 10.3.5 with oracle forms and reports 11.1.2.1.0

    Hi All,
    I am new to 11g concept (actually web based, have worked till 6i) and trying to upgrade my existing system (6i) to 11g. I have installed Weblogic 10.3.5 with forms and reports 11.1.2.1.0 on windows 7 32 bit. I can connect to my database (10g) from Form builder.
    But when I try to open a form/pll of 10g or 6i, it says PDE-PLI018 could not find library and it shows the path of my earlier folder, which now does not exist.
    I have made changes in registry FORMS_PATH, FORMS_BUILDER_PATH, UI_ICON
    And in default.env file FORMS_PATH and CLASSPATH
    I have added entry to tnsnames.ora, through which I can connect to DB. And have followed below site to configure weblogic and FM forms and reports;
    http://windows7bugs.wordpress.com/2013/04/06/install-configure-oracle-weblogic-server-10-3-6-forms-reports-11g-on-windows8windows-2008-r2/
    I have few doubts in my mind;
    1) Do we have to connect (create a bridge) to DB from weblogic except tnsnames.ora.
    2) For library error I think I am missing some settings to be done.
    3) If I am able to rectify above error then can I directly use http://localhost:8888/forms/frmservlet and access the system from another pc, or still there are some modifications needed.
    I am trying this from last 3 days, but couldn't find the solution, kindly help me out for same, eagerly waiting for your reply.
    Regards,
    Ash

    Hi InoL,
    Thanks for your reply, Yes, as there are many forms in my system, there is a chance that libraries attached are with the path.

  • A problem regarding set up of Oracle Lite 3.6.0.2.0 on Win 95, with JDK 1.1.8 &java 2

    A problem regarding set up of Oracle Lite 3.6.0.2.0 on Win 95, with JDK 1.1.8 and Java 2 SDK ( Ver 1.3 Beta)
    After the installation of Oracle Lite 3.6.0.2.0 on a laptop (with WIN 95 OS), When I run Oracle Lite Designer from start menu, I receive following error message :
    ====================================
    Invalid class name 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    usage: java [-options] class
    where options include:
    -help print out this message
    -version print out the build version
    -v -verbose turn on verbose mode
    -debug enable remote JAVA debugging
    -noasyncgc don't allow asynchronous garbage collection
    -verbosegc print a message when garbage collection occurs
    -noclassgc disable class garbage collection
    -ss<number> set the maximum native stack size for any thread
    -oss<number> set the maximum Java stack size for any thread
    -ms<number> set the initial Java heap size
    -mx<number> set the maximum Java heap size
    -classpath <directories separated by semicolons>
    list directories in which to look for classes
    -prof[:<file>] output profiling data to .\java.prof or .\<file>
    -verify verify all classes when read in
    -verifyremote verify classes read in over the network [default]
    -noverify do not verify any class
    -nojit disable JIT compiler
    Please make sure that JDK 1.1.4 (or greater) is installed in your machine and CLASSPATH is set properly. JAVA.EXE must be in the PATH.
    ====================================
    My ORACLE_HOME is c:\program files\ora95_2 and Oracle Lite is installed under the ORACLE_HOME in LITE\DESIGNER directory.
    JDK version is 1.1.8 which is greater than 1.1.4 installed in c:\program files\jdk1.1.8, My PATH, and CLASSPATH are set in AUTOEXEC.BAT as follows:
    set CLASSPATH=c:\Progra~1\jdk1.1.8\lib\classes.zip;c:\progra~1\ora95_2\lite\classes\olite36.jar;c:\progra~1\ora95_2\lite\designer\oldes.jar;c:\progra~1\ora95_2\lite\designer\swingall.j ar
    PATH=C:\Progra~1\Ora95_2\bin;.;c:\Progra~1\jdk1.1.8\lib;c:\Progra~1\jdk1.1.8\bin;C:\Progra~1\Ora95_2\lite\Designer;C:\WIN95;C:\WIN95\COMMAND;C:\UTIL
    And, I can run JAVA.EXE from any directory on command prompt.
    With JAVA 2 SDK (ver 1.3 Beta) instead of JDK 1.1.8 I'm getting a different Error message as follows:
    =============================
    java.lang.NoClassFoundError: 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    Please make sure that JDK 1.1.4 (or greater) is installed in your machine and CLASSPATH is set properly. JAVA.EXE must be in the PATH.
    ==============================
    the PATH and CLASSPATH were set accordingly, as with JDK1.1.8, and there was no classes.zip in classpath
    also the class file or the jar file looks weird or wrapped in the error message : 'FILES\ORA95_2\LITE\DESIGNER\oldes.jar;C:\PROGRAM'
    Another interesting thing I noticed is if I run oldes.exe from Installation CD, the Oracle Lite Designer runs fine, and without error, I'm able to modify tables in the database of my laptop also.
    Could someone shade some light on what am I doing wrong here ?
    Thanks for help in advance .
    Regards
    Viral
    null

    On 07/20/2015 06:35 AM, Itzhak Hovav wrote:
    > hi
    > [snip]
    > [root@p22 eclipse]# cat eclipse.ini -startup
    > plugins/org.eclipse.equinox.launcher_1.3.0.v20120522-1813.jar
    > --launcher.library
    > plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.200.v20120913-144807
    >
    > -showsplash
    > org.eclipse.platform
    > --launcher.XXMaxPermSize
    > 256m
    > --launcher.defaultAction
    > openFile
    > -vmargs
    > -Xms40m
    > -Xmx512m
    > [snip]
    Try this: http://wiki.eclipse.org/Eclipse.ini. You should have read the
    sticky posts at forum's top for getting started help.

  • 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);
    }

Maybe you are looking for

  • Everytime my iPod touch turns on, it wont let me type in my passcode.

    Everytime i turn on my iPod touch, it goes to the passcode screen and wont let me type in my passcode. then it just keeps restarting the enter passcode screen. what do i do?

  • [svn:osmf:] 10528: Removing obsolete import statements.

    Revision: 10528 Author:   [email protected] Date:     2009-09-23 02:47:21 -0700 (Wed, 23 Sep 2009) Log Message: Removing obsolete import statements. Modified Paths:     osmf/trunk/framework/MediaFramework/org/openvideoplayer/media/IContainerGateway.a

  • Cant access itunes store since beginning October...10.5 update tried everthing listed in forum

    This seems to be an issue with many users.  Tried many things listed here and contacted support.  they arent able to help either.  Really frustrated.

  • Demand Planning upload and down

    Dear Experts, I downloaded data from deman planning planning book while downloading  i saved as local selected prepare file for upload at later time save additional information in the system and saved as csv format and do some changes to the data and

  • Help! PB gone nutty

    I put a blank CD in the drive and then shut the computer down, but too hastily. I think the computer was still trying to recognize the CD when I hit the shutdown button. I didn't notice anything had gone funny until I tried to start the computer a co