Author Topic: Web based camera viewing (Java Won't Work)  (Read 803 times)

Offline CaptainWTF

  • Highly Active
  • ****
  • Posts: 1993
  • Serious Business
    Points:
    -1188
    • View Profile
Web based camera viewing (Java Won't Work)
« on: January 21, 2011, 10:44:16 PM »
Ok, Security system from a remote location can be viewed via web browser, Primarily IE 5.5+ using ActiveX. BUT it also has the ability to do java. Using Dragon(Dragon was used for its developer tools etc  so I could get the errors and retrieve the source from pages I normally can't find in Firefox), I loaded the page because when I do use java no matter what browser I'm in it basically loads a still shot image and won't stream the video like I want it to. Ok so it tells me,
Java debug console contains
Code: [Select]
Loaded image: http://192.168.1.105/jweb/bg1.jpg
CameraName :The Keg
Sec1970 :1295655006
Time: 1295655006 1295655006
init
Loaded image: http://192.168.1.105/Jpeg/CamImg1295654961590_0.3323945485490034_30854.jpg
Jpeg/CamImg1295654961637_0.4562600956268229_30854.jpg
Total = 15,204,352 Used = 5,343,000 Free = 9,861,352
Uncaught TypeError: Cannot call method 'charAt' of undefined (anonymous function) That error is on line 810 of Control.htm
Control.htm
Index.htm
Main.htm

Now seeing as I don't understand Javascript I figure I'd ask you guys see if you can give me any ideas.
On top of whats provided above this also appears down in the I'll refer to it as status area where it shows your loading status, what its doing  it displays
Camera: open;Picture:Loading;Modem:Disconnected;PPPOE:Disconnected;Resolution: 640x480;Quality:none;Administrator
This is about all I can provide if you guys need any of the other source files let me know otherwise I'm pretty much SOL here.
« Last Edit: January 21, 2011, 10:52:19 PM by [IAM] CaptainWTF »
"Tell the firewall to fuck off"
"Don't be an asshat. No one likes asshats. A cap is alright. A hat is nice. having an ass is compulsory. Combining an ass and a hat? Not a good idea, take it off."






___
Corsair 800D
EVGA Z68 SLI motherboard
Intel i5 2500k
8gb G.Skill Ripjaw memory @ 667mhz
EVGA GTX 560 Ti video card @ 900mhz W/ Arctic Cooling Accelero Xtreme Plus II
Samsung 830 series 128gb SSD
Corsair HX850 850w Modular PSU
APC BR1500G 865w UPS

Offline [IAM] iba

  • [IAM] Member
  • Inactive
  • *****
  • Posts: 543
  • Serious Business
    Points:
    9236
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #1 on: January 22, 2011, 04:28:50 PM »
Well, it's been a long time since I took Java classes, and I've used that string before, but to me, what doesn't make sense is it IS defined.

The string it's attached to is defined (pt_status) and looking back, those strings look acceptable... And the charAt(22) is defining the location according to the method spec. So what it's complaining about, I have no idea.

I'm not sure what that string has to do with it not giving you a live image though.

Offline CaptainWTF

  • Highly Active
  • ****
  • Posts: 1993
  • Serious Business
    Points:
    -1188
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #2 on: January 22, 2011, 04:41:10 PM »
Nor do I, I actually called the manufacturer they tried telling me this system is IE 5.5+ ONLY and the manual is telling me java works with other browsers rather than IE and I'm telling them that and they're like. Oh. Like total jackasses.

Perhaps there is something else causing issues there  that I am not seeing, Primary reason for this is I want something rather than this IE because it totally uses like 90% + of my CPU its a old single core but still.. Plus I think I might be able to view all 7 cameras instead of 4 with the Java.
"Tell the firewall to fuck off"
"Don't be an asshat. No one likes asshats. A cap is alright. A hat is nice. having an ass is compulsory. Combining an ass and a hat? Not a good idea, take it off."






___
Corsair 800D
EVGA Z68 SLI motherboard
Intel i5 2500k
8gb G.Skill Ripjaw memory @ 667mhz
EVGA GTX 560 Ti video card @ 900mhz W/ Arctic Cooling Accelero Xtreme Plus II
Samsung 830 series 128gb SSD
Corsair HX850 850w Modular PSU
APC BR1500G 865w UPS

Offline CaptainWTF

  • Highly Active
  • ****
  • Posts: 1993
  • Serious Business
    Points:
    -1188
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #3 on: January 22, 2011, 04:46:49 PM »
Code: [Select]
Loaded image: http://192.168.1.105/jweb/bg1.jpg
CameraName :The Keg
Sec1970 :1295732740
Time: 1295732740 1295732740
init
Loaded image: http://192.168.1.105/Jpeg/CamImg1295732709012_0.5366481016894924_31890.jpg
Jpeg/CamImg1295732709012_0.6884477837612285_31890.jpg
java.lang.InterruptedException
at java.lang.Object.wait(Native Method)
at java.awt.MediaTracker.waitForID(Unknown Source)
at java.awt.MediaTracker.waitForID(Unknown Source)
at com.winbond.pc32.utility.Utility.waitForImage(Utility.java:11)
at WebCamSimpleViewer$SeparateSubTask.GetAPicture(WebCamSimpleViewer.java:82)
at WebCamSimpleViewer$SeparateSubTask.run(WebCamSimpleViewer.java:40)
Total = 15,204,352 Used = 4,802,752 Free = 10,401,600

New stuff popped up into the Java Debug

Also would be willing to open up some ports so it is available to the outside world for a little bit to see if someone can't figure something out.
« Last Edit: January 22, 2011, 04:57:52 PM by [IAM] CaptainWTF »
"Tell the firewall to fuck off"
"Don't be an asshat. No one likes asshats. A cap is alright. A hat is nice. having an ass is compulsory. Combining an ass and a hat? Not a good idea, take it off."






___
Corsair 800D
EVGA Z68 SLI motherboard
Intel i5 2500k
8gb G.Skill Ripjaw memory @ 667mhz
EVGA GTX 560 Ti video card @ 900mhz W/ Arctic Cooling Accelero Xtreme Plus II
Samsung 830 series 128gb SSD
Corsair HX850 850w Modular PSU
APC BR1500G 865w UPS

Offline [IAM] iba

  • [IAM] Member
  • Inactive
  • *****
  • Posts: 543
  • Serious Business
    Points:
    9236
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #4 on: January 23, 2011, 07:49:04 PM »
Do you have the latest version of java installed?

Offline CaptainWTF

  • Highly Active
  • ****
  • Posts: 1993
  • Serious Business
    Points:
    -1188
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #5 on: January 23, 2011, 10:08:49 PM »
I would assume so but what difference would that make considering the DVR system is roughly 5 years old. it would be using a way older version of java. I'm quite positive I'm java current. but will check, I can set you up with some info to log into it

Yeah, It is the most current version of java, If you want to  take a look at it I can set you up with some login creds other then that I'm out of ideas here.
"Tell the firewall to fuck off"
"Don't be an asshat. No one likes asshats. A cap is alright. A hat is nice. having an ass is compulsory. Combining an ass and a hat? Not a good idea, take it off."






___
Corsair 800D
EVGA Z68 SLI motherboard
Intel i5 2500k
8gb G.Skill Ripjaw memory @ 667mhz
EVGA GTX 560 Ti video card @ 900mhz W/ Arctic Cooling Accelero Xtreme Plus II
Samsung 830 series 128gb SSD
Corsair HX850 850w Modular PSU
APC BR1500G 865w UPS

Offline [IAM] squishy

  • [IAM] Member
  • Forum Addict
  • *****
  • Posts: 647
  • Serious Business
    Points:
    69
  • I void warranties
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #6 on: January 24, 2011, 09:37:13 AM »
sad to say, but sometimes newer java clients may behave oddly with older server-side java stuff.  Our web filter here at school has a java-based interface, and until their most recent update to the software, I had to revert back to a previous java re (not that hard to do in firefox) in order to get it to work.

And now that Oracle is maintaining that stuff, I don't expect for it to get any better...
(15:36:10) Magnet: u only say WoW sucks when 1. u suck ass 2. u have terrible gear 3. u suck ass
_____________________________________________________________________________________

Offline CaptainWTF

  • Highly Active
  • ****
  • Posts: 1993
  • Serious Business
    Points:
    -1188
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #7 on: January 24, 2011, 10:00:42 AM »
So how would I figure out what version it was back in 04-06 to test, I do remember you mentioning that some things are java version specific previously.
"Tell the firewall to fuck off"
"Don't be an asshat. No one likes asshats. A cap is alright. A hat is nice. having an ass is compulsory. Combining an ass and a hat? Not a good idea, take it off."






___
Corsair 800D
EVGA Z68 SLI motherboard
Intel i5 2500k
8gb G.Skill Ripjaw memory @ 667mhz
EVGA GTX 560 Ti video card @ 900mhz W/ Arctic Cooling Accelero Xtreme Plus II
Samsung 830 series 128gb SSD
Corsair HX850 850w Modular PSU
APC BR1500G 865w UPS

Offline [IAM] squishy

  • [IAM] Member
  • Forum Addict
  • *****
  • Posts: 647
  • Serious Business
    Points:
    69
  • I void warranties
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #8 on: January 24, 2011, 10:29:51 AM »
well in firefox, you can open up your add-ons and see the various versions of the java re that are installed and disable them one by one until you get it to work (assuming it will work in firefox at all)
(15:36:10) Magnet: u only say WoW sucks when 1. u suck ass 2. u have terrible gear 3. u suck ass
_____________________________________________________________________________________

Offline CaptainWTF

  • Highly Active
  • ****
  • Posts: 1993
  • Serious Business
    Points:
    -1188
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #9 on: January 24, 2011, 10:50:51 AM »
Yeah but its not gonna all previous versions in it. So I'm already shit out of holy shit that was some serious ass. Shit outta luck pretty much. :/

Sent from my fingers pressing buttons
"Tell the firewall to fuck off"
"Don't be an asshat. No one likes asshats. A cap is alright. A hat is nice. having an ass is compulsory. Combining an ass and a hat? Not a good idea, take it off."






___
Corsair 800D
EVGA Z68 SLI motherboard
Intel i5 2500k
8gb G.Skill Ripjaw memory @ 667mhz
EVGA GTX 560 Ti video card @ 900mhz W/ Arctic Cooling Accelero Xtreme Plus II
Samsung 830 series 128gb SSD
Corsair HX850 850w Modular PSU
APC BR1500G 865w UPS

Offline CaptainWTF

  • Highly Active
  • ****
  • Posts: 1993
  • Serious Business
    Points:
    -1188
    • View Profile
Re: Web based camera viewing (Java Won't Work)
« Reply #10 on: January 24, 2011, 05:26:15 PM »
I'm going to attempt to revert back to 1.3.1, using a 1.3.1 JRE and it gives me all of this now. end result. still just a picture and no live stream. Going to attempt installing Netscape 6 which was current at the time.
Code: [Select]
Java Plug-in 1.6.0_23
Using JRE version 1.6.0_23-b05 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator

----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
o:   trigger logging
q:   hide console
r:   reload policy configuration
s:   dump system and deployment properties
t:   dump thread list
v:   dump thread stack
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

basic: Added progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@789144
basic: Plugin2ClassLoader.addURL parent called for http://192.168.1.105/jweb/core.jar
network: CleanupThread used 64676 us
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: CleanupThread used 1 us
network: CleanupThread used 3 us
network: CleanupThread used 2 us
security: Blacklist revocation check is enabled
security: Trusted libraries list check is enabled
network: Cache entry found [url: http://192.168.1.105/jweb/core.jar, version: null] prevalidated=false/0
network: Connecting http://192.168.1.105/jweb/core.jar with proxy=SOCKS @ localhost/127.0.0.1:80
network: Firewall authentication: site=/192.168.1.105:80, protocol=http, prompt=Camera Server, scheme=basic
network: Connecting http://192.168.1.105/jweb/core.jar with proxy=SOCKS @ localhost/127.0.0.1:80
network: ResponseCode for http://192.168.1.105/jweb/core.jar : 200
network: Encoding for http://192.168.1.105/jweb/core.jar : null
network: Disconnect connection to http://192.168.1.105/jweb/core.jar
network: Connecting http://192.168.1.105/jweb/core.jar with proxy=SOCKS @ localhost/127.0.0.1:80
network: CleanupThread used 2 us
network: Downloading resource: http://192.168.1.105/jweb/core.jar
Content-Length: 39,520
Content-Encoding: null
network: Wrote URL http://192.168.1.105/jweb/core.jar to File C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\44\64d499ec-4fdfa560-temp
network: CleanupThread used 2 us
cache: Replacing MemoryCache entry (cnt=0) for http://192.168.1.105/jweb/core.jarwas=com.sun.deploy.cache.CacheEntry (10805987) now=com.sun.deploy.cache.CacheEntry (19642336)
basic: Applet loaded.
basic: Applet resized and added to parent container
basic: PERF: AppletExecutionRunnable - applet.init() BEGIN ; jvmLaunch dt 225372 us, pluginInit dt 9744786 us, TotalTime: 9970158 us
network: Cache entry not found [url: http://192.168.1.105/jweb/, version: null]
basic: Loaded image: http://192.168.1.105/jweb/bg1.jpg
network: Cache entry not found [url: http://192.168.1.105/jweb/bg1.jpg, version: null]
network: Connecting http://192.168.1.105/jweb/bg1.jpg with proxy=SOCKS @ localhost/127.0.0.1:80
network: CleanupThread used 3 us
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: CleanupThread used 3 us
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: CleanupThread used 1 us
network: CleanupThread used 3 us
network: Cache entry found [url: http://192.168.1.105/GetName.cgi, version: null] prevalidated=false/0
network: Connecting http://192.168.1.105/GetName.cgi with proxy=SOCKS @ localhost/127.0.0.1:80
network: Connecting http://192.168.1.105/GetName.cgi with proxy=SOCKS @ localhost/127.0.0.1:80
network: ResponseCode for http://192.168.1.105/GetName.cgi : 200
network: Encoding for http://192.168.1.105/GetName.cgi : null
network: Disconnect connection to http://192.168.1.105/GetName.cgi
network: Connecting http://192.168.1.105/GetName.cgi with proxy=SOCKS @ localhost/127.0.0.1:80
network: CleanupThread used 2 us
network: Downloading resource: http://192.168.1.105/GetName.cgi
Content-Length: 21
Content-Encoding: null
network: Wrote URL http://192.168.1.105/GetName.cgi to File C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\50\44701af2-53183e9c-temp
network: CleanupThread used 3 us
cache: Replacing MemoryCache entry (cnt=0) for http://192.168.1.105/GetName.cgiwas=com.sun.deploy.cache.CacheEntry (12110054) now=com.sun.deploy.cache.CacheEntry (26056784)
CameraName :The Keg
network: CleanupThread used 2 us
network: CleanupThread used 2 us
network: Cache entry found [url: http://192.168.1.105/GetTime.cgi, version: null] prevalidated=false/0
network: Connecting http://192.168.1.105/GetTime.cgi with proxy=SOCKS @ localhost/127.0.0.1:80
network: ResponseCode for http://192.168.1.105/GetTime.cgi : 200
network: Encoding for http://192.168.1.105/GetTime.cgi : null
network: Disconnect connection to http://192.168.1.105/GetTime.cgi
network: Connecting http://192.168.1.105/GetTime.cgi with proxy=SOCKS @ localhost/127.0.0.1:80
network: CleanupThread used 2 us
network: Downloading resource: http://192.168.1.105/GetTime.cgi
Content-Length: 97
Content-Encoding: null
network: Wrote URL http://192.168.1.105/GetTime.cgi to File C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\26\3357901a-5fa3a04c-temp
network: CleanupThread used 2 us
cache: Replacing MemoryCache entry (cnt=0) for http://192.168.1.105/GetTime.cgiwas=com.sun.deploy.cache.CacheEntry (13328393) now=com.sun.deploy.cache.CacheEntry (927929)
Sec1970 :1295909217
Time: 1295909217 1295909217
init
basic: Applet initialized
basic: Removed progress listener: sun.plugin.util.GrayBoxPainter$GrayBoxProgressListener@789144
basic: Applet made visible
basic: Starting applet
basic: completed perf rollup
basic: Applet started
basic: Told clients applet is started
network: CleanupThread used 3 us
network: CleanupThread used 2 us
network: Cache entry found [url: http://192.168.1.105/GetStatus.cgi, version: null] prevalidated=false/0
network: Connecting http://192.168.1.105/GetStatus.cgi with proxy=SOCKS @ localhost/127.0.0.1:80
network: ResponseCode for http://192.168.1.105/GetStatus.cgi : 200
network: Encoding for http://192.168.1.105/GetStatus.cgi : null
network: Disconnect connection to http://192.168.1.105/GetStatus.cgi
network: Connecting http://192.168.1.105/GetStatus.cgi with proxy=SOCKS @ localhost/127.0.0.1:80
network: CleanupThread used 3 us
network: Downloading resource: http://192.168.1.105/GetStatus.cgi
Content-Length: 106
Content-Encoding: null
network: Wrote URL http://192.168.1.105/GetStatus.cgi to File C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\47\587faa6f-4923ea46-temp
network: CleanupThread used 2 us
cache: Replacing MemoryCache entry (cnt=0) for http://192.168.1.105/GetStatus.cgiwas=com.sun.deploy.cache.CacheEntry (7056873) now=com.sun.deploy.cache.CacheEntry (23506867)
basic: Loaded image: http://192.168.1.105/Jpeg/CamImg1295909192856_0.28978173368621074_498038.jpg
Jpeg/CamImg1295909192872_0.7512553010442244_498038.jpg
network: Cache entry not found [url: http://192.168.1.105/Jpeg/CamImg1295909192856_0.28978173368621074_498038.jpg, version: null]
network: Connecting http://192.168.1.105/Jpeg/CamImg1295909192856_0.28978173368621074_498038.jpg with proxy=SOCKS @ localhost/127.0.0.1:80
Total = 15,204,352 Used = 9,754,640 Free = 5,449,712
network: CleanupThread used 2 us
network: Downloading resource: http://192.168.1.105/Jpeg/CamImg1295909192856_0.28978173368621074_498038.jpg
Content-Length: 48,422
Content-Encoding: null
network: Wrote URL http://192.168.1.105/Jpeg/CamImg1295909192856_0.28978173368621074_498038.jpg to File C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\cache\6.0\26\37d4c5da-17765ed5-temp
network: CleanupThread used 2 us
basic: unique id: com_sun_deploy_AboutJava-6.0
basic: server port at: 4156
basic: getSingleInstanceFilename: C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\tmp\si\com_sun_deploy_AboutJava-6.0-x86_4156
basic: waiting connection
network: Connecting http://127.0.0.1:4156/ with proxy=DIRECT
basic: recv: javaws.singleinstance.stop
basic: getSingleInstanceFilename: C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\tmp\si\com_sun_deploy_AboutJava-6.0-x86_4156
basic: getSingleInstanceFilename: C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\tmp\si\com_sun_deploy_AboutJava-6.0-x86_4156
basic: removed SingleInstanceFile: C:\Documents and Settings\Administrator\Application Data\Sun\Java\Deployment\tmp\si\com_sun_deploy_AboutJava-6.0-x86_4156
And using Netscape, it automatically throws over into java mode but gives me
Code: [Select]
Java(TM) Plug-in: Version 1.3.1_06
Using JRE version 1.3.1_06 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\Administrator

Proxy Configuration: Browser Proxy Configuration



----------------------------------------------------
c:   clear console window
f:   finalize objects on finalization queue
g:   garbage collect
h:   display this help message
l:   dump classloader list
m:   print memory usage
q:   hide console
s:   dump system properties
t:   dump thread list
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------

load: class WebCamSimpleViewer.class not found.

java.lang.ClassNotFoundException: java.net.SocketException: Unexpected end of file from server

at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)

at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)

at sun.net.www.http.HttpClient.parseHTTPHeader(Unknown Source)

at sun.net.www.http.HttpClient.parseHTTP(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)

at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(Unknown Source)

at sun.plugin.protocol.jdk12.http.HttpURLConnection.checkCookieHeader(Unknown Source)

at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)

at java.net.HttpURLConnection.getResponseCode(Unknown Source)

at sun.applet.AppletClassLoader.getBytes(Unknown Source)

at sun.applet.AppletClassLoader.access$100(Unknown Source)

at sun.applet.AppletClassLoader$1.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at sun.applet.AppletClassLoader.findClass(Unknown Source)

at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadClass(Unknown Source)

at java.lang.ClassLoader.loadClass(Unknown Source)

at sun.applet.AppletClassLoader.loadCode(Unknown Source)

at sun.applet.AppletPanel.createApplet(Unknown Source)

at sun.plugin.AppletViewer.createApplet(Unknown Source)

at sun.applet.AppletPanel.runLoader(Unknown Source)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

« Last Edit: January 24, 2011, 05:55:38 PM by [IAM] CaptainWTF »
"Tell the firewall to fuck off"
"Don't be an asshat. No one likes asshats. A cap is alright. A hat is nice. having an ass is compulsory. Combining an ass and a hat? Not a good idea, take it off."






___
Corsair 800D
EVGA Z68 SLI motherboard
Intel i5 2500k
8gb G.Skill Ripjaw memory @ 667mhz
EVGA GTX 560 Ti video card @ 900mhz W/ Arctic Cooling Accelero Xtreme Plus II
Samsung 830 series 128gb SSD
Corsair HX850 850w Modular PSU
APC BR1500G 865w UPS