Reloading JVM

My program needs to detect a JVM with Java3D installed. The way this is done is by looking in the registry for the entries of the JRE version and the JDK version. First the JRE JVM is loaded and if the program finds out that some Java3D class cannot be loaded it 'knows' Java3D is not installed there and unloads this JVM!!! (with DestroyJavaVM ). Then the program tries to load the JDK JVM (a JVM at another location ) and an error occurs:
"An unexpected exception has been detected in native code outside the VM."
I think this should not happen, because the JavaVMInitArgs are properly initialized and the previous call to JNI_CreateJavaVM worked fine and is called in the same way!
I think the call to DestroyJavaVM is ineffective in the sense that it does not completely unload the previous JVM... I think this is a bug, because it should be possible to reload a JVM!!!
Can someone please help me?
Thanx!

I searched the internet, but i couldn't find a solution though! Thanks to your help i now know that there is not even a 'known' solution to this problem?!
Anyway, i still would like to find one, because i need to find the JVM with Java3D installed. I think it has to do something with Threads and with msvcrt!_exept_handler3, but i am still looking for a solution. Hope i will find one myself.

Similar Messages

  • Reloading JVM in 10.2.0.4.0 database

    Dear All
    On our 10.2.0.4.0 stand alone database systems running on Solaris 10, we encountered a series of ORA-07445 errors while trying to load jar files using the loadjava utility. Upon our follow up with Oracle Support, we are advised to remove and reload JVM into the database following the "NOTE 276554.1 How to Reload the JVM in 10.1.0.X and 10.2.0.X".
    Before proceeding, I was not very much sure about the possible issues we may encounter in this procedure. Although I have now a fair understanding of the steps I need to perform I wanted to know the possible risks while reloading a JVM into the database ? Whats is the risk of reloading JVM into this 10.2.0.4 database systems? Could you from your experiences educate me in this direction?
    After reading the note, I understand there could be / will be problems with JAVA components with in the database and others which utilise this may also be affected like for example SPATIAL, Datamining etc.. is that all ?
    Also as advised in the note I will take a full cold backup of the database and an export dump with ROWS=N option. Please do recomend if we need to consider any other safety measures.
    Many thanks for your time. I am sure this is a very trivial question and but its just this line in the Note which says, " the following actions are dangerous and need to be only performed under the guidence of Oracle Support" creates few questions in my mind.
    Regards!
    Sarat

    Hi.
    I have done it 3 times and everything was successful.. Yes, I don't use Spatial and UltraSearch, however there is no so critical issue. Simple follow guide in this article what Oracle says:
    If you previously had the InterMedia (ORDSYS), UltraSearch (WKSYS) Data Mining (DMSYS), Spatial (MDSYS) or (EXFSYS) options installed, then these will need to be re-installed to reload their java dependencies.  This can be achieved by executing the following commands:

  • Verify and re-install jvm if necessary

    I'm attempting to install jvm in my 10.2.0.2 database on an aix 5.2 server. I ran the dbca and told it to install jvm and intermedia, but it just hung at 11%. So I cancelled it after about 45 minutes.
    I found reference of the following selects to verify jvm has been installed:
    sys@DMRDEV> select version, status, comp_id from dba_registry;
    VERSION STATUS COMP_ID
    10.2.0.2.0 VALID XDB
    10.2.0.2.0 INVALID ORDIM
    10.2.0.2.0 VALID EM
    10.2.0.2.0 VALID CATALOG
    10.2.0.2.0 VALID CATPROC
    10.2.0.2.0 VALID JAVAVM
    6 rows selected.
    sys@DMRDEV> select dbms_java.longname('foo') from dual;
    DBMS_JAVA.LONGNAME('FOO')
    foo
    sys@DMRDEV> select count(*) from dba_objects
    2 WHERE object_type LIKE 'JAVA%';
    COUNT(*)
    15568
    sys@DMRDEV> select owner, count(*)
    2 from dba_objects
    3 where object_type like 'JAVA%'
    4 group by owner;
    OWNER COUNT(*)
    SYS 14114
    ORDSYS 1454
    sys@DMRDEV> SELECT dbms_java.longname(name)
    2 FROM obj$
    3 WHERE type# = 29 and status != 1;
    DBMS_JAVA.LONGNAME(NAME)
    oracle/ord/media/annotator/utils/MADataInputStream
    oracle/ord/media/annotator/utils/Preferences
    312 rows returned.
    The fact that I cancelled the install and the 312 records returned by the last select make me think it didn't install correctly. I have searched for about 30 minutes now trying to figure out how to un-install or repair the jvm install, but can't find anything. Anyone have a link to some documentation on this? I think my initial problem might have been my JAVA_HOME, LD_LIBRARY_PATH, and PATH variables not pointing to an up to date java directory.

    disregard. i just restored and recovered from the backup that I took before messing it up.
    for further reference if anyone else has the same problem I had to manually reload jvm and then install Oracle Text manually. The problem came up because this was a 9.2 database that didn't have either component installed when it was upgraded to 10g. I used metalink note 276554.1 for the jvm portion and 280713.1 for the Oracle Text part. For the jvm portion I only ran the part that installs jvm.

  • OutOfMemoryError with many deployed apps

    We have 62 applications (EARs) deployed. 21 of these application contains a single stateless session bean and somewhere between 3 and 40 entity beans each. In total we currently have 466 entity beans. The rest of the applications contain only a single stateful session bean each.
    When all these applications are enabled we can run for a few minutes before getting an OutOfMemoryError. When we disable 20 of the latter kind, the ones with stateful session beans, the server seems to work OK.
    We have not yet, for obvious reasons, rolled the system out to the users so only a few developers are using it. The clients are fat Swing clients that talk IIOP with the server.
    In one of the beans we have a method that does three consecutive System.gc() and then measures the heap usage. With all applications enabled only around 30% of the maximum heap space is used, even right before the server crashes. The heap max is set to 512MB and since the usage rate is so low it doesn't seem meaningful to increase it. Also, if there is a leak then just increasing the heap may give us a longer uptime without really solving the problem. We suspect that there is some other limit somewhere, but since the error message in the log doesn't have a stack trace it is very difficult to narrow it down.
    Has anyone had a similar problem and maybe found a solution?
    TIA,
    /Gunnar

    I've now tried switching off UseTLab, which had no effect. I've tried UseParallelGC earlier, also with no effect. When the server goes down there are only around 80 threads running, and I dont think that qualifies as a "large number of threads".
    Some other info:
    Hardware: Dell PowerEdge 2650, 4 x 2388 MHz CPU's, 4 GB RAM and a 6 GB paging file.
    OS: Windows 2000 Server v 5.0.2195 SP4
    JVM: Java HotSpot(TM) Server VM, Version 1.4.2_04
    Instead of listing the JVM options, here is the complete server.xml:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE server PUBLIC "-//Sun Microsystems Inc.//DTD Sun ONE Application Server 7.0//EN" "file:///C:/Sun/AppServer7/lib/dtds/sun-server_1_1.dtd">
    <!--
    Copyright (c) 2002 Sun Microsystems, Inc. All rights reserved.
    Use is subject to license terms.
    -->
    <!-- server_7_0_dtd version: 1.1.2.39 -->
    <server locale="en_US" name="server1" log-root="C:/Sun/AppServer7/domains/domain1/server1/logs" application-root="C:/Sun/AppServer7/domains/domain1/server1/applications" session-store="C:/Sun/AppServer7/domains/domain1/server1/session-store">
    <http-service qos-enabled="false" qos-metrics-interval-in-seconds="30" qos-recompute-time-interval-in-millis="100">
    <http-listener id="http-listener-1" address="0.0.0.0" port="81" acceptor-threads="1" blocking-enabled="false" security-enabled="false" default-virtual-server="server1" server-name="toker" enabled="true"/>
    <mime id="mime1" file="mime.types"/>
    <acl id="acl1" file="C:/Sun/AppServer7/domains/domain1/server1/config/generated.server1.acl"/>
    <virtual-server-class id="defaultclass" config-file="obj.conf" default-object="default" accept-language="false" enabled="true">
    <virtual-server id="server1" config-file="server1-obj.conf" http-listeners="http-listener-1" hosts="toker" mime="mime1" state="on" accept-language="false">
    <http-qos enforce-bandwidth-limit="false" enforce-connection-limit="false"/>
    <auth-db id="default" database="default"/>
    <property name="dir" value=""/>
    <property name="nice" value=""/>
    <property name="user" value=""/>
    <property name="group" value=""/>
    <property name="chroot" value=""/>
    <property name="docroot" value="D:/Project"/>
    <property name="accesslog" value="C:/Sun/AppServer7/domains/domain1/server1/logs/access"/>
    </virtual-server>
    </virtual-server-class>
    </http-service>
    <iiop-service>
    <orb message-fragment-size="1024" steady-thread-pool-size="10" max-thread-pool-size="200" idle-thread-timeout-in-seconds="300" max-connections="1024" monitoring-enabled="false"/>
    <iiop-listener id="orb-listener-1" address="0.0.0.0" port="3700" enabled="true">
              </iiop-listener>
    </iiop-service>
    <web-container monitoring-enabled="false">
         </web-container>
    <ejb-container steady-pool-size="16" pool-resize-quantity="8" max-pool-size="64" cache-resize-quantity="32" max-cache-size="256" pool-idle-timeout-in-seconds="600" cache-idle-timeout-in-seconds="600" removal-timeout-in-seconds="5400" victim-selection-policy="nru" commit-option="B" monitoring-enabled="false">
         </ejb-container>
    <mdb-container steady-pool-size="10" pool-resize-quantity="2" max-pool-size="60" idle-timeout-in-seconds="600" monitoring-enabled="false">
         </mdb-container>
    <jms-service port="7676" admin-user-name="admin" admin-password="admin" init-timeout-in-seconds="30" enabled="true">
         </jms-service>
    <log-service file="C:/Sun/AppServer7/domains/domain1/server1/logs/server.log" level="INFO" log-stdout="true" log-stderr="true" echo-log-messages-to-stderr="true" create-console="true" log-virtual-server-id="false" use-system-logging="false">
         </log-service>
    <security-service default-realm="ldap" anonymous-role="ANYONE" audit-enabled="false">
    <auth-realm name="file" classname="com.iplanet.ias.security.auth.realm.file.FileRealm">
    <property name="file" value="C:/Sun/AppServer7/domains/domain1/server1/config/keyfile"/>
    <property name="jaas-context" value="fileRealm"/>
    </auth-realm>
    <auth-realm name="ldap" classname="com.iplanet.ias.security.auth.realm.ldap.LDAPRealm">
    <property value="ldap://localhost:389" name="directory"/>
    <property value="ou=People,dc=pliktverket,dc=local" name="base-dn"/>
    <property value="ldapRealm" name="jaas-context"/>
    <property value="ou=Groups,dc=pliktverket,dc=local" name="group-base-dn"/>
    </auth-realm>
    <auth-realm name="certificate" classname="com.iplanet.ias.security.auth.realm.certificate.CertificateRealm">
              </auth-realm>
    <!--
              <auth-realm name="solaris" classname="com.iplanet.ias.security.auth.realm.solaris.SolarisRealm">
                   <property name="jaas-context" value="solarisRealm"/>
              </auth-realm>
              -->
    </security-service>
    <transaction-service automatic-recovery="false" timeout-in-seconds="0" tx-log-dir="C:/Sun/AppServer7/domains/domain1/server1/logs" heuristic-decision="rollback" keypoint-interval="2048" monitoring-enabled="false">
         </transaction-service>
    <java-config java-home="C:/Sun/AppServer7/jdk" server-classpath="/usr/share/lib/mps/secv1/jss3.jar;C:/Sun/AppServer7/lib/appserv-rt.jar;${java.home}/lib/tools.jar;C:/Sun/AppServer7/lib/appserv-ext.jar;C:/Sun/AppServer7/lib/appserv-cmp.jar;C:\Sun\AppServer7\share\lib/mail.jar;C:/Sun/AppServer7/lib/appserv-ideplugin.jar;C:\Sun\AppServer7\imq\lib/imq.jar;C:\Sun\AppServer7\imq\lib/jaxm-api.jar;C:\Sun\AppServer7\imq\lib/imqadmin.jar;C:\Sun\AppServer7\imq\lib/imqutil.jar;C:/Sun/AppServer7/lib/appserv-admin.jar;C:\Sun\AppServer7\share\lib/jaxrpc-impl.jar;C:\Sun\AppServer7\share\lib/jaxrpc-api.jar;C:\Sun\AppServer7\share\lib/jaxr-impl.jar;C:\Sun\AppServer7\share\lib/jaxr-api.jar;C:\Sun\AppServer7\share\lib/activation.jar;C:\Sun\AppServer7\share\lib/saaj-api.jar;C:\Sun\AppServer7\share\lib/saaj-impl.jar;C:\Sun\AppServer7\share\lib/commons-logging.jar;C:\Sun\AppServer7\imq\lib/fscontext.jar;C:\Sun\AppServer7\imq\lib/providerutil.jar;C:/Sun/AppServer7/lib/appserv-jstl.jar" classpath-suffix="C:/Sun/AppServer7/pointbase/client_tools/lib/pbclient42RE.jar" env-classpath-ignored="true" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n" debug-enabled="false" javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g">
    <profiler enabled="false" name="hprof">
    <jvm-options>-Xrunhprof:file=profiler.log,thread=y</jvm-options>
    </profiler>
    <jvm-options>-Djava.security.policy=C:/Sun/AppServer7/domains/domain1/server1/config/server.policy</jvm-options>
    <jvm-options>-Djava.security.auth.login.config=C:/Sun/AppServer7/domains/domain1/server1/config/login.conf</jvm-options>
    <jvm-options>-Djava.util.logging.manager=com.iplanet.ias.server.logging.ServerLogManager</jvm-options>
    <jvm-options>-Dcom.sun.aas.configRoot=C:/Sun/AppServer7\config</jvm-options>
    <jvm-options>-Dcom.sun.aas.imqLib=C:\Sun\AppServer7\imq\lib</jvm-options>
    <jvm-options>-Dcom.sun.aas.imqBin=C:\Sun\AppServer7\imq\bin</jvm-options>
    <jvm-options>-Dcom.sun.aas.webServicesLib=C:\Sun\AppServer7\share\lib</jvm-options>
    <jvm-options>-Dorg.xml.sax.parser=org.xml.sax.helpers.XMLReaderAdapter</jvm-options>
    <jvm-options>-Dorg.xml.sax.driver=org.apache.crimson.parser.XMLReaderImpl</jvm-options>
    <jvm-options>-Dcom.sun.jdo.api.persistence.model.multipleClassLoaders=reload</jvm-options>
    <jvm-options>-Dbug.dependant.delete=true</jvm-options>
    <jvm-options>-Dbug.many2many.add=true</jvm-options>
    <jvm-options>-Dplis.docroot=D:/Project</jvm-options>
    <jvm-options>-Djavax.rmi.CORBA.UtilClass=com.iplanet.ias.util.orbutil.IasUtilDelegate</jvm-options>
    <jvm-options>-Xms1024m -Xmx1024m</jvm-options>
    <jvm-options>-Dsun.rmi.dgc.server.gcInterval=3600000</jvm-options>
    <jvm-options>-Xrs</jvm-options>
    </java-config>
    <resources>
    <jdbc-resource enabled="true" pool-name="PlisPool" jndi-name="jdbc/PlisDS"/>
    <jdbc-resource enabled="true" pool-name="PlisPool" jndi-name="jdo/PlisDBPM"/>
    <persistence-manager-factory-resource factory-class="com.sun.jdo.spi.persistence.support.sqlstore.impl.PersistenceManagerFactoryImpl" enabled="true" jndi-name="jdo/PlisDB" jdbc-resource-jndi-name="jdo/PlisDBPM"/>
    <jdbc-connection-pool steady-pool-size="1" max-pool-size="32" max-wait-time-in-millis="60000" pool-resize-quantity="2" idle-timeout-in-seconds="300" is-isolation-level-guaranteed="true" is-connection-validation-required="true" connection-validation-method="table" fail-all-connections="false" datasource-classname="com.informix.jdbcx.IfxDataSource" name="PlisPool" transaction-isolation-level="read-committed" validation-table-name="singleton">
    <description>luna/plisutv/plis_db</description>
    <property value="improved" name="user"/>
    <property value="plis" name="password"/>
    <property value="true" name="ifxDELIMIDENT"/>
    <property value="1531" name="portNumber"/>
    <property value="plis_db" name="databaseName"/>
    <property value="plisutv" name="serverName"/>
    <property value="luna" name="ifxIFXHOST"/>
    </jdbc-connection-pool>
    </resources>
    <applications dynamic-reload-enabled="false" dynamic-reload-poll-interval-in-seconds="2">
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\CodeBook_2" name="CodeBook" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\UtbForband_1" name="UtbForband" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\PlisServer_2" name="PlisServer" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\CivKpl_2" name="CivKpl" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\Batch_2" name="Batch" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\Faq_1" name="Faq" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\Infra_4" name="Infra" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\InfraOvrigt_1" name="InfraOvrigt" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IntPerson_3" name="IntPerson" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\KoderBtkd_1" name="KoderBtkd" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\KoderOrg_1" name="KoderOrg" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\KoderOvrigt_1" name="KoderOvrigt" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\Monstring_1" name="Monstring" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\Person_4" name="Person" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\PArende_1" name="PArende" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\PArendeStod_1" name="PArendeStod" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\Prov_1" name="Prov" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\ProvStod_1" name="ProvStod" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RegSlagning_1" name="RegSlagning" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\Reseplanering_1" name="Reseplanering" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\Stodtabeller_1" name="Stodtabeller" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\BiBerUtb_1" name="BiBerUtb" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\BiPerson_3" name="BiPerson" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvApp_1" name="IvApp" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvCode_2" name="IvCode" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvEntity_2" name="IvEntity" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvFaq_1" name="IvFaq" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvMedd_1" name="IvMedd" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvRole_1" name="IvRole" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvSvc_1" name="IvSvc" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvUser_2" name="IvUser" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvVar_1" name="IvVar" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IpPlisNytt_1" name="IpPlisNytt" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IpServer_1" name="IpServer" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IpTjanst_2" name="IpTjanst" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\GuPer_1" name="GuPer" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\HvPerson_1" name="HvPerson" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\PkPer_1" name="PkPer" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\PpMed_1" name="PpMed" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\PpNyPerson_3" name="PpNyPerson" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\PpSyom_1" name="PpSyom" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkAns_1" name="RkAns" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkBsl_1" name="RkBsl" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkBtk_3" name="RkBtk" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkFar_2" name="RkFar" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkHor_2" name="RkHor" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkInr_1" name="RkInr" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkKom_1" name="RkKom" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkLkf_1" name="RkLkf" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkPar_1" name="RkPar" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkPko_1" name="RkPko" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkRer_1" name="RkRer" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkSlt_1" name="RkSlt" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkTil_1" name="RkTil" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\SaBmi_1" name="SaBmi" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\SaHan_1" name="SaHan" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\SaLnd_1" name="SaLnd" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\SaMas_1" name="SaMas" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\SaMon_1" name="SaMon" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\SaPup_1" name="SaPup" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\PlisRun_2" name="PlisRun" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IvProj_1" name="IvProj" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\RkOrg_3" name="RkOrg" virtual-servers="server1"/>
    <j2ee-application enabled="true" location="C:\Sun\AppServer7\domains\domain1\server1\applications\j2ee-apps\IbSys_1" name="IbSys" virtual-servers="server1"/>
    </applications>
    </server>
    /Gunnar

  • How can i reload font information while the jvm is running.

    l.s.
    how can i reload font information while the jvm is running.
    I'm having the following problem...
    A program is running.
    A user installs a new font on the system (Xwindows in this case)
    Java doesn't display the font when i ask :
    java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment().getAvailableFontFamilyNames();Thus i think that java buffers its font information somewhere. Anyone knows how to refresh te buffer?
    many thanks

    ungalcrys, welcome to the forum. Please don't post in threads that are long dead and don't hijack another poster's thread. When you have a question, start your own topic. Feel free to provide a link to an old post that may be relevant to your problem.
    I'm locking this thread now.
    db

  • Reload Classes in JVM

    Folks,
    One of my java application is deployed on the server which I invoke through the batch file (Batch file not only execute my main file also set all class path etc).
    It was working very much fine for last 2 to 3 months but what happened in this month is it this application start generating the reports twice and also some time it runs from old version class and sometime from new version.It seems to me something is related to JVM. Can I know how come I refresh the JVM or reload.
    One more thing can you please temme the command which I should write in the batch file so that whenever batch file executes it first reload all class files.
    your help will be appreciated.
    Thanks

    Shawn_Aslam wrote:
    Okay I understand that when JVM starts it reload all the classes.
    But in the class path only library files path is given not the class paths.I updated one class almost one month back and suddenly by the start of August JVM start using the old version in spite of the new. Its really strange to me. You have an impossible situation which means your assumptions are wrong. Which assumptions it is hard to say. But some examples.
    1. Something reverted the code.
    2. It has been running the old code all this time.
    3. The class path changed when it restarted.
    Today I have rename the classes to the sake of resolution. Can we manually restart or reload the JVM?Can you restart the VM? Persuming that you have permission then yes.

  • Forcing JVM to unload bytecode at runtime, to allow reloading of new class?

    Hi all,
    I would like to know a few things about classes once they are loaded. I believe a loaded class is nothing more than an Object in terms of its lifecycle, correct? If so, then to make a class "unload", you simply have to make sure there are no references to the class correct? So, what are the rules for making sure nothing references a class instance?
    Below I'll list a couple of examples. In Example 1 below, I have class A, B and C. Class A creates a instance variable to class B. In the constructor of class A, it creates a temporary class C, passing to it a reference of itself, which C stores in a local variable. Now, in class C, since it is only created in a Constructor (or method) in class A, it goes out of scope at the end of the method/constructor, and thus its reference to class A is no longer any good, correct? Therefore, at this point, there are no references to class A and thus setting A = null (assuming a "central" class loads class A, B and C like a plugin engine would do) should properly dispose of class A. I know, the GC does NOT necessarily remove the class A bytecode from memory right away. So I guess a question here is in need. When does the class A bytecode actually get removed from the JVM memory, in such a way that a "new" call to create it would effectively tell the JVM to have to open the .class file, read its byte code and create a new instance of it in memory? The purpose of these questions is to figure out how, at runtime to reload a class AND get the actual new version of the code. The reason is, if you do everything possible to unload a class, but the JVM doesn't discard the bytecodes of the class before you tell it to load the same class, it will use the "old" bytecode it has in memory, rather than load the bytecode off the HD or URL location and discard the old bytecode. I need a way to get the JVM to discard the bytecode to reload a newer version of a class. But the reason for the examples below is to also help me understand how a class is actually permitted to be unloaded by the JVM. This is also so that the JVM is not wasting memory with multiple versions of the same class, if it even does that. I want to definitely reclaim any memory used by the older version of the class, before loading a newer version.
    So, in example 2 below, the situation changes slightly. A is now keeping a reference to the class C it creates in the constructor. Because C also creates a reference back to A since the A instance is passed in to C's constructor, A can now not be freed and made available for unloading until the reference to A in C is set to null, is this correct? I seem to lack basic understanding of how the whole reference counting thing works for objects and when a JVM can actually unload the bytecode of an object, thus freeing up memory. I suppose a good book on the JVM would clear this up, but I am hoping one of you reading this will know and can help me understand this process. So in this example, am I correct in that the C reference to A must be set to null, then the A instance must be set to null to tell the JVM there is no more use for the A class? I do realize that if other classes also use A, that the bytecode for A would be kept in memory. Let's assume this is the only use of A, B and C (and looking at the examples, B serves no real purpose anyway, but I already wrote it down so I'll leave it).
    So once again, my goal here is to understand the lifecycle of an object, specifically a Class object (they are one and the same, correct, in terms of lifecycle?), and when the JVM actually removes the bytecode from memory so that if a new version of the same class is now available at runtime, the JVM loads the new bytecode into memory.
    Thanks very much for taking the time to read this and reply.
    Example 1:
    class A
    B b = new B();
    public A()
    C c = new C(this);
    class B
    public B()
    class C
    A a = null;
    public C(A a)
    this.a = a;
    Example 2:
    class A
    B b = new B();
    C c = null;
    public A()
    c = new C(this);
    class B
    public B()
    class C
    A a = null;
    public C(A a)
    this.a = a;
    }

    Cross post (numerous times.)
    http://forum.java.sun.com/thread.jsp?thread=292465&forum=37&message=1152136

  • Reload Software: 507; JVM 529...

    Hello,
    I have a Pearl 8220 device, which always worked great until the day I got a message suggesting me to update the BB Desktop Software.  I did so, and since then I have going through a nightmare.
    Right after the update I could not sync my device with outlook.  It would make a real mess, and replicate entries on both sides.  In other words, the newer version didn’t sync.
    I tried to install the previous version, but then when I tried to backup the device the connection was lost, and the device froze.  Then I tried different versions of BBDesktopSoftware, and for all of them the connection issue happened over and over.  Every time the device froze I got an error message JVM 529.  Up to this point I was able to place and receive calls, and to send and receive messages.  But since I could not sync with my outlook, I kept reading articles that explained the possible reasons for the problems I was facing.
    Then I decided to update the device software, and that apparently ended the story.  In the middle of the software installation the connection was lost again, the device froze, and now my blackberry does not have software.  Result of it is I can't use the device at all, it doesn't turn on, doesn't respond, I am not able to install any version of the device software, nothing.  When I try to install the software it goes to a point when the connection gets lost again.  Then I unplug it and wait and reconnect it, and it goes a little further, and then the connection gets lost again.  I saw a similar situation (but no solution) here: http://www.blackberryforums.com.au/forums/blackberry-pearl-smartphone-discussion/14029-jvm-applicati...
    Any help is greatly appreciated.

    That's quite odd. I've always found BBSAK to be quite solid. Hmmm... quite odd.
    Are you doing a wipe with BBSAK first? Try that.
    And, since it's getting stuck at the same point each time, perhaps there's an issue with that carriers OS package. While rare, I've seen before that one carriers OS package and anothers might be a little bit different. You might give that a try as well.
    But, very odd indeed. Be sure your PC is clean, not much running, coming off a fresh reboot (power down, not the reboot command) and use Run As Administrator for all that you can.
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • SunPKCS11 : unable to reload nss-db in running jvm

    I'm using SunPKCS11 to load and check certificates from a nssdb store:
    KeyStore ks = KeyStore.getInstance("PKCS11", "SunPKCS11-nssdb");
    ks.load(null, "".toCharArray());
    This works fine, but eventhough the documentation of Keystore.load() method states "Note that if this keystore has already been loaded, it is reinitialized and loaded again from the given input stream.", but in a given JVM runtime, I cannot see changes in the nssdb, done by CLI outside the JVM, even calling this method again.
    I found other questions reporting this issue, but no clear answer.
    (note: running this on openJDK1.7, but openJDK1.6 shows the same behaviour)
    Any comment is wellcome...

    ther eis no MMC SAP snapin for Oracle.
    Period.
    Forget about it. SAP has never released it and I believe it doe not plan to do so neither.

  • Gdb gets SIGSEGV from JVM in JDK 1.3.1_01 on RedHat Linux 6.2

    Hi all,
    I'd love to know if anyone has a fix for this problem? I am also posting it as a bug.
    Thanks in advance!
    OVERVIEW:
    When running Tomcat 4.0 via the Java launcher in a gdb debugging session (Red Hat Linux 6.2), I get a SIGSEGV signal (Segmentation fault) when I execute some of the example JSPs/servlets. Since Tomcat is pure Java, I'm assuming the problem is most likely with the JVM and the way it handles signals, or possibly with gdb since I only see this behavior with gdb. The problem is fairly reproducible; I usually get it when I execute the "ErrorPage" JSP sample in Tomcat's "examples" webapp.
    Note that I don't see these signals when running the JVM standalone (outside of gdb). What's also weird is that I successfully tell gdb to "continue" after the segfault, and the app continues to work like nothing ever happend.
    As an aside, the reason why I did this test was because I was experiencing very similar problems in my own application that embeds a JVM via JNI.
    DESCRIPTION:
    Here is what I did to see the problem.
    First, I set the debugger in the environment, so that the jdk/bin/java script can run the java launcher in gdb:
    export DEBUG_PROG=gdb
    Next, I run the jdk/bin/java script:
    cd jdk1.3.1_01/bin
    java
    This brings up the Java launcher within gdb, and I run it as I specify the necessary arguments to startup Tomcat:
    GNU gdb 19991004
    Copyright 1998 Free Software Foundation, Inc.
    GDB is free software, covered by the GNU General Public License, and you are
    welcome to change it and/or distribute copies of it under certain conditions.
    Type "show copying" to see the conditions.
    There is absolutely no warranty for GDB. Type "show warranty" for details.
    This GDB was configured as "i386-redhat-linux"...
    (gdb) set args -classpath /u0/ruvinsky/tomcat4.bin/bin/bootstrap.jar:/u0/ruvinsky/src-java-launcher/jdk1.3.1_01/lib/tools.jar -Dcatalina.base=/u0/ruvinsky/tomcat4.bin -Dcatalina.home=/u0/ruvinsky/tomcat4.bin org.apache.catalina.startup.Bootstrap start
    (gdb) run
    Starting program: /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/bin/i386/native_threads/java -classpath /u0/ruvinsky/tomcat4.bin/bin/bootstrap.jar:/u0/ruvinsky/src-java-launcher/jdk1.3.1_01/lib/tools.jar -Dcatalina.base=/u0/ruvinsky/tomcat4.bin -Dcatalina.home=/u0/ruvinsky/tomcat4.bin org.apache.catalina.startup.Bootstrap start
    [New Thread 1710 (manager thread)]
    [New Thread 1709 (initial thread)]
    [New Thread 1711]
    [New Thread 1712]
    [New Thread 1713]
    [New Thread 1714]
    [New Thread 1715]
    [New Thread 1716]
    [New Thread 1717]
    Starting service Tomcat-Standalone
    Apache Tomcat/4.0
    [New Thread 1720]
    [New Thread 1721]
    [New Thread 1722]
    [New Thread 1723]
    [New Thread 1724]
    [New Thread 1725]
    [New Thread 1726]
    [New Thread 1727]
    [New Thread 1728]
    [New Thread 1729]
    [New Thread 1730]
    [New Thread 1731]
    Starting service Tomcat-Apache
    Apache Tomcat/4.0
    [New Thread 1732]
    [Switching to Thread 1730]
    Program received signal SIGSEGV, Segmentation fault.
    0x2bfee3f4 in ?? ()
    (gdb) continue
    Continuing.
    I even tried building a debug version of the java launcher by hand in hope of finding a more detailed stack trace, but all I got was the following:
    (gdb) bt
    #0 0x806973d in ?? ()
    #1 0x8060891 in ?? ()
    #2 0x8060891 in ?? ()
    #3 0x8060963 in ?? ()
    #4 0x8060891 in ?? ()
    #5 0x8060891 in ?? ()
    #6 0x8060891 in ?? ()
    #7 0x8060963 in ?? ()
    #8 0x8060891 in ?? ()
    #9 0x8060891 in ?? ()
    #10 0x8060963 in ?? ()
    #11 0x8060891 in ?? ()
    #12 0x8060963 in ?? ()
    #13 0x8060963 in ?? ()
    #14 0x8060963 in ?? ()
    #15 0x8060963 in ?? ()
    #16 0x8060963 in ?? ()
    #17 0x8060891 in ?? ()
    #18 0x8060963 in ?? ()
    #19 0x8060891 in ?? ()
    #20 0x8060963 in ?? ()
    #21 0x8060963 in ?? ()
    #22 0x8060963 in ?? ()
    #23 0x8060963 in ?? ()
    #24 0x8060891 in ?? ()
    #25 0x8060963 in ?? ()
    #26 0x8060963 in ?? ()
    #27 0x8060963 in ?? ()
    #28 0x8060891 in ?? ()
    #29 0x8060963 in ?? ()
    #30 0x8060963 in ?? ()
    #31 0x8060891 in ?? ()
    #32 0x8060963 in ?? ()
    #33 0x2add3d70 in StubRoutines::_code1 ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #34 0x2abcb604 in JavaCalls::call_helper ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #35 0x2ac2948d in os::os_exception_wrapper ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #36 0x2abcb840 in JavaCalls::call ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #37 0x2abcb1bb in JavaCalls::call_virtual ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #38 0x2abcbccb in JavaCalls::call_virtual ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #39 0x2abede80 in thread_entry ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #40 0x2ac599c7 in JavaThread::thread_main_inner ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #41 0x2ac56903 in JavaThread::run ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #42 0x2ac27e73 in _start ()
    from /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    #43 0x2aacc535 in pthread_start_thread (arg=0x7d3ffe40) at manager.c:241
    (gdb) info shared
    From To Syms Read Shared Object Library
    0x2aac7000 0x2aad8ad8 Yes /lib/libpthread.so.0
    0x2aad9000 0x2aae2e38 Yes /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/native_threads/libhpi.so
    0x2aae3000 0x2addce90 Yes /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/client/libjvm.so
    0x2addd000 0x2addfd0c Yes /lib/libdl.so.2
    0x2ade1000 0x2aed537c Yes /lib/libc.so.6
    0x2aed6000 0x2aeeb1c8 Yes /lib/libnsl.so.1
    0x2aeec000 0x2af08098 Yes /lib/libm.so.6
    0x2af09000 0x2af4af90 Yes /usr/lib/libstdc++-libc6.1-1.so.2
    0x2aaab000 0x2aabecb0 Yes /lib/ld-linux.so.2
    0x2af4b000 0x2af5d414 Yes /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/libverify.so
    0x2af5e000 0x2af81fe8 Yes /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/libjava.so
    0x2af82000 0x2af98360 Yes /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/libzip.so
    0x340c6000 0x340ce9a0 Yes /lib/libnss_files.so.2
    0x340cf000 0x340d8fb4 Yes /lib/libnss_nisplus.so.2
    0x340d9000 0x340e21f8 Yes /lib/libnss_nis.so.2
    0x343e9000 0x343f242c Yes /u0/ruvinsky/src-java-launcher/jdk1.3.1_01/jre/lib/i386/libnet.so
    0x343fa000 0x343fd850 Yes /lib/libnss_dns.so.2
    0x3497f000 0x3498d9fc Yes /lib/libresolv.so.2
    As a reference, I built the Java launcher code included in the JDK 1.3.1_01 distribution, producing the replacement binary for:
    jdk1.3.1_01/bin/i386/native_threads/java
    I copied the source files out of the jdk1.3.1_01/src/src/launcher/ directory, and they consist of the following files:
    java.c
    java.h
    java_md.c
    java_md.h
    My build directory also contains the jdk1.3.1_01 subdirectory to include the JNI headers from and as a sample jdk to test the build output with.
    The following are my build commands (mainly borrowed from the JDK build process):
    cc -g -W -Wall -Werror -Wno-unused -Wno-parentheses -Di386 -DARCH='"i386"' -DSOLARIS2 -DRELEASE='"1.3.1-testing-110101"' -DFULL_VERSION='"1.3.1-testing-110101"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_LITTLE_ENDIAN -DUSE_APPHOME -DPROGNAME='"java"' -I./jdk1.3.1_01/include -I./jdk1.3.1_01/include/linux -c -o build/objs/java.o java.c
    cc -g -W -Wall -Werror -Wno-unused -Wno-parentheses -Di386 -DARCH='"i386"' -DSOLARIS2 -DRELEASE='"1.3.1-testing-110101"' -DFULL_VERSION='"1.3.1-testing-110101"' -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT -D_LITTLE_ENDIAN -DUSE_APPHOME -DPROGNAME='"java"' -I./jdk1.3.1_01/include -I./jdk1.3.1_01/include/linux -c -o build/objs/java_md.o java_md.c
    cc -o jdk1.3.1/bin/i386/native_threads/java -z defs -Ljdk1.3.1_01/jre/lib/i386/native_threads -Ljdk1.3.1_01/jre/lib/i386/classic build/objs/java.o build/objs/java_md.o -lpthread -lhpi -ljvm -ldl -lc

    Also experiencing SIGSEGV with tomcat 4.0 on AIX. Runs for months. Then out of the blue, crashes.
    I wonder if setting reloadable=false in .../conf/server.xml could be the culprit ?
    Or the servlet writing to a local file using a BufferedOutputStream ?

  • Issue in configuration - formsweb.cfg (10.1.2.0.2) using Sun JVM

    Hi gurus,
    Below is my config in formsweb.cfg, I want to use Sun JVM instead of Jinitiator
    [customjpi]
    baseHTML=D:\Ora10gDS\forms\server\base.htm
    baseHTMLjpi=D:\Ora10gDS\forms\server\basejpi.htm
    baseHTMLjinitiator=D:\Ora10gDS\forms\server\basejpi.htm
    HTMLdelimiter=%
    envFile=default.env
    escapeparams=true
    form=test.fmx
    serverURL=/forms/lservlet
    codebase=/forms/java
    imageBase=DocumentBase
    width=100%
    height=100%
    separateFrame=true
    archive=D:\Ora10gDS\forms\java\frmall.jar
    archive_jini=D:\Ora10gDS\forms\java\frmall_jinit.jar
    jpi_download_page=http://java.sun.com/products/archive/j2se/1.4.2_09/index.html
    jpi_classid=clsid:8AD9C840-044E-11D1-B3E9-00805F499D93
    jpi_codebase=http://java.sun.com/products/plugin/autodl/jinstall-1_4-windows-i586.cab#Version=1,4,0,0
    jpi_mimetype=application/x-java-applet;jpi-version=1.4.2_09
    When I calling form using URL http://pc021161.cts.com:8889/forms/frmservlet?config=customjpi which is throwing errors.
    Below is my log of Java console
    Java Plug-in 1.5.0_06
    Using JRE version 1.5.0_06 Java HotSpot(TM) Client VM
    User home directory = C:\Documents and Settings\125217
    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
    p: reload proxy configuration
    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 <n>
    java.net.MalformedURLException: unknown protocol: d
         at java.net.URL.<init>(Unknown Source)
         at java.net.URL.<init>(Unknown Source)
         at sun.plugin.util.GrayBoxPainter.setProgressFilter(Unknown Source)
         at sun.plugin.AppletViewer.initApplet(Unknown Source)
         at sun.plugin.AppletViewer.appletInit(Unknown Source)
         at sun.plugin.viewer.LifeCycleManager.initAppletPanel(Unknown Source)
         at sun.plugin.viewer.IExplorerPluginObject$Initer.run(Unknown Source)
    load: class oracle.forms.engine.Main not found.
    java.lang.ClassNotFoundException: oracle.forms.engine.Main
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Caused by: java.io.IOException: open HTTP connection failed.
         at sun.applet.AppletClassLoader.getBytes(Unknown Source)
         at sun.applet.AppletClassLoader.access$100(Unknown Source)
         at sun.applet.AppletClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         ... 10 more
    Exception in thread "Thread-4" java.lang.NullPointerException
         at sun.plugin.util.GrayBoxPainter.showLoadingError(Unknown Source)
         at sun.plugin.AppletViewer.showAppletException(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    Please help, if anybody have the idea of this error.
    Thanks in Advance
    Justin

    My default.env file is pasting below:
    # $Id: default.env 14-apr-2005.13:22:43 pkuhn Exp $
    # default.env - default Forms environment file, Windows version
    # This file is used to set the Forms runtime environment parameters.
    # If a parameter is not defined here, the value in the Windows registry
    # will be used. If no value is found in the registry, the value used will
    # be that defined in the environment in which the servlet engine (OC4J
    # or JServ) was started.
    # NOTES
    # 1/ The Forms installation process should replace all occurrences of
    # <percent>FORMS_ORACLE_HOME<percent> with the correct ORACLE_HOME
    # setting, and all occurrences of <percent>O_JDK_HOME<percent> with
    # the location of the JDK (usually $ORACLE_HOME/jdk).
    # Please make these changes manually if not.
    # 2/ Some of the variables below may need to be changed to suite your needs.
    # Please refer to the Forms documentation for details.
    ORACLE_HOME=D:\Ora10gDS
    # Search path for Forms applications (.fmx files, PL/SQL libraries)
    # If you need to include more than one directory, they should be semi-colon
    # separated (e.g. c:\test\dir1;c:\test\dir2)
    FORMS_PATH=D:\Ora10gDS\forms;D:\Source\FMB;D:\Source\LIB
    # webutil config file path
    WEBUTIL_CONFIG=D:\Ora10gDS\forms\server\webutil.cfg
    # Disable/remove this variable if end-users need access to the query-where
    # functionality which potentially allows them to enter arbitrary SQL
    # statements when in enter-query mode.
    FORMS_RESTRICT_ENTER_QUERY=TRUE
    # The PATH setting is required in order to pick up the JVM (jvm.dll).
    # The Forms runtime executable and dll's are assumed to be in
    # D:\Ora10gDS\bin if they are not in the PATH.
    # In addition, if you are running Graphics applications, you will need
    # to append the following to the path (where <Graphics Oracle Home> should
    # be replaced with the actual location of your Graphics 6i oracle_home):
    # ;<Graphics Oracle Home>\bin;<Graphics Oracle Home>\jdk\bin
    PATH=D:\Ora10gDS\bin;D:\Ora10gDS\jdk\jre\bin\client
    # Settings for Graphics
    # NOTE: These settings are only needed if Graphics applications
    # are called from Forms applications. In addition, you will need to
    # modify the PATH variable above as described above.
    # Please uncomment the following and put the correct 6i
    # oracle_home value to use Graphics applications.
    #ORACLE_GRAPHICS6I_HOME=<your Graphics 6i oracle_home here>
    # Search path for Graphics applications
    #GRAPHICS60_PATH=
    # Settings for Forms tracing and logging
    # Note: This entry has to be uncommented to enable tracing and
    # logging.
    #FORMS_TRACE_PATH=<FORMS_ORACLE_HOME>\forms\server
    # System settings
    # You should not normally need to modify these settings
    FORMS=D:\Ora10gDS\forms
    # Java class path
    # This is required for the Forms debugger
    # You can append your own Java code here)
    # frmsrv.jar, repository.jar and ldapjclnt10.jar are required for
    # the password expiry feature to work(#2213140).
    CLASSPATH=D:\Ora10gDS\j2ee\OC4J_BI_Forms\applications\formsapp\formsweb\WEB-INF\lib\frmsrv.jar;D:\Ora10gDS\jlib\repository.jar;D:\Ora10gDS\jlib\ldapjclnt10.jar;D:\Ora10gDS\jlib\debugger.jar;D:\Ora10gDS\jlib\ewt3.jar;D:\Ora10gDS\jlib\share.jar;D:\Ora10gDS\jlib\utj.jar;D:\Ora10gDS\jlib\zrclient.jar;D:\Ora10gDS\reports\jlib\rwrun.jar;D:\Ora10gDS\forms\java\frmwebutil.jar;D:\Ora10gDS\forms\java\frmall.jar;D:\Ora10gDS\forms\java\frmall_jinit.jar
    Regards
    justin

  • Reloading applet in opera throws NullPointerException in SunGraphics2D

    i have an Applet, which checks for Sun JVM. If MS JVM, it aborts. If Sun JVM, it starts new JApplet.
    Everything is working fine, until i tried to reload the html page with the applet tag in it.
    On MS IE, it is working. The Applet is stopped and then restarted.
    On Mozilla, it is working.
    But on Opera, the following Exception is thrown after i have reloaded the page once.
    After reloading, the Exception is also thrown everytime i scroll the page or reload the page.
    java.lang.NullPointerException
         at sun.java2d.SunGraphics2D.<init>(Unknown Source)
         at sun.awt.image.SunVolatileImage.createGraphics(Unknown Source)
         at java.awt.image.VolatileImage.getGraphics(Unknown Source)
         at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
         at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
         at javax.swing.JComponent.paint(Unknown Source)
         at java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
         at sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
         at sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
         at java.awt.Container.paint(Unknown Source)
         at sun.awt.RepaintArea.paint(Unknown Source)
         at sun.awt.windows.WComponentPeer.handleEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    As said, i'm using an Applet class and an JApplet class. the Applet class has only AWT components,
    the JApplet class has swing components (a list and a few JButtons).
    i'm using a thread, but it is not started.
    also, after the reload in opera, the whole applet is started again (as usual), and AFTER the last debug message,
    this exception is thrown. so there is no code of myself after that last debug message.
    i am using java 1.4.2-beta, but users told me they have the same problem with my applet on other computers with
    other jvms.

    i tried a beta-version of opera 7.20 and here are some source code line numbers visible:
    perhaps someone can tell me now, what's happening there and give me a tipp how to solve this problem.
    java.lang.NullPointerException
    at sun.java2d.SunGraphics2D.<init>(SunGraphics2D.java:212)
    at sun.awt.image.SunVolatileImage.createGraphics(SunVolatileImage.java:176)
    at java.awt.image.VolatileImage.getGraphics(VolatileImage.java:223)
    at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4768)
    at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4748)
    at javax.swing.JComponent.paint(JComponent.java:798)
    at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
    at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
    at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
    at java.awt.Container.paint(Container.java:1312)
    at sun.awt.RepaintArea.paint(RepaintArea.java:177)
    at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
    at java.awt.Component.dispatchEventImpl(Component.java:3678)
    at java.awt.Container.dispatchEventImpl(Container.java:1627)
    at java.awt.Component.dispatchEvent(Component.java:3477)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)

  • Memory leak on SunOne Web Server 6.1 on application reload

    Hi!
    I am pretty sure that i have found a memory management problem in
    SunOne Web Server 6.1 .
    It started with an OutOfMemory error we got under heavy load . After
    some profiling with Jprofiler i didn't find any memory leaks in the
    application.Even under heavy load (generated by myself) i can't find
    anything ,more, i can't reproduce the error! The memory usage is
    about 20Mb and does not go up .
    However it is pretty simple to see the following behavior:
    [1] Restart the server (to have a clear picture) and wait a little for
    memory usage to stabilize.
    [2] In the application dir. touch .reload or one of the classes:
    The memory usage goes up by another 50Mb (huge amount of mem. taking
    into account the fact that it used only 20Mb under any load befor).
    Do this another time and another 20Mb gone etc..
    The JProfiler marks the memory used by classes . And it can be
    clearly seen the GC can't release most of it.
    I AM sure this is not the application that takes all the memory.
    Another hint : after making the server to reload application i can see
    that the number of threads ON EVERY RELOAD is going up by ~10-20
    threads .The # of threads goes lower over time but not the mem usage.
    My system:
    Sparc Solaris 9 ,Java 1.4.2_04-b05, Sun ONE Web Server 6.1SP5
    Evgeny

    my guess is that - because of '.reload' , web container tries to
    recompile all the classes that you use within your web application and
    hence the memory growth is spiking up.What do you mean by "tries to recompile"?The classes in
    Web-inf are already compiled! And i have only ~5 jsp's .
    (the most part of the applic. is a complicated business logic)
    If you are talking about reloading them ,yes,that's the purpose of .reload,
    isn't it? :).But it seems that container uses the memory for it's own
    classes: the usage of memory for my classes don't really grow
    that much (if at all) after reload (according to profiler)
    Also the real problem is that the memory usage grows to much for
    too long (neither seen it going down) and thus ends with OutOfMemory.
    if you are seeing the memory growth to be flat in stress environment,
    then I am not sure that why do you think that there is a memory leak ?There is no memory leak in stress environment.
    There is memory leak while reloading the application.
    It is a memory hog for sure (~20-30Mb for every reload).
    Memory leak?It seems that way because i can't see memory usage go
    down and after a lot of reloads OutOfMemory is thrown.
    also, what is jvm heap that you use ? did you try jvm tune options like -
    XX:+AggressiveHeap ?256Mb.I can set it bigger ,but how do i know that it will not just delay
    the problem ?
    Thanks for response.
    Evgeny

  • Struts action classes not reloaded in WLS 8.1 SP5

    Hi,
              We are in the process of upgrading from WLS6.1 to WLS8.1(SP5). I installed WLS8.1 in development mode with no change to any of the default settings and got our app up and running. However, one issue that I noticed was that WLS8.1 is not reloading new classes copied int WEB-INF/classes directory within the webapp.
              I read the document at http://edocs.bea.com/wls/docs81/webapp/deployment.html#157139 and it clearly says that any changes to classes are automatically picked up.
              I have verified that "servlet-reload-check-secs" is set to 1. Is there any configuration item that I am missing here ?
              Thanks in advance,
              Prasad

    Hi,
              I am deploying my application on bea weblogic 8.1SP5........and it showing errors below::::while iit's working fine on sp4........
              JVMDG217: Dump Handler is Processing OutOfMemory - Please Wait.
              JVMDG315: JVM Requesting Heap dump file
              .........JVMDG318: Heap dump file written to /soft_dump/BEA815/user_projects/dom
              ains/mydomain/heapdump274442.1150373114.phd
              JVMDG303: JVM Requesting Java core file
              JVMDG304: Java core file written to /soft_dump/BEA815/user_projects/domains/mydo
              main/javacore274442.1150373147.txt
              JVMDG274: Dump Handler has Processed OutOfMemory.
              Is dere any solution for it?
              Thanks
              Samit Katiyar
              [email protected]

  • Problem in closing JVM

    Hi all,
    I am running an applet using the new java plugin. I like it, and I had to use it because I create an applet tag (using deployjava.js) witch is based on a jnlp file with many extensions.
    My applet access TWAIN using the morena toolkit. This toolkit require to start a thread that will load twain.dll via LoadLibrary. I need a specific thread since all calls to this library methods need to be executed via the same thread.
    Then I also use log4j. Log4j uses static variables in order to keep its configuration shared.
    When I close my applet, in the destroy() method, I call TwainManager.close() and LogManager.shutdown().
    If the user moves from my page to a different page, the destroy() method is called and my applet is closed. This operation does not immediately close the JVM. the JVM is closed inbetween 5 and 30 seconds later my applet is destroyed.
    When the user reload my applet on the same JVM, it cannot access anymore twain, because it creates a new thread that cannot load the same twain.dll library.
    If the user load the page once the JVM is unloaded (I may see jvm unloading because its console window get closed), the a new JVM is loaded and everything works perfectly.
    I wrote a few information about the log4j since previously I didn't call the shutdown() method. Probably this was a reason for keeping the JVM loaded, but I do think that actually there are no reasons for keeping the JVM loaded.
    So, my questions:
    1. how may I be sure the JVM is closed, or how may I check what is blocking JVM from closing?
    2. is there any way to instruct java plugin to create a new JVM every time my applet is run?
    3. if the user is browsing a different page on a different window, will this share the same JVM as my applet? Will this block any possibility to my applet to load again the twain.dll?
    Thanks,
    Giuseppe

    So, my questions:
    1. how may I be sure the JVM is closed, or how may I check what is blocking JVM from closing?
    2. is there any way to instruct java plugin to create a new JVM every time my applet is run?Try <PARAM name="separate_jvm" value="true">See [https://jdk6.dev.java.net/plugin2/#SEPARATE_JVM]. I didn't try it but I I'd expect that everytime your applet gets loaded, a separate VM will be launched, and the old one(s) are closed behind the scenes.
    3. if the user is browsing a different page on a different window, will this share the same JVM as my applet?As far as I understand, if you dont specify the separate_jvm flag, the behaviour is not specified. See [http://forums.sun.com/thread.jspa?threadID=5396118].
    Will this block any possibility to my applet to load again the twain.dll?Likely. Using the separate_jvm flag should avoid that, but you always have to load your application and .dll's each time the applet is started. Thus, caching of applet data among multiple started applets seems impossible right now...

Maybe you are looking for

  • Can't install Color Laserjet Pro MFP M177fw

    I'm having trouble installing the drivers for my new Color Laserjet Pro MFP M177fw AIO printer.  I'm using a Sony Vaio VPCX118LG running Windows 7. I initially successfully installed the software from the disk provided some weeks ago, and had the pri

  • Javascript focus() is not working anymore in firefox 22, thank You

    With this sample code, focus() is not working <pre><nowiki>Name <input name=cName id=cName size=50 onblur=chkName(); /> <br> Last Name: <input name=cLastName id=cLastName size=50 onblur=chkLastName(); /> <br> Another Field: <input name=cAnother id=cA

  • Problem with downloads

    hi, my apple tv stalls after several minutes. it does not matter whether it is playing a movie or youtube or even showing home pictures. what could be wrong?

  • Portal:  Tab displayed but not assigned to any roles of user

    HI Experts, I have a problem need your great help. When I logon portal as a specific user, there are 5 tab in home page. When I check the role list, 3 tabs doesn't assigned to any roles this user owned. Then I try to copy current user into a new user

  • Does siri work on iphone 4 with ios 6

    Does Siri work on iphone 4 with ios6 installed?