Hello Ismael,

No, I haven't yet had the time to develop applets with OCF 1.2.
As I am no longer part of the OCF development team at IBM,
it is also unlikely that I will find the time for it in the near future.
However, I have been heavily involved in designing and
implementing the changes from OCF 1.1.1 to OCF 1.2. I have
checked the source code and verified that the method that is
reported as missing is indeed implemented. The fact that
your standalone application is working also proves that
the method is available in the OCF 1.2 package you are
using.

The problem of missing methods that show up at runtime
is typical for version mismatches. If both, OCF 1.1.1 and
OCF 1.2, are in the classpath, the Java runtime may load
OCF 1.1.x to resolve references to classes defined there,
such as opencard.core.service.SmartCard and
opencard.core.terminal.CardTerminalRegistry. When the
runtime encounters references to classes not defined by
OCF 1.1.1, such as opencard.core.event.EventGenerator,
it will then use OCF 1.2 to resolve these.
If the class CardTerminalRegistry is already loaded from
the 1.1.1 archive at that time, the runtime does not try to load
the new version. Instead, it tries to resolve references
using the old one. Methods not defined there, such as the
newly introduced "setObserver", will result in an error
being thrown: java.lang.NoSuchMethodError, which is
exactly what you got.

As you say, you have been developing applets for OCF 1.1.1
using the Java plug-in. So it may well be that when installing
OCF 1.2, you did not remove the OCF 1.1.1 packages from
the plug-in's classpath (or installation directory, I don't know
how the Java plug-in is configured), but simply added OCF 1.2,
resulting in the behavior explained above.

regards,
  Roland Weber ([EMAIL PROTECTED])




---
> Visit the OpenCard web site at http://www.opencard.org/ for more
> information on OpenCard---binaries, source code, documents.
> This list is being archived at http://www.opencard.org/archive/opencard/

! To unsubscribe from the [EMAIL PROTECTED] mailing list send an email
! to
!                           [EMAIL PROTECTED]
! containing the word
!                           unsubscribe 
! in the body.

Reply via email to