|
| Re: Weird behavior of Opera's Java Plugin |
 |
Fri, 13 Oct 2006 11:28:33 -040 |
In opera.plugins Martin Szydlowski wrote:
> Hi!
> If my question does not belong to this group, please be so kind
> and direct me to the right one.
>
> I'm writing a java applet which needs to communictate via HTTP
> with a cgi application on the server. The applet works fine with
> browsers which use Sun's Java plugin directly - Opera on the
> other side seems to use it's own, althought the java console
> says:
Opera uses NO Java plugin at all. Instead, it calls the current
Java installed on the system direcly.
Pages written that _require_ a Java plugin file and have no other
method will fail. I believe this is true on Linux as well, but
only Win32 here. HTH
>
> Java vendor: Sun Microsystems Inc.
> Java version: 1.5.0_06
>
> I use the HttpURLConnection class and need to read the HTTP
> header fields. When I call the appropriate methods
> (getHeaderFields(), getHeaderField(String))
> I get 0 headers in return. I allready know that Opera uses a
> different implementation of this class
> (com.opera.HttpURLConnection as opposed to
> sun.net.protocol.http.HttpURLConnection). Now my question is if
> this is some
> weird security "feature" of Opera or if the Java implementatio
> is simply f*cked up. Oh BTW, I use Opera 9.02 on Linux and
> Windows.
>
> greetz Martin
>
--
Opera Win32 9.02-8585; W2K
For Windows I suggest using the "classic" installer package in all
|
| Post Reply
|
| Re: Weird behavior of Opera's Java Plugin |
 |
Fri, 13 Oct 2006 11:28:33 -040 |
In opera.plugins Martin Szydlowski wrote:
> Hi!
> If my question does not belong to this group, please be so kind
> and direct me to the right one.
>
> I'm writing a java applet which needs to communictate via HTTP
> with a cgi application on the server. The applet works fine with
> browsers which use Sun's Java plugin directly - Opera on the
> other side seems to use it's own, althought the java console
> says:
Opera uses NO Java plugin at all. Instead, it calls the current
Java installed on the system direcly.
Pages written that _require_ a Java plugin file and have no other
method will fail. I believe this is true on Linux as well, but
only Win32 here. HTH
>
> Java vendor: Sun Microsystems Inc.
> Java version: 1.5.0_06
>
> I use the HttpURLConnection class and need to read the HTTP
> header fields. When I call the appropriate methods
> (getHeaderFields(), getHeaderField(String))
> I get 0 headers in return. I allready know that Opera uses a
> different implementation of this class
> (com.opera.HttpURLConnection as opposed to
> sun.net.protocol.http.HttpURLConnection). Now my question is if
> this is some
> weird security "feature" of Opera or if the Java implementatio
> is simply f*cked up. Oh BTW, I use Opera 9.02 on Linux and
> Windows.
>
> greetz Martin
>
--
Opera Win32 9.02-8585; W2K
For Windows I suggest using the "classic" installer package in all
|
| Post Reply
|
| Weird behavior of Opera's Java Plugin |
 |
Fri, 13 Oct 2006 13:54:44 +020 |
Hi!
If my question does not belong to this group, please be so kind and
direct me to the right one.
I'm writing a java applet which needs to communictate via HTTP with
a cgi application on the server. The applet works fine with browsers
which use Sun's Java plugin directly - Opera on the other side seems
to use it's own, althought the java console says:
Java vendor: Sun Microsystems Inc.
Java version: 1.5.0_06
I use the HttpURLConnection class and need to read the HTTP header fields.
When I call the appropriate methods (getHeaderFields(),
getHeaderField(String))
I get 0 headers in return. I allready know that Opera uses a different
implementation of this class (com.opera.HttpURLConnection as opposed to
sun.net.protocol.http.HttpURLConnection). Now my question is if this is
some
weird security "feature" of Opera or if the Java implementatio is
simply
f*cked up. Oh BTW, I use Opera 9.02 on Linux and Windows.
greetz Martin
--
|
| Post Reply
|
| Re: Weird behavior of Opera's Java Plugin |
 |
Mon, 16 Oct 2006 09:05:28 +020 |
"Martin Szydlowski" <nomail@dontcare.com> writes:
> Hi!
> If my question does not belong to this group, please be so kind and
> direct me to the right one.
>
> I'm writing a java applet which needs to communictate via HTTP with
> a cgi application on the server. The applet works fine with browsers
> which use Sun's Java plugin directly - Opera on the other side seems
> to use it's own, althought the java console says:
>
> Java vendor: Sun Microsystems Inc.
> Java version: 1.5.0_06
>
> I use the HttpURLConnection class and need to read the HTTP header fields.
> When I call the appropriate methods (getHeaderFields(),
> getHeaderField(String))
> I get 0 headers in return. I allready know that Opera uses a different
> implementation of this class (com.opera.HttpURLConnection as opposed to
> sun.net.protocol.http.HttpURLConnection). Now my question is if this
> is some
> weird security "feature" of Opera or if the Java implementatio is
simply
> f*cked up. Oh BTW, I use Opera 9.02 on Linux and Windows.
>
> greetz Martin
>
It seems getHeaderField will fail silently if any exceptions are
thrown. That makes debugging impractical. You may want to file a bug
on that (https://bugs.opera.com/wizard/)
If everything seems to work otherwise, it's tempting to guess that the
security policy is denying access. You could try (temporarily)
allowing everything, just to see if that is the problem. On linux the
security policy is in /usr/share/opera/java/opera.policy. I don't
know where to find it on windows.
eirik
|
| Post Reply
|
| Re: Weird behavior of Opera's Java Plugin |
 |
Mon, 16 Oct 2006 09:05:28 +020 |
"Martin Szydlowski" <nomail@dontcare.com> writes:
> Hi!
> If my question does not belong to this group, please be so kind and
> direct me to the right one.
>
> I'm writing a java applet which needs to communictate via HTTP with
> a cgi application on the server. The applet works fine with browsers
> which use Sun's Java plugin directly - Opera on the other side seems
> to use it's own, althought the java console says:
>
> Java vendor: Sun Microsystems Inc.
> Java version: 1.5.0_06
>
> I use the HttpURLConnection class and need to read the HTTP header fields.
> When I call the appropriate methods (getHeaderFields(),
> getHeaderField(String))
> I get 0 headers in return. I allready know that Opera uses a different
> implementation of this class (com.opera.HttpURLConnection as opposed to
> sun.net.protocol.http.HttpURLConnection). Now my question is if this
> is some
> weird security "feature" of Opera or if the Java implementatio is
simply
> f*cked up. Oh BTW, I use Opera 9.02 on Linux and Windows.
>
> greetz Martin
>
It seems getHeaderField will fail silently if any exceptions are
thrown. That makes debugging impractical. You may want to file a bug
on that (https://bugs.opera.com/wizard/)
If everything seems to work otherwise, it's tempting to guess that the
security policy is denying access. You could try (temporarily)
allowing everything, just to see if that is the problem. On linux the
security policy is in /usr/share/opera/java/opera.policy. I don't
know where to find it on windows.
eirik
|
| Post Reply
|
|
|
|
|
|
|
|
|
|