SYSCALL lwp_cond_wait when using java
Hi,
I am trrying to understand an issue I have..
I have a SUN server (T5240), I am runng a java application on it.
The thing is the machine has a very high cpu (usr)..
I have used a dtrace tool to check for any problems..
I ran the erronfo tool, I got a very wierd output.
It looks like the java process is failing...
This is part of th output:
tcsh exece 2 7 No such file or directory
tcsh ioctl 25 7 Inappropriate ioctl for device
awk stat64 2 12 No such file or directory
xntpd sigsuspend 4 23 interrupted system call
grep stat64 2 24 No such file or directory
tcsh close 9 30 Bad file number
java lwp_cond_wait 62 1255 timer expired
I get 1255 timer expired events for the java process..
What does that mean?? Who Can I countinue with the troubleshooting??
Thanks!!
I'm not sure that last output means anything useful. In lwp_cond_wait, the value for arg2 is a pointer to struct timespec_t. Since arg2 itself is typed uint64_t, what you're quantizing on are raw pointer values, not time. timespec_t looks like this:
typedef struct timespec { /* definition per POSIX.4 */
time_t tv_sec; /* seconds */
long tv_nsec; /* and nanoseconds */
} timespec_t;
Similar Messages
-
App crash when using JAVA callbacks from native threads in solaris
Hi all,
Sorry for putting the thread here. I did use the native methods forum, I wasnt lucky. I Hope more people would look into this forum, which brings me here.
I have a solaris application which crashes when I try to callback the JAVA methods and variables from the native code. The description of the problem is below
Written a native library, the library is multithreaded (i.e) I create a thread using pthread_create() in the native code which performs the operation of calling a JAVA method from the native code. The routine of calling the JAVA method works perfectly elsewhere outside the new thread.
There are two scenarios I've tested it in
1. I created a thread (say X) from the main thread (say Y) and made the y to wait until the X is complete using the pthread_join(). The JAVA callbacks works fine when called from Y but the app crashes if done from X.
2. Did not make the Y to wait until the X is complete, hoping that both will run paralelly and even the the App crashes.
And to be precise the Y is the thread where the native method is called from JAVA.
I have tested for any memory leaks or stack corruption by removing the JAVA callbacks and bulding a executable and using purify, the report doesnot hint any such occurances.
The linker options used for building the shared library is as follows
${GPP} ${INC} -G ${LIB} -mt -g -lCstd -lCrun -lpthread ${OBJS} -o <lib-name>
I wonder if we can create threads in the native code when using JAVA callbacks and even if we can whether it would be appropiate to use the callbacks with in the threads
Looking forward for any help.
Regards,
VamsiGuys... can't any one help me with this problem :(
-
Fragmented sound when using Java Synthetizator
Hi,
What is the reason for sound fragmentation when using
Java synthetizator in playing midi files:
ByteArrayInputStream mididata = new ByteArrayInputStream(data);
AudioStream as = new AudioStream(mididata); //pre fragment? Priority problem?
mididata.close();
p.start(as);
as.close();}
catch (IOException f){System.out.println("error - " + f.toString());}
And why there is a "blob" in loadspeakers a few seconds before
the music starts?
See the whole source:
http://users.skynet.be/belgia/musitives/Synestesia.html
Regards,
LG
Metacomposer GR�HN http://users.skynet.be/belgia/midi/gallery.html
SYNESTESIA Open Source Java code generates music from any picturesNot sure about the fragmentation, but I guess the Blob is because you have crap in your buffer before you start to play. I don't remember what the fix is for it, but I think there is some way of clearing out the buffer.
-
ORA-04030: out of process memory when using Java Stored Procedures
Hello,
I have a problem using Java Stored Procedures in Oracle 10g.
My Java application performs http posts to a webservice and the response is parsed in order to populate some DB tables.
There is a scheduled job which calls the Java Stored Procedure every x minutes.
No matter of the 'x minutes' values - after about 160 - 200 calls I get this error:
ORA-04030: out of process memory when trying to allocate 1048620 bytes (joxp heap,f:OldSpace)
ORA-04030: out of process memory when trying to allocate 2097196 bytes (joxp heap,f:OldSpace)
The job stops just while is posting the http request. The weird thing is that almost each time the first http post request I get this error:
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
and the second try works fine.
So, The out of process memory occured each time just before getting such an error, and I suspect to be a connection between these errors.
Tech details:
1. OS: WinXP
2. Oracle 10.1.0.2.0
3. To perform http post I use HttpClient 3.1 from Apache.
4. I checked the http connection to be closed each time, and this is done.
5. I checked the oracle statement and connection to be closed each time and this is done
6. The JVM error (logged in .trc files of Oracle) is:
java.lang.OutOfMemoryError
at java.lang.Thread.start(Native Method)
at sun.security.provider.SeedGenerator$ThreadedSeedGenerator.run(SeedGenerator.java:297)
DB Settings details:
Starting up ORACLE RDBMS Version: 10.1.0.2.0.
System parameters with non-default values:
processes = 200
sessions = 225
shared_pool_size = 159383552
large_pool_size = 8388608
java_pool_size = 104857600
nls_language = AMERICAN
control_files = C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL01.CTL, C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL02.CTL, C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL03.CTL
db_block_size = 8192
db_cache_size = 29360128
compatible = 10.1.0
fal_client = XXXXXX
fal_server = XXXXXXs
log_buffer = 524288
log_checkpoint_interval = 100000
db_files = 70
db_file_multiblock_read_count= 32
db_recovery_file_dest = C:\oracle\product\10.1.0\flash_recovery_area
db_recovery_file_dest_size= 2147483648
standby_file_management = AUTO
undo_management = AUTO
undo_tablespace = undotbs_01
undo_retention = 14400
remote_login_passwordfile= EXCLUSIVE
db_domain =
dispatchers = (PROTOCOL=TCP) (SERVICE=XXXXXXXDB)
remote_dependencies_mode = SIGNATURE
job_queue_processes = 4
parallel_max_servers = 5
background_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\BDUMP
user_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\UDUMP
max_dump_file_size = 10240
core_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\CDUMP
sort_area_size = 1048576
sort_area_retained_size = 1048576
db_name = XXXXXX
open_cursors = 500
optimizer_mode = FIRST_ROWS
pga_aggregate_target = 25165824
Any help would be appreciated. Thanks.
Can be a problem with JVM threading under Oracle ?The server prcess failed to allocate more memory for large objects ( in Oldspace).
If you Google ORA-04030, you will see several recommendations to work around this.
The Java VM in the database already has HttpClient, i don't know why you are loading the Apache HttpClient but this might not be the surce of the problem.
Kuassi http://db360.blogspot.com -
Invalid SOAP action when using java ws WebService
Hi all,
this is a slightly more detailed error for a problem i posted recently. I am connecting to a web service that was generated from WSDL. It has two methods "HelloWorld" and "HelloSayFirstName". As defined in the WSDL, the methods use the SOAP action document style. I want to add a cookie to the http header, so after the port is created, I use the following to add the header to the requestContext:
BindingProvider bindingProvider = (BindingProvider) servicePort;
Map<String, Object> requestContext = bindingProvider.getRequestContext();
List<String> cookies = new ArrayList<String>();
cookies.add("mycookie=mytoken");
HashMap<String, List<String>> httpHeaders = new HashMap<String, List<String>>();
httpHeaders.put(HTTPConstants.HEADER_COOKIE, cookies);
requestContext.put(MessageContext.HTTP_REQUEST_HEADERS, httpHeaders);
This works when I call the first method (HelloWorld) - the first activity message sent to the server contains the following:
<HttpRequest>
<Method>POST</Method>
<QueryString></QueryString>
<WebHeaders>
<Cache-Control>no-cache</Cache-Control>
<Connection>keep-alive</Connection>
<Pragma>no-cache</Pragma>
<Transfer-Encoding>chunked</Transfer-Encoding>
<Content-Type>text/xml; charset=UTF-8</Content-Type>
<Accept>*</Accept>
<Cookie>mycookie=mytoken</Cookie>
<Host>exampleHost</Host>
<User-Agent>Java/1.5.0_14</User-Agent>
<SOAPAction>"http://tempuri.org/IMyService/HelloWorld"</SOAPAction>
</WebHeaders>
</HttpRequest>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://exampleHost/WebServices/WCFService/Service.svc</To>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/HelloWorld</Action>
</s:Header>
<soap:Body>
<HelloWorld xmlns="http://tempuri.org/" xmlns:ns2="http://schemas.datacontract.org/2004/07/" xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
<myValue1>world</myValue1>
</HelloWorld>
</soap:Body>
</soap:Envelope>
However, after this method, the httpHeaders in the requestContext object have been updated to include the "Accept" header and the "SOAPAction" header - which is the incorrect action! Now, when I call the method "HelloSayFirstName" I get the following:
<HttpRequest>
<Method>POST</Method>
<QueryString></QueryString>
<WebHeaders>
<Cache-Control>no-cache</Cache-Control>
<Connection>keep-alive</Connection>
<Pragma>no-cache</Pragma>
<Transfer-Encoding>chunked</Transfer-Encoding>
<Content-Type>text/xml; charset=UTF-8</Content-Type>
<Accept>*</Accept>
<Cookie>mycookie=mytoken</Cookie>
<Host>exampleHost</Host>
<User-Agent>Java/1.5.0_14</User-Agent>
<SOAPAction>"http://tempuri.org/IMyService/HelloWorld"</SOAPAction>
</WebHeaders>
</HttpRequest>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://exampleHost/WebServices/WCFService/Service.svc</To>
<Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://tempuri.org/IMyService/HelloWorld</Action>
</s:Header>
<soap:Body>
<HelloSayFirstName xmlns="http://tempuri.org/" xmlns:ns2="http://schemas.datacontract.org/2004/07/" xmlns:ns3="http://schemas.microsoft.com/2003/10/Serialization/">
<dataContractValue></dataContractValue>
</HelloSayFirstName>
</soap:Body>
</soap:Envelope>
It seems that the SOAPAction in the http header and the soap header is incorrect. Is there any reason why the requestContext would keep hold of the action that was previously called, and not use the new action? I'm stumped here - any help would be greatly appreciated.
Cheers.Does not only happen when using JAX-WS.
the following servlet code is enough to reproduce the problem :
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/xml;charset=\"utf-8\"");
It only occurs on 10.1.3.4.0 (works fine on 10.1.3.3.0 and 11.1.1.1.0 TP4)
Regards -
Custom classloader fails when using Java Web Start
Hope you can help me with a problem that is driving me nuts. I have implemented my own classloader to support plugins. This classloader works as follows:
1. The classloader is configured to access a plugin components jar file downloaded by jws.
2. The plugin components jar file contains other jar files which contains the actual plugin code to be loaded using my own classloader.
3. Upon initialization - my classloader extracts all jar files contained in the plugin components jar file into temporary files.
4. These temporary files are used by my classloader when defining plugin classes.
The classloader works fine when not using java web start. Then I launch the application using java web start with security policy in .jnlp file set to:
<security>
<all-permissions/>
</security>
After a while (it was able to load some of the classes) it fails with the following stack-trace:
Regards,
Terje
java.security.AccessControlException: access denied (java.io.FilePermission C:\DOCUME~1\TEOES\LOCALS~1\Temp\activity61102.jar read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkRead(Unknown Source)
at java.util.zip.ZipFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at java.util.jar.JarFile.<init>(Unknown Source)
at my.plugin.ActivityClassLoader.getJarFileEntry(ActivityClassLoader.java:258)
at my.plugin.ActivityClassLoader.search(ActivityClassLoader.java:244)
at my.plugin.ActivityClassLoader.loadClass(ActivityClassLoader.java:99)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Does anyone have source code for implementing a simple class loader that can be used with Java Web Start (preferrably with all jar files to be used by the classloader wrapped into a jar file)If you implement your own classloader, and then still run with a SecurityManager installed, then your ClossLoader is responsible for asigning the permissions to the code it loads.
You need your ClassLoader to extend SecureClassLoader, and implement the method :
SecureClassLoader.getPermissions(CodeSource cs) to return the PermissionCollection you want.
/Andy -
Strange class error when using java
I've been attempting to use java.awt.robot to simulate a key press when a button is clicked however I'm getting a couple of errors that I can't figure out but I'm not so good when it comes to scripts. When the button "LetterButton" is pressed it should simulate a keypress, ideally to the desktop/operating sytem but the errors I'm getting are:-
1071: Syntax error: expected a definition keyword (such as function) after attribute public, not static.
1084: Syntax error: expecting rightbrace before leftbrace.
1131: Class must not be nested.
Here's the code:-
<?xml version="1.0" encoding="utf-8"?><mx:WindowedApplicationxmlns:mx="
http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import java.awt.Robot;
import java.awt.event.KeyEvent;
public class Main {
public static void main(String[] argv) throws Exception {
Robot robot =
new Robot();
robot.keyPress(KeyEvent.VK_A);
robot.keyRelease(KeyEvent.VK_A);
]]>
</mx:Script>
<mx:VBox x="359" y="262" horizontalCenter="0" verticalCenter="0">
<mx:Button id="LetterButton" label="Button" click=""/>
<mx:TextInput id="txt"/>
</mx:VBox></mx:WindowedApplication>Sounds tricky. I may ask them to look for an alternative way of doing it as Java really isn't my thing, I'm merely just a flex beginner at the moment.
The reason I've been looking for this is that my app will be installed on a digital tv that also has a system connected to it using a Linux operating system so the user can switch between watching digital tv and the application seamlessly and at the moment a Linux professional who I'm working with has the Digital TV bound to the F12 key which is bound to a handheld remote control (being a tv there is no keyboard, just an 'air mouse' and the remote control).
So my client and my Linux guy have asked me to come up with a way of getting the app to communicate with the desktop/operating system. I have seen flex apps in the past where a user can drag and drop videos on their desktop into an air application from which they will be played so I thought it would be possible to interact with the exteral OS/Desktop from within an AIR app by using just flex but it doesn't seem so easy through my research.
Thanks for your help though. -
Error FRM-92050 when using Java Plug-in in Forms SSO
Hi All,
I have the following error with trying to use Java 1.6.0_22 instead of JInitiator:
FRM92050 failed to connect to the server /forms/lservlet:-1
Java Exception:
Java.io.IOException: User does not have proper credentials configured in OID
In the log "OC4J~OC4J_BI_Forms~default_island~1" , it said:
oracle.ldap.util.GeneralErrorException: General Error when performing search: Unable to get Default RAD
Error: Unable to retrive the DB Credentials from OID.
I'm using 10gAS (10.1.2.3). The Forms SSO with JInitiator 1.3.1.26 works without any error.
Any idea?Sorry this is replicated
-
When using java -jar does -cp have any significance?
So we have a classpath that's set from the Manifest but I want to augment that with -cp
From what I can tell -cp is ignored when you are using the classpath from a Manifest.>
From what I can tell -cp is ignored when you are using the classpath from a Manifest.>No. The -cp option is ignored when using the -jar option.
So if you do something like..
REM: old way of launching
REM: java -jar the.jar arg1 arg2
java -cp the.jar;...;another.jar the.main.class arg1 arg2..it should work as expected. -
Window shutdown when using java
Greetings, since a short time i've having probs when using the java.
For a time all goes well, but then the IE window just shuts down.
No warning or whatever....
Anyone any ideas?
Tnx in advancePossible a bug, probably and more likely something is corrupted. Not much you can do short of trying to reinstall if there are really no errors or dumps present. You should look in your System -> application log file first to see if there are in fact errors you are not seeing.
-
JVM - Microsoft JScript.dll Memory Leak when using Java Web Start
I have posted before a topic related to this matter, although now I have a lot more information about what is going on (although still no fix for it). This is the link to the earlier post, containing JVM HOTSPOT EXCEPTION_ACCESS_VIOLATION
http://forum.java.sun.com/thread.jspa?threadID=5116970&messageID=9402346#9402346
The issue is that after deploying on Windows XP a multi threaded, memory consuming (40 Mb) Java Swing application using Java Web Start, and the standard web page (IE6) reference to the jnlp file to launch the installation from Tomcat, each time this application gets executed by double clicking on the desktop icon (with no IE6 interaction at all), calls start being made between jvm.dll (sun) and jscript.dll (Microsoft IE), these interactions never release the memory they consume, so after a period of using the application it crashes unavoidably. If I execute exactly the same application launching it from command line (no Web Start nor IE6 browser involved), the application works nicely all the time, no problem at all.
My question is: does anyone know why these calls to jscript.dll are even being made during web start application execution? As said, it's a desktop Swing app, it does not need the browser at all, and jscript.dll is a IE dll. Anyone can advice on how these interactions can be eliminated?
I've worked with Microsoft support for two weeks on this issue and all they have said is that it is a Sun problem and they can not help further.
Thanks
Jes�sMicrosoft suggested (among others) two test.
1- Install IE7 and run the application
2-Install Firefox and run the application
Results were:
For 1: The application does not crash, apparently IE7 has a newer version of Jscript.dll that, in Microsoft words, handles better 'bad software', refering to 'bad software' to the java virtual machine I guess. Looking at the performance manager you can see memory goes down as with IE6, but at some point memory is released and the app. does not crash. Anyway is still is uncertain to me why Jscript.dll is getting involved at all. Although this solves the problem is not a viable solution for us, because I work in a corporation where changes such as upgrading the IE version on a large number of desktop can not be justified just because one app. is crashing, and it would take a long validation time anyway before the upgrade can proceed.
For 2: I did install Firefox in a machine and the application still crashed, but it is true I did not uninstall IE6, so the conflictive Jscript.dll was still sitting at system32. Quite possibly the crash would not happen if that dll wasn't there at all.
Thanks
Jes�s -
Access Violation when using java in windows terminal session
Hi,
we have 2 ms Windows Terminal Servers with Windows 2k3 Enterprise x64 (Intel). I installed Sun JRE version 6 update 5 for windows 64 bit. Everything is working properly when i am using the terminal server as priviledged user (i.e. domain administrator). But as restricted user the browser crashes instantly if I am trying to view a java applet in any browser. Java creates an error log on my desktop which I feel free to post here:
# An unexpected error has been detected by Java Runtime Environment:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7d8e6189, pid=9392, tid=5968
# Java VM: Java HotSpot(TM) Client VM (10.0-b19 mixed mode, sharing windows-x86)
# Problematic frame:
# C [Secur32.dll+0x16189]
# If you would like to submit a bug report, please visit:
# http://java.sun.com/webapps/bugreport/crash.jsp
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
--------------- T H R E A D ---------------
Current thread (0x05d87400): JavaThread "main" [_thread_in_native, id=5968, stack(0x05b40000,0x05c40000)]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000000
Registers:
EAX=0x00000000, EBX=0x05c38614, ECX=0x00000016, EDX=0x00000000
ESP=0x05c383a8, EBP=0x05c38608, ESI=0x00000000, EDI=0x05c385a8
EIP=0x7d8e6189, EFLAGS=0x00010246
Top of Stack: (sp=0x05c383a8)
0x05c383a8: 0055c5c6 00000000 00500028 00000002
0x05c383b8: 000024b0 00000000 00001750 00000000
0x05c383c8: 010e940e 00000000 00000000 00000000
0x05c383d8: 00000021 c0000022 00000001 00000000
0x05c383e8: 00000000 00000000 116e4bc8 00000000
0x05c383f8: 00000000 00000000 00000000 00000000
0x05c38408: 00000000 00000000 00000000 00000000
0x05c38418: 00000000 00000000 00000000 00000000
Instructions: (pc=0x7d8e6189)
0x7d8e6179: 00 00 8b 85 f0 fd ff ff 6a 16 8b f0 59 8d 7d a0
0x7d8e6189: f3 a5 8b 4d a4 89 48 04 8b 4d a8 89 48 08 66 8b
Stack: [0x05b40000,0x05c40000], sp=0x05c383a8, free space=992k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [Secur32.dll+0x16189]
C [Secur32.dll+0x19c78]
C [deploy.dll+0x29e3]
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::Interpreter
v ~BufferBlob::StubRoutines (1)
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
0x09883400 JavaThread "Image Fetcher 0" daemon [_thread_blocked, id=1452, stack(0x09d30000,0x09e30000)]
0x09870800 JavaThread "CacheCleanUpThread" daemon [_thread_blocked, id=1476, stack(0x09a70000,0x09b70000)]
0x08956800 JavaThread "traceMsgQueueThread" daemon [_thread_blocked, id=10004, stack(0x09730000,0x09830000)]
0x08948800 JavaThread "AWT-Windows" daemon [_thread_in_native, id=7812, stack(0x095f0000,0x096f0000)]
0x08946800 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=408, stack(0x09370000,0x09470000)]
0x0888e800 JavaThread "Low Memory Detector" daemon [_thread_blocked, id=876, stack(0x090e0000,0x091e0000)]
0x08889c00 JavaThread "CompilerThread0" daemon [_thread_blocked, id=7148, stack(0x08fa0000,0x090a0000)]
0x08888c00 JavaThread "Attach Listener" daemon [_thread_blocked, id=3600, stack(0x08e60000,0x08f60000)]
0x08887c00 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=4732, stack(0x08d20000,0x08e20000)]
0x08880000 JavaThread "Finalizer" daemon [_thread_blocked, id=2552, stack(0x08be0000,0x08ce0000)]
0x0887f000 JavaThread "Reference Handler" daemon [_thread_blocked, id=3356, stack(0x08aa0000,0x08ba0000)]
=>0x05d87400 JavaThread "main" [_thread_in_native, id=5968, stack(0x05b40000,0x05c40000)]
Other Threads:
0x0887dc00 VMThread [stack: 0x08960000,0x08a60000] [id=1792]
0x08891400 WatcherThread [stack: 0x09220000,0x09320000] [id=7192]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 960K, used 461K [0x23d70000, 0x23e70000, 0x24250000)
eden space 896K, 44% used [0x23d70000, 0x23dd3698, 0x23e50000)
from space 64K, 100% used [0x23e60000, 0x23e70000, 0x23e70000)
to space 64K, 0% used [0x23e50000, 0x23e50000, 0x23e60000)
tenured generation total 4096K, used 341K [0x24250000, 0x24650000, 0x27d70000)
the space 4096K, 8% used [0x24250000, 0x242a5748, 0x242a5800, 0x24650000)
compacting perm gen total 12288K, used 1165K [0x27d70000, 0x28970000, 0x2bd70000)
the space 12288K, 9% used [0x27d70000, 0x27e936d0, 0x27e93800, 0x28970000)
ro space 8192K, 62% used [0x2bd70000, 0x2c272a28, 0x2c272c00, 0x2c570000)
rw space 12288K, 52% used [0x2c570000, 0x2cbb86b8, 0x2cbb8800, 0x2d170000)
Dynamic libraries:
0x00400000 - 0x0049b000 C:\Program Files (x86)\Internet Explorer\iexplore.exe
0x7d600000 - 0x7d6f0000 C:\WINDOWS\system32\ntdll.dll
0x7d4c0000 - 0x7d5f0000 C:\WINDOWS\syswow64\kernel32.dll
0x00550000 - 0x005eb000 C:\WINDOWS\syswow64\ADVAPI32.dll
0x7da20000 - 0x7db00000 C:\WINDOWS\syswow64\RPCRT4.dll
0x7d8d0000 - 0x7d920000 C:\WINDOWS\syswow64\Secur32.dll
0x7d800000 - 0x7d890000 C:\WINDOWS\syswow64\GDI32.dll
0x7d930000 - 0x7da00000 C:\WINDOWS\syswow64\USER32.dll
0x77ba0000 - 0x77bfa000 C:\WINDOWS\syswow64\msvcrt.dll
0x005f0000 - 0x00642000 C:\WINDOWS\syswow64\SHLWAPI.dll
0x7c8d0000 - 0x7d0cf000 C:\WINDOWS\syswow64\SHELL32.dll
0x77670000 - 0x777a9000 C:\WINDOWS\syswow64\ole32.dll
0x46b90000 - 0x46cb7000 C:\WINDOWS\syswow64\urlmon.dll
0x00650000 - 0x006db000 C:\WINDOWS\syswow64\OLEAUT32.dll
0x46300000 - 0x46345000 C:\WINDOWS\syswow64\iertutil.dll
0x77b90000 - 0x77b98000 C:\WINDOWS\syswow64\VERSION.dll
0x7dee0000 - 0x7df40000 C:\WINDOWS\system32\IMM32.DLL
0x7dbd0000 - 0x7dcd3000 C:\WINDOWS\WinSxS\WOW64_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.3790.3959_x-ww_5FA17F4E\comctl32.dll
0x46350000 - 0x4691d000 C:\WINDOWS\system32\IEFRAME.dll
0x76b70000 - 0x76b7b000 C:\WINDOWS\system32\PSAPI.DLL
0x7df50000 - 0x7dfc0000 C:\WINDOWS\system32\UxTheme.dll
0x4b3c0000 - 0x4b410000 C:\WINDOWS\SysWOW64\MSCTF.dll
0x10000000 - 0x10011000 D:\programme\hardcopy\HcDLL2_19_Win32.dll
0x02130000 - 0x023f5000 C:\WINDOWS\system32\xpsp2res.dll
0x75e60000 - 0x75e87000 C:\WINDOWS\system32\apphelp.dll
0x4dc30000 - 0x4dc5e000 C:\WINDOWS\system32\msctfime.ime
0x02560000 - 0x0258f000 C:\WINDOWS\system32\IEUI.dll
0x76280000 - 0x76285000 C:\WINDOWS\system32\MSIMG32.dll
0x4dd60000 - 0x4df07000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.GdiPlus_6595b64144ccf1df_1.0.3790.3959_x-ww_8251BDDE\gdiplus.dll
0x47150000 - 0x47171000 C:\WINDOWS\system32\xmllite.dll
0x777b0000 - 0x77833000 C:\WINDOWS\system32\CLBCatQ.DLL
0x77010000 - 0x770d6000 C:\WINDOWS\system32\COMRes.dll
0x744c0000 - 0x744eb000 C:\WINDOWS\SysWOW64\msimtf.dll
0x77b00000 - 0x77b54000 C:\WINDOWS\System32\cscui.dll
0x76520000 - 0x7653d000 C:\WINDOWS\System32\CSCDLL.dll
0x770e0000 - 0x771e8000 C:\WINDOWS\system32\SETUPAPI.dll
0x325c0000 - 0x325d2000 D:\programme\OFFICE11\msohev.dll
0x77980000 - 0x77af3000 C:\WINDOWS\SysWow64\shdocvw.dll
0x761b0000 - 0x76243000 C:\WINDOWS\syswow64\CRYPT32.dll
0x76190000 - 0x761a2000 C:\WINDOWS\syswow64\MSASN1.dll
0x75360000 - 0x753de000 C:\WINDOWS\syswow64\CRYPTUI.dll
0x76bb0000 - 0x76bdb000 C:\WINDOWS\syswow64\WINTRUST.dll
0x76c10000 - 0x76c38000 C:\WINDOWS\syswow64\imagehlp.dll
0x71c40000 - 0x71c97000 C:\WINDOWS\syswow64\NETAPI32.dll
0x76f10000 - 0x76f3e000 C:\WINDOWS\syswow64\WLDAP32.dll
0x032e0000 - 0x0332a000 C:\Program Files (x86)\Internet Explorer\ieproxy.dll
0x75da0000 - 0x75e5d000 C:\WINDOWS\system32\SXS.DLL
0x46a70000 - 0x46b3f000 C:\WINDOWS\syswow64\WININET.dll
0x03690000 - 0x03699000 C:\WINDOWS\syswow64\Normaliz.dll
0x74540000 - 0x745d3000 C:\WINDOWS\system32\MLANG.dll
0x71c00000 - 0x71c17000 C:\WINDOWS\system32\ws2_32.dll
0x71bf0000 - 0x71bf8000 C:\WINDOWS\system32\WS2HELP.dll
0x75f30000 - 0x75fcd000 C:\Program Files (x86)\Internet Explorer\mui\0407\shdoclc.dll
0x77530000 - 0x775c7000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.3790.3959_x-ww_78FCF8D0\COMCTL32.dll
0x7db30000 - 0x7dbb0000 C:\WINDOWS\system32\mswsock.dll
0x5f270000 - 0x5f2ca000 C:\WINDOWS\system32\hnetcfg.dll
0x71ae0000 - 0x71ae8000 C:\WINDOWS\System32\wshtcpip.dll
0x76e90000 - 0x76ecf000 C:\WINDOWS\system32\RASAPI32.dll
0x76e40000 - 0x76e52000 C:\WINDOWS\system32\rasman.dll
0x76e60000 - 0x76e8f000 C:\WINDOWS\system32\TAPI32.dll
0x76e30000 - 0x76e3c000 C:\WINDOWS\system32\rtutils.dll
0x76aa0000 - 0x76acd000 C:\WINDOWS\system32\WINMM.dll
0x71bc0000 - 0x71bc8000 C:\WINDOWS\system32\rdpsnd.dll
0x771f0000 - 0x77201000 C:\WINDOWS\system32\WINSTA.dll
0x76920000 - 0x769e2000 C:\WINDOWS\system32\USERENV.dll
0x722f0000 - 0x722f5000 C:\WINDOWS\system32\sensapi.dll
0x76f80000 - 0x76f85000 C:\WINDOWS\system32\rasadhlp.dll
0x76ed0000 - 0x76efa000 C:\WINDOWS\system32\DNSAPI.dll
0x76f70000 - 0x76f77000 C:\WINDOWS\System32\winrnr.dll
0x71d00000 - 0x71d1c000 C:\WINDOWS\SysWOW64\actxprxy.dll
0x71e00000 - 0x71e14000 C:\WINDOWS\system32\msapsspc.dll
0x78080000 - 0x78091000 C:\WINDOWS\system32\MSVCRT40.dll
0x71e20000 - 0x71e70000 C:\WINDOWS\system32\msnsspc.dll
0x76c90000 - 0x76cb7000 C:\WINDOWS\SysWOW64\msv1_0.DLL
0x76cf0000 - 0x76d0a000 C:\WINDOWS\system32\iphlpapi.dll
0x46d00000 - 0x47073000 C:\WINDOWS\system32\mshtml.dll
0x03e90000 - 0x03eb9000 C:\WINDOWS\system32\msls31.dll
0x46990000 - 0x469f0000 C:\WINDOWS\system32\ieapfltr.dll
0x03fe0000 - 0x04001000 C:\WINDOWS\system32\NTMARTA.DLL
0x7e020000 - 0x7e02f000 C:\WINDOWS\system32\SAMLIB.dll
0x63380000 - 0x633f8000 C:\WINDOWS\SysWOW64\jscript.dll
0x04910000 - 0x04975000 C:\WINDOWS\SysWow64\Macromed\Flash\SWFlash.ocx
0x762b0000 - 0x762f9000 C:\WINDOWS\syswow64\comdlg32.dll
0x049d0000 - 0x04a02000 C:\WINDOWS\system32\iepeers.dll
0x73070000 - 0x73097000 C:\WINDOWS\system32\WINSPOOL.DRV
0x1b000000 - 0x1b00c000 C:\WINDOWS\system32\ImgUtil.dll
0x1b060000 - 0x1b06e000 C:\WINDOWS\system32\pngfilt.dll
0x058b0000 - 0x058bc000 D:\programme\hardcopy\hardcopy.dll
0x461f0000 - 0x46267000 C:\WINDOWS\system32\mshtmled.dll
0x5def0000 - 0x5defe000 C:\WINDOWS\system32\pstorec.dll
0x76a80000 - 0x76a92000 C:\WINDOWS\system32\ATL.DLL
0x71f60000 - 0x71f64000 C:\WINDOWS\system32\security.dll
0x68000000 - 0x68035000 C:\WINDOWS\system32\rsaenh.dll
0x6d6b0000 - 0x6d6d1000 C:\Program Files (x86)\Java\jre1.6.0_05\bin\npjpi160_05.dll
0x7c340000 - 0x7c396000 C:\Program Files (x86)\Java\jre1.6.0_05\bin\msvcr71.dll
0x6d400000 - 0x6d41b000 C:\Program Files (x86)\Java\jre1.6.0_05\bin\jpiexp.dll
0x6d1b0000 - 0x6d1c1000 C:\Program Files (x86)\Java\jre1.6.0_05\bin\deploy.dll
0x71bb0000 - 0x71bb9000 C:\WINDOWS\system32\wsock32.dll
0x6d450000 - 0x6d474000 C:\Program Files (x86)\Java\jre1.6.0_05\bin\jpishare.dll
0x6d7c0000 - 0x6da10000 C:\PROGRA~2\Java\JRE16~2.0_0\bin\client\jvm.dll
0x6d270000 - 0x6d278000 C:\PROGRA~2\Java\JRE16~2.0_0\bin\hpi.dll
0x6d770000 - 0x6d77c000 C:\PROGRA~2\Java\JRE16~2.0_0\bin\verify.dll
0x6d310000 - 0x6d32f000 C:\PROGRA~2\Java\JRE16~2.0_0\bin\java.dll
0x6d7b0000 - 0x6d7bf000 C:\PROGRA~2\Java\JRE16~2.0_0\bin\zip.dll
0x6d000000 - 0x6d12e000 C:\Program Files (x86)\Java\jre1.6.0_05\bin\awt.dll
0x73860000 - 0x738ac000 C:\WINDOWS\system32\ddraw.dll
0x73b30000 - 0x73b36000 C:\WINDOWS\system32\DCIMAN32.dll
0x6d210000 - 0x6d263000 C:\Program Files (x86)\Java\jre1.6.0_05\bin\fontmanager.dll
0x6d3e0000 - 0x6d3f8000 C:\Program Files (x86)\Java\jre1.6.0_05\bin\jpicom.dll
VM Arguments:
jvm_args: -Xbootclasspath/a:C:\PROGRA~2\Java\JRE16~2.0_0\lib\deploy.jar;C:\PROGRA~2\Java\JRE16~2.0_0\lib\plugin.jar -Xmx64m -Djavaplugin.maxHeapSize=64m -Xverify:remote -Djavaplugin.version=1.6.0_05 -Djavaplugin.nodotversion=160_05 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~2\Java\JRE16~2.0_0 -Djavaplugin.vm.options=-Djava.class.path=C:\PROGRA~2\Java\JRE16~2.0_0\classes -Xbootclasspath/a:C:\PROGRA~2\Java\JRE16~2.0_0\lib\deploy.jar;C:\PROGRA~2\Java\JRE16~2.0_0\lib\plugin.jar -Xmx64m -Djavaplugin.maxHeapSize=64m -Xverify:remote -Djavaplugin.version=1.6.0_05 -Djavaplugin.nodotversion=160_05 -Dbrowser=sun.plugin -DtrustProxy=true -Dapplication.home=C:\PROGRA~2\Java\JRE16~2.0_0
java_command: <unknown>
Launcher Type: generic
Environment Variables:
PATH=C:\PROGRA~2\Java\JRE16~2.0_0\bin;C:\Program Files\Internet Explorer;;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;.
USERNAME=testuser
OS=Windows_NT
PROCESSOR_IDENTIFIER=EM64T Family 6 Model 15 Stepping 7, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows Server 2003 family Build 3790 Service Pack 2
CPU:total 8 (4 cores per cpu, 1 threads per core) family 6 model 15 stepping 7, cmov, cx8, fxsr, mmx, sse, sse2, sse3, ssse3
Memory: 4k page, physical 4194303k(4194303k free), swap 4194303k(4194303k free)
vm_info: Java HotSpot(TM) Client VM (10.0-b19) for windows-x86 JRE (1.6.0_05-b13), built on Feb 22 2008 01:16:53 by "java_re" with MS VC++ 7.1
time: Fri Mar 07 08:16:00 2008
elapsed time: 3 seconds
Does anyone have a clue what is the cause of this error? For the first time I thought that there is a problem with the 64 bit environment, but if this would be the case the applets should not be working as administrator too. As non priviledged user the error occures on ANY java applet so I think there must be a general problem.
Regards,
SebastianI decided that even if I found the update, another could easily break it. I instead downloaded and installed the Early Access JRE ( 1.6.0_10-ea ) located at https://jdk6.dev.java.net/6uNea.html. It resolved the problem, and all other applications have tested okay with it. I figured I am at risk either way, so I might as well move forward knowing it will become more stable, than step back and create security holes in the OS.
-
When trying to upload files I received the following error: "The Java Wizard cannot run. Please configure your browser to allow Java applets to access the filesystem."
If the problem is with a site that is hosted using MOVEit DMZ by Ipswitch, please notify the site owner of the issue and ask them to apply the patch that is available on the support site to resolve the issue.
This is a better resolution than downgrading your version of Java that was updated due to security issues. -
Suppressing Applet alerts when using java mail api
Hi,
Im using the following code to send email from my application. Im using JSF (tomahawk), Spring and hibernate in my application. I'm using spring email API classes to send email. This code works perfectly fine in the sense its parsing template and sending emails to the configured email id.
I have defined this class as a managed bean and i have a commanButton is UI which is bound to this sendEmail() method
<t:commandButton value="Send email" action= #{email.sendEmail}/>
import java.io.StringWriter;
import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Properties;
import javax.mail.MessagingException;
import javax.mail.internet.MimeMessage;
import org.apache.velocity.Template;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
import org.apache.velocity.exception.ParseErrorException;
import org.apache.velocity.runtime.resource.loader.StringResourceLoader;
import org.apache.velocity.runtime.resource.util.StringResourceRepository;
import org.springframework.mail.MailException;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.mail.javamail.MimeMessageHelper;
import au.gov.nsw.railcorp.onlineticketing.external.model.request.ServiceFees;
public class EmailService {
JavaMailSenderImpl sender;
VelocityEngine engine;
public EmailService(){
sender = new JavaMailSenderImpl();
sender.setHost("<smtp ip>");
sender.setPort(25);
sender.setUsername("<user id>");
sender.setPassword("<password>");
engine = new VelocityEngine();
Properties p = new Properties();
p.setProperty("resource.loader", "string");
p.setProperty("string.resource.loader.class",
"org.apache.velocity.runtime.resource.loader.StringResourceLoader");
try {
engine.init(p);
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
public VelocityEngine getEngine() {
return engine;
public void setEngine(VelocityEngine engine) {
this.engine = engine;
public JavaMailSenderImpl getSender() {
return sender;
public void setSender(JavaMailSenderImpl sender) {
this.sender = sender;
public static void main(String args[]){
EmailService emailService=new EmailService();
emailService.sendEmail();
public boolean sendEmail(){
try{
MimeMessage message = sender.createMimeMessage();
MimeMessageHelper helper = new MimeMessageHelper(message);
helper.setTo("<to email id>");
helper.setFrom("<from email id>");
helper.setSubject("Teting velocity");
VelocityContext context = new VelocityContext();
StringWriter writer = new StringWriter();
Template template =new Template();
StringResourceRepository repository =StringResourceLoader.getRepository();
String tempText="<html><body>Hi, ${username}...<p> this is a some template!</p></body></html>";
repository.putStringResource("myTemplate",tempText );
context.put("username", "Marc");
template = engine.getTemplate("myTemplate");
template.merge(context, writer);
System.out.println("VM Template:\n" + tempText);
System.out.println("Output:\n" + writer);
String body=writer.toString();
helper.setText(body,true);
sender.send(message);
catch (MessagingException ex) {
// simply log it and go on...
System.err.println(ex.getMessage());
catch (MailException ex) {
// simply log it and go on...
System.err.println(ex.getMessage());
} catch (ParseErrorException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
return true;
}The problem i have is when i try to invoke the function sendEmail() from my UI it is throwing a series of applet alerts (some 10 of them) . The following are the alerts that i get
1. The applet is attempting to invoke the java/lang/System.getProperty() operation on java.home
2. The applet is attempting to perform a read operation on the file C:\Program Files\java\jre1.5.0_14\javamail.providers
3. The applet is attempting to perform a read operation on the file C:\Program Files\java\jre1.5.0_14\javamail.address.map etc....
For ever applet alert i had to click on 'allow' for it to proceed. But there is no problem in sending mail after that. One more interesting this is i DONT get this alert when i try to execute this java class directly instead of calling the method from another class or from UI.
Can someone please let me know the reason for this applet alert and the way to suppress it?
Its really urgent .. please help
Thank you..Hi Subhadip,
Thanks for the quick response :)
Please help me understand this.. Im not explicitly using applet anywhere .I guess it should be used internally by one or many of the API classes i have used . In this scenario how can self sign the applet and which one?
I have included some jars like activation.jar,mail-1.4.2.jar,velocity-1.6.2.jar in my webapp lib . Is there a means to sign these jars and use? Is this what you are suggesting me to do?
One more doubt i have is how come the same method runs without any problem when executed as a standalone java class (with main() method)
Will be really helpful if you could help me understand this...
Thanks,
Swami -
SET property step disappear when use Java SHA-1
When I apply SET property with Java SHA-1, java.security.MessageDigest, the SET step disappear immediately. (It has been removed automatically.)
My project requires for using SHA-1. How do I use SHA-1 hashing function in UCCX editor?
Did UCCX editor support limited Java library?
I'm using UCCX Editor with UCCX 8.0Hi, Anthony Holloway.
I used to read your very useful SOAP in IVR tutorial, thump up!
I have already opened a TAC case. They told me to change compatibility mode to Windows 2000 which I have changed it already.
I also disable visual style in the property. No changes happens.
I think my error/bug appears when I assign byte[] data. As an example:
byte[] bArray = text.getBytes();
"java.security.MessageDigest -> digest()" use this datatype for hashing function.
But yours, Anthony, my opinion is your inline-style code maybe very complex to IVR for understanding while typical jre can understand it!
Did you think so, Anthony?
Maybe you are looking for
-
I changed my hard drive and when i turn on my laptop i just get a question marked folder.
how do i fix this? how do i get my new harddrive to work with my computer so i can install the operating system? ive changed my harddrive from a 2009 macbook, and had no problems. it would load up and take me to a menu in which i would have to format
-
SL and Lion too much time to sleep!
Hi, my mac is taking too much time to sleep, even with the change from SL to Lion... it always takes like 45sec with google chrome on and 25sec +- with it off... this are the pmset -g log that have the biggest time, I'm running latest google chrome d
-
G3 "Mini Tower", Need help.
Ok, I had gotten a G3 a little while ago for free, along with a HP screen. I am quite tech-savvy, so I booted her up, os 9.2.2 was installed on it. It has 256 megs of ram, the original 10 gig hdd. The hdd gave out after 2 boots, so a I picked up a fr
-
I have used FCE, completed a video project and made a DVD. I now now wish to delete all files relating to it from my iMac (running under Leopard) before starting a new project. Can anyone suggest the best way to achieve this please? R R B Winchester
-
Hi, after waiting for a week for a call of NI germany, maybe I can get some help in here. I'm develloping a System with VC 6 SP4 on a NT 4 SP6 System. There are 3 NI cards installed in the system. PCI 6032E as device #1 PCI DIO 96 as device #2 PCI 67