Re: [Model-Glue] Newbie here, getting "Unsupported Operation" error

341 views
Skip to first unread message

Dan Skaggs

unread,
Apr 9, 2013, 11:55:46 PM4/9/13
to model...@googlegroups.com
Unfortunately, the "Unsupported Operation" doesn't give us much information to work with. Do you get an actual ColdFusion exception output to the screen? If so, can you reply with the entire error (you may need to enable "Robust Exception Information" on the Debugging Settings Page of the ColdFusion administrator)?
 
You should also do a quick test to see if you can successfully browse to one of the images used by the PlantOMatic application (thus testing to see if you have things in the correct spots under your web root). Try browsing to http://localhost/PlantOMatic/www/img/success.png and see if it shows up in the browser. If not, double check that you have all the files in the correct locations according to the instructions on the wiki page you mentioned.
 
Reply back with what you find.
 
Dan
 
------ Original Message ------
Sent: 4/9/2013 10:37:51 PM
Subject: [Model-Glue] Newbie here, getting "Unsupported Operation" error
Hello people. I'm new to Model Glue and I feel a bit lost.
I have followed the tutorial found at https://github.com/modelglue/modelglue-framework/wiki/Section-1 and downloaded and installed as described.
However, after I run the test in step 6, I get the following error:


Could not find the included template /ModelGlue/gesture/ModelGlue.cfm.


When I follow the steps described in the "If you have errors at this point" section, clicking in the links, I get the "Unsupported operation" error.

I have checked that everything is setup the way the tutorial describes it, but not luck.

Has anyone had the same problem? Can someone give me some hints please?

Thank you!

--
--
Model-Glue Sites:
Home Page: http://www.model-glue.com
Documentation: http://docs.model-glue.com
Bug Tracker: http://bugs.model-glue.com
Blog: http://www.model-glue.com/blog
 
You received this message because you are subscribed to the Google
Groups "model-glue" group.
To post to this group, send email to model...@googlegroups.com
To unsubscribe from this group, send email to
model-glue+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/model-glue?hl=en
---
You received this message because you are subscribed to the Google Groups "model-glue" group.
To unsubscribe from this group and stop receiving emails from it, send an email to model-glue+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Xeondxb

unread,
Apr 11, 2013, 2:30:05 AM4/11/13
to model...@googlegroups.com

Hi guys,

 

Can some tell me what error is it where should I go and dig? What I’m missing ???

 

Regards,

MA

error.html

Xeondxb

unread,
Apr 11, 2013, 2:33:51 AM4/11/13
to Xeondxb, model...@googlegroups.com

here is full zip file and error

 

From: Xeondxb [mailto:xeo...@gmail.com]
Sent: Thursday, April 11, 2013 10:30 AM
To: 'model...@googlegroups.com'
Subject: RE: [Model-Glue] Newbie here, getting "Unsupported Operation" error

 

Hi guys,

 

Can some tell me what error is it where should I go and dig? What I’m missing ???

 

Regards,

MA

 

 

From: model...@googlegroups.com [mailto:model...@googlegroups.com] On Behalf Of Dan Skaggs


Sent: Wednesday, April 10, 2013 7:56 AM
To: model...@googlegroups.com

buster.zip
error.html

Dan Wilson

unread,
Apr 11, 2013, 9:55:58 AM4/11/13
to model...@googlegroups.com
Thanks for sending the details.

If you look at the error message it says "Element MYNAMES is undefined in a Java object of type class [Ljava.lang.String;.  C:\Inetpub\wwwroot\buster\controller\GetMyNamesController.cfc (35) "

This almost always means you tried to get something out of the event and use it like a component or another complex value, but the thing wasn't set in the scope you reference for some reason.


Now, specifically what you did is this:

You added in this line to the GetMyNamesController:

<cfset event.setValue("mynames",beans.mynames.getmynames())/>


However, you didn't add the object to the beans scope for that controller:


<cfcomponent output="false" hint="I am a Model-Glue controller." beans="Users" extends="ModelGlue.gesture.controller.Controller">

So, you need to change the beans attribute of your Controller to have the object you want to pull out:


<cfcomponent output="false" hint="I am a Model-Glue controller." beans="mynames,Users" extends="ModelGlue.gesture.controller.Controller">


If you configured the object correctly in your ColdSpring.xml, your code will work.


DW


Thursday, April 11, 2013 2:33 AM

here is full zip file and error

 

From: Xeondxb [mailto:xeo...@gmail.com]
Sent: Thursday, April 11, 2013 10:30 AM
To: 'model...@googlegroups.com'
Subject: RE: [Model-Glue] Newbie here, getting "Unsupported Operation" error

 

