Re: How is request passed to groovy scripts?
have you looked at the confirmed order email. seems your duplicating it function. Ritesh Trivedi wrote: I guess I could have been bit more clear in asking the question... I actually meant request object (HttpServletRequest) passed to the groovy script. As it seems like its an implicit object or getting passed somehow that I cant figure out. I will try to be more explicit. I am calling sendEmailFromScreen service and passing it one of the screen names. Here is the screen definition http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd";> As you can see one of the actions is ShowCart.groovy which is an existing groovy script in ecommerce demo app and here is the first line of that script // Get the Cart and Prepare Size shoppingCart = ShoppingCartEvents.getCartObject(request); I get request property not set for ShowCart error while passing this screen to be rendered with sendMailFromScreen from my java code. So my original question was how is request object passed to Groovy script, Looking at the existing calls it doesnt look like it is passed in the context while calling the service or is it done by ServiceEventHandler. Can someone more familiar with the topic shed some light? King-of-mabs wrote: Hi , I am not confirm but let you check this that whether you set property for your groovy file or not. and So then please post your console or screen error in mail. Regards Ravindra Mandre Indore
Re: How is request passed to groovy scripts?
I guess I could have been bit more clear in asking the question... I actually meant request object (HttpServletRequest) passed to the groovy script. As it seems like its an implicit object or getting passed somehow that I cant figure out. I will try to be more explicit. I am calling sendEmailFromScreen service and passing it one of the screen names. Here is the screen definition http://www.w3.org/2001/XMLSchema-instance"; xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/widget-screen.xsd";> As you can see one of the actions is ShowCart.groovy which is an existing groovy script in ecommerce demo app and here is the first line of that script // Get the Cart and Prepare Size shoppingCart = ShoppingCartEvents.getCartObject(request); I get request property not set for ShowCart error while passing this screen to be rendered with sendMailFromScreen from my java code. So my original question was how is request object passed to Groovy script, Looking at the existing calls it doesnt look like it is passed in the context while calling the service or is it done by ServiceEventHandler. Can someone more familiar with the topic shed some light? King-of-mabs wrote: > > Hi , > I am not confirm but let you check this that whether you set property for > your groovy file or not. and So then please post your console or screen > error in mail. > > > Regards > Ravindra Mandre > Indore > > -- View this message in context: http://www.nabble.com/How-is-request-passed-to-groovy-scripts--tp19808550p19809275.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: How is request passed to groovy scripts?
Hi , I am not confirm but let you check this that whether you set property for your groovy file or not. and So then please post your console or screen error in mail. Regards Ravindra Mandre Indore
Re: How is request passed to groovy scripts?
take a look at the ProductStoreEmailSetting data in the application/ecommerce/data/demoproducts.xml for examples of screens being used for this service. if you look at the service sendMailFromScreen you will see what is needed. if you look at component://party/widget/partymgr/EmailPartyScreens.xml#CreatePartyNotification you will see an example of a screen that is passed [EMAIL PROTECTED] wrote: groovy does not have anything to do with calling a service. that is done thru the target and the controller. grovvy is used to marshal and manipulate data for display or sending in context to services. review http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams all videos specifically #7 Ritesh Trivedi wrote: Hi, I am trying to call sendEmailFromScreen for a custom screen very similar to EmailOrderScreens, the groovy script is one of the existing ones ShopCart.groovy. sendEmailFromScreen service throws an exception groovy - property request not found for class ShopCart. I looked at similar code in e-commerce etc for sending email e.g. OrderConfirmEmail - I dont see any difference in 2 calls. Will appreciate any pointers...
Re: How is request passed to groovy scripts?
groovy does not have anything to do with calling a service. that is done thru the target and the controller. grovvy is used to marshal and manipulate data for display or sending in context to services. review http://docs.ofbiz.org/display/OFBTECH/Framework+Introduction+Videos+and+Diagrams all videos specifically #7 Ritesh Trivedi wrote: Hi, I am trying to call sendEmailFromScreen for a custom screen very similar to EmailOrderScreens, the groovy script is one of the existing ones ShopCart.groovy. sendEmailFromScreen service throws an exception groovy - property request not found for class ShopCart. I looked at similar code in e-commerce etc for sending email e.g. OrderConfirmEmail - I dont see any difference in 2 calls. Will appreciate any pointers...
Re: anon user always a party weirdness-Solved!
should be (ne)= not empty unless the code that does the evaluation is not working ot the fieldstypes have been changed for your Db. Phillip Rhodes wrote: Somehow, one of the records in the "user_login" table was created/updated to have a empty user_login_id value. Because of this, this userlogin record would present the anonymous user in the system. I had to run a few sql statements to fix it (integrity constraints galore), but it's working now. Perhaps we should add a constraint to the user_login_id column to not be empty Thanks for those who responded. Phillip On Oct 3, 2008, at 5:08 PM, Phillip Rhodes wrote: Just figured out more... I recompiled ofbiz with some additional debugging statements in ContactMechServices.java The problem is that for every transaction (even if I close my browser between sessions), ofbiz is passing a valid account as the login in the context, even though I am anonymous (and have never authenticated as this person). GenericValue userLogin = (GenericValue) context.get("userLogin"); String userloginpartyid = userLogin.getString("partyId");<-- This prints out to a userid of a party that never never never logged on as. There are 17k records in the visit table. I am thinking that perhaps this table is corrupt. If I switch my ofbiz install to a different database, everything is fine, so I believe it is a data issue. Here is the error that I am trying to fix. At this point, I am going to nuke the visit table and see if that fixes my problem. Any other thoughts appreciated. ERROR: Could not complete the Create or Update Customer Info [file:/Users/prhodes/local/calgon/ofbiz/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml#createUpdateCustomerInfo] process [problem invoking the [createPartyTelecomNumber] service with the map named [homePhoneMap] containing [{locale=en_US, partyId=10741, extension=null, areaCode=363, userLogin=[GenericEntity:UserLogin][createdStamp,2007-10-11 22:25:15.0(java.sql.Timestamp)][createdTxStamp,2007-10-11 22:25:11.0(java.sql.Timestamp)][currentPassword,anonymous(java.lang.String)][disabledDateTime,null()][enabled,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastUpdatedStamp,2008-05-02 19:24:47.0(java.sql.Timestamp)][lastUpdatedTxStamp,2008-05-02 19:24:47.0(java.sql.Timestamp)][partyId,10741(java.lang.String)][passwordHint,null()][successiveFailedLogins,null()][userLoginId,anonymous(java.lang.String)], allowSolicitation=null, contactNumber=3378, contactMechPurposeTypeId=PHONE_HOME, countryCode=412}]: Problems with the transaction. (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service Error [createPartyContactMechPurpose]: You do not have permission to perform this operation for this party.)]
How is request passed to groovy scripts?
Hi, I am trying to call sendEmailFromScreen for a custom screen very similar to EmailOrderScreens, the groovy script is one of the existing ones ShopCart.groovy. sendEmailFromScreen service throws an exception groovy - property request not found for class ShopCart. I looked at similar code in e-commerce etc for sending email e.g. OrderConfirmEmail - I dont see any difference in 2 calls. Will appreciate any pointers... -- View this message in context: http://www.nabble.com/How-is-request-passed-to-groovy-scripts--tp19808550p19808550.html Sent from the OFBiz - User mailing list archive at Nabble.com.
Re: anon user always a party weirdness-Solved!
Somehow, one of the records in the "user_login" table was created/ updated to have a empty user_login_id value. Because of this, this userlogin record would present the anonymous user in the system. I had to run a few sql statements to fix it (integrity constraints galore), but it's working now. Perhaps we should add a constraint to the user_login_id column to not be empty Thanks for those who responded. Phillip On Oct 3, 2008, at 5:08 PM, Phillip Rhodes wrote: Just figured out more... I recompiled ofbiz with some additional debugging statements in ContactMechServices.java The problem is that for every transaction (even if I close my browser between sessions), ofbiz is passing a valid account as the login in the context, even though I am anonymous (and have never authenticated as this person). GenericValue userLogin = (GenericValue) context.get("userLogin"); String userloginpartyid = userLogin.getString("partyId");<-- This prints out to a userid of a party that never never never logged on as. There are 17k records in the visit table. I am thinking that perhaps this table is corrupt. If I switch my ofbiz install to a different database, everything is fine, so I believe it is a data issue. Here is the error that I am trying to fix. At this point, I am going to nuke the visit table and see if that fixes my problem. Any other thoughts appreciated. ERROR: Could not complete the Create or Update Customer Info [file:/ Users/prhodes/local/calgon/ofbiz/applications/ecommerce/script/org/ ofbiz/ecommerce/customer/ CustomerEvents.xml#createUpdateCustomerInfo] process [problem invoking the [createPartyTelecomNumber] service with the map named [homePhoneMap] containing [{locale=en_US, partyId=10741, extension=null, areaCode=363, userLogin=[GenericEntity:UserLogin] [createdStamp,2007-10-11 22:25:15.0(java.sql.Timestamp)] [createdTxStamp,2007-10-11 22:25:11.0(java.sql.Timestamp)] [currentPassword,anonymous(java.lang.String)] [disabledDateTime,null()][enabled,null()][hasLoggedOut,null()] [isSystem,null()][lastCurrencyUom,null()][lastLocale,null()] [lastUpdatedStamp,2008-05-02 19:24:47.0(java.sql.Timestamp)] [lastUpdatedTxStamp,2008-05-02 19:24:47.0(java.sql.Timestamp)] [partyId,10741(java.lang.String)][passwordHint,null()] [successiveFailedLogins,null()] [userLoginId,anonymous(java.lang.String)], allowSolicitation=null, contactNumber=3378, contactMechPurposeTypeId=PHONE_HOME, countryCode=412}]: Problems with the transaction. (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service Error [createPartyContactMechPurpose]: You do not have permission to perform this operation for this party.)]
Re: 2 projs in single wrkspace in eclipse
http://docs.ofbiz.org/display/OFBTECH/Apache+OFBiz+Technical+Production+Setup+Guide#ApacheOFBizTechnicalProductionSetupGuide-URLandPortSettings But actually changing 8080 and 8443 ports is enough for testing. Just look for these numbers in Eclipse (*.xml,*.prop*). At a time I considered adding an offset for them, but it's as easy to change in a smart IDE. Jacques From: "adithi agarwal" <[EMAIL PROTECTED]> Thankyou.. actually I did not change the port numbers...port numbers for both of them(ofbiz instances) are the same...This may be the reason... for such a mess.(Actually I thought whichever Ofbiz instance I build and run, applications only in that instance will work and not those of other instances) May I know which all port numbers should I change . Thanks - Original Message From: Jacques Le Roux <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Friday, October 3, 2008 1:13:40 PM Subject: Re: 2 projs in single wrkspace in eclipse This should not be possible since you have to use different ports set for each OFBiz instance hence for each embedded applications (of course this means also that you run both instances simultaneously) In other words, we need more details to help you... Jacques From: "adithi agarwal" <[EMAIL PROTECTED]> Thankyou for your reply ..But you know what...when i Build the ofbiz1 and run ofbiz1, I could run the appl2 as well .(Actually I should not be able to run appln2 if iam correct) Thanks.. - Original Message From: Jacques Le Roux <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Friday, October 3, 2008 12:29:57 PM Subject: Re: 2 projs in single wrkspace in eclipse From: "adithi agarwal" <[EMAIL PROTECTED]> Hii all I have a question can some one help me out please Cant I put 2 ofbiz projs in a single workspace. You just need to have different names for them. Actually at the moment I have at least 5 OFBiz instances in the same Eclipse worlkspace. Of course then you have to deal with them, but should be easy since OFBizRun is not the same as OFBizDev for instance... Actually I have my application1 in one ofbiz and application2(same as application1 with few changes) in other ofbiz but in same workspace. When I run the first Ofbiz in eclipse, I think its running the application2 in second ofbiz...Iam confused...Is it not correct to place 2 different ofbiz frameworks in single frame work. This should not happen as they have not the same pathes. Check this point in your code (static links ?) Jacques Thankyou
anon user always a party weirdness
Just figured out more... I recompiled ofbiz with some additional debugging statements in ContactMechServices.java The problem is that for every transaction (even if I close my browser between sessions), ofbiz is passing a valid account as the login in the context, even though I am anonymous (and have never authenticated as this person). GenericValue userLogin = (GenericValue) context.get("userLogin"); String userloginpartyid = userLogin.getString("partyId");<-- This prints out to a userid of a party that never never never logged on as. There are 17k records in the visit table. I am thinking that perhaps this table is corrupt. If I switch my ofbiz install to a different database, everything is fine, so I believe it is a data issue. Here is the error that I am trying to fix. At this point, I am going to nuke the visit table and see if that fixes my problem. Any other thoughts appreciated. ERROR: Could not complete the Create or Update Customer Info [file:/ Users/prhodes/local/calgon/ofbiz/applications/ecommerce/script/org/ ofbiz/ecommerce/customer/CustomerEvents.xml#createUpdateCustomerInfo] process [problem invoking the [createPartyTelecomNumber] service with the map named [homePhoneMap] containing [{locale=en_US, partyId=10741, extension=null, areaCode=363, userLogin=[GenericEntity:UserLogin] [createdStamp,2007-10-11 22:25:15.0(java.sql.Timestamp)] [createdTxStamp,2007-10-11 22:25:11.0(java.sql.Timestamp)] [currentPassword,anonymous(java.lang.String)][disabledDateTime,null()] [enabled,null()][hasLoggedOut,null()][isSystem,null()] [lastCurrencyUom,null()][lastLocale,null()][lastUpdatedStamp, 2008-05-02 19:24:47.0(java.sql.Timestamp)][lastUpdatedTxStamp, 2008-05-02 19:24:47.0(java.sql.Timestamp)][partyId, 10741(java.lang.String)][passwordHint,null()] [successiveFailedLogins,null()] [userLoginId,anonymous(java.lang.String)], allowSolicitation=null, contactNumber=3378, contactMechPurposeTypeId=PHONE_HOME, countryCode=412}]: Problems with the transaction. (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service Error [createPartyContactMechPurpose]: You do not have permission to perform this operation for this party.)]
Re: 2 projs in single wrkspace in eclipse
Thankyou.. actually I did not change the port numbers...port numbers for both of them(ofbiz instances) are the same...This may be the reason... for such a mess.(Actually I thought whichever Ofbiz instance I build and run, applications only in that instance will work and not those of other instances) May I know which all port numbers should I change . Thanks - Original Message From: Jacques Le Roux <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Friday, October 3, 2008 1:13:40 PM Subject: Re: 2 projs in single wrkspace in eclipse This should not be possible since you have to use different ports set for each OFBiz instance hence for each embedded applications (of course this means also that you run both instances simultaneously) In other words, we need more details to help you... Jacques From: "adithi agarwal" <[EMAIL PROTECTED]> > Thankyou for your reply ..But you know what...when i Build the ofbiz1 and run > ofbiz1, I could run the appl2 as well .(Actually I > should not be able to run appln2 if iam correct) > > Thanks.. > > > > > - Original Message > From: Jacques Le Roux <[EMAIL PROTECTED]> > To: user@ofbiz.apache.org > Sent: Friday, October 3, 2008 12:29:57 PM > Subject: Re: 2 projs in single wrkspace in eclipse > > From: "adithi agarwal" <[EMAIL PROTECTED]> >> Hii all >> I have a question can some one help me out please >> >> Cant I put 2 ofbiz projs in a single workspace. > > You just need to have different names for them. Actually at the moment I have > at least 5 OFBiz instances in the same Eclipse > worlkspace. > Of course then you have to deal with them, but should be easy since OFBizRun > is not the same as OFBizDev for instance... > >> Actually I have my application1 in one ofbiz and application2(same as >> application1 with few changes) in other ofbiz but in same >> workspace. >> When I run the first Ofbiz in eclipse, I think its running the application2 >> in second ofbiz...Iam confused...Is it not correct >> to >> place 2 different ofbiz frameworks in single frame work. > > This should not happen as they have not the same pathes. Check this point in > your code (static links ?) > > Jacques > > >> Thankyou >> >> >> >> > > >
Re: 2 projs in single wrkspace in eclipse
This should not be possible since you have to use different ports set for each OFBiz instance hence for each embedded applications (of course this means also that you run both instances simultaneously) In other words, we need more details to help you... Jacques From: "adithi agarwal" <[EMAIL PROTECTED]> Thankyou for your reply ..But you know what...when i Build the ofbiz1 and run ofbiz1, I could run the appl2 as well .(Actually I should not be able to run appln2 if iam correct) Thanks.. - Original Message From: Jacques Le Roux <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Friday, October 3, 2008 12:29:57 PM Subject: Re: 2 projs in single wrkspace in eclipse From: "adithi agarwal" <[EMAIL PROTECTED]> Hii all I have a question can some one help me out please Cant I put 2 ofbiz projs in a single workspace. You just need to have different names for them. Actually at the moment I have at least 5 OFBiz instances in the same Eclipse worlkspace. Of course then you have to deal with them, but should be easy since OFBizRun is not the same as OFBizDev for instance... Actually I have my application1 in one ofbiz and application2(same as application1 with few changes) in other ofbiz but in same workspace. When I run the first Ofbiz in eclipse, I think its running the application2 in second ofbiz...Iam confused...Is it not correct to place 2 different ofbiz frameworks in single frame work. This should not happen as they have not the same pathes. Check this point in your code (static links ?) Jacques Thankyou
Re: 2 projs in single wrkspace in eclipse
Thankyou for your reply ..But you know what...when i Build the ofbiz1 and run ofbiz1, I could run the appl2 as well .(Actually I should not be able to run appln2 if iam correct) Thanks.. - Original Message From: Jacques Le Roux <[EMAIL PROTECTED]> To: user@ofbiz.apache.org Sent: Friday, October 3, 2008 12:29:57 PM Subject: Re: 2 projs in single wrkspace in eclipse From: "adithi agarwal" <[EMAIL PROTECTED]> > Hii all > I have a question can some one help me out please > > Cant I put 2 ofbiz projs in a single workspace. You just need to have different names for them. Actually at the moment I have at least 5 OFBiz instances in the same Eclipse worlkspace. Of course then you have to deal with them, but should be easy since OFBizRun is not the same as OFBizDev for instance... > Actually I have my application1 in one ofbiz and application2(same as > application1 with few changes) in other ofbiz but in same > workspace. > When I run the first Ofbiz in eclipse, I think its running the application2 > in second ofbiz...Iam confused...Is it not correct to > place 2 different ofbiz frameworks in single frame work. This should not happen as they have not the same pathes. Check this point in your code (static links ?) Jacques > Thankyou > > > >
Re: 4.0 help with fedex servers, weighing, and printing labels
To use the ShipmentScaleApplet on Windows you will need plugin.jar usualy found in your jdk \jre\lib Jacques From: <[EMAIL PROTECTED]> if you look in the products controller you will see the labels and track to the pages. http://docs.ofbiz.org/display/OFBENDUSER/Packing+and+Shipping http://docs.ofbiz.org/display/OFBENDUSER/Visual+Pack+and+Ship+Orders The shipper was defined at order time that is what determines to use Fedex. if you look at the fedex code you will see a lot of todo's Not much has changed since 4.0 that is were the communication with the fedex servers is done. Wieghts have to be put in manually,OOTB, but there is a scale applet that is in the code you can integrate. if you look at lines 917 to 926 they deal with return data from fedex shipmentPackageRouteSeg.setBytes("labelImage", labelBytes); is the label. you can look in committs 586925 660843 to see what was done beyond 4.0 mayo wrote: I have been researching and testing OFBiz 4.0 for 2-3 months and cannot figure out how the fulfillment process continues after picking and packing. I've googled and browsed the OFBiz wiki many times, but couldn't find explanations. After packing orders I see them listed in "Scheduling", but when I select them and click "Schedule these route segments", the page is goes to the Labels view with nothing showing. I click on the Schedule view and my packed orders are still there. I am pretty sure the shipment status needs to change to "Ship", but I am unclear how all this is suppose to happen without manually changing them. And how is OFBiz suppose to communicate with FedEx servers, label printers, and weighing machines? Would someone be able to point me in the right direction or be able to explain to me how the processes should work? Any information would be greatly appreciated. - Al
Re: Wiki changes
Okay, I've changed the password on that account so they can't login again. On a side note: didn't remove the account as it appears removing accounts in Confluence is not all that easy! -David On Oct 3, 2008, at 12:23 PM, Jacques Le Roux wrote: Hi David, From: "David E Jones" <[EMAIL PROTECTED]> Did that user remove other information in the wiki when making these changes? Yes but I think it was not purposedly (it's not the 1st itme I notice people replacing lines when willing to add in Rich Text Mode). Anyway as outlined Scott these guys do not seem to be related to OFBiz in any manners (they use ASP in frontend). I guess they are just putting links where they can to increase their pages rank (maybe selling matress on the net is not a sinecure these days) I ask because if so that's not playing nice and unless we hear from them I'll disable their account. Yes I agree, but I guess they will not come back. They did not even answer to my message copied from user ML to their personnal email account. Jacques -David On Oct 3, 2008, at 6:07 AM, Jacques Le Roux wrote: Thanks Scott, Yes, it's ASP, apart if they use OFBiz as baskend. Anyway I will remove these links if any answers... Jacques From: "Scott Gray" <[EMAIL PROTECTED]> +1 for revert, the sites don't really look OFBiz related Regards Scott 2008/10/3 Jacques Le Roux <[EMAIL PROTECTED]>: OK, without any news I will revert those change, or at least will put back the links removed ! Jacques From: "Jacques Le Roux" <[EMAIL PROTECTED]> Hi fkittaneh, You made some changes in Wiki http://docs.ofbiz.org/pages/diffpages.action?originalId=5522&pageId=5524#change0 Is "A-NeT Internet Services b" replacing by "Adjustable Beds" something really wanted ? Same for "Shirt Painter" and "Steam Showers" in http://docs.ofbiz.org/pages/diffpages.action?originalId=5526&pageId=5527#change2 and "Memory Foam Mattress" / Tempurpedic in http://docs.ofbiz.org/pages/diffpages.action?originalId=5527&pageId=869#change0 Jacques
Re: 2 projs in single wrkspace in eclipse
From: "adithi agarwal" <[EMAIL PROTECTED]> Hii all I have a question can some one help me out please Cant I put 2 ofbiz projs in a single workspace. You just need to have different names for them. Actually at the moment I have at least 5 OFBiz instances in the same Eclipse worlkspace. Of course then you have to deal with them, but should be easy since OFBizRun is not the same as OFBizDev for instance... Actually I have my application1 in one ofbiz and application2(same as application1 with few changes) in other ofbiz but in same workspace. When I run the first Ofbiz in eclipse, I think its running the application2 in second ofbiz...Iam confused...Is it not correct to place 2 different ofbiz frameworks in single frame work. This should not happen as they have not the same pathes. Check this point in your code (static links ?) Jacques Thankyou
2 projs in single wrkspace in eclipse
Hii all I have a question can some one help me out please Cant I put 2 ofbiz projs in a single workspace. Actually I have my application1 in one ofbiz and application2(same as application1 with few changes) in other ofbiz but in same workspace. When I run the first Ofbiz in eclipse, I think its running the application2 in second ofbiz...Iam confused...Is it not correct to place 2 different ofbiz frameworks in single frame work. Thankyou
Re: Eclipse IDE Problem with Ubuntu LTS 8.04 while Building and Refreshing OFBiz trunk
Hi Ashish, I have been using Ubuntu + Eclipse since the Ubuntu 6.X days. Currently, I have Eclipse 3.4 on Ubuntu 8.04 and did not experience any problem so far. There was a problem due to the Beta version of Firefox, how it is resolved in latest version of Firefox. (Firefox is embedded browser of Eclipse). As Jacques suggest, look at the logs in the .metadata folder. Also start with just base Eclipse and then incrementally add the plug-in so that you can find out the culprit. Thanks, Raj Jacques Le Roux wrote: Hi Ashish, Yes I'm using Eclipse 3.4 since its beginning (August 2007, was 3.4M1 then). Actually I use it mostly on Windows XP but on Ubuntu 8.04 LTS too. My experience is that problems almost always come from plugins and they should not be related to the OS. When you experience such problems have a look into workspace\.metadata\log. Then you should discover the culprit. Though sometimes it may take some time (then Google may help) Then uninstall it and wait for a newer version of this plugin. I noticed that last version of Groovy plugin is not very stable and needed too much CPU ressources. I uninstalled it yesterday... Actually I don't need it much, but I hope to get a better version one day... I have a lot of plugins installed and so far it's ok. The 3.4 version is really much more stable and complete and the new updater (P2) is much more robust and reliable (though there are still some problems, I noticed with PHP plugins for instance, anyway I merely use them ;o). The must IMO is the replace (Ctrl+H) function. Used with regex it has wonderful power ! HTH Jacques From: "Ashish Vijaywargiya" <[EMAIL PROTECTED]> Hello Jacques, I noticed that you are using the Eclipse on Ubuntu since very long. I have installed Eclipse Ganymede on my laptop with Ubuntu LTS 8.04. But in case of Build and Refresh most of the time it gets hanged out. Can you please share your experience with Eclipse + Ubuntu ? If you are using some other version of Eclipse IDE then please let me know. Thanks. -- Regards Ashish Vijaywargiya HotWax Media Pvt. Ltd. Indore (M.P), India http://www.hotwaxmedia.com http://en.wikipedia.org/wiki/Indore Office :- +917314093684 Direct :- +919893479711
Re: Wiki changes
Hi David, From: "David E Jones" <[EMAIL PROTECTED]> Did that user remove other information in the wiki when making these changes? Yes but I think it was not purposedly (it's not the 1st itme I notice people replacing lines when willing to add in Rich Text Mode). Anyway as outlined Scott these guys do not seem to be related to OFBiz in any manners (they use ASP in frontend). I guess they are just putting links where they can to increase their pages rank (maybe selling matress on the net is not a sinecure these days) I ask because if so that's not playing nice and unless we hear from them I'll disable their account. Yes I agree, but I guess they will not come back. They did not even answer to my message copied from user ML to their personnal email account. Jacques -David On Oct 3, 2008, at 6:07 AM, Jacques Le Roux wrote: Thanks Scott, Yes, it's ASP, apart if they use OFBiz as baskend. Anyway I will remove these links if any answers... Jacques From: "Scott Gray" <[EMAIL PROTECTED]> +1 for revert, the sites don't really look OFBiz related Regards Scott 2008/10/3 Jacques Le Roux <[EMAIL PROTECTED]>: OK, without any news I will revert those change, or at least will put back the links removed ! Jacques From: "Jacques Le Roux" <[EMAIL PROTECTED]> Hi fkittaneh, You made some changes in Wiki http://docs.ofbiz.org/pages/diffpages.action?originalId=5522&pageId=5524#change0 Is "A-NeT Internet Services b" replacing by "Adjustable Beds" something really wanted ? Same for "Shirt Painter" and "Steam Showers" in http://docs.ofbiz.org/pages/diffpages.action?originalId=5526&pageId=5527#change2 and "Memory Foam Mattress" / Tempurpedic in http://docs.ofbiz.org/pages/diffpages.action?originalId=5527&pageId=869#change0 Jacques
Re: Eclipse IDE Problem with Ubuntu LTS 8.04 while Building and Refreshing OFBiz trunk
Hi Ashish, Yes I'm using Eclipse 3.4 since its beginning (August 2007, was 3.4M1 then). Actually I use it mostly on Windows XP but on Ubuntu 8.04 LTS too. My experience is that problems almost always come from plugins and they should not be related to the OS. When you experience such problems have a look into workspace\.metadata\log. Then you should discover the culprit. Though sometimes it may take some time (then Google may help) Then uninstall it and wait for a newer version of this plugin. I noticed that last version of Groovy plugin is not very stable and needed too much CPU ressources. I uninstalled it yesterday... Actually I don't need it much, but I hope to get a better version one day... I have a lot of plugins installed and so far it's ok. The 3.4 version is really much more stable and complete and the new updater (P2) is much more robust and reliable (though there are still some problems, I noticed with PHP plugins for instance, anyway I merely use them ;o). The must IMO is the replace (Ctrl+H) function. Used with regex it has wonderful power ! HTH Jacques From: "Ashish Vijaywargiya" <[EMAIL PROTECTED]> Hello Jacques, I noticed that you are using the Eclipse on Ubuntu since very long. I have installed Eclipse Ganymede on my laptop with Ubuntu LTS 8.04. But in case of Build and Refresh most of the time it gets hanged out. Can you please share your experience with Eclipse + Ubuntu ? If you are using some other version of Eclipse IDE then please let me know. Thanks. -- Regards Ashish Vijaywargiya HotWax Media Pvt. Ltd. Indore (M.P), India http://www.hotwaxmedia.com http://en.wikipedia.org/wiki/Indore Office :- +917314093684 Direct :- +919893479711
Re: Wiki changes
Did that user remove other information in the wiki when making these changes? I ask because if so that's not playing nice and unless we hear from them I'll disable their account. -David On Oct 3, 2008, at 6:07 AM, Jacques Le Roux wrote: Thanks Scott, Yes, it's ASP, apart if they use OFBiz as baskend. Anyway I will remove these links if any answers... Jacques From: "Scott Gray" <[EMAIL PROTECTED]> +1 for revert, the sites don't really look OFBiz related Regards Scott 2008/10/3 Jacques Le Roux <[EMAIL PROTECTED]>: OK, without any news I will revert those change, or at least will put back the links removed ! Jacques From: "Jacques Le Roux" <[EMAIL PROTECTED]> Hi fkittaneh, You made some changes in Wiki http://docs.ofbiz.org/pages/diffpages.action?originalId=5522&pageId=5524#change0 Is "A-NeT Internet Services b" replacing by "Adjustable Beds" something really wanted ? Same for "Shirt Painter" and "Steam Showers" in http://docs.ofbiz.org/pages/diffpages.action?originalId=5526&pageId=5527#change2 and "Memory Foam Mattress" / Tempurpedic in http://docs.ofbiz.org/pages/diffpages.action?originalId=5527&pageId=869#change0 Jacques
Eclipse IDE Problem with Ubuntu LTS 8.04 while Building and Refreshing OFBiz trunk
Hello Jacques, I noticed that you are using the Eclipse on Ubuntu since very long. I have installed Eclipse Ganymede on my laptop with Ubuntu LTS 8.04. But in case of Build and Refresh most of the time it gets hanged out. Can you please share your experience with Eclipse + Ubuntu ? If you are using some other version of Eclipse IDE then please let me know. Thanks. -- Regards Ashish Vijaywargiya HotWax Media Pvt. Ltd. Indore (M.P), India http://www.hotwaxmedia.com http://en.wikipedia.org/wiki/Indore Office :- +917314093684 Direct :- +919893479711
Re: Wiki changes
Thanks Scott, Yes, it's ASP, apart if they use OFBiz as baskend. Anyway I will remove these links if any answers... Jacques From: "Scott Gray" <[EMAIL PROTECTED]> +1 for revert, the sites don't really look OFBiz related Regards Scott 2008/10/3 Jacques Le Roux <[EMAIL PROTECTED]>: OK, without any news I will revert those change, or at least will put back the links removed ! Jacques From: "Jacques Le Roux" <[EMAIL PROTECTED]> Hi fkittaneh, You made some changes in Wiki http://docs.ofbiz.org/pages/diffpages.action?originalId=5522&pageId=5524#change0 Is "A-NeT Internet Services b" replacing by "Adjustable Beds" something really wanted ? Same for "Shirt Painter" and "Steam Showers" in http://docs.ofbiz.org/pages/diffpages.action?originalId=5526&pageId=5527#change2 and "Memory Foam Mattress" / Tempurpedic in http://docs.ofbiz.org/pages/diffpages.action?originalId=5527&pageId=869#change0 Jacques
Re: Wiki changes
+1 for revert, the sites don't really look OFBiz related Regards Scott 2008/10/3 Jacques Le Roux <[EMAIL PROTECTED]>: > OK, without any news I will revert those change, or at least will put back > the links removed ! > > Jacques > > From: "Jacques Le Roux" <[EMAIL PROTECTED]> >> >> Hi fkittaneh, >> >> You made some changes in Wiki >> >> http://docs.ofbiz.org/pages/diffpages.action?originalId=5522&pageId=5524#change0 >> >> Is "A-NeT Internet Services b" replacing by "Adjustable Beds" something >> really wanted ? >> >> Same for "Shirt Painter" and "Steam Showers" in >> http://docs.ofbiz.org/pages/diffpages.action?originalId=5526&pageId=5527#change2 >> >> and "Memory Foam Mattress" / Tempurpedic in >> >> http://docs.ofbiz.org/pages/diffpages.action?originalId=5527&pageId=869#change0 >> >> Jacques >> >
Re: Wiki changes
OK, without any news I will revert those change, or at least will put back the links removed ! Jacques From: "Jacques Le Roux" <[EMAIL PROTECTED]> Hi fkittaneh, You made some changes in Wiki http://docs.ofbiz.org/pages/diffpages.action?originalId=5522&pageId=5524#change0 Is "A-NeT Internet Services b" replacing by "Adjustable Beds" something really wanted ? Same for "Shirt Painter" and "Steam Showers" in http://docs.ofbiz.org/pages/diffpages.action?originalId=5526&pageId=5527#change2 and "Memory Foam Mattress" / Tempurpedic in http://docs.ofbiz.org/pages/diffpages.action?originalId=5527&pageId=869#change0 Jacques
Re: ofbiz security corrupted?
This may need something similar to the change I introduced in revision: 699636 Please see this thread http://www.nabble.com/Contact-Us-link-not-working-in-ecommerce-td19156327.html Jacques From: "Phillip Rhodes" <[EMAIL PROTECTED]> Hi Everyone, I am really trying to dig in but I am coming up empty. The problem has just appeared suddenly without any changes to the system (that I am aware of). The problem is when I try to checkout in ecommerce without a login, it fails with a permission denied error. I setup another ofbiz instance and did a seed and verified counts for the security tables, did lots of searches in the code and found PartyContactMechServices.xml I think this is what is throwing the error: property="PartyPermissionErrorForThisParty"/> I super-would appreciate some pointers on other places to look. Phillip here is what is on screen: ERROR: Could not complete the Create or Update Customer Info [file:/ usr/local/calgon/ofbiz/applications/ecommerce/script/org/ofbiz/ ecommerce/customer/CustomerEvents.xml#createUpdateCustomerInfo] process [problem invoking the [createPartyTelecomNumber] service with the map named [homePhoneMap] containing [{extension=null, contactNumber=3378, partyId=10711, areaCode=363, allowSolicitation=null, locale=en_US, countryCode=412, contactMechPurposeTypeId=PHONE_HOME, userLogin=[GenericEntity:UserLogin][createdStamp,2007-10-11 22:25:15.0(java.sql.Timestamp)][createdTxStamp,2007-10-11 22:25:11.0(java.sql.Timestamp)] [currentPassword,anonymous(java.lang.String)][disabledDateTime,null()] [enabled,null()][hasLoggedOut,null()][isSystem,null()] [lastCurrencyUom,null()][lastLocale,null()][lastUpdatedStamp, 2008-05-02 19:24:47.0(java.sql.Timestamp)][lastUpdatedTxStamp, 2008-05-02 19:24:47.0(java.sql.Timestamp)][partyId, 10711(java.lang.String)][passwordHint,null()] [successiveFailedLogins,null()] [userLoginId,anonymous(java.lang.String)]}]: Problems with the transaction. (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service Error [createPartyContactMechPurpose]: You do not have permission to perform this operation for this party.)] Here is the log excerpt: 2008-10-03 02:06:22,124 (TP-Processor3) [ RequestHandler.java: 236:INFO ] [Processing Request]: processCustomerSettings sessionId=B876E1C0558EFF2770C69347CD6E9D8B.jvm1 2008-10-03 02:06:22,154 (TP-Processor3) [UtilXml.java: 243:DEBUG] XML Read 0.029s: file:/usr/local/calgon/ofbiz/applications/ ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml 2008-10-03 02:06:22,159 (TP-Processor3) [ SimpleMethod.java: 616:INFO ] No response code string or errors found, assuming success; returning code [success] 2008-10-03 02:06:22,171 (TP-Processor3) [ ServiceEcaRule.java: 137:INFO ] Running Service ECA Service: ensureNaPartyRole, triggered by rule on Service: createPerson 2008-10-03 02:06:22,195 (TP-Processor3) [UtilXml.java: 243:DEBUG] XML Read 0.024s: file:/usr/local/calgon/ofbiz/applications/ party/script/org/ofbiz/party/party/PartySimpleMethods.xml 2008-10-03 02:06:22,200 (TP-Processor3) [Log.java: 94 :INFO ] CreatePerson : 10711 2008-10-03 02:06:22,201 (TP-Processor3) [Log.java: 94 :INFO ] UserLogin : [GenericEntity:UserLogin][createdStamp, 2007-10-11 22:25:15.0(java.sql.Timestamp)][createdTxStamp,2007-10-11 22:25:11.0(java.sql. Timestamp)][currentPassword,anonymous(java.lang.String)] [disabledDateTime,null()][enabled,null()][hasLoggedOut,null()] [isSystem,null()][lastCurrencyUom,null()][lastLocale,null()] [lastUpdatedStamp,2008-05-02 19:24:47.0 (java.sql.Timestamp)][lastUpdatedTxStamp,2008-05-02 19:24:47.0(java.sql.Timestamp)][partyId,10711(java.lang.String)] [passwordHint,null()][successiveFailedLogins,null()] [userLoginId,anonymous(java.lang.String)] 2008-10-03 02:06:22,241 (TP-Processor3) [UtilXml.java: 243:DEBUG] XML Read 0.039s: file:/usr/local/calgon/ofbiz/applications/ party/script/org/ofbiz/party/party/PartyServices.xml 2008-10-03 02:06:22,276 (TP-Processor3) [UtilXml.java: 243:DEBUG] XML Read 0.026s: file:/usr/local/calgon/ofbiz/applications/ party/script/org/ofbiz/party/contact/PartyContactMechServices.xml 2008-10-03 02:06:22,313 (TP-Processor3) [UtilXml.java: 243:DEBUG] XML Read 0.033s: file:/usr/local/calgon/ofbiz/applications/ party/script/org/ofbiz/party/contact/ContactMechServices.xml 2008-10-03 02:06:22,319 (TP-Processor3) [Log.java: 94 :INFO ] Contact mech created with id 11051 2008-10-03 02:06:22,320 (TP-Processor3) [Log.java: 94 :INFO ] ContactMech created 2008-10-03 02:06:22,320 (TP-Processor3) [FlexibleStringExpander.java: 355:WARN ] Could not find value in environment for the name [parameters.contactMechId], inserting nothing. 2008-
Re: Associate content to party group
A company, such as a supplier, is represented as: Party + PartyGroup A person, such as an employee, is represented as: Party + Person You should associate the content to the Party. Jacopo On Oct 3, 2008, at 11:11 AM, Eric DE MAULDE wrote: Hi, My target is to build a product specification sheet with dynamic supplier text, attaching a content to a category. I would want to associate a content to a supplier (Party group). But in Content Role, there is just a choice of PERSONS and not PARTY GROUPS Have I to create a PERSON for each SUPPLIER (Party group) ? Thanks Eric smime.p7s Description: S/MIME cryptographic signature
Associate content to party group
Hi, My target is to build a product specification sheet with dynamic supplier text, attaching a content to a category. I would want to associate a content to a supplier (Party group). But in Content Role, there is just a choice of PERSONS and not PARTY GROUPS Have I to create a PERSON for each SUPPLIER (Party group) ? Thanks Eric
Re: ofbiz security corrupted?
not sure why createUpdateCustomerInfo is being called when are creating a customer. the problem is an the userlogin is an anonymous so there are no permissions. Phillip Rhodes wrote: Hi Everyone, I am really trying to dig in but I am coming up empty. The problem has just appeared suddenly without any changes to the system (that I am aware of). The problem is when I try to checkout in ecommerce without a login, it fails with a permission denied error. I setup another ofbiz instance and did a seed and verified counts for the security tables, did lots of searches in the code and found PartyContactMechServices.xml I think this is what is throwing the error: property="PartyPermissionErrorForThisParty"/> I super-would appreciate some pointers on other places to look. Phillip here is what is on screen: ERROR: Could not complete the Create or Update Customer Info [file:/usr/local/calgon/ofbiz/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml#createUpdateCustomerInfo] process [problem invoking the [createPartyTelecomNumber] service with the map named [homePhoneMap] containing [{extension=null, contactNumber=3378, partyId=10711, areaCode=363, allowSolicitation=null, locale=en_US, countryCode=412, contactMechPurposeTypeId=PHONE_HOME, userLogin=[GenericEntity:UserLogin][createdStamp,2007-10-11 22:25:15.0(java.sql.Timestamp)][createdTxStamp,2007-10-11 22:25:11.0(java.sql.Timestamp)][currentPassword,anonymous(java.lang.String)][disabledDateTime,null()][enabled,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastUpdatedStamp,2008-05-02 19:24:47.0(java.sql.Timestamp)][lastUpdatedTxStamp,2008-05-02 19:24:47.0(java.sql.Timestamp)][partyId,10711(java.lang.String)][passwordHint,null()][successiveFailedLogins,null()][userLoginId,anonymous(java.lang.String)]}]: Problems with the transaction. (The current transaction is marked for rollback, not beginning a new transaction and aborting current operation; the rollbackOnly was caused by: Service Error [createPartyContactMechPurpose]: You do not have permission to perform this operation for this party.)] Here is the log excerpt: 2008-10-03 02:06:22,124 (TP-Processor3) [ RequestHandler.java:236:INFO ] [Processing Request]: processCustomerSettings sessionId=B876E1C0558EFF2770C69347CD6E9D8B.jvm1 2008-10-03 02:06:22,154 (TP-Processor3) [ UtilXml.java:243:DEBUG] XML Read 0.029s: file:/usr/local/calgon/ofbiz/applications/ecommerce/script/org/ofbiz/ecommerce/customer/CustomerEvents.xml 2008-10-03 02:06:22,159 (TP-Processor3) [ SimpleMethod.java:616:INFO ] No response code string or errors found, assuming success; returning code [success] 2008-10-03 02:06:22,171 (TP-Processor3) [ ServiceEcaRule.java:137:INFO ] Running Service ECA Service: ensureNaPartyRole, triggered by rule on Service: createPerson 2008-10-03 02:06:22,195 (TP-Processor3) [ UtilXml.java:243:DEBUG] XML Read 0.024s: file:/usr/local/calgon/ofbiz/applications/party/script/org/ofbiz/party/party/PartySimpleMethods.xml 2008-10-03 02:06:22,200 (TP-Processor3) [Log.java:94 :INFO ] CreatePerson : 10711 2008-10-03 02:06:22,201 (TP-Processor3) [Log.java:94 :INFO ] UserLogin : [GenericEntity:UserLogin][createdStamp,2007-10-11 22:25:15.0(java.sql.Timestamp)][createdTxStamp,2007-10-11 22:25:11.0(java.sql. Timestamp)][currentPassword,anonymous(java.lang.String)][disabledDateTime,null()][enabled,null()][hasLoggedOut,null()][isSystem,null()][lastCurrencyUom,null()][lastLocale,null()][lastUpdatedStamp,2008-05-02 19:24:47.0 (java.sql.Timestamp)][lastUpdatedTxStamp,2008-05-02 19:24:47.0(java.sql.Timestamp)][partyId,10711(java.lang.String)][passwordHint,null()][successiveFailedLogins,null()][userLoginId,anonymous(java.lang.String)] 2008-10-03 02:06:22,241 (TP-Processor3) [ UtilXml.java:243:DEBUG] XML Read 0.039s: file:/usr/local/calgon/ofbiz/applications/party/script/org/ofbiz/party/party/PartyServices.xml 2008-10-03 02:06:22,276 (TP-Processor3) [ UtilXml.java:243:DEBUG] XML Read 0.026s: file:/usr/local/calgon/ofbiz/applications/party/script/org/ofbiz/party/contact/PartyContactMechServices.xml 2008-10-03 02:06:22,313 (TP-Processor3) [ UtilXml.java:243:DEBUG] XML Read 0.033s: file:/usr/local/calgon/ofbiz/applications/party/script/org/ofbiz/party/contact/ContactMechServices.xml 2008-10-03 02:06:22,319 (TP-Processor3) [Log.java:94 :INFO ] Contact mech created with id 11051 2008-10-03 02:06:22,320 (TP-Processor3) [Log.java:94 :INFO ] ContactMech created 2008-10-03 02:06:22,320 (TP-Processor3) [FlexibleStringExpander.java:355:WARN ] Could not find value in environment for the name [parameters.contactMechId], inserting nothing. 2008-10-03 02:06:22,321 (TP-Processor3) [Log.java:94 :INFO ] Creating a PartyContactMech with id: