Aparna Sree

+ Follow
since Jul 21, 2010
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Aparna Sree

I was finally able to debug the issue
Gosh! This one cost me some time.


So, if you compile your swf with the network monitor active, which you may not realize is the case, you have just told your swf to redirect all traffic to localhost:37813.
So you'll deploy it, and guess what? Because no other machine is running the FB network monitor, the calls will fail.

I turned off the network monitor and compiled it. Yep! that fixed the issue

11 years ago
I am new to Flex. I am using Flex with struts 2.
I have a simple login page in flex and I am trying to send the details to the server (struts 2 app in Tomcat 7)

It works perfectly when I have my flashbuilder up and running. But when I close it, I am getting error 2032.

Fault[FaultEvent fault=[RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://localhost:37813/myApp/myAppFlexUIComponents.swflogin.actionlogin.action?hostport=localhost:8080&https=N&id=76FE4B70-11D2-8C18-3AB4-E52A00F4C304"]. URL: http://localhost:8080/myApp/myAppFlexUIComponents.swflogin.actionlogin.action"] messageId="F2AD39BC-BB03-B10D-E52E-E52A0CD3C8A2" type="fault" bubbles=false cancelable=true eventPhase=2]

Any idea what I am missing? Do i need a crossdomain.xml here? All the files are in same server so is it really required. Anyway, I have tried it, but it did not work.
11 years ago
Thank you for the reply.

Just for info, the most common Tomcat run scripts redirect the JVM stdout to its logs/catalina.out file

I was just wondering how will redirecting stdout to catalina.out help?
I am using tomcat 7 on windows 7

One more thing is

But I want to implement the same for the tomcat logs also. i.e sysout logs. After little research I figured out that by modifying logging.properties file in <tomcat-home>\conf , logs will be rotated every day.

sysout will not rotate every day. Other logs like rotate catalina.log,localhost.log, manager.log and host-manager will.
11 years ago

I am using Tomcat7. I have an application which internally uses another 3rd party tool which has logs in the form of sysouts.
I am using log4j for my application which rotates and archives logs properly.

But I want to implement the same for the tomcat logs also. i.e sysout logs. After little research I figured out that by modifying logging.properties file in <tomcat-home>\conf , logs will be rotated every day.
Is there any way to achieve size based rotation and archiving for sysouts?

11 years ago


I need to find Manufacturer Name of system and I am able to do it through below code

But does anyone know how this getSystemManufacturer api works? Is it getting the motherboard manufacturer or the assembler manufacturer or something else?
I wanted to understand what "system" manufacturer means, which part of system is actually considered here? How is java api getting it?

I have referred http://javasourcecode.org/html/open-source/jdk/jdk-6u23/com/sun/servicetag/SystemEnvironment.java.html but i couldn't find out how its setting the SystemManufacturer string.

Can anybody throw some light on this?

12 years ago

http://www.pinlady.net/PluginDetect/ is a better option if it has to be done through js only.
deploy java is not working as expected for lower versions of java

12 years ago
I am using deployJava.js to get the JRE version used by client.
But for version 1.6.0_19 and below the whole version is not visible.

i.e it will return only 1.6.0 and the _19 (the update version) is not getting returned. Any idea why?
I am using deployJava.getJREs(); to get the version.
12 years ago
I have an applet tag in my JSP. (using Java 6. 21)

This worked fine in all browsers , but it crashed in IE 9. When I removed the below code it worked fine.

Of course, it went to Quirks mode and whole alignment was disturbed.

Another workaround is to upgrade Java.

But is there anything I can do in code to fix this? Is there a different DOCTYPE which will fix this issue?
12 years ago
Thanks Madhan for your reply.

We were actually facing a memory leak issue and I couldnt find out a way to free the JNA memory.

Making it null wasn't a great idea because its just making it available for GC. There is no guarantee that it will be garbage collected.

I went through a few links which said the JNA takes care of freeing memory. You do not have to do it explicitly.


Anyhow the issue was not in JNA code it was in native code and we fixed it too JNA works just fine.
12 years ago
How do I free memory of a JNA Structure?

I still get the content of the bigStruct and size even after bigStruct.clear();
Is this the proper way to free memory?
13 years ago
How do i configure jprofiler to monitor tomcat application.
I need to monitor memory leak issue. Application running in https port 443
13 years ago
I have to implement a password strength checker, If its a dictionary word, it should be marked as weak.

I have implemented the same, but is there any good free English dictionary word list available.

I am just loading the words once and the checking it with the user input.

I did find a few but it has license issues...Is there any thing which is free and can be use for commercial purpose as well.

I need to check if password is a dictionary word using javascript.
Is there any opensource available for the same.

I have tried this manually too...putting it into Hashset and checking if it contains the entered word, but the performance isn't great.

Is there a better open source or API which I can use.


java.io.FileNotFoundException: "path" ... cannot access the file because it is being used by another process.

The dll is in use. If I try to delete the folder, it wont allow.

But, if I close the browser and then click the button , it works fine.
13 years ago

I need to copy dlls from server to client and execute it in client machine.

For this, I have used signed applet and JNI.

Everything works fine. On click of my jsp button; it calls applet ; the applet copies the dll in client machine and executes it.

One problem thats really eating my head now. If I click on the button again it throws Exception.

The reason : its unable to copy the second time. My browser and JRE have somehow locked the dll.
Something like.. trying to delete an already opened file.

Any idea how to overcome this? Any javascript or something to kill the JRE instance? or may be free or unload dll. How do i achieve this?

I also tried to do a check before downloading. i.e if file exists. SOme how thats also not working.
13 years ago