Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by duncanb7
at 2024-07-04 09:30:34
Point:500 Replies:41 POST_ID:828560USER_ID:11059
Topic:
Java Programming Language;JavaScript;PHP Scripting Language
I get one applet java application and I am using it in IE every day.
Now I would like to save the data I want from the application through
the proxy , now I am using Charles debugger proxy.
From the Sun document,http://docs.oracle.com/javase/6/docs/technotes/guides/net/proxies.html, it mention set the java for proxy at command line.
I tried it at my PC at C:/program files/java/jre7/bin/java -D http.proxyHost=127.0.0.1 -D
http.proxyPort=8888, but it doesn't work, just error Can't find the variable
And I try to use javascript,
<html>
<head>
</head>
<COMMENT><SCRIPT LANGUAGE="JavaScript1.1"><!--
java.lang.System.getProperties().put("http.proxyHost", "127.0.0.1");
java.lang.System.getProperties().put("http.proxyPort", "8888");
var javaVersion = java.lang.System.getProperty("java.version");
alert(javaVersion);
//--></SCRIPT></COMMENT>
<body>
</body>
</html>
Firefox reports,
Error: uncaught exception: java.security.AccessControlException: access denied ("java.util.PropertyPermission" "*" "read,write")
and only alert(javaVersion) is working.
I already open or run Charles proxy software and its client adress is set 127.0.0.1:8888
before I do the previous action and Charles running is fine from IE and Firefox.
But it doesn't show any information data I want from my applet application that is
probably related to those proxy setting for Java proxy is not correct.
And my PC I login in as adminstrative manager mode already
Any advise to solve the issue, I am not familar with java code and if provide
the simple code for setting system proxy property for Java that is
strongly welcome.
Please advise
Duncan
Author: duncanb7 replied at 2024-07-10 02:15:29
I will continue this thread in new thread to focus
on Java programming
Hope you understood my question in this thread
on Java programming
Hope you understood my question in this thread
Expert: CEHJ replied at 2024-07-07 05:24:55
If possilbe, why there is a lot decomplier in google search for jar to java
Because usually a jar file only contains class files
Author: duncanb7 replied at 2024-07-07 00:26:28
THanks, CEJI,
I already unzip the jar file and found the source java code already inside jar file
I already unzip the jar file and found the source java code already inside jar file
Author: duncanb7 replied at 2024-07-06 12:39:14
If possilbe, why there is a lot decomplier in google search for jar to java
Author: duncanb7 replied at 2024-07-06 12:37:45
If you don't mind, please let know how to extract it on java command line.
Duncan
Duncan
Expert: CEHJ replied at 2024-07-06 11:58:42
You mean I need to download decomplier to convert jar into java Right ?
No, you need to extract the source from the jar Author: duncanb7 replied at 2024-07-06 11:44:14
You mean I need to download decomplier to convert jar into java Right ?
Expert: CEHJ replied at 2024-07-06 06:43:53
The source is in the jar
Author: duncanb7 replied at 2024-07-06 06:39:22
Dear CEJI,
Is it possible you can send me webspeed.java source code(from webspeed.jar) for my Java tutorial connection study?
Please kindly advise
Ducan
<applet codebase="." archive="webspeed.jar"
code="webspeed.Webspeed.class" width="400" height="300">
</applet>
Is it possible you can send me webspeed.java source code(from webspeed.jar) for my Java tutorial connection study?
Please kindly advise
Ducan
<applet codebase="." archive="webspeed.jar"
code="webspeed.Webspeed.class" width="400" height="300">
</applet>
Expert: CEHJ replied at 2024-07-05 06:20:13
Just for memo on this thread as reminder, need to set Permission on java.policy file ...
That's possible, for the applet that you really want to run. It isn't necessary for running my applet, the command for which you show immediately below
Author: duncanb7 replied at 2024-07-05 06:09:04
Just for memo on this thread as reminder, need to set Permission on java.policy file
grant codeBase "file:${{java.ext.dirs}}/*" {
permission java.security.AllPermission;
permission java.net.SocketPermission "213.123.20.90:80","connect,resolve";
};
appletviewer -J-Djava.security.policy=java.policy -J-Dhttp.proxyHost=127.0.0.1 -J-Dhttp.proxyPort=8888 http://www.cehjohnson.btinternet.co.uk/protean/speedtest.htm
grant codeBase "file:${{java.ext.dirs}}/*" {
permission java.security.AllPermission;
permission java.net.SocketPermission "213.123.20.90:80","connect,resolve";
};
appletviewer -J-Djava.security.policy=java.policy -J-Dhttp.proxyHost=127.0.0.1 -J-Dhttp.proxyPort=8888 http://www.cehjohnson.btinternet.co.uk/protean/speedtest.htm
Expert: CEHJ replied at 2024-07-05 05:54:02
That's ok if you're going to shift the focus, yes
Expert: CEHJ replied at 2024-07-05 05:05:31
Could you do the same but Charles Could NOT capture the response data from
http://www.cehjohnson.btinternet.co.uk/protean/speedtest.txt?dummy=8505545161610364928 by Java program.Probably yes, if my case does.
http://www.cehjohnson.btinternet.co.uk/protean/speedtest.txt?dummy=8505545161610364928 by Java program.Probably yes, if my case does.
Sorry, i don't understand that at all
Author: duncanb7 replied at 2024-07-05 04:59:37
Okay, talk it into otherway or reverse the question to you.
On you example, after typing something in the applet, it will receive message
such as "Download 1 took 7.46 seonds at 19.50:55 on 05/07/12..." and Charles
is able to capture the link response from http://www.cehjohnson.btinternet.co.uk/protean/speedtest.txt?dummy=8505545161610364928
Could you do the same but Charles Could NOT capture the response data from
http://www.cehjohnson.btinternet.co.uk/protean/speedtest.txt?dummy=8505545161610364928 by Java program.Probably yes, if my case does.
Duncan
On you example, after typing something in the applet, it will receive message
such as "Download 1 took 7.46 seonds at 19.50:55 on 05/07/12..." and Charles
is able to capture the link response from http://www.cehjohnson.btinternet.co.uk/protean/speedtest.txt?dummy=8505545161610364928
Could you do the same but Charles Could NOT capture the response data from
http://www.cehjohnson.btinternet.co.uk/protean/speedtest.txt?dummy=8505545161610364928 by Java program.Probably yes, if my case does.
Duncan
Accepted Solution
Author: duncanb7 replied at 2024-07-05 04:53:05
On your example, I try it type something and click start on the applet, the applet
will receive the data from the link at
http://www.cehjohnson.btinternet.co.uk/protean/speedtest.txt?dummy=8505545161610364928
And Charles is about to capture the response from the link.
On my case, the applet
<applet code=a.b.q.a.class codebase="http://data.com/applet/" height=0 width=0 VIEWASTEXT name=Loading id=Loading align="bottom" MAYSCRIPT>
<param name=cabbase value="Proj.cab">
<PARAM NAME="archive" VALUE="Proj.jar">
<PARAM NAME="java_arguments" VALUE="-Xmx512m -Dsun.java2d.noddraw=true">
Charles could not capture anyting from any link created by my applet , no matter what
I type in the applet. SO the answer Java applet code for my side is mysterous.
And doesn't know what protocal it is using for transmitted between applet and remote site.
So anyway, getting close, I could download the java archive of Proj.jar and do some Java code reversing to see what happen
will receive the data from the link at
http://www.cehjohnson.btinternet.co.uk/protean/speedtest.txt?dummy=8505545161610364928
And Charles is about to capture the response from the link.
On my case, the applet
<applet code=a.b.q.a.class codebase="http://data.com/applet/" height=0 width=0 VIEWASTEXT name=Loading id=Loading align="bottom" MAYSCRIPT>
<param name=cabbase value="Proj.cab">
<PARAM NAME="archive" VALUE="Proj.jar">
<PARAM NAME="java_arguments" VALUE="-Xmx512m -Dsun.java2d.noddraw=true">
Charles could not capture anyting from any link created by my applet , no matter what
I type in the applet. SO the answer Java applet code for my side is mysterous.
And doesn't know what protocal it is using for transmitted between applet and remote site.
So anyway, getting close, I could download the java archive of Proj.jar and do some Java code reversing to see what happen
Author: duncanb7 replied at 2024-07-05 04:44:32
Yes, your example is good, at least starting
Assisted Solution
Expert: CEHJ replied at 2024-07-05 04:36:41
250 points EXCELLENT
My case is similar to your example, the stream data from remote into applet automatically after success login.
Possibly. I can't comment precisely as i don't know exactly what your applet does. Mine happens to 'stream' via http.So the codebase is remote site stream data location, RIght ?
Again, i can't answer that exactly without knowing what your applet is doing, so the answer is - probablyAnd achive is Java applet program to be ready to receive data on my IE from remote site
stream data location, Right ?
The applet essentially IS the archivestream data location, Right ?
At this stage, i suggest you get my applet working with your proxy setup. If you can do that, you'll at least have a chance with your own.
Author: duncanb7 replied at 2024-07-05 04:28:02
Yes, I miss your previous reply
My own download speed test monitor applet at http://www.cehjohnson.btinternet.co.uk/protean/speedtest.htm works fine with a proxy. Each timed request gets a text file from the applet's originating host (www.cehjohnson.btinternet.co.uk) and that appears in the proxy's trace. I'm using WebScarab rather than Charles. Here is how i started the applet:
appletviewer -J-Dhttp.proxyHost=127.0.0.1 -J-Dhttp.proxyPort=8008 http://www.cehjohnson.btinternet.co.uk/protean/speedtest.html
My case is similar to your example, the stream data from remote into applet automatically after success login. And it seeems you understand what I am asking for ?
<applet code=a.b.q.a.class codebase="http://data.com/applet/" height=0 width=0 VIEWASTEXT name=Loading id=Loading align="bottom" MAYSCRIPT>
<param name=cabbase value="Proj.cab">
<PARAM NAME="archive" VALUE="Proj.jar">
<PARAM NAME="java_arguments" VALUE="-Xmx512m -Dsun.java2d.noddraw=true">
FOr my case
So the codebase is remote site stream data location, RIght ?
And achive is Java applet program to be ready to receive data on my IE from remote site
stream data location, Right ?
My own download speed test monitor applet at http://www.cehjohnson.btinternet.co.uk/protean/speedtest.htm works fine with a proxy. Each timed request gets a text file from the applet's originating host (www.cehjohnson.btinternet.co.uk) and that appears in the proxy's trace. I'm using WebScarab rather than Charles. Here is how i started the applet:
appletviewer -J-Dhttp.proxyHost=127.0.0.1 -J-Dhttp.proxyPort=8008 http://www.cehjohnson.btinternet.co.uk/protean/speedtest.html
My case is similar to your example, the stream data from remote into applet automatically after success login. And it seeems you understand what I am asking for ?
<applet code=a.b.q.a.class codebase="http://data.com/applet/" height=0 width=0 VIEWASTEXT name=Loading id=Loading align="bottom" MAYSCRIPT>
<param name=cabbase value="Proj.cab">
<PARAM NAME="archive" VALUE="Proj.jar">
<PARAM NAME="java_arguments" VALUE="-Xmx512m -Dsun.java2d.noddraw=true">
FOr my case
So the codebase is remote site stream data location, RIght ?
And achive is Java applet program to be ready to receive data on my IE from remote site
stream data location, Right ?
Expert: CEHJ replied at 2024-07-05 03:39:34
As we know Charles is http proxy only so other TCP protocol data transfer
can not be captured by Charles, Right ?
In general, that's probably right, as i said HERE
But i think it would depend on what the applet is doing internally, which still remains very mysterious
can not be captured by Charles, Right ?
In general, that's probably right, as i said HERE
But i think it would depend on what the applet is doing internally, which still remains very mysterious
Author: duncanb7 replied at 2024-07-05 03:31:22
the data is streaming data from the remote site to the applet application.
As we know Charles is http proxy only so other TCP protocol data transfer
can not be captured by Charles, Right ?
SO the answer using other ways besides Charles to capture the stream data
, for example, using C or Java program, Right.
As we know Charles is http proxy only so other TCP protocol data transfer
can not be captured by Charles, Right ?
SO the answer using other ways besides Charles to capture the stream data
, for example, using C or Java program, Right.
Expert: CEHJ replied at 2024-07-05 03:25:24
I don't know what data you mean. You haven't really said anything even about what your applet is meant to do, which is presumably your goal
http://technojeeves.com/joomla/index.php/free/117-smart-questions
http://technojeeves.com/joomla/index.php/free/117-smart-questions
Author: duncanb7 replied at 2024-07-05 03:21:06
it seems only Java or C program can capture the data, Right ?
Assisted Solution
Expert: CEHJ replied at 2024-07-05 03:20:51
250 points EXCELLENT
My own download speed test monitor applet at http://www.cehjohnson.btinternet.co.uk/protean/speedtest.htm works fine with a proxy. Each timed request gets a text file from the applet's originating host (www.cehjohnson.btinternet.co.uk) and that appears in the proxy's trace. I'm using WebScarab rather than Charles. Here is how i started the applet:
appletviewer -J-Dhttp.proxyHost=127.0.0.1 -J-Dhttp.proxyPort=8008 http://www.cehjohnson.btinternet.co.uk/protean/speedtest.htm 1:
Expert: CEHJ replied at 2024-07-05 03:06:15
Charles is an http proxy. Any network streams that don't use http will not register with it at all
Author: duncanb7 replied at 2024-07-05 02:51:59
Charles is working on IE, and I 've already checked on IE's tools--> connection which already
select proxy for 127.0.0.1:8888
When open remote site on IE, Charles is able to show all http info and re-direct link except the streaming data into applet.
Actually, all data from DSL or telephone line should be able to be captured by
program software on widow such as C, Java program.
Is it right ?
Why charles can not capture the stream data if it is using http protocal unless
the stream data is transferred from other protocal such ftp, RIght?
I google 8044 port which mention
http://www.corrupteddatarecovery.com/Port/8044tcp-Port-Type-fs-mgmt-fs-mgmt.asp
select proxy for 127.0.0.1:8888
When open remote site on IE, Charles is able to show all http info and re-direct link except the streaming data into applet.
Actually, all data from DSL or telephone line should be able to be captured by
program software on widow such as C, Java program.
Is it right ?
Why charles can not capture the stream data if it is using http protocal unless
the stream data is transferred from other protocal such ftp, RIght?
I google 8044 port which mention
http://www.corrupteddatarecovery.com/Port/8044tcp-Port-Type-fs-mgmt-fs-mgmt.asp
Expert: CEHJ replied at 2024-07-05 02:35:11
I don't need to download Charles - i've used it many times and recommended it here.
The confusing part is that there's an applet in the scenario. Unless the applet picks up the correct proxy settings from the hosting software (applet context etc.) then it won't use the proxy. With any luck, it will.
The first thing you need to do is set Charles as the proxy for the browser. Do that, close the browser instance, restart with Charles running and let me know what happens
The confusing part is that there's an applet in the scenario. Unless the applet picks up the correct proxy settings from the hosting software (applet context etc.) then it won't use the proxy. With any luck, it will.
The first thing you need to do is set Charles as the proxy for the browser. Do that, close the browser instance, restart with Charles running and let me know what happens
Author: duncanb7 replied at 2024-07-05 00:55:29
If you are keeping confusing, just download Charles debugging software, and
login your www.experts-exchange.com account, Charles will show you something,
and imagine experts-exhange.com will send you something after login successfully
, for example, one applet java code, and then.......
You can try Fiddle and Charles, just type it in google seach
login your www.experts-exchange.com account, Charles will show you something,
and imagine experts-exhange.com will send you something after login successfully
, for example, one applet java code, and then.......
You can try Fiddle and Charles, just type it in google seach
Author: duncanb7 replied at 2024-07-05 00:51:42
a-I need to login remote website and type login and passward , just a form html page,
at this moment all link is captured by Charles.
b- after login successfully remote stie will send one html page which will included
apple tag and some javascript coding and then Java applet application is enabled and
streaming non-stop data is showing on the application
After that, Charles is not able to capture anything again from the remote site.
THe scenario is simple not confusing, Right.
I found the infomation on the remote site by netstat on window.
There are three ports from remote site
Nestat:
1-TCP 203.77.3.47.51280 www.remotesite.com:8044 Established
2-TCP 203.77.3.47.51527 www.remotesite.com:8044 Established
3-TCP 203.77.3.47:51000 www.remotesite.com:http Established
203.77.3.47 is my DSL ISP address
www.remotesite.com is my java applet software remote site address
From point (3), the port is taking care http protocol to transfer all web page
from remote site.to client(me) such as login page and applet code
it seems point (1) and (2) are address to take care of streaming data
transferring into applet Java which recevied the data and show it to users.
Please advise
Duncan
at this moment all link is captured by Charles.
b- after login successfully remote stie will send one html page which will included
apple tag and some javascript coding and then Java applet application is enabled and
streaming non-stop data is showing on the application
After that, Charles is not able to capture anything again from the remote site.
THe scenario is simple not confusing, Right.
I found the infomation on the remote site by netstat on window.
There are three ports from remote site
Nestat:
1-TCP 203.77.3.47.51280 www.remotesite.com:8044 Established
2-TCP 203.77.3.47.51527 www.remotesite.com:8044 Established
3-TCP 203.77.3.47:51000 www.remotesite.com:http Established
203.77.3.47 is my DSL ISP address
www.remotesite.com is my java applet software remote site address
From point (3), the port is taking care http protocol to transfer all web page
from remote site.to client(me) such as login page and applet code
it seems point (1) and (2) are address to take care of streaming data
transferring into applet Java which recevied the data and show it to users.
Please advise
Duncan
Expert: CEHJ replied at 2024-07-04 15:24:42
I made a conection first on the remote site by login and passward
I'm getting even more confused now. Are you saying
a. you're making a remote connection to a machine and then running an applet on it?
or
b. the applet is making a connection to the remote site?
Author: duncanb7 replied at 2024-07-04 14:05:59
After using netstat, I found the application is using port number of 8044 and 80
SO what special for 8044 port.
Please advise
Duncan
SO what special for 8044 port.
Please advise
Duncan
Author: duncanb7 replied at 2024-07-04 13:33:34
it might be FTP port
Author: duncanb7 replied at 2024-07-04 13:27:12
I tried both http and socks on Java as follows java code, the Charles is still not
working or react with the applet.
working or react with the applet.
//: c02:HelloDate.java// From 'Thinking in Java, 2nd ed.' by Bruce Eckel// www.BruceEckel.com. See copyright notice in CopyRight.txt.import java.util.*;/** The first Thinking in Java example program. * Displays a string and today's date. * @author Bruce Eckel * @author www.BruceEckel.com * @version 2.0*/public class HelloDate { /** Sole entry point to class & application * @param args array of string arguments * @return No return value * @exception exceptions No exceptions thrown */ public static void main(String[] args) { System.out.println("Hello, it's: "); System.out.println(new Date()); System.getProperties().put( "http.proxyHost", "127.0.0.1" );System.getProperties().put( "http.proxyPort", "8888" ); System.getProperties().put( "socks.ProxyHost", "127.0.0.1" );System.getProperties().put( "socks.ProxyPort", "8889" ); System.out.println(System.getProperty("http.proxyHost")); }} ///:~ 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:25:26:27:
Author: duncanb7 replied at 2024-07-04 12:45:43
I made a conection first on the remote site by login and passward, and pass
the security and going into one button and click the applet javascript will
send to my IE that I check from Charles.
Please advise and attach the html tag for applet
Duncan
the security and going into one button and click the applet javascript will
send to my IE that I check from Charles.
Please advise and attach the html tag for applet
Duncan
<table><tr><td><p>If you cannot use the application after serveral minutes, please re-login</p></td></tr></table><br><applet code=a.b.q.a.class codebase="http://data.com/applet/" height=0 width=0 VIEWASTEXT name=Loading id=Loading align="bottom" MAYSCRIPT> <param name=cabbase value="Proj.cab"> <PARAM NAME="archive" VALUE="Proj.jar"><PARAM NAME="java_arguments" VALUE="-Xmx512m -Dsun.java2d.noddraw=true"> <param name="color" value="1"> <param name="isflash" value="false"> <param name="isshowpinyininput" value="false"> <param name="location" value="0"> <param name="Language" value="eng"></applet></body></html> 1:2:3:4:5:6:7:8:9:10:11:12:13:14:15:16:17:18:19:20:21:22:23:24:
Expert: CEHJ replied at 2024-07-04 12:05:50
You didn't answer my question ...
Author: duncanb7 replied at 2024-07-04 11:55:37
When disconnect the phone-line connection, the data in applet tag is stopped
Author: duncanb7 replied at 2024-07-04 11:53:31
Charles is only able to detecting html and the javascript file sending from the remote site such as www.example.com/js/applet.js in which will lauch applet application by setting up with <applet> tag with param. After all, And what happen in the applet tag, Charles is no any response or detection but I am able to see the data is changing in non-stop mode on applet in IE.
Please advise
Duncan
Please advise
Duncan
Expert: CEHJ replied at 2024-07-04 11:52:52
I need to know how your applet is making a network connection and what's happening
Author: duncanb7 replied at 2024-07-04 11:46:20
Yes, please see the link for http.proxyHost setting in Charles
http://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/
http://www.charlesproxy.com/documentation/configuration/browser-and-system-configuration/
Expert: CEHJ replied at 2024-07-04 11:45:24
OK, so the applet makes a network connection and you want it to make it through the proxy?
Author: duncanb7 replied at 2024-07-04 11:37:57
Yes. the application is running in IE browser. Charles can trace the address
only for http/https from browser. If the data is streaming data into applet java application in IE, Charles is not able to grab the streaming data. That is why I want to
set the applet java 's proxy to let all data going into Charles first before going to
the applet application.
SO I want as follows to do so,
C:/program files/java/jre7/bin/java -D http.proxyHost=127.0.0.1 -D
http.proxyPort=8888 but it is not working.
Now I am try to re-write the java.policy file to grant all file access right to the users
such as system property like http.proxyHOST, but access file right on window is
getting issue. May be I need to re-install all java in my directory instead of
"program files" on window
Please advise
Duncan
only for http/https from browser. If the data is streaming data into applet java application in IE, Charles is not able to grab the streaming data. That is why I want to
set the applet java 's proxy to let all data going into Charles first before going to
the applet application.
SO I want as follows to do so,
C:/program files/java/jre7/bin/java -D http.proxyHost=127.0.0.1 -D
http.proxyPort=8888 but it is not working.
Now I am try to re-write the java.policy file to grant all file access right to the users
such as system property like http.proxyHOST, but access file right on window is
getting issue. May be I need to re-install all java in my directory instead of
"program files" on window
Please advise
Duncan
Expert: CEHJ replied at 2024-07-04 10:39:10
This is confusing. Forget the proxy issue at the moment
You have an applet - are you showing it in a browser?
You have an applet - are you showing it in a browser?