Hi guys,

 

Can some tell me what error is it where should I go and dig? What I’m missing ???

 

Regards,

MA

 

 

From: model...@googlegroups.com [mailto:model...@googlegroups.com] On Behalf Of Dan Skaggs
Sent: Wednesday, April 10, 2013 7:56 AM
To: model...@googlegroups.com
Subject: Re: [Model-Glue] Newbie here, getting "Unsupported Operation" error

 

Unfortunately, the "Unsupported Operation" doesn't give us much information to work with. Do you get an actual ColdFusion exception output to the screen? If so, can you reply with the entire error (you may need to enable "Robust Exception Information" on the Debugging Settings Page of the ColdFusion administrator)?

 

You should also do a quick test to see if you can successfully browse to one of the images used by the PlantOMatic application (thus testing to see if you have things in the correct spots under your web root). Try browsing to http://localhost/PlantOMatic/www/img/success.png and see if it shows up in the browser. If not, double check that you have all the files in the correct locations according to the instructions on the wiki page you mentioned.

 

Reply back with what you find.

 

Dan

 

------ Original Message ------

Sent: 4/9/2013 10:37:51 PM

Subject: [Model-Glue] Newbie here, getting "Unsupported Operation" error

--

Tuesday, April 09, 2013 11:55 PM
Tuesday, April 09, 2013 11:37 PM

Xeondxb

unread,
Apr 14, 2013, 1:32:47 AM4/14/13
to model...@googlegroups.com

hi,

 

I changed as you said now that error gone new came :)

 

<cfcomponent output="false" hint="I am a Model-Glue controller." beans="mynames,Users" extends="ModelGlue.gesture.controller.Controller">

 

                <cffunction name="init" access="public" output="false" hint="Constructor">

                                <cfreturn this />

                </cffunction>

 

 

Error:

 

The web site you are accessing has experienced an unexpected error.

Please contact the website administrator.

 

The following information is meant for the website developer for debugging purposes.

Error Occurred While Processing Request

Bean creation exception during init() of buster.model.mynames

The value returned from the init function is not of type Users.:If the component name is specified as a return type, it is possible that either a definition file for the component cannot be found or is not accessible.

 

Resources:

 

    Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging & Logging > Debug Output Settings, and select the Robust Exception Information option.

    Check the ColdFusion documentation to verify that you are using the correct syntax.

    Search the Knowledge Base to find a solution to your problem.

 

Browser               Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0

Remote Address              10.0.0.79

Referrer              

Date/Time          14-Apr-13 09:27 AM

 

Regards,

M.A

image001.jpg
image002.jpg

Xeondxb

unread,
Apr 14, 2013, 3:22:43 AM4/14/13
to Xeondxb, model...@googlegroups.com

now working thanks guys

 

From: Xeondxb [mailto:xeo...@gmail.com]

Sent: Sunday, April 14, 2013 9:33 AM
To: 'model...@googlegroups.com'

Subject: RE: [Model-Glue] Newbie here, getting Error

 

hi,

 

I changed as you said now that error gone new came :)

 

<cfcomponent output="false" hint="I am a Model-Glue controller." beans="mynames,Users" extends="ModelGlue.gesture.controller.Controller">

 

                <cffunction name="init" access="public" output="false" hint="Constructor">

                                <cfreturn this />

                </cffunction>

 

 

Error:

 

The web site you are accessing has experienced an unexpected error.

Please contact the website administrator.

 

The following information is meant for the website developer for debugging purposes.

Error Occurred While Processing Request

Bean creation exception during init() of buster.model.mynames

The value returned from the init function is not of type Users.:If the component name is specified as a return type, it is possible that either a definition file for the component cannot be found or is not accessible.

 

Resources:

 

    Enable Robust Exception Information to provide greater detail about the source of errors. In the Administrator, click Debugging & Logging > Debug Output Settings, and select the Robust Exception Information option.

    Check the ColdFusion documentation to verify that you are using the correct syntax.

    Search the Knowledge Base to find a solution to your problem.

 

Browser               Mozilla/5.0 (Windows NT 6.1; WOW64; rv:20.0) Gecko/20100101 Firefox/20.0

Remote Address              10.0.0.79

Referrer              

Date/Time          14-Apr-13 09:27 AM

 

Regards,

M.A

 

image001.jpg
image002.jpg

Xeondxb

unread,
Apr 14, 2013, 4:17:48 AM4/14/13
to model...@googlegroups.com
Hi guys,



How can I send querystring values ???



Regards,

