• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NOT SOLVED] Re: Are Applets still valid solutions ...


  • Subject: Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
  • From: Christian Brunschen <email@hidden>
  • Date: Tue, 11 Jan 2005 10:24:31 +0000


On 11 Jan 2005, at 10:01, Erwin wrote:

Actually it doesn't run well.... : I don't know where to place the .jar and .class files neither how to define the bindings...

I need to get an HTML output like :

<APPLET archive=ptviewr.jar code=ptviewer.class width=320 height=200>
<PARAM name=file value=".... a dynamic file path"
</APPLET>

this WOApplet is defined in a ResultPage (resulting from a long request image conversion)
I defined the .wod like that

PtviewerAppplet: WOApplet {
code = "ptviewer.class";
file = convertedFilePath;
height = 200;
width = 300;
archiveNames = ptviewer.jar;

You probably want to put quotes around 'ptviewer.jar', since that is a file name to use literally,, not a key path for WebObjects to look up:

archiveNames = "ptviewer.jar";

}

When I run the app, I got an error (I believe when loading the WOApplet component...)

[2005-01-11 10:53:12 CET] <WorkerThread8> <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [<ResultPage name: ResultPage subcomponents: null > valueForKey()]: lookup of unknown key: 'ptviewer'.
This WOComponent does not have an instance variable of the name ptviewer or _ptviewer, nor a method of the name ptviewer, _ptviewer, getPtviewer, or _getPtviewer
[2005-01-11 10:53:12 CET] <WorkerThread8> com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: [<ResultPage name: ResultPage subcomponents: null > valueForKey()]: lookup of unknown key: 'ptviewer'.
This WOComponent does not have an instance variable of the name ptviewer or _ptviewer, nor a method of the name ptviewer, _ptviewer, getPtviewer, or _getPtviewer
at com.webobjects.appserver.WOComponent.handleQueryWithUnboundKey(WOComponent.java:1566)
at com.webobjects.foundation.NSKeyValueCoding$Utility.handleQueryWithUnboundKey(NSKeyValueCoding.java:544)

Yep, WebObjects is trying to resolve the key path 'ptviewer.jar', but since 'ptviewer' is not a key that exists in your WOComponent, it gets that exception.

Best wishes,

// Christian Brunschen
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Are Applets still valid solutions ... (From: Colin Clark <email@hidden>)
 >[SOLVED] Re: Are Applets still valid solutions ... (From: Erwin <email@hidden>)
 >Re: [NOT SOLVED] Re: Are Applets still valid solutions ... (From: Erwin <email@hidden>)

  • Prev by Date: Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
  • Next by Date: lookup of unknown key: '_keys'. in w2k
  • Previous by thread: Re: [NOT SOLVED] Re: Are Applets still valid solutions ...
  • Next by thread: WO Help Aceh project
  • Index(es):
    • Date
    • Thread