Plugin bug??

2000-07-12 Thread Jaime Vallori Amoros

Hi,

I send this e-mail, because I'm not sure if it's a Java Plugin1.2.2 bug
or if I'm doing something wrong.
I'm working in a system which has a Java Interface accesed via HTTPS.
The Java Plugin does not support https itself. So when I try to go into
the web page,
the Plugin and the Navigator crash together.
I downloaded the jsse1.0.1 extension which is supposed to support https.
Following the README instructions I copied the jsse.jar,  jcert.jar, and
jnet.jar in /.netscape/java/lib/ext directory.

Then I restarted the javaPlugin and added the
-Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol to
the java params. So now my /.java/properties file looks like:

   # Propiedades módulo Java(TM)
   # DO NOT EDIT THIS FILE.  It is machine generated.
   # Use the Activator Control Panel to edit properties.
   #
   #Wed Jul 12 08:20:20 GMT+02:00 2000
   javaplugin.debug.mode=false
   javaplugin.proxy.forallprotocols=false
   javaplugin.version=1.1

javaplugin.jre.params=-Djava.protocol.handler.pkgs\=com.sun.net.ssl.internal.www.protocol

   javaplugin.jar.cache.size=100
   javaplugin.jre.path=/home/jaime/.netscape/java
   javaplugin.console=true
   javaplugin.enabled=true
   javaplugin.proxy.usebrowsersettings=false
   javaplugin.proxy.settings=https\=madeleine\:8002
   appletviewer.security.mode=host

But when I try to acces the https page both, the Plugin and the
Navigator crash!! The plugin_stack.trace contains the following text:

  java.net.MalformedURLException: unknown protocol: https
at sun.plugin.navig.motif.Plugin.doit(Plugin.java, Compiled
Code)
at sun.plugin.navig.motif.Plugin.start(Plugin.java, Compiled
Code)

Could it be a bug or am I doing something wrong?? If anybodie needs any
additional information about it, just let me know.(But don't expect a
wide knowledge about java, I'm steel a newbie!!)



begin:vcard 
n:Vallori Amorós;Jaime
tel;work:91 744 43 10
x-mozilla-html:TRUE
org:Grupo Apex S.A.
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
x-mozilla-cpt:;-27872
fn:Jaime Vallori Amorós
end:vcard



Re: yield stopping threads????

2000-07-12 Thread Bruno Boettcher

> I understand that your program is huge and very difficult to trim down
> to a one page program that still exhibits the behaviour you are
> encountering, but if you could do that, it would be much more possible
> to find out the cause.
i will try that

> This is impossible.  If a thread T calls a method M, M is run in T, no
> matter which object or class M belongs to.  Unless M is or leads to a
> notify(), there is no way M wakes up any other thread.  Even when M
> leads to a notify(), the waken thread will just resume what it has
> been doing; M is still run by T, not the waken thread.
> 
> Thus, if by "dummy method" you really mean it, it cannot wake up any
> thread, period.
then strange enough that it works :D
computation is made by methods (which may contain yields) called through a
select in the run-method of each thread, after computation the thread is
blocked by a self-build semaphor.  Each thread has a wake method, which sets
the desired computation and send a notify to unblock the semaphor. The dummy
method contains only a return, nothing more.

> What I think really happened is that your timer thread T is doing all
> the work, giving you the impression that the program is making
> progress, while all other threads are still blocked and not waken.
but that's not what the debugger reports when using the timer, and hitting
threads, at any time is see different threads alive, without the timer, all
threads are asleep after a while.

so this seems very strange

-- 
ciao bboett
==
[EMAIL PROTECTED]
http://inforezo.u-strasbg.fr/~bboett http://erm1.u-strasbg.fr/~bboett
===
the total amount of intelligence on earth is constant.
human population is growing


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Printing and fonts revisited

2000-07-12 Thread Rick Kwan

Hello all.  This is my first post to this list.

I'm working with the Graphics2D class of JavaSoft Java 1.2 to print
a very small file.  When I examine the PostScript code, I don't see
anything like "(hello) show" in the code.  Instead, I see lots of
PostScript operators drawing the outline of each character.

In desperation, I extended Graphics2D and implemented drawString()
myself.  (Never extended an abstract class before.  That was
an experience!  Still have a lot of stubs in places.)  I now get
reasonable results and the small PostScript file that I want.

I delayed doing this for the longest time possible because it
really felt unnecessary (certainly for English).  I finally bit the
bullet because I'm really doing this for Asian CID fonts loaded in
a PostScript Level 3 printer.

But I'd still like to know if my subclassing Graphics2D was the
wrong approach.  (Someone pointed me at PrintStream in awt.motif
in the Solaris version, but I couldn't find it documented.)

System specifics:
Java version "1.2.2"
Classic VM (build 1.2.2-L, green threads, nojit)

Oh yeah...  The previous post to this list which comes closest to
describing what I'm seeing was from Klas Nordberg <[EMAIL PROTECTED]>,
on 09 Feb 2000, subject "Printing and fonts".  He was using RC4 of
Blackdown's JDK.  However, I don't see any response to his questions.

--Rick Kwan, Lightsaber Computing
  [EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]