M.A



From: Xeondxb [mailto:xeo...@gmail.com]
Sent: Sunday, April 14, 2013 11:23 AM
To: 'Xeondxb'; model...@googlegroups.com
Subject: RE: [Model-Glue] Newbie here, getting Error



now working thanks guys



From: Xeondxb [mailto:xeo...@gmail.com]
Sent: Sunday, April 14, 2013 9:33 AM
To: 'model...@googlegroups.com'
Subject: RE: [Model-Glue] Newbie here, getting Error



hi,



I changed as you said now that error gone new came :)



<cfcomponent output="false" hint="I am a Model-Glue controller."
beans="mynames,Users" extends="ModelGlue.gesture.controller.Controller">



<mailto:xeo...@gmail.com> Xeondxb
<mailto:dan.s...@web-meister.com> Dan Skaggs
<mailto:danis...@gmail.com> danis...@gmail.com
image001.jpg
image002.jpg

Dan Skaggs

unread,
Apr 14, 2013, 10:24:38 PM4/14/13
to model...@googlegroups.com
Can you be a little more specific in what you're asking?

Xeondxb

unread,
Apr 15, 2013, 3:53:14 AM4/15/13
to Xeondxb, model...@googlegroups.com
Hi guys,



I was wondering if someone can answer me, I was trying to grab values from
controller and controller talking with model how can I invoke method in
index file??



M.A



From: Xeondxb [mailto:xeo...@gmail.com]
Sent: Sunday, April 14, 2013 12:18 PM
To: 'model...@googlegroups.com'
Subject: RE: [Model-Glue] Newbie here, getting Error
Importance: High



Hi guys,



How can I send querystring values ???



Regards,

M.A



From: Xeondxb [mailto:xeo...@gmail.com]
Sent: Sunday, April 14, 2013 11:23 AM
To: 'Xeondxb'; model...@googlegroups.com
Subject: RE: [Model-Glue] Newbie here, getting Error



now working thanks guys



From: Xeondxb [mailto:xeo...@gmail.com]
Sent: Sunday, April 14, 2013 9:33 AM
To: 'model...@googlegroups.com'
Subject: RE: [Model-Glue] Newbie here, getting Error



hi,



I changed as you said now that error gone new came :)



<cfcomponent output="false" hint="I am a Model-Glue controller."
beans="mynames,Users" extends="ModelGlue.gesture.controller.Controller">



<mailto:xeo...@gmail.com> Xeondxb
<mailto:dan.s...@web-meister.com> Dan Skaggs
<mailto:danis...@gmail.com> danis...@gmail.com
image001.jpg
image002.jpg

Dan Wilson

unread,
Apr 15, 2013, 7:36:45 AM4/15/13
to model...@googlegroups.com
I'm not very clear on what you mean about invoking method in index file. There shouldn't be any methods in your index file.

  • .cfm files are for displaying HTML
  • .cfc files are for your methods and other business logic.

If you go through the training course, especially section 3, it'll be straightforward how you do this:

https://github.com/modelglue/modelglue-framework/wiki/Section-3

Once you successfully complete the above tasks, run your application and click the home navigation element. You should see a screen load with the title of Saved Shipments (see figure below). You may interact with this screen, pressing Edit, Print, Display and the other links in the User Interface. All of them will work, except for New Item. We'll cover New Item in a future section.

If you want to refine your question and paste some code on Pastebin for me to look at, that might help me understand better what you are trying to do.


DW


Monday, April 15, 2013 3:53 AM
Thursday, April 11, 2013 9:55 AM
Thanks for sending the details.

If you look at the error message it says "Element MYNAMES is undefined in a Java object of type class [Ljava.lang.String;.  C:\Inetpub\wwwroot\buster\controller\GetMyNamesController.cfc (35) "

This almost always means you tried to get something out of the event and use it like a component or another complex value, but the thing wasn't set in the scope you reference for some reason.


Now, specifically what you did is this:

You added in this line to the GetMyNamesController:

<cfset event.setValue("mynames",beans.mynames.getmynames())/>


However, you didn't add the object to the beans scope for that controller:


<cfcomponent output="false" hint="I am a Model-Glue controller." beans="Users" extends="ModelGlue.gesture.controller.Controller">

So, you need to change the beans attribute of your Controller to have the object you want to pull out:


<cfcomponent output="false" hint="I am a Model-Glue controller." beans="mynames,Users" extends="ModelGlue.gesture.controller.Controller">


If you configured the object correctly in your ColdSpring.xml, your code will work.


DW


Reply all
Reply to author
Forward
0 new messages