ClassCache Problem in iPlanet6.0
We are using iPlanet6.0 on solaris. we are having cache problem. Everytime we make any change in the JSP , it is not getting refected in the ClassCache area. ie, The Jsp is not getting compiled.
What could be the Problem.
I am not sure if you have dynamic reloading feature ON. Check this out at the following url:
http://docs.sun.com/source/816-5786-10/jpgapxre.htm#14358
Similar Messages
-
Problem starting the sunone webserver 6.1 sp4
Hi,
I am facing problem with starting sunone webserver 6.1 sp4.
Server is starting fine on one of the IPs configured on the box but not starting on other IPs although these IPs are pingable.I assign port nos.
I am getting following logs.
Server Start Up
Status:
*[https-test]: start failed. (0: SSL_ERROR_NO_CERTIFICATE: unable to find the certificate or key necessary for authentication)*
*[https-test]: Sun ONE Web Server 6.1SP4 B01/20/2005 17:43*
*[https-test]: fine: Emulating writev for filter http-compression*
*[https-test]: fine: Emulating sendfile for filter http-compression*
*[https-test]: fine: HTTP3063: KeepAliveTimeout is 30 seconds (default value)*
*[https-test]: fine: HTTP3067: PostThreadsEarly set to off*
*[https-test]: fine: createAdminChannel()*
*[https-test]: fine: CORE3047: Server spawned worker process 25518*
*[https-test]: fine: HTTP5169: User authentication cache entries expire in 120 seconds.*
*[https-test]: fine: HTTP5170: User authentication cache holds 200 users*
*[https-test]: fine: HTTP5171: Up to 4 groups are cached for each cached user.*
*[https-test]: info: CORE3016: daemon is running as super-user*
*[https-test]: fine: HTTP4207: file cache module initialized (API versions 1 through 1)*
*[https-test]: fine: HTTP4302: file cache has been initialized*
*[https-test]: fine: HTTP3066: MaxKeepAliveConnections set to 256*
*[https-test]: warning: CORE1251: On group ls1, servername test does not match subject "login.secure.com" of certificate Server-Cert.*
*[https-test]: warning: CORE1250: In secure virtual server https-test, urlhost test does not match subject "login.secure.com" of certificate Server-Cert.*
*[https-test]: fine: Installed configuration 1*
*[https-test]: fine: jvm stickyAttach: 1*
*[https-test]: fine: jvm option: -DJAVA_HOME=/opt/software/sunone/bin/https/jdk*
*[https-test]: fine: jvm option: -Dcom.sun.web.installRoot=/opt/software/sunone*
*[https-test]: fine: jvm option: -Dcom.sun.web.instanceRoot=/opt/software/sunone*
*[https-test]: fine: jvm option: exit*
*[https-test]: fine: jvm option: vfprintf*
*[https-test]: fine: jvm option: -Djava.security.auth.login.config=/opt/software/sunone/https-test/config/login.conf*
*[https-test]: fine: jvm option: -Djava.util.logging.manager=com.iplanet.ias.server.logging.ServerLogManager*
*[https-test]: fine: jvm option: -Xmx256m*
*[https-test]: fine: jvm option: -Djava.class.path=/opt/software/sunone/bin/https/jar/webserv-rt.jar:/opt/software/sunone/bin/https/jdk/lib/tools.jar:/opt/software/sunone/bin/https/jar/webserv-ext.jar:/opt/software/sunone/bin/https/jar/webserv-jstl.jar:/opt/software/sunone/bin/https/jar/ktsearch.jar::*
*[https-test]: fine: Emulating writev for filter j2ee-filter*
*[https-test]: fine: Emulating sendfile for filter j2ee-filter*
*[https-test]: fine: reinitializeLogger: javax.enterprise.system.core com.sun.logging.enterprise.system.core.LogStrings FINEST*
*[https-test]: fine: reinitializeLogger: null FINEST*
*[https-test]: fine: reinitializeLogger: global null FINEST*
*[https-test]: fine: reinitializeLogger: javax.enterprise.system.util com.sun.logging.enterprise.system.util.LogStrings FINEST*
*[https-test]: fine: reinitializeLogger: javax.enterprise.system.core.config com.sun.logging.enterprise.system.core.config.LogStrings FINEST*
*[https-test]: info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.4.2_04] from [Sun Microsystems Inc.]*
*[https-test]: fine: initializeServerLogger: javax.enterprise.system.core.classloading com.sun.logging.enterprise.system.core.classloading.LogStrings FINEST*
*[https-test]: fine: initializeServerLogger: javax.enterprise.system.container.web com.sun.logging.enterprise.system.container.web.LogStrings FINEST*
*[https-test]: fine: WEB7101: Naming Service has been successfully initialized.*
*[https-test]: fine: initializeServerLogger: javax.enterprise.resource com.sun.logging.enterprise.resource.LogStrings FINEST*
*[https-test]: fine: WEB7010: Resource Manager has been successfully initialized.*
*[https-test]: fine: initializeServerLogger: javax.enterprise.system.core.security com.sun.logging.enterprise.system.core.security.LogStrings FINEST*
*[https-test]: fine: Initializing configured realms.*
*[https-test]: fine: FileRealm : file=/opt/software/sunone/https-test/config/keyfile*
*[https-test]: fine: FileRealm : jaas-context=fileRealm*
*[https-test]: fine: Reading file realm: /opt/software/sunone/https-test/config/keyfile*
*[https-test]: fine: Configured realm: file*
*[https-test]: fine: NativeRealm: auth-db= null (will use default)*
*[https-test]: fine: NativeRealm : jaas-context=nativeRealm*
*[https-test]: fine: Configured realm: native*
*[https-test]: fine: LDAPRealm : directory=ldap://localhost:389*
*[https-test]: fine: LDAPRealm : base-dn=o=isp*
*[https-test]: fine: LDAPRealm : jndiCtxFactory=com.sun.jndi.ldap.LdapCtxFactory*
*[https-test]: fine: LDAPRealm : jaas-context=ldapRealm*
*[https-test]: fine: LDAPRealm : mode=find-bind*
*[https-test]: fine: LDAPRealm : search-filter=uid=%s*
*[https-test]: fine: LDAPRealm : group-base-dn=o=isp*
*[https-test]: fine: LDAPRealm : group-search-filter=uniquemember=%d*
*[https-test]: fine: LDAPRealm : group-target=cn*
*[https-test]: fine: LDAPRealm : search-bind-dn=null*
*[https-test]: fine: LDAPRealm : search-bind-password=null*
*[https-test]: fine: LDAPRealm : pool-size=5*
*[https-test]: fine: LDAPRealm : authentication=simple*
*[https-test]: fine: Configured realm: ldap*
*[https-test]: finest: Realm: getInstance returning realm :native*
*[https-test]: fine: Default realm is set to: native*
*[https-test]: fine: Application server configuration file: /opt/software/sunone/https-test/config/server.xml*
*[https-test]: fine: Application Server default locale is en*
*[https-test]: fine: Web container log level: FINEST*
*[https-test]: finer: Creating engine*
*[https-test]: finer: Adding engine (org.apache.catalina.core.StandardEngine/1.0)*
*[https-test]: info: WEB0100: Loading web module in virtual server [https-test] at [search]*
*[https-test]: finer: Creating Loader with parent class loader 'sun.misc.Launcher$AppClassLoader@67ac19'*
*[https-test]: fine: WebModule[search]: Setting delegate to false*
*[https-test]: fine: Default role is: ANYONE*
*[https-test]: fine: WEB0100: Loading web module in virtual server [https-test] at []*
*[https-test]: finer: Creating Loader with parent class loader 'sun.misc.Launcher$AppClassLoader@67ac19'*
*[https-test]: fine: WebModule[]: Setting delegate to false*
*[https-test]: fine: Successfully initialized web application environment for virtual server [https-test]*
*[https-test]: finer: Starting embedded server*
*[https-test]: finer: Naming prefixes property is set to: org.apache.naming*
*[https-test]: finer: Naming initial context factory property is set to: org.apache.naming.java.javaURLContextFactory*
*[https-test]: finer: WebModule[search]: Starting*
*[https-test]: finer: WebModule[search]: Processing start(), current available=false*
*[https-test]: finer: WebModule[search]: Configuring default Resources*
*[https-test]: finer: WebModule[search]: Processing standard container startup*
*[https-test]: finer: WebappLoader[search]: WEB3106: Deploying class repositories to work directory /opt/software/sunone/https-test/ClassCache/https-test/search*
*[https-test]: finer: WebappLoader[search]: WEB3107: Deploy JAR /WEB-INF/lib/messages.jar to /opt/software/sunone/bin/https/webapps/search/WEB-INF/lib/messages.jar*
*[https-test]: finer: StandardManager[search]: WEB3421: Seeding random number generator class java.security.SecureRandom*
*[https-test]: finer: StandardManager[search]: WEB3417: Seeding of random number generator has been completed*
*[https-test]: finer: ContextConfig[search]: WEB3539: ContextConfig: Processing START*
*[https-test]: finer: WebModule[search]: Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'*
*[https-test]: finer: WebModule[search]: Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'*
*[https-test]: finer: ContextConfig[search]: Scanning web.xml tag libraries*
*[https-test]: finer: ContextConfig[search]: URI='/search', ResourcePath='/WEB-INF/sun-web-search.tld'*
*[https-test]: finer: ContextConfig[search]: tldConfigJar(/WEB-INF/sun-web-search.tld): java.util.zip.ZipException: error in opening zip file*
*[https-test]: finer: ContextConfig[search]: URI='/jstl-fmt', ResourcePath='/WEB-INF/fmt.tld'*
*[https-test]: finer: ContextConfig[search]: tldConfigJar(/WEB-INF/fmt.tld): java.util.zip.ZipException: error in opening zip file*
*[https-test]: finer: ContextConfig[search]: Scanning library JAR files*
*[https-test]: finest: Realm name has been set to: native*
*[https-test]: finest: Realm: getInstance returning realm :native*
*[https-test]: finest: The realm native is a NativeRealm.*
*[https-test]: finer: ContextConfig[search]: Pipeline Configuration:*
*[https-test]: finer: ContextConfig[search]: org.apache.catalina.core.StandardContextValve/1.0*
*[https-test]: finer: ContextConfig[search]: ======================*
*[https-test]: finer: WebModule[search]: Configuring application event listeners*
*[https-test]: finer: WebModule[search]: Sending application start events*
*[https-test]: finer: WebModule[search]: Starting filters*
*[https-test]: finer: WebModule[search]: Posting standard context attributes*
*[https-test]: finer: StandardWrapper[search:invoker]: WEB2770: Loading container servlet invoker*
*[https-test]: info: WEB2798: [search] ServletContext.log(): WEB3946: Parent class loader is: WebappClassLoader*
*[https-test]: available:*
*[https-test]: delegate: false*
*[https-test]: repositories:*
*[https-test]: required:*
*[https-test]: ----------> Parent Classloader:*
*[https-test]: sun.misc.Launcher$AppClassLoader@67ac19*
*[https-test]:*
*[https-test]: info: WEB2798: [search] ServletContext.log(): WEB3945: Scratch dir for the JSP engine is: /opt/software/sunone/https-test/ClassCache/https-test/search*
*[https-test]: info: WEB2798: [search] ServletContext.log(): WEB3947: IMPORTANT: Do not modify the generated servlets*
*[https-test]: finer: WebModule[search]: Starting completed*
*[https-test]: finer: WebModule[]: Starting*
*[https-test]: finer: WebModule[]: Processing start(), current available=false*
*[https-test]: finer: WebModule[]: Configuring default Resources*
*[https-test]: finer: WebModule[]: Processing standard container startup*
*[https-test]: finer: WebappLoader[]: WEB3106: Deploying class repositories to work directory /opt/software/sunone/https-test/ClassCache/https-test/default-webapp*
*[https-test]: finer: StandardManager[]: WEB3421: Seeding random number generator class java.security.SecureRandom*
*[https-test]: finer: StandardManager[]: WEB3417: Seeding of random number generator has been completed*
*[https-test]: finer: ContextConfig[]: WEB3539: ContextConfig: Processing START*
*[https-test]: finer: WebModule[]: Setting deployment descriptor public ID to '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN'*
*[https-test]: finer: ContextConfig[]: WEB3523: Missing application web.xml, using defaults only*
*[https-test]: finer: ContextConfig[]: Scanning web.xml tag libraries*
*[https-test]: finer: ContextConfig[]: Scanning library JAR files*
*[https-test]: finest: Realm name has been set to: native*
*[https-test]: finest: Realm: getInstance returning realm :native*
*[https-test]: finest: The realm native is a NativeRealm.*
*[https-test]: finer: ContextConfig[]: Pipeline Configuration:*
*[https-test]: finer: ContextConfig[]: org.apache.catalina.core.StandardContextValve/1.0*
*[https-test]: finer: ContextConfig[]: ======================*
*[https-test]: finer: WebModule[]: Configuring application event listeners*
*[https-test]: finer: WebModule[]: Sending application start events*
*[https-test]: finer: WebModule[]: Starting filters*
*[https-test]: finer: WebModule[]: Posting standard context attributes*
*[https-test]: finer: StandardWrapper[:invoker]: WEB2770: Loading container servlet invoker*
*[https-test]: info: WEB2798: [] ServletContext.log(): WEB3946: Parent class loader is: WebappClassLoader*
*[https-test]: available:*
*[https-test]: delegate: false*
*[https-test]: repositories:*
*[https-test]: required:*
*[https-test]: ----------> Parent Classloader:*
*[https-test]: sun.misc.Launcher$AppClassLoader@67ac19*
*[https-test]:*
*[https-test]: finer: WebModule[]: Starting completed*
*[https-test]: fine: Adding web module : context = /search, location = /opt/software/sunone/bin/https/webapps/search*
*[https-test]: fine: adding pattern "/advanced" for resource "AdvSearchServlet"*
*[https-test]: fine: adding pattern "/servlet/*" for resource "invoker"*
*[https-test]: fine: adding pattern "*.jsp" for resource "jsp"*
*[https-test]: fine: Adding web module : context = , location = /opt/software/sunone/docs*
*[https-test]: fine: adding pattern "*.jsp" for resource "jsp"*
*[https-test]: fine: adding pattern "/servlet/*" for resource "invoker"*
*[https-test]: fine: Waiting until the server is ready*
*[https-test]: startup failure: could not bind to 172.26.51.90:443 (Cannot assign requested address)*
*[https-test]: failure: HTTP3127: [LS ls1] https://172.26.51.90:443: Error creating socket (Cannot assign requested address)*
*[https-test]: failure: HTTP3094: 1 listen sockets could not be created*
*[https-test]: failure: CORE3186: Failed to set configuration*
*[https-test]: failure: server initialization failed*
Please suggest/help.
Regards,
AshfaqueThe error message "Cannot assign requested address" means exactly that: Web Server has been configured to listen for requests on an IP address for which your operating system is not configured. You can a) change your Web Server configuration so it listens on 0.0.0.0 (meaning all configured IP addresses), b) change your Web Server configuration so it listens on a specific IP address for which your operating system is configured, or c) configure your operating system for IP address 172.26.51.90.
The problem is not related to certificates or ports. -
Importing packages in JSP using iPlanet problem
hi experts,
i am new begi to iPlanet server6.0
i have installed iPlanet6.0 in windowsNT(d:\iPlanet\servers)
document root is d:\iPlanet\servers\Docs
i have one jsp called test.jsp in document root dir.
i imported one package called adminBeans in jsp file.
i put adminBeans class folder in
d:\iPlanet\servers\Docs\WEB-INF\classes
whrn i am ruuning this jsp error shows as below
============================
[04/Jul/2002:11:15:01] info ( 347): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Unable to compile class for JSPd:\iPlanet\Servers\https-ntserver.vsnl\config\..\ClassCache\_jsps\_test_jsp.java:15: Package adminBeans not found in import.
import adminBeans.*;
^
1 error
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:284)
at com.iplanet.server.http.servlet.NSServletEntity.load NSServletEntity.java:252)
at com.iplanet.server.http.servlet.NSServletEntity.update(NSServletEntity.java:173)
at com.iplanet.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:416)
=====================================================
do i want to set any configuration for jsp running?.
without any import,like helloworld.jsp file is working fine.
any idea
plz help me ya.
thanks in adv.
endrum anpudan
maruthuhi,
first of all u understand the way package works
suppose u have package named mybeans and there r classes under this folder for e.g myBeans/AdminBean and many more so ur definetly going to import the classes in this way import myBeans.*; for all classes or import myBeans.AdminBean; for single class but before doin that make sure that u have set that package path in ur environment. how will u do that ? register the path just above one folder to myBeans for e.g
D:\myClasses in the evironment and ur myBeans folder wil reside under D:\myClasses\myBeans -
Problems with iWS6.0 SP4 after JDK change / upgrade
Solaris8 SPARC
iPlanet 6.0 WebServer SP4
I recently upgraded from JDK 1.3.1_02 to JDK 1.3.1_07 .
In both cases .... the JDK was installed at /usr/j2se.
iPlanet 6.0 SP4 was already using JDK 1.3.1_02 before ( /usr/j2se ).
Now after the JDK upgrade, in an attempt to restart the admserv. I am getting the exception below:
iPlanet-WebServer-Enterprise/6.0SP4 B07/17/2002 14:04
warning: daemon is running as super-user
[LS ls1] http://soft2, port 8888 ready to accept requests
java.lang.NoClassDefFoundError
at java.security.Policy$1.run(Policy.java:144)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.Policy.getPolicyNoCheck(Policy.java:141)
at java.security.SecureClassLoader.getPermissions(SecureClassLoader.java:133)
at java.net.URLClassLoader.getPermissions(URLClassLoader.java:415)
at sun.misc.Launcher$AppClassLoader.getPermissions(Launcher.java:289)
at java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader.java:157)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
The errors logs say:
[04/Apr/2003:18:36:58] info (20837): successful server startup
[04/Apr/2003:18:36:58] info (20837): iPlanet-WebServer-Enterprise/6.0SP4 B07/17/2002 14:04
[04/Apr/2003:18:36:59] info (20838): Installing a new configuration
[04/Apr/2003:18:36:59] info (20838): [LS ls1] http://soft2, port 8888 ready to accept requests
[04/Apr/2003:18:36:59] info (20838): A new configuration was successfully installed
[04/Apr/2003:18:37:00] failure (20838): Internal error: unable to locate: com/iplanet/server/http/util/LogUtil
[04/Apr/2003:18:37:00] failure (20838): Internal error: Unable to initialize utility classes
[04/Apr/2003:18:37:00] failure (20838): Late initialization failed: Error running init function(late) NSServletLateInit: unknown error
The class com/iplanet/server/http/util/LogUtil is in NSJavaUtil.jar ... which is included in the CLASSPATH in the start-jvm file, show below:
NSES_JDK=/usr/j2se; export NSES_JDK
NSES_JRE=${NSES_JDK}/jre; export NSES_JRE
NSES_JRE_RUNTIME_LIBPATH=${NSES_JRE}/lib/sparc:${NSES_JRE}/lib/sparc/server:${NSES_JRE}/lib/sparc/classic:${NSES_JRE}/lib/sparc/native_thread
s; export NSES_JRE_RUNTIME_LIBPATH
NSES_JDK_RUNTIME_CLASSPATH=${NSES_JRE}/lib/ext/iiimp.jar:${NSES_JRE}/lib/i18n.jar:${NSES_JRE}/lib/rt.jar:${NSES_JDK}/lib/tools.jar:${NSES_JDK
}/lib/dt.jar; export NSES_JDK_RUNTIME_CLASSPATH
# DO NOT CHANGE ANYTHING BELOW THIS LINE
NSES_SERVER_HOME=/usr/iplanet/servers; export NSES_SERVER_HOME
NSES_CLASSPATH=${NSES_SERVER_HOME}/bin/https/jar/NSServletLayer.jar:${NSES_SERVER_HOME}/bin/https/jar/NSJavaUtil.jar:${NSES_SERVER_HOME}/bin/
https/jar/AdminNativeUtil.jar:${NSES_SERVER_HOME}/bin/https/jar/NSJavaMiscUtil.jar:${NSES_SERVER_HOME}/bin/https/jar/servlet.jar:${NSES_SERVE
R_HOME}/bin/https/jar/servlet-2.3-filters-api.jar:${NSES_SERVER_HOME}/bin/https/jar/jsp092.jar:${NSES_SERVER_HOME}/bin/https/jar/jaxp.jar:${N
SES_SERVER_HOME}/bin/https/jar/crimson.jar:${NSES_SERVER_HOME}/bin/https/jar/xalan.jar:${NSES_SERVER_HOME}/bin/https/jar/jspengine.jar; expor
t NSES_CLASSPATH
LD_LIBRARY_PATH=${NSES_JRE_RUNTIME_LIBPATH}:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH
...and the JAR file itself exists:
soft2:/usr/iplanet/servers/https-admserv >ls -alt /usr/iplanet/servers/bin/https/jar/NS*
-rw-r--r-- 1 root other 191337 Jul 17 2002 /usr/iplanet/servers/bin/https/jar/NSServletLayer.jar
-rw-r--r-- 1 root other 2856 Jul 17 2002 /usr/iplanet/servers/bin/https/jar/NSJavaMiscUtil.jar
-rw-r--r-- 1 root other 29941 Jul 17 2002 /usr/iplanet/servers/bin/https/jar/NSJavaUtil.jar
Here I show that the class iPlanet is complaining is in the NSJavaUtil.jar file:
soft2:/usr/iplanet/servers/https-admserv >jar tvf /usr/iplanet/servers/bin/https/jar/NSJavaUtil.jar | grep Log
3403 Wed Jul 17 13:54:22 GMT+10:00 2002 com/iplanet/server/http/util/LogUtil.class
502 Wed Jul 17 13:54:22 GMT+10:00 2002 com/iplanet/server/http/util/LogUtil$LogWriter.class
If I modify the start-jvm file so that NSES_JDK points to an older version of the JDK ( /usr/Solaris_JDK_1.2.2_07 ) ... or a newer one ( /usr/j2sdk1.4.0_02 ) ... then the admserv instance starts up.
Having said that, in an effort to try to replicate the problem, I tried the same JDK upgrade on another Solaris8 SPARC installation, also with iPlanet 6.0 SP4. That one worked fine with any problems. The admserv instance started fine after the upgrade.
The only different thing that I did was:
1) I first told iPlanet6 to point to a different JDK location ( JDK 1.3.1_03 in /usr/j2sdk1_3_1_03 ) before the upgrade ....
2) restarted the admserv instance ...
3) install JDK 1.3.1_07 ( /usr/j2se )
4) told iplanet6 to point to the JDK 1.3.1_07 ( /usr/j2se )
5) restart the admserv instance
Why would it not work with one installation and not the other ?This maybe the final clue. I did a truss via:
truss -f ./start -start 2&> err
... and this is what I get just before the NoClassDefFoundError exception ( look at the SIGSEGV ):
22780: lwp_mutex_lock(0xFEBC5558) = 0
22780: lwp_sema_post(0xFCE03E30) = 0
22780: lwp_sema_wait(0xFCE03E30) = 0
22780: lwp_mutex_wakeup(0xFEBC5558) = 0
22780: lwp_mutex_lock(0xFEBC5558) = 0
22780: Incurred fault #6, FLTBOUNDS %pc = 0xF900A8FC
22780: siginfo: SIGSEGV SEGV_ACCERR addr=0xFE427F68
22780: Received signal #11, SIGSEGV [caught]
22780: siginfo: SIGSEGV SEGV_ACCERR addr=0xFE427F68
22780: sigprocmask(SIG_SETMASK, 0xFEBBEFE8, 0x00000000) = 0
22780: mprotect(0xFE424000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
22780: sigprocmask(SIG_SETMASK, 0xFEBCAD68, 0x00000000) = 0
22780: setcontext(0xFE42B938)
22780: time() = 1049546821
22780: poll(0xFD007A40, 0, 10) = 0
22780: getpid() = 22780 [22778]
22780: write(6, " [ 0 5 / A p r / 2 0 0 3".., 111) = 111
22780: lwp_sema_post(0xFCE03E30) = 0
22780: lwp_sema_wait(0xFCE03E30) = 0
22780: lwp_mutex_wakeup(0xFEBC5558) = 0
22780: lwp_mutex_lock(0xFEBC5558) = 0
22780: getrlimit(RLIMIT_STACK, 0xFFBEAFAC) = 0
22780: mprotect(0xFFB72000, 16384, PROT_NONE) = 0
22780: mprotect(0xFFB70000, 8192, PROT_NONE) = 0
22780: poll(0xFD007A40, 0, 10) = 0
22780: brk(0x004BB7F0) = 0
22780: brk(0x004BD7F0) = 0
22780: time() = 1049546821
22780: getpid() = 22780 [22778]
22780: write(6, " [ 0 5 / A p r / 2 0 0 3".., 93) = 93
java.lang.NoClassDefFoundError22780: write(2, " j a v a . l a n g . N o".., 30) = 30 -
WLS 6.1 SP2, iPlanet 6 & NSAPI problems
Does anybody know of a good reference document on how to properly install the NSAPI
plug-in for WLS6.1 & iPlanet6(SunOne) on Unix (Solaris). Many of the references that
I have been finding are either incomplete, have typo's and are mostly Windows oriented
(ie. with the .dll's, paths, examples, etc.)
My problem is that our old iPlanet 4.x works fine...everything proxies, etc. iPlanet
6 just doesn't want to seem to communicate with WLS 6.1 SP2 We tried many of the
saem things from the 4.x magnus & obj.confs...but things look somewhat different
in iPlanet 6.x (did they move tings..such as the fn's from one to the other, etc.)
If so..and there are big differences in installing iPlanet 4.x vs. 6.x then many
of the docs out there are inaccurate. Does anyone know if there is a newer version
of the NSAPI plug-in for Unix.
I would love to see a basic, working set of magnus.conf obj.conf, MIME,etc from someone
who has actually gotten NSAPI to work between WLS 6.1 and iPlanet 6 on Unix (Solaris)
It blows my mind that 4.x works and 6.x doesn't. An updated NSAPI plug-in
, if it exists and perhaps fixes the problem, would make my day. Any ideas? Thanks!
-DougHi Doug
U have to put the following section
Init fn="load-modules" funcs="wl_proxy,wl_init" shlib="./libproxy.so"
Init fn="wl_init"
into magus.conf
and put the rest into obj.conf
Best Regards
Alex
"Doug E" <[email protected]> wrote:
>
Does anybody know of a good reference document on how to properly install
the NSAPI
plug-in for WLS6.1 & iPlanet6(SunOne) on Unix (Solaris). Many of the references
that
I have been finding are either incomplete, have typo's and are mostly Windows
oriented
(ie. with the .dll's, paths, examples, etc.)
My problem is that our old iPlanet 4.x works fine...everything proxies,
etc. iPlanet
6 just doesn't want to seem to communicate with WLS 6.1 SP2 We tried many
of the
saem things from the 4.x magnus & obj.confs...but things look somewhat different
in iPlanet 6.x (did they move tings..such as the fn's from one to the other,
etc.)
If so..and there are big differences in installing iPlanet 4.x vs. 6.x
then many
of the docs out there are inaccurate. Does anyone know if there is a newer
version
of the NSAPI plug-in for Unix.
I would love to see a basic, working set of magnus.conf obj.conf, MIME,etc
from someone
who has actually gotten NSAPI to work between WLS 6.1 and iPlanet 6 on Unix
(Solaris)
It blows my mind that 4.x works and 6.x doesn't. An updated NSAPI plug-in
, if it exists and perhaps fixes the problem, would make my day. Any ideas?
Thanks!
-Doug -
JavaBeans in JSP on iPlanet server problem
Hi-
I have deployed several JSPs, but this is my first attempt at using JavaBeans in the pages. We are using the iPlanet 4.1 web server.
The following is my JSP code (MyTest.jsp):
<html>
<head>
<title> Test case</title>
</head>
<body>
<jsp: useBean id="myBean" class="Beans.MyBean" />
</body>
</html>
The following is the bean code:
package Beans
public class MyBean {
private String message = "No Message";
public String getMessage() {
return(message);
public void setMessage(String message) {
this.message = message;
I have the JSP and bean in the same directory. I'm not clear on where to put it on an iPlanet server. The bean compiles fine, and iPlanet seems to be able to see it. However, when I compile the JSP I get the following error on iPlanet:
recompiling JSP file: /<dir path>/Beans/MyTest.jsp
JSP compilation error: java.lang.Exception: JSP parse error (line24) - Incomplete tag ending of /jsp:useBean, stack: java.lang.Exception: JSP parse error(line 24) - Incomplete tag ending of /jspuseBean
I've looked through several books and the JSP coding to useBean looks fine. Is this error related to iPlanet? Is it tied to the directory structure? We are using JDK1.3, is it set up for JavaBeans - or do we need to download some other files?
Any help is welcomed!
Thanks,
LeilaniLeilani,
Have you got your JSP and beans to work. I'm having a similar problem. I am getting the following error when trying to load the JSP:
[10/Dec/2001:11:46:42] info ( 1688): Internal Info: loading servlet /wacc/jsp/pickProgram.jsp
[10/Dec/2001:11:46:47] info ( 1688): JSP: JSP1x compiler threw exception
org.apache.jasper.JasperException: Unable to compile class for JSPC:\iPlanet\Server4\https-wacc\config\..\ClassCache\_jsps\_wacc\_jsp\_pickProgram_jsp.java:86: Undefined variable or class name: menu
menu.setUserId(userId);
^
1 error
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:260)
at com.netscape.server.http.servlet.NSServletEntity.load(NSServletEntity.java:230)
at com.netscape.server.http.servlet.NSServletEntity.update(NSServletEntity.java:149)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:463)
[10/Dec/2001:11:46:47] warning ( 1688): Internal error: Failed to get GenericServlet. (uri=/wacc/jsp/pickProgram.jsp,SCRIPT_NAME=/wacc/jsp/pickProgram.jsp)
My iPlanet "Configure JVM Attributes" has the path to the beans directory (I have also tried adding it to the Windows CLASSPATH variable):
C:\dir\dir\beansdir;
and here is the JSP code snippet:
<%@ page info="Pick Program into page" %>
<HTML>
<HEAD>
</HEAD>
<BODY BGCOLOR="#ffffff">
<USEBEAN name="menu" type=ford.wacc.beans.Menus lifespan=page></USEBEAN>
<%
PrintWriter myOut = response.getWriter();
// get logged in user id
String tmpStr = "userid";
String userId = tmpStr.toUpperCase();
// store user id in bean
try {
menu.setUserId(userId);
} catch (Exception ex) {
// global variables
String[] menuItems = null;
%>
<%= tmpStr %>
<%= userId %>
</BODY>
</HTML>
I believe I have my iPalnet server configured correctly but it seems to me that it is a path problem. If anyone can point me in the right direction, I'd appreciate it. Thanks. -
Connecting to weblogic7.0 from iplanet6.0sp2
Hi,
I am trying to lookup an ejb deployed in weblogic7.0 from my web application deployed
on iplanet6.0 sp2 on HP Unix system - both weblogic and iplanet on different servers.
I tired adding the below 2 lines in the obj.conf of iplanet server :
Init fn="load-modules" funcs="wl-proxy,wl-init" shlib="libproxy.sl"Init fn="wl-init"
But when i try to restart the iplanet server,i get the following error :
Error processing obj.conf line 23: init functions are not allowed in this objset
Could anyone help me resolve this?
Thanks
SmithaSUN One Web server is different from I-Planet Web Servers , you need to add the
Init line into magnus.conf file and the objects tags inside object.conf file.
This will solve your problem
"smitha" <[email protected]> wrote:
>
Hi,
I am trying to lookup an ejb deployed in weblogic7.0 from my web application
deployed
on iplanet6.0 sp2 on HP Unix system - both weblogic and iplanet on different
servers.
I tired adding the below 2 lines in the obj.conf of iplanet server :
Init fn="load-modules" funcs="wl-proxy,wl-init" shlib="libproxy.sl"Init
fn="wl-init"
But when i try to restart the iplanet server,i get the following error
Error processing obj.conf line 23: init functions are not allowed in
this objset
Could anyone help me resolve this?
Thanks
Smitha -
Pb when downloading gif files with iplanet6 SP4
Hi,
I'm using Iplanet6 SP4 for serving a intranet application.
I have a constraint on my browser : it MUST be configured to check the page on server each time a page is visited.
One of my pages contains several gifs. The problem is that if the same gif appears twice (or more) in the page, it is downloaded twice (or more).
I don't have this problem with Tomcat.
I have tried to configure my server by tuning the Cache Configuration parameters, without any success.
Does anybody already meet this problem,
Thanks for any help on this topic
Lionel Malais, MontrealCédric,
Please let us just sync our terminology. "pb" = "problem"? "Ko" is maybe Kilobyte, which is usually abbreviated "Kb"? "Idem."? In English, one ! is enough to terminate all sentences!
First to test 2: you list the BSP/HTMLB coding that you use. This is perfectly OK, there is no problems.
In test 1 we use only raw HTML to get a page into the browser. Once the HTML is in the browser, BSP plays no role anymore. This is the typical tests that we do to systematically isolate the error, and remove components. At this stage, I would say it is no BSP error. It has to do with how the HTTP handler (which you trigger) sends the document to the browser, what headers are set, and where the document is cached.
But i think i cannot remove system parameter (sap-language=FR & sap-client=050)
In principle these two parameters are in anycase stored as a cookie in the browser, and you do not have to supply them in the URL. At least to continue for the moment, you can leave them away.
To continue with the problem, you will have to open an OSS message, so we can look at the complete problem (using your test1 page). Our interest is to see what this handler does exactly.
I have spend a little time tonight to review the URL that you supply and the code that is executed. At the end of the chain, a special handler is called to do the final HTTP response, which we "own". So please queue problem directly onto BC-BSP, and reference this SDN thread.
Add inside OSS message: /SAP/BW/DOC/MAST --> CL_HTTP_WEBDAV_RSOD,
which is based on CL_HTTP_WEBDAV. Actual low level handler is used for sending. Check comments in dev system on handling of etags. HTTP proxy trace required to see what HTTP headers are actually set and behaviour of browser in this case.
By leaving of the URL parameters, you should be able to continue until the problem is completely understood.
brian -
Regd. Migration from ND5.0 to Iplanet6.0
Hi,
We are using migration tool 'migtoolbox-1.1.1' to migrate our
application from ND5.0 to IPlanet6.0.
My question is whenever I run the migration tool is removes all the
comments given at the time of development.
Can we retain the origional comments after migration also?
Is there any other (better than migtoolbox-1.1.1) tool available for
migration?
Regards,
ashuHi Khalil,
Can you please e-mail [email protected] with answers to the
following questions. We will try and investigate this.
What is the structure of the SQL Server table?
What is the structure of the Oracle table?
Also, what character set did you create the Oracle database with?
What codepage was the SQL Server database?
Are the characters appearing as question marks in an application?
Regards
John
Khalil A. Khalil (guest) wrote:
: Hi..
: I faced one problem in migration from SQL7.0 to Oracle using
: Workbench, which is that all Arabic characters is comming
: question marks after the migration.
: So does Oracle Workbench supports two_byte code for
internationl
: languages..
Oracle Technology Network
http://technet.oracle.com
null -
Problem with EJBContext.rollback
Hi,
We are testing out some code for transaction control and can't seem to
get the container managed transactions with Oracle Type 4 drivers with
IPlanet6 SP2.
Some problems we encountered were:
1. There does not appear to be any way to check whether the connection
is participating in a transaction?
The class of the connection also does not appear to implement
XAConnection even though we do a lookup
within a Container Managed Transactional EJB. And the rollback also does
not work properly in the attached code
fragment.
2. We have set the EJB Deployment Descriptors properly to be Container
Managed Transactions and "Required", the Resource References are
available in both ejb-jar.xml and ias-ejb-jar.xml, but after meddling
with the App Server settings
for a few days and trying all sorts of combinations, none of them
actually work.
3. IPlanet's Tech Support has not been helpful at all in confirming
whether this is a misconfiguration or a bug (seems
like too important a feature to be not working right?)
We would appreciate any help in determining the exact problem with
either our configuration or code in handling
transactions. Thanks
hoongshen
---------------------------------------- Attached Code
The Stateless Session Bean Code essentially just implements one method
and we can't get the transaction working
with that method.
public long getNextNumber(String name) {
long next;
InitialContext ctx = null;
DataSource ds = null;
Connection con = null;
Statement stmt = null;
ResultSet rs = null;
next = -1;
try {
ctx = new InitialContext();
ds = (DataSource)ctx.lookup("java:comp/env/ecbeans");
con = ds.getConnection();
stmt = con.createStatement();
rs = stmt.executeQuery("select next from testSeq where
name='"+name+"' for update");
if (rs.next())
next = rs.getLong("next");
rs.close();
stmt.close();
stmt = con.createStatement();
if (next==-1) {
stmt.executeUpdate("insert into testSeq (name, next) values
('"+name+"', 2)");
next = 1;
} else {
stmt.executeUpdate("update testSeq set next="+(next+1)+" where
name='"+name+"'");
stmt.close();
con.close();
} catch (Exception ex) {
ex.printStackTrace();
// This fails to rollback the committed data even though we are
supposed to be in a transaction
sc.setRollbackOnly();
return next;
}try
setAutoCommit(false);
int x = insertRecord1();
if( x > 0){
int y = insertRecord2();
if(y > 0){
con.commit();
}else{
con.rollback();
}else{
con.rollback();
I use MySql 4.1
con. rollback it works not -
Cache Problem in iPlanet (Solaris)
We are using iPlanet on solaris. we are having cache problem. Everytime we make any change in out JSP files we have to stop the server and then we clear the cache from ClassCache folder. Then we restart the server. Please let me know, how can I avoid restarting the server. Thanks
Sanjay,
You do not say which version you are using but I
believe some people had problems with 4.1 that went
away when they upgraded to 4.1.3.
The JSP source file should be compared with the
version in the cache at run time, so a newer version
should be picked up automatically. However, a JSP that
you only 'include' in an outer JSP will not be updated
because only the including JSP is checked for update.
If this is the problem you have, you should be
able to force a run time check for the inner JSP by
using "jsp:include page=<name>.jsp" in the including
(outer) JSP.
I hope this helps.
Alan Beecraft, Sun Developer Technical Support -
I am trying to implement some kind of a server listening for requests. The listener part of the app, is a daemon thread that listens for connections and instantiates a handling daemon thread once it gets some. However, my problem is that i must be able to kill the listening thread at the user's will (say via a sto button). I have done this via the Sun's proposed way, by testing a boolean flag in the loop, which is set to false when i wish to kill the thread. The problem with this thing is the following...
Once the thread starts excecuting, it will test the flag, find it true and enter the loop. At some point it will LOCK on the server socket waiting for connection. Unless some client actually connects, it will keep on listening indefinatelly whithought ever bothering to check for the flag again (no matter how many times you set the damn thing to false).
My question is this: Is there any real, non-theoretical, applied way to stop thread in java safely?
Thank you in advance,
LeftyThis was one solution from the socket programming forum, have you tried this??
public Thread MyThread extends Thread{
boolean active = true;
public void run(){
ss.setSoTimeout(90);
while (active){
try{
serverSocket = ss.accept();
catch (SocketTimeoutException ste){
// do nothing
// interrupt thread
public void deactivate(){
active = false;
// you gotta sleep for a time longer than the
// accept() timeout to make sure that timeout is finished.
try{
sleep(91);
}catch (InterruptedException ie){
interrupt();
} -
A problem with Threads and MMapi
I am tring to execute a class based on Game canvas.
The problem begin when I try to Play both a MIDI tone and to run an infinit Thread loop.
The MIDI tone "Stammers".
How to over come the problem?
Thanks in advance
Kobi
See Code example below:
import java.io.IOException;
import java.io.InputStream;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.game.GameCanvas;
import javax.microedition.media.Manager;
import javax.microedition.media.MediaException;
import javax.microedition.media.Player;
public class MainScreenCanvas extends GameCanvas implements Runnable {
private MainMIDlet parent;
private boolean mTrucking = false;
Image imgBackgound = null;
int imgBackgoundX = 0, imgBackgoundY = 0;
Player player;
public MainScreenCanvas(MainMIDlet parent)
super(true);
this.parent = parent;
try
imgBackgound = Image.createImage("/images/area03_bkg0.png");
imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
imgBackgoundY = this.getHeight() - imgBackgound.getHeight();
catch(Exception e)
System.out.println(e.getMessage());
* starts thread
public void start()
mTrucking = true;
Thread t = new Thread(this);
t.start();
* stops thread
public void stop()
mTrucking = false;
public void play()
try
InputStream is = getClass().getResourceAsStream("/sounds/scale.mid");
player = Manager.createPlayer(is, "audio/midi");
player.setLoopCount(-1);
player.prefetch();
player.start();
catch(Exception e)
System.out.println(e.getMessage());
public void run()
Graphics g = getGraphics();
play();
while (true)
tick();
input();
render(g);
* responsible for object movements
private void tick()
* response to key input
private void input()
int keyStates = getKeyStates();
if ((keyStates & LEFT_PRESSED) != 0)
imgBackgoundX++;
if (imgBackgoundX > 0)
imgBackgoundX = 0;
if ((keyStates & RIGHT_PRESSED) != 0)
imgBackgoundX--;
if (imgBackgoundX < this.getWidth() - imgBackgound.getWidth())
imgBackgoundX = this.getWidth() - imgBackgound.getWidth();
* Responsible for the drawing
* @param g
private void render(Graphics g)
g.drawImage(imgBackgound, imgBackgoundX, imgBackgoundY, Graphics.TOP | Graphics.LEFT);
this.flushGraphics();
}You can also try to provide a greater Priority to your player thread so that it gains the CPU time when ever it needs it and don't harm the playback.
However a loop in a Thread and that to an infinite loop is one kind of very bad programming, 'cuz the loop eats up most of your CPU time which in turn adds up more delays of the execution of other tasks (just as in your case it is the playback). By witting codes bit efficiently and planning out the architectural execution flow of the app before start writing the code helps solve these kind of issues.
You can go through [this simple tutorial|http://oreilly.com/catalog/expjava/excerpt/index.html] about Basics of Java and Threads to know more about threads.
Regds,
SD
N.B. And yes there are more articles and tutorials available but much of them targets the Java SE / EE, but if you want to read them here is [another great one straight from SUN|http://java.sun.com/docs/books/tutorial/essential/concurrency/index.html] .
Edited by: find_suvro@SDN on 7 Nov, 2008 12:00 PM -
Hi all,
I would like to ask you for a help. I need to write a small program at my university. I started to write a midlet which function would be to countdown time for sports activities. I woul like to start a new thread - the one that counts down - and at the same time make the main thread sleep. After the "countdown" thread finishes, the main thread wakes up and waits for user input. The problem is that when the "countdown" thread finishes his work, I've got Uncaught exception java/lang/NullPointerException. error and the midlet halts.
Below you can find the code
import java.lang.*;
import java.util.*;
import javax.microedition.lcdui.*;
import javax.microedition.midlet.*;
public class intervals extends MIDlet implements CommandListener
public Display ekran;
private SweepCanvas sweeper;
private Form rundy;
private TextField round0, round1, round2, round3, round4, round5, round6, round7, round8;
private long czas,x;
private Command exitCommand;
private Command addRound;
private Command delRound;
private Command start;
private TextField repeat;
private Form odliczanie;
private Alert ostrz;
Licznik thread;
String test;
StringItem test1;
int parz,i,j,k;
static int l;
int ilrund;
int ilpowt;
Item sec;
long sec1;
public intervals()
rundy = new Form("Interwały sportowe");
exitCommand = new Command("Wyjście", Command.EXIT, 2);
addRound = new Command("Dodaj","Dodaj rundę", Command.ITEM,1);
delRound = new Command("Usuń","Usuń ostatnią rundę", Command.ITEM,1);
start = new Command("Start", Command.ITEM,1);
odliczanie = new Form("Odliczanie");
TextField dodaj(TextField kolej)
kolej=new TextField("Podaj czas (s) rundy "+parz,null, 4, TextField.NUMERIC);//stworzenie nowej instancji do wybierania czasu trwania rundy
if(rundy.size()==0)
rundy.insert(rundy.size(),kolej);
else
rundy.insert(rundy.size()-1, kolej);
return kolej;
void odliczanie(TextField round)
monitor m=new monitor();
k=Integer.parseInt(round.getString());
ekran.setCurrent(odliczanie);
thread=new Licznik(k,odliczanie);
thread.start();
ekran.setCurrent(rundy);
public void startApp()// throws MIDletStateChangeException
rundy.deleteAll();
repeat = new TextField("Podaj ilość powtórzeń",null,1,TextField.NUMERIC);
rundy.addCommand(addRound);
rundy.addCommand(exitCommand);
rundy.setCommandListener(this);
Canvas obrazek = new MyCanvas();
ekran = Display.getDisplay(this);
ekran.setCurrent(obrazek);
czas=System.currentTimeMillis();
while (System.currentTimeMillis()<czas+1000)
continue;
ekran.setCurrent(rundy);
public void pauseApp()
public void destroyApp(boolean unconditional)
notifyDestroyed();
public void commandAction(Command c, Displayable s)
if (c == exitCommand)
destroyApp(false);
notifyDestroyed();
else if(c==addRound)
if(rundy.size()==0)//Sprawdzenie ilości elementów w celu poprawnego wyświetlania liczby rund w formie
parz=1;
else
parz=rundy.size();
switch(parz)
case 1:
round0=dodaj(round0);break;
case 2:
round1=dodaj(round1);break;
case 3:
round2= dodaj(round2);break;
case 4:
round3=dodaj(round3);break;
case 5:
round4=dodaj(round4);break;
default:
ostrz=new Alert("Uwaga","Maksymalna liczba rund wynosi 9", null, AlertType.INFO);
ostrz.setTimeout(3000);
ekran.setCurrent(ostrz);
if(rundy.size()==1)
rundy.append(repeat);
rundy.addCommand(start);
rundy.addCommand(delRound);
else if(c==delRound)
if(rundy.size()!=0)
rundy.delete(rundy.size()-2);
if (rundy.size()==1)
rundy.deleteAll();
if(rundy.size()==0)
rundy.removeCommand(delRound);
rundy.removeCommand(start);
else if(c==start)
ilrund=rundy.size()-1;
if(this.repeat.size()>0)
ilpowt=Integer.parseInt(this.repeat.getString());
ekran = Display.getDisplay(this);
for (i=1; i<=ilpowt;i++)
odliczanie= new Form("Odliczanie");
for (j=0;j<ilrund;j++)
switch(j)
case 0:
odliczanie(round0);
break;
case 1:
odliczanie(round1);
break;
case 2:
odliczanie(round2);
break;
case 3:
odliczanie(round3);
break;
case 4:
odliczanie(round4);
break;
case 5:
odliczanie(round5);
break;
case 6:
odliczanie(round6);
break;
case 7:
odliczanie(round7);
break;
case 8:
odliczanie(round8);
break;
class Licznik extends Thread
int czas1,k;
Form forma;
monitor m;
public Licznik(int k,Form formap)
czas1=k;
forma=formap;
public synchronized void run()
while(czas1>0)
forma.deleteAll();
forma.append("Czas pozostały (s): "+czas1);
try{Thread.sleep(1000);} catch(InterruptedException e){e.printStackTrace();}
czas1--;
if(czas1<=0)
m.put();
}and monitor class
public class monitor
boolean busy=false;
synchronized void get()
if(!busy)
try
wait();
}catch(InterruptedException e){e.printStackTrace();}
notify();
synchronized void put()
if(busy)
try
wait();
}catch(InterruptedException e){e.printStackTrace();}
busy=true;
notify();
}Can anybody help me with this?Groovemaker,
Your Licznik class has a member m of type monitor, which has not been instantiated (in other words is null) hence, when calling m.put() you get NullPointerException. Please also mind, that using Thread.sleep(1000) is not an accurate way of measuring time.
If I may, please use recommended for Java class naming conventions - some of your names use lower case, while other don't which is confusing to the reader.
Daniel -
Problem with threads within applet
Hello,
I got an applet, inside this applet I have a singleton, inside this singleton I have a thread.
this thread is running in endless loop.
he is doing something and go to sleep on and on.
the problem is,
when I refresh my IE6 browser I see more than 1 thread.
for debug matter, I did the following things:
inside the thread, sysout every time he goes to sleep.
sysout in the singleton constructor.
sysout in the singleton destructor.
the output goes like this:
when refresh the page, the singleton constructor loading but not every refresh, sometimes I see the constructor output and sometimes I dont.
The thread inside the singleton is giving me the same output, sometime I see more than one thread at a time and sometimes I dont.
The destructor never works (no output there).
I don't understand what is going on.
someone can please shed some light?
thanks.
btw. I am working with JRE 1.1
this is very old and big applet and I can't convert it to something new.Ooops. sorry!
I did.
public void start() {
public void stop() {
public void destroy() {
try {
resetAll();
Configuration.closeConnection();
QuoteItem.closeConnection();
} finally {
try {
super.finalize();
} catch (Throwable e) {
e.printStackTrace();
}
Maybe you are looking for
-
I need advise on whether to upgrade my iBookG4 or get a new computer?
Hi everyone! This is my first post here, and after reading through some of the other posts I realize that many people are having the same problems as me with my OS 10.3.9. I have been having issues with my computer for a while, and keep spending mone
-
Hi, I'm trying to deploy the Oracle WebLogic Server 11R1 (10.3.6) on multiple computers. So I created a silent.xml file to use in my silent installation. The xml file appears to have the correct syntax. But when I launch the command: oepe-wls-indigo-
-
Table Problem - Fields repeat on every row
Hi there, I have a dynamic table, which adds rows with the click of a buttn, using AddInstance. My first problem is that when I try to enter data in my second row (or any after the first) whatever data I enter refreshes the data on the previous rows,
-
Can someone explain the attached Finder screenshot
Hi, I have a Macbook Pro, just for home use. I noticed this 'Shared' access in Finder recently. It could have appeared after linking a new GPS device I got via a USB cable although it still appears without this being connected and after re-booting. I
-
SQL 2014 cluster shared volume
Hi, I have testing SQL 2014 cluster in my lab to see how it's performing. 2xserver 2012r2 (virtual machines). There are some weird issues that are putting me in dust. 1. If I try to backup/restore database, I cannot select data path from gui. (I cann