Hi All,
I am following Apache Ofbiz Development.I am on the 2nd chapter of the book where an application called learning is developed .I have completed what is mentioned in the book till page 58 and when I ran the application I got the following error while updating the Postal Address of the party: org.ofbiz.webapp.control.RequestHandlerException: Illegal response; handler could not process [null]. Please guys help me out as I am stuck and cant move forward with the book.Thanks. Regards, Hammad Ali Khan Afridi Mobile 0044 7534171187 MSN [hidden email] Yahoo! [hidden email] |
Pls check 'ERRATA' at publisher website for page 57 - Charles TJ -----Original Message----- From: Hammad Afridi [mailto:[hidden email]] Sent: 10 Desember 2009 23:39 To: [hidden email] Subject: [?? Probable Spam] Getting error please help Hi All, I am following Apache Ofbiz Development.I am on the 2nd chapter of the book where an application called learning is developed .I have completed what is mentioned in the book till page 58 and when I ran the application I got the following error while updating the Postal Address of the party: org.ofbiz.webapp.control.RequestHandlerException: Illegal response; handler could not process [null]. Please guys help me out as I am stuck and cant move forward with the book.Thanks. Regards, Hammad Ali Khan Afridi Mobile 0044 7534171187 MSN [hidden email] Yahoo! [hidden email] |
Thanks for your email.I have checked the errata.I have changed the content of the extended.xml file according to ERRATA but I am still confused.Please can you provide contents for the extended.xml.Following is the content of the extended.xml file I am using :
<?xml version="1.0" encoding="UTF-8" ?> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd"> <handler name="bsf" type="request" class="org.ofbiz.webapp.event.BsfEventHandler" /> <handler name="java" type="request" class="org.ofbiz.webapp.event.JavaEventHandler" /> <request-map uri="PostalAddressAdvisory"> <security https="true" auth="true" /> <event type="java" path="org.ofbiz.learning.learning.LearningEvents" invoke="postalAddressAdvisory.bsh"/> <response name="isMars" type="view" value="PostalAddressAdvisory"/> <response name="notMars" type="view" value="editcontactmech" /> </request-map> <view-map name="PostalAddressAdvisory" type="screen" page="component://learning/widget/partymgr/OurPartyScreens.xml#PostalAddressAdvisory" /> </site-conf> Regards, Hammad Ali Khan Afridi Mobile 0044 7534171187 MSN [hidden email] Yahoo! [hidden email] --- On Thu, 12/10/09, Charles TJ - SELC Sales Div <[hidden email]> wrote: > From: Charles TJ - SELC Sales Div <[hidden email]> > Subject: RE: Getting error please help > To: [hidden email] > Date: Thursday, December 10, 2009, 10:07 PM > > Pls check 'ERRATA' at publisher website for page 57 > > - Charles TJ > > > -----Original Message----- > From: Hammad Afridi [mailto:[hidden email]] > Sent: 10 Desember 2009 23:39 > To: [hidden email] > Subject: [?? Probable Spam] Getting error please help > > > Hi All, > I am following Apache Ofbiz Development.I am on the 2nd > chapter of the book > where an application called learning is developed .I have > completed what is > mentioned in the book till page 58 and when I ran the > application I got the > following error while updating the Postal Address of the > party: > > org.ofbiz.webapp.control.RequestHandlerException: Illegal > response; handler > could not process [null]. > > Please guys help me out as I am stuck and cant move forward > with the > book.Thanks. > > Regards, > Hammad Ali Khan Afridi > Mobile 0044 7534171187 > MSN [hidden email] > Yahoo! [hidden email] > > > > > |
Hi Hammad, Try this for your <event>: <event type="bsf" invoke="org/ofbiz/party/party/postalAddressAdvisory.bsh"/> - Charles TJ ========= -----Original Message----- From: Hammad Afridi [mailto:[hidden email]] Sent: 11 Desember 2009 0:21 To: [hidden email] Subject: RE: Getting error please help Thanks for your email.I have checked the errata.I have changed the content of the extended.xml file according to ERRATA but I am still confused.Please can you provide contents for the extended.xml.Following is the content of the extended.xml file I am using : <?xml version="1.0" encoding="UTF-8" ?> <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd"> <handler name="bsf" type="request" class="org.ofbiz.webapp.event.BsfEventHandler" /> <handler name="java" type="request" class="org.ofbiz.webapp.event.JavaEventHandler" /> <request-map uri="PostalAddressAdvisory"> <security https="true" auth="true" /> <event type="java" path="org.ofbiz.learning.learning.LearningEvents" invoke="postalAddressAdvisory.bsh"/> <response name="isMars" type="view" value="PostalAddressAdvisory"/> <response name="notMars" type="view" value="editcontactmech" /> </request-map> <view-map name="PostalAddressAdvisory" type="screen" page="component://learning/widget/partymgr/OurPartyScreens.xml#PostalAddres sAdvisory" /> </site-conf> Regards, Hammad Ali Khan Afridi Mobile 0044 7534171187 MSN [hidden email] Yahoo! [hidden email] --- On Thu, 12/10/09, Charles TJ - SELC Sales Div <[hidden email]> wrote: > From: Charles TJ - SELC Sales Div <[hidden email]> > Subject: RE: Getting error please help > To: [hidden email] > Date: Thursday, December 10, 2009, 10:07 PM > > Pls check 'ERRATA' at publisher website for page 57 > > - Charles TJ > > > -----Original Message----- > From: Hammad Afridi [mailto:[hidden email]] > Sent: 10 Desember 2009 23:39 > To: [hidden email] > Subject: [?? Probable Spam] Getting error please help > > > Hi All, > I am following Apache Ofbiz Development.I am on the 2nd > chapter of the book > where an application called learning is developed .I have > completed what is > mentioned in the book till page 58 and when I ran the > application I got the > following error while updating the Postal Address of the > party: > > org.ofbiz.webapp.control.RequestHandlerException: Illegal > response; handler > could not process [null]. > > Please guys help me out as I am stuck and cant move forward > with the > book.Thanks. > > Regards, > Hammad Ali Khan Afridi > Mobile 0044 7534171187 > MSN [hidden email] > Yahoo! [hidden email] > > > > > |
Not working :(
Regards, Hammad Ali Khan Afridi Mobile 0044 7534171187 MSN [hidden email] Yahoo! [hidden email] --- On Thu, 12/10/09, Charles TJ - SELC Sales Div <[hidden email]> wrote: > From: Charles TJ - SELC Sales Div <[hidden email]> > Subject: RE: Getting error please help > To: [hidden email] > Date: Thursday, December 10, 2009, 10:42 PM > > Hi Hammad, > > Try this for your <event>: > > <event type="bsf" > invoke="org/ofbiz/party/party/postalAddressAdvisory.bsh"/> > > > - Charles TJ > > ========= > > > -----Original Message----- > From: Hammad Afridi [mailto:[hidden email]] > Sent: 11 Desember 2009 0:21 > To: [hidden email] > Subject: RE: Getting error please help > > > Thanks for your email.I have checked the errata.I have > changed the content > of the extended.xml file according to ERRATA but I am still > confused.Please > can you provide contents for the extended.xml.Following is > the content of > the extended.xml file I am using : > > <?xml version="1.0" encoding="UTF-8" ?> > > <site-conf xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/site-conf.xsd"> > > <handler name="bsf" type="request" > class="org.ofbiz.webapp.event.BsfEventHandler" /> > <handler > name="java" > type="request" > class="org.ofbiz.webapp.event.JavaEventHandler" /> > > <request-map > uri="PostalAddressAdvisory"> > > <security > https="true" auth="true" /> > <event type="java" > path="org.ofbiz.learning.learning.LearningEvents" > invoke="postalAddressAdvisory.bsh"/> > <response > name="isMars" type="view" > value="PostalAddressAdvisory"/> > <response > name="notMars" type="view" value="editcontactmech" /> > </request-map> > > <view-map > name="PostalAddressAdvisory" type="screen" > > page="component://learning/widget/partymgr/OurPartyScreens.xml#PostalAddres > sAdvisory" /> > </site-conf> > > > > Regards, > Hammad Ali Khan Afridi > Mobile 0044 7534171187 > MSN [hidden email] > Yahoo! [hidden email] > > > --- On Thu, 12/10/09, Charles TJ - SELC Sales Div <[hidden email]> > wrote: > > > From: Charles TJ - SELC Sales Div <[hidden email]> > > Subject: RE: Getting error please help > > To: [hidden email] > > Date: Thursday, December 10, 2009, 10:07 PM > > > > Pls check 'ERRATA' at publisher website for page 57 > > > > - Charles TJ > > > > > > -----Original Message----- > > From: Hammad Afridi [mailto:[hidden email]] > > Sent: 10 Desember 2009 23:39 > > To: [hidden email] > > Subject: [?? Probable Spam] Getting error please help > > > > > > Hi All, > > I am following Apache Ofbiz Development.I am on the > 2nd > > chapter of the book > > where an application called learning is developed .I > have > > completed what is > > mentioned in the book till page 58 and when I ran the > > application I got the > > following error while updating the Postal Address of > the > > party: > > > > org.ofbiz.webapp.control.RequestHandlerException: > Illegal > > response; handler > > could not process [null]. > > > > Please guys help me out as I am stuck and cant move > forward > > with the > > book.Thanks. > > > > Regards, > > Hammad Ali Khan Afridi > > Mobile 0044 7534171187 > > MSN [hidden email] > > Yahoo! [hidden email] > > > > > > > > > > > > > > > |
Oops, sorry.. you're trying to convert from beanshell to Java.. - Charles TJ -----Original Message----- From: Hammad Afridi [mailto:[hidden email]] Sent: 11 Desember 2009 0:49 To: [hidden email] Subject: RE: Getting error please help Not working :( Regards, Hammad Ali Khan Afridi Mobile 0044 7534171187 MSN [hidden email] Yahoo! [hidden email] |
Yes exactly!!!
Regards, Hammad Ali Khan Afridi Mobile 0044 7534171187 MSN [hidden email] Yahoo! [hidden email] --- On Thu, 12/10/09, Charles TJ - SELC Sales Div <[hidden email]> wrote: > From: Charles TJ - SELC Sales Div <[hidden email]> > Subject: RE: Getting error please help > To: [hidden email] > Date: Thursday, December 10, 2009, 10:54 PM > > Oops, sorry.. you're trying to convert from beanshell to > Java.. > > - Charles TJ > > > > -----Original Message----- > From: Hammad Afridi [mailto:[hidden email]] > Sent: 11 Desember 2009 0:49 > To: [hidden email] > Subject: RE: Getting error please help > > > Not working :( > > Regards, > Hammad Ali Khan Afridi > Mobile 0044 7534171187 > MSN [hidden email] > Yahoo! [hidden email] > > > > |
In reply to this post by Hammad Afridi
Hi Hammad, ommit the .bsh = <event type="java" path="org.ofbiz.learning.learning.LearningEvents" invoke="postalAddressAdvisory"/> |
I have already done that!!
Regards, Hammad Ali Khan Afridi Mobile 0044 7534171187 MSN [hidden email] Yahoo! [hidden email] --- On Thu, 12/10/09, Charles TJ - SELC Sales Div <[hidden email]> wrote: > From: Charles TJ - SELC Sales Div <[hidden email]> > Subject: RE: Getting error please help > To: [hidden email] > Date: Thursday, December 10, 2009, 11:00 PM > > Hi Hammad, > > ommit the .bsh = > > <event type="java" > path="org.ofbiz.learning.learning.LearningEvents" > invoke="postalAddressAdvisory"/> > > > > > > |
Free forum by Nabble | Edit this page |