RE: [ACFUG Discuss] CF 7 java Object Instantiation Exception. Perhaps init issue here?
Ajas, it seems your use of the init is fine. It's just that if you want to call the constructor, you have to use init (and you can't have a real method of that name within the java class). You pass whatever arguments you want to call the appropriate constructor, and it should just work (whether you use CFOBJECT or createobject to create the instance). It's just that if you do NOT use init, then CF will otherwise call the default constructor when the first method is executed (which may seem odd, if one thinks that it's CFOBJECT or createobject that "actually creates the instance".) As for your challenge, I wonder if there's more info available from the error than you're showing (or being given). Is this error message coming from error handling (cftry, cferror, onerror, etc)? If so, are you outputting all the available details? There are all kinds of things that could cause an "Object Instantiation Exception". For instance, if you named a class that didn't exist, you would get this: "An exception occurred when instantiating a Java object. The class must not be an interface or an abstract class." I'll add that if you gave an invalid argument type for the constructor, that would get a different error, as would passing in arguments that don't match any constructor. If anyone ever wants to learn more about calling Java within CFML (which was in fact the first talk I ever gave to the ACFUG, back in Oct 2001), you can find more in the CF docs (I nthe Developer's Guide), such as the section starting here in the CF8 docs: http://livedocs.adobe.com/coldfusion/8/htmldocs/Java_7.html Ajas, let us know if any of the above helps. /charlie From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Ajas Mohammed Sent: Monday, April 13, 2009 2:46 PM To: discussion@acfug.org Subject: [ACFUG Discuss] CF 7 java Object Instantiation Exception. Perhaps init issue here? Hi there, I am getting an error(code in red) Object Instantiation Exception. I believe it has to do with init call because i remember CF's init is different from Java's style of callling constructors. Can anybody recommend an alternative ? FYI, if i remove code in red till the end and I do print values of other variables like docElement and SignatureSpecNS, then I can see there values. If you need any further information, let me know. xmlResponse= tokenXML; // this is full xml stored in variable here docElement= XmlParse(variables.xmlResponse).getDocumentElement(); SignatureConstants=CreateObject("Java", "org.apache.xml.security.utils.Constants"); SignatureSpecNS=SignatureConstants.SignatureSpecNS; xmlSignatureClass = CreateObject("Java","org.apache.xml.security.signature.XMLSignature"); xmlSignature = xmlSignatureClass.init(docElement.getElementsByTagNameNS(SignatureSpecNS,"Si gnature").item(0),""); // this lines gives error. see details below //Exceptions 13:00:53.053 - Object Exception - in line 85Object Instantiation Exception. keyInfo=xmlSignature.getKeyInfo(); X509CertificateResolverCN = CreateObject("Java","org.apache.xml.security.keys.keyresolver.implementation s.X509CertificateResolverClass"); keyResolver=CreateObject("Java",X509CertificateResolverCN).init(); keyInfo.registerInternalKeyResolver(keyResolver); x509cert = keyInfo.getX509Certificate(); Thanks http://ajashadi.blogspot.com We cannot become what we need to be, remaining what we are. No matter what, find a way. Because thats what winners do. You can't improve what you don't measure. Quality is never an accident; it is always the result of high intention, sincere effort, intelligent direction and skillful execution; it represents the wise choice of many alternatives. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
RE: [ACFUG Discuss] Update graph without refresh
Seth, I saw the other replies to your question. One thing that wasn’t asked: do you want the refreshes to be only when the data changes? Or are you ok with the suggestions to refresh the client at a regular interval instead? /charlie From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Tepfer, Seth Sent: Thursday, April 09, 2009 8:05 PM To: discussion@acfug.org Subject: [ACFUG Discuss] Update graph without refresh I’m new to AJAX and CF8. I’ve got a graph that is monitoring a small set of data (0-60 rows). I want to have a graph that automatically updates – without using constant refreshes. Is this possible? I assume AJAX is how I’d do this. If this answer is out there tell me what search terms to use! Thanks Please direct ALL IT questions to the AskIT form found at: http://oxford.emory.edu/audiences/faculty_and_staff/ Seth Tepfer 770-784-8487 seth.tep...@emory.edu Director of Administrative Computing, Oxford College _ This e-mail message (including any attachments) is for the sole use of the intended recipient(s) and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this message (including any attachments) is strictly prohibited. If you have received this message in error, please contact the sender by reply e-mail message and destroy all copies of the original message (including attachments). n뎋欲y蚘bXfjꩮ╦몚Ìqhvi - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
RE: [ACFUG Discuss] Update graph without refresh
Just to be clear: Outlook can certainly be set so that outgoing messages are in plain text (versus HTML) format, either on a per message basis or globally. Anyway, I don't know that that's what was happening with Seth's message, at least as it appeared in Teddy's reply. That looked more like an encoding issue. Indeed, since Teddy was able to reply to his note, it would seem he could read it fine. Is anyone unable to read Seth's note? Seth, what prompted you to bring that up? /charlie -Original Message- From: ad...@acfug.org [mailto:ad...@acfug.org] On Behalf Of Forrest C. Gilmore Sent: Saturday, April 11, 2009 5:56 PM To: discussion@acfug.org Subject: Re: [ACFUG Discuss] Update graph without refresh One way to get around the issues with Outlook is to use Thunderbird for email. It always lets you just use plain text if you don't need HTML formatting for your message. Of course, if you use other features of Outlook besides email and contacts, this is not a viable option. Forrest C. Gilmore == Tepfer, Seth wrote: > Thanks Brooks - good idea. > > From: ad...@acfug.org [mailto:ad...@acfug.org] > On Behalf Of brooks.wil...@atl.frb.org > >> Why not put the graph in an Iframe and then use javascript to refresh >> it every so many seconds on a timer? You would set a timer - when >> it expired do a window.location=blah.cfm and reset the timer. >> > > To Teddy and all - I'm sorry my Outlook client keeps making it difficult for folks to read my posting. > Here's the posting again: > > --- > I'm new to AJAX and CF8. I've got a graph that is monitoring a small set of data (0-60 rows). I want to have a graph that automatically updates - without using constant refreshes. Is this possible? I assume AJAX is how I'd do this. If AJAX - how would I do it in AJAX > > If this answer is out there tell me what search terms to use! > Thanks > --- > > > > This e-mail message (including any attachments) is for the sole use of > the intended recipient(s) and may contain confidential and privileged > information. If the reader of this message is not the intended > recipient, you are hereby notified that any dissemination, distribution > or copying of this message (including any attachments) is strictly > prohibited. > > If you have received this message in error, please contact > the sender by reply e-mail message and destroy all copies of the > original message (including attachments). > > > - > To unsubscribe from this list, manage your profile @ > http://www.acfug.org?fa=gin.edituserform > > For more info, see http://www.acfug.org/mailinglists > Archive @ http://www.mail-archive.com/discussion%40acfug.org/ > List hosted by http://www.fusionlink.com > - > > > > > > - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com - - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -
[ACFUG Discuss] TOMORROW: CFUnited Express in Atlanta, all day. Great content, giveaways, and more, at discount price
If you haven't heard, tomorrow in Atlanta is the all-day CFUnited Express event, a sort of mini-preview of the multiday conference in DC in August. It's a great deal, really, not only for the great day full of CF and Flex/AIR content. First, the speaker lineup starts with the ColdFusion Jedi himself, Ray Camden. Beyond that, several past ACFUG speakers will be presenting on topics not presented at ACFUG before: Doug Knudsen, John Mason, Andy Powell, and myself (Charlie Arehart). You can see their topic titles and descriptions here: http://express.cfunited.com/go/atlanta/2009/schedule Second, there will also be giveaways including a free copy of Flex, ColdFusion, a free ticket to CFUnited, and more. All this for just $149 (use code CFXEB2 to get this early bird price, even at the door). Pre-registration if preferred, of course, to help them plan for coffee/donut, lunch/sodas, and snacks/beverages. Do that, or get more info, at http://express.cfunited.com/go/atlanta/2009. Third, note that 100% of your Express event payment can be applied towards your attendance at CFUnited 2009 (http://cfunited.com/). For still other reasons to attend, see the "top 10 reasons" at http://express.cfunited.com/. If you have any last minute questions not answered on the resources above, you can also call the organizer, Liz Frederick, at 410-963-9418. Finally, for more about the venue, Roundbox Global (across the street from the Kind Plow Arts Center), including parking information, see: http://cfunited.com/blog/index.cfm/2009/4/13/Atlanta-Venue--great-place-to-m eet Pardon my sending this to the discussion list rather than the community list, but I figured it's technical content. Hope to see you there. /charlie Ps if you know anyone in the New York City area, there will be an even there also next week, April 20. More at http://express.cfunited.com/go/newyork/2009/. - To unsubscribe from this list, manage your profile @ http://www.acfug.org?fa=login.edituserform For more info, see http://www.acfug.org/mailinglists Archive @ http://www.mail-archive.com/discussion%40acfug.org/ List hosted by http://www.fusionlink.com -