Re: Book on Apache OFBiz development

2008-11-26 Thread Mridul Pathak
Anand,
May be increasing Heap Memory of your Eclipse environment will resolve
the problem.

-- 
Thanks & Regards
Mridul Pathak
Hotwax Media
http://www.hotwaxmedia.com
[EMAIL PROTECTED]

On Mon, Nov 24, 2008 at 5:12 PM, anand joshi <[EMAIL PROTECTED]> wrote:

> hi
>  ofbiz version 2.0
>  eclipse Version: 3.4.0
>  ram 2gb
>
>  but its giving memory exception,while debug the ofbiz.
> byee
> anand
>
>
> On Mon, Nov 24, 2008 at 3:50 PM, BJ Freeman <[EMAIL PROTECTED]> wrote:
> > which version ofbiz are you using?
> > which method did you choose to use?
> >
> > anand joshi sent the following on 11/23/2008 9:39 PM:
> >> Hi
> >>   Failed to connect to remote VM. Connection refused.
> >> Connection refused: connect  i got this error while debug the ofbiz ..
> >> can u give me the configuration of the eclipse...
> >>
> >>
> >> On Mon, Nov 24, 2008 at 10:34 AM, BJ Freeman <[EMAIL PROTECTED]>
> wrote:
> >>>
> http://docs.ofbiz.org/display/OFBIZ/Running+and+Debugging+OFBiz+in+Eclipse
> >>>
> >>> anand joshi sent the following on 11/23/2008 8:46 PM:
>  Hello  all
> can any one explain me how to debug the ofbiz into eclipse..
>  when i debug the ofbiz its giving memory exception.
> 
>  byeee
>  Anand
> 
>  On Sat, Nov 22, 2008 at 6:42 PM, Eric DE MAULDE <[EMAIL PROTECTED]>
> wrote:
> > Hi,
> >
> > Have people bought and read this book ?
> > What is your opinion ?
> > My goal is to lean in order to improve or create services in trunk !
> >
> > Thanks
> >
> > Eric
> >
> > - Original Message - From: "Jacques Le Roux"
> > <[EMAIL PROTECTED]>
> > To: 
> > Sent: Monday, November 10, 2008 7:24 PM
> > Subject: Re: Book on Apache OFBiz development
> >
> >
> >> Hi all,
> >>
> >> Damian from Packt asked me if we were interested to receive
> information
> >> about royalties. They will send 5% of all sales to the ASF. So we
> have not
> >> to care about redirecting links or such, cool !
> >> In the past Struts and SpamAssassin have already done the same and
> Brian
> >> Fitzpatrick (ASF Public Relations Vice President) has been involved.
> I will
> >> contact him soon.
> >>
> >> One more point : I have been asked if we would like to know about
> >> individual statements that breaks down the royalty (they pay the
> royalties
> >> on a quarterly period through PayPal to ASF). It seems to me that
> this would
> >> be interesting from a statistic POV. I may use my own address for
> that
> >> because we can't use private not dev or user ML (since I guess there
> will be
> >> nominative informations) and forward to private ML. What do you
> think ?
> >>
> >> I have set the links from news in main page and Wiki books page
> >>
> >> Jacques
> >>
> >> From: "Jacques Le Roux" <[EMAIL PROTECTED]>
> >>> Thanks Marco,
> >>>
> >>> Packt Publishing propose to "donate a percentage of the money made
> from
> >>> each book sold to the Apache foundation, in line with
> >>> [their] Open Source Project Royalty program". So I will before try
> to
> >>> know if something already at the ASF which allows to make that
> >>> easy. I will also put a link from our books page on Wiki.
> >>>
> >>> Of course if anybody see a problem with that feel free to express
> >>> yourself
> >>>
> >>> Jacques
> >>>
> >>> From: <[EMAIL PROTECTED]>
>  Hi to all,
> 
>  I saw on this article
>  (
> http://www.pr-inside.com/apache-ofbiz-development-the-beginner-s-tutorial-r894197.htm
> )
>  that now is
>  available one book on Apache OFBiz development.
>  If someone want to add it to the OFBiz site news.
> 
>  Thanks
>  Marco
> 
> 
> 
> 
>  -
> 
> 
> >>
> >>
> >>
> >> --
> >>
> >>
> >
>


Re: Order is charged but still in approved state

2008-11-26 Thread BJ Freeman
might look at
https://demo.hotwaxmedia.com/webtools/control/ArtifactInfo?type=service&uniqueId=changeOrderStatus


BJ Freeman sent the following on 11/26/2008 4:10 PM:
> first you need to fix the code so no exceptions.
> there is no UI that will let you change the status manually.
> the problem with using  services is they have secas that trigger that
> will attempt to capture again.
> the only way I see is to write you own service or manually change them
> through the webtools
> 
> 
> 
> William Perng sent the following on 11/26/2008 3:25 PM:
>> We have several orders; the credit card payments have been captured.
>> However, because exceptions happen after capture, they are still in approved
>> state.  Is there any way to move them to complete?  I tried "quick ship
>> entire order" button and regular pick then pack process.  I always get
>> payment exception and the orders remain in approved state since the payments
>> have been captured and our credit card service provider doesn't allow me
>> capture those payments twice.
>>
>>  
>>
>> Thanks
>>
>>  
>>
>> William
>>
>>
> 
> 


Re: Order is charged but still in approved state

2008-11-26 Thread BJ Freeman
first you need to fix the code so no exceptions.
there is no UI that will let you change the status manually.
the problem with using  services is they have secas that trigger that
will attempt to capture again.
the only way I see is to write you own service or manually change them
through the webtools



William Perng sent the following on 11/26/2008 3:25 PM:
> We have several orders; the credit card payments have been captured.
> However, because exceptions happen after capture, they are still in approved
> state.  Is there any way to move them to complete?  I tried "quick ship
> entire order" button and regular pick then pack process.  I always get
> payment exception and the orders remain in approved state since the payments
> have been captured and our credit card service provider doesn't allow me
> capture those payments twice.
> 
>  
> 
> Thanks
> 
>  
> 
> William
> 
> 


Order is charged but still in approved state

2008-11-26 Thread William Perng
We have several orders; the credit card payments have been captured.
However, because exceptions happen after capture, they are still in approved
state.  Is there any way to move them to complete?  I tried "quick ship
entire order" button and regular pick then pack process.  I always get
payment exception and the orders remain in approved state since the payments
have been captured and our credit card service provider doesn't allow me
capture those payments twice.

 

Thanks

 

William



Re: Log configuration resets itself, when I restart OFBiz

2008-11-26 Thread BJ Freeman
are you setting it up through the webtools?
which log(s), now we many?

Eric DE MAULDE sent the following on 11/26/2008 8:20 AM:
> Hi,
> 
> Log configuration resets itself, when I restart OFBiz.
> Is there a solution to keep my own configuration, after a restart ?
> 
> Thanks
> 
> Eric 


Re: Page Processing Error - Problems Processing Event

2008-11-26 Thread BJ Freeman
you can put this on the wiki for reference.
just add a page
http://docs.ofbiz.org/display/OFBIZ/FAQ+-+Tips+-+Tricks+-+Cookbook+-+HowTo

madppiper sent the following on 11/26/2008 8:51 AM:
> Never mind, the code posted above works just swell... anybody interested in
> this: go ahead and use it ;)


Re: Page Processing Error - Problems Processing Event

2008-11-26 Thread madppiper

Never mind, the code posted above works just swell... anybody interested in
this: go ahead and use it ;)
-- 
View this message in context: 
http://www.nabble.com/Page-Processing-Error---Problems-Processing-Event-tp20666157p20704788.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Log configuration resets itself, when I restart OFBiz

2008-11-26 Thread Eric DE MAULDE
Hi,

Log configuration resets itself, when I restart OFBiz.
Is there a solution to keep my own configuration, after a restart ?

Thanks

Eric 

Re: Page Processing Error - Problems Processing Event

2008-11-26 Thread madppiper

Well, heres the thing though: 



I created a service for the my purpose and added it to the service.xml file
that i load in my own application: 






Run a query on CMS and return the 
results




it only takes the query which is basically a url and then has the
org.brandsparadise.cms.Magnolia class process it and output the result as
wanted... 

Once called, this does work! However, only for any url not within localhost.
Otherwise I receive the same errors as above. The odd thing is: I do not
receive those errors when I access the same url with my own browser, only
when using httprequest...








btw. for anybody else here having such a hard time finding an idiot-proof
guide for something like this , try to :

1) (Skip if a service.xml file is already existent) create a new service.xml
file in your appication directory (i created it in an extra folder:
servicedef) and add the very same to the ofbizcomponent.xml file --> e.g. by
adding:

   




2) open the service.xml file and add:


[...]



Run a query on CMS and return the 
results



 


[...]

(take a look at any other service.xml file on the exact layout of a
service.xml file)

3) create a new src folder and load the sources via ofbiz-component.xml:

 

4) Create a new package and call it any name you like (I called mine:
org.brandsparadise.cms). Add a class to it (i called mine: Magnolia.java)
and add something along the line of :


package org.brandsparadise.cms;

import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.util.Map;
import java.net.*;
import junit.framework.TestCase;


import org.ofbiz.service.DispatchContext;
import org.ofbiz.service.ServiceUtil;

/**
 * Base class for OFBiz Test Tools test case implementations.
 */

public abstract class Magnolia extends TestCase {

public static final String module = Magnolia.class.getName();
public static String cmsUrl = "http://www.google.com";;

/**
 * runs a query on the Solr Search Engine and returns the results
 * 
 */
public static Map runCMSQuery(DispatchContext dctx, Map context) {

try {
// get Connection
StringBuilder result = new StringBuilder();
byte[] buffer = new byte[8192];

InputStream s;

URL url = new URL(cmsUrl + context.get("query").toString());
s = url.openStream();

int size = 0;

do {
size = s.read(buffer);
if (size != -1)
result.append(new String(buffer, 0, size));
} while (size != -1);

context = ServiceUtil.returnSuccess();
context.put("queryResult", result.toString());

} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
context = ServiceUtil.returnError(e.toString());

} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
context = ServiceUtil.returnError(e.toString());
}

// Debug.log("Query Result: "+results.toString());
return context;
}

public static void main(String[] args) {
junit.textui.TestRunner.run(Magnolia.class);
System.exit(0);
}
}



This should actually be it.-You can now run the service from the webtools
directory on the ofbiz interface...


-- 
View this message in context: 
http://www.nabble.com/Page-Processing-Error---Problems-Processing-Event-tp20666157p20702463.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



GL Chart of Accounts

2008-11-26 Thread Wicus

Hi,

Can someone please explain the following entries' necessities  / relation
and in more layman's terms ?

1.) GL Account Id: required : Specific GL account's number
2.) GL Account Type Id : required : Income & Expense referenced
would result in the creation of the Income Statement, whereas all other
references would result in the creation of the Balance Sheet 
3.) GL Account Class Id: not   : or rather applicable as
explained in point 2
4.) GL Resource Type Id   : ?  : Only references is "MONEY" 
?
5.) GL Xbrl Class Id  : ?  : No Idea 
6.) Parent GL account Id   : ?  : Applicable if this is a
sub-ledger
7.) Account Code :: Same as point 1
8.) Account Name:: Descriptive Name
9.) Description :   : Lenghtier description
10.) Product Id:   :  : ?

Be warned   :)Novice at work ;)

Thanks
-- 
View this message in context: 
http://www.nabble.com/GL-Chart-of-Accounts-tp20702023p20702023.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



RE: Entity Sync

2008-11-26 Thread Amit Shinde
Hey Sam,

 

Although, we can schedule the push and pull services at different times
through RecurrenceRule, there is still a possibility that push and pull
might run at the same time. To make sure this doesnt happen, you can write a
piece of code in both runPullEntitySync and runEntitySync services that
checks whether runEntitySync or runPullEntitySync service is running or not
through JobSandbox table. So when in runPullEntitySync, we check whether
runEntitySync service is running and if it is, we return an error and this
re-schedules runPullEntitySync service again for later.

 

This should make both services mutuallly exclusive. Its the first pull that
takes hours, but after that it should be quick enough. So scheduling push
pull service in a gap of 1-2 hours should work.

 

I am sure you must have referred this document -
http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example but that
should be some information.

 

Also, on another note, I had an issue with Inventory when pushing data
across. The problem occurred when a new InventoryItem record was created on
POS. So now when that InventoryItem is created on MCS, it triggers an ECA
service 'createInventoryItemCheckSetAtpQoh' and this creates
InventoryItemDetail records again thus doubling the inventory as
InventoryItemDetail records for the same InventoryItem were being pushed as
well. I had to filter InventoryItemDetail records from the create records
list before push to avoid this problem.

 

 

Hope this helps,

Thanks,

 

Amit Shinde

 

Amicon Technologies Pvt. Ltd., Mumbai, India.

India's No.1 OFBiz service provider

 

-Original Message-
From: Sam Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 26, 2008 5:35 PM
To: user@ofbiz.apache.org
Subject: Entity Sync

 

Quick question - with the entity sync function can you run push and pull at
the same time?

I have a feeling that this is not a good idea but still trying to work out
how the sync works exactly.

 

We have it up and running between three locations.

We consider the master database in Hong Kong with remote servers in USA and
China.

 

Thanks

Sam=



Re: Page Processing Error - Problems Processing Event

2008-11-26 Thread BJ Freeman
it is real important that you understand how ofbiz works.
Taking the time to go through the documentation will get you further ahead.
look at the content module since CMS is what you are trying todo.
I would say the best is to pass you data into a event that you then
parse your data using java.
So the best example would be to learn how to pass data through the
controller to an event.
you do this by using the httprequest, in your case.
once you have read enough to understand what I wrote things will be clearer.

madppiper sent the following on 11/26/2008 4:54 AM:
> aha... hmm... 
> 
> so could you hint me to anything to look for or a certain application to
> take a look at?
> 
> 
> BJ Freeman wrote:
>> the google implementation uses xml, the paypal IPN uses a an html
>> response but does not go through the controller.
>> It is a is being return to the code that send the original request,
>> which then parses the parms returned.
>> So I doubt either will help you.
>>
>>
>> madppiper sent the following on 11/26/2008 1:48 AM:
>>> Ah...
>>>
>>>
>>> Well last night I have taken a look at the paypal and google
>>> implementation
>>> at the specialpurpose directory. I got a feeling that I may find the
>>> solution in there... Thx for your help!
>>>
>>>
>>>
>>>
>>> BJ Freeman wrote:
 to clarify:
 there are no examples how to pass an htm files into ofbiz.
 there are examples how to marshal information into Context or
 httpRequests and pass them thru the controller to services, events, and
 or views.


 BJ Freeman sent the following on 11/25/2008 10:09 AM:
> There are many examples in ofbiz.
>
> madppiper sent the following on 11/25/2008 10:03 AM:
>> Absolutely...
>>
>>
>> So how would i get through the controller exactly? I do not want to
>> include
>> the ftl files of the cms directly, because then I wouldn't be using
>> the
>> cms-renderer...
>>
>>
> 


FW: Entity Sync

2008-11-26 Thread Nikita Shinde
Hey Sam,

 

Although, we can schedule the push and pull services at different times
through RecurrenceRule, there is still a possibility that push and pull
might run at the same time. To make sure this doesnt happen, you can write a
piece of code in both runPullEntitySync and runEntitySync services that
checks whether runEntitySync or runPullEntitySync service is running or not
through JobSandbox table. So when in runPullEntitySync, we check whether
runEntitySync service is running and if it is, we return an error and this
re-schedules runPullEntitySync service again for later.

 

This should make both services mutuallly exclusive. Its the first pull that
takes hours, but after that it should be quick enough. So scheduling push
pull service in a gap of 1-2 hours should work.

 

I am sure you must have referred this document -
http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example but that
should be some information.

 

Also, on another note, I had an issue with Inventory when pushing data
across. The problem occurred when a new InventoryItem record was created on
POS. So now when that InventoryItem is created on MCS, it triggers an ECA
service 'createInventoryItemCheckSetAtpQoh' and this creates
InventoryItemDetail records again thus doubling the inventory as
InventoryItemDetail records for the same InventoryItem were being pushed as
well. I had to filter InventoryItemDetail records from the create records
list before push to avoid this problem.

 

 

Hope this helps,

Thanks,

 

Nikita Shinde

 

Amicon Technologies Pvt. Ltd., Mumbai, India.

India's No.1 OFBiz service provider

 

-Original Message-
From: Sam Hamilton [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 26, 2008 5:35 PM
To: user@ofbiz.apache.org
Subject: Entity Sync

 

Quick question - with the entity sync function can you run push and pull at
the same time?

I have a feeling that this is not a good idea but still trying to work out
how the sync works exactly.

 

We have it up and running between three locations.

We consider the master database in Hong Kong with remote servers in USA and
China.

 

Thanks

Sam=



Re: Page Processing Error - Problems Processing Event

2008-11-26 Thread madppiper

aha... hmm... 

so could you hint me to anything to look for or a certain application to
take a look at?


BJ Freeman wrote:
> 
> the google implementation uses xml, the paypal IPN uses a an html
> response but does not go through the controller.
> It is a is being return to the code that send the original request,
> which then parses the parms returned.
> So I doubt either will help you.
> 
> 
> madppiper sent the following on 11/26/2008 1:48 AM:
>> Ah...
>> 
>> 
>> Well last night I have taken a look at the paypal and google
>> implementation
>> at the specialpurpose directory. I got a feeling that I may find the
>> solution in there... Thx for your help!
>> 
>> 
>> 
>> 
>> BJ Freeman wrote:
>>> to clarify:
>>> there are no examples how to pass an htm files into ofbiz.
>>> there are examples how to marshal information into Context or
>>> httpRequests and pass them thru the controller to services, events, and
>>> or views.
>>>
>>>
>>> BJ Freeman sent the following on 11/25/2008 10:09 AM:
 There are many examples in ofbiz.

 madppiper sent the following on 11/25/2008 10:03 AM:
> Absolutely...
>
>
> So how would i get through the controller exactly? I do not want to
> include
> the ftl files of the cms directly, because then I wouldn't be using
> the
> cms-renderer...
>

>>>
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Page-Processing-Error---Problems-Processing-Event-tp20666157p20699706.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



Entity Sync

2008-11-26 Thread Sam Hamilton
Quick question - with the entity sync function can you run push and pull at the 
same time?
I have a feeling that this is not a good idea but still trying to work out how 
the sync works exactly.

We have it up and running between three locations.
We consider the master database in Hong Kong with remote servers in USA and 
China.

Thanks
Sam

Re: Page Processing Error - Problems Processing Event

2008-11-26 Thread BJ Freeman
the google implementation uses xml, the paypal IPN uses a an html
response but does not go through the controller.
It is a is being return to the code that send the original request,
which then parses the parms returned.
So I doubt either will help you.


madppiper sent the following on 11/26/2008 1:48 AM:
> Ah...
> 
> 
> Well last night I have taken a look at the paypal and google implementation
> at the specialpurpose directory. I got a feeling that I may find the
> solution in there... Thx for your help!
> 
> 
> 
> 
> BJ Freeman wrote:
>> to clarify:
>> there are no examples how to pass an htm files into ofbiz.
>> there are examples how to marshal information into Context or
>> httpRequests and pass them thru the controller to services, events, and
>> or views.
>>
>>
>> BJ Freeman sent the following on 11/25/2008 10:09 AM:
>>> There are many examples in ofbiz.
>>>
>>> madppiper sent the following on 11/25/2008 10:03 AM:
 Absolutely...


 So how would i get through the controller exactly? I do not want to
 include
 the ftl files of the cms directly, because then I wouldn't be using the
 cms-renderer...

>>>
>>
> 


Re: How great the progress you make!

2008-11-26 Thread Sumit Pandit
Hello Weizhan, 
Welcome back. 

Sumit Pandit 




- Original Message - 
From: "guo weizhan" <[EMAIL PROTECTED]> 
To: user@ofbiz.apache.org 
Sent: Wednesday, November 26, 2008 2:50:01 PM GMT +05:30 Chennai, Kolkata, 
Mumbai, New Delhi 
Subject: How great the progress you make! 

How great progress you guys make in this half year! Ofbiz have ajax, groovy, 
Visual theme and so lots of improvements. I'm very exciting to see that, and 
have to learn more about Ofbiz :) 
After half year busy in some other projects, I can back to the Ofbiz now and 
say hello to everyone again. 


Re: Page Processing Error - Problems Processing Event

2008-11-26 Thread madppiper

Ah...


Well last night I have taken a look at the paypal and google implementation
at the specialpurpose directory. I got a feeling that I may find the
solution in there... Thx for your help!




BJ Freeman wrote:
> 
> to clarify:
> there are no examples how to pass an htm files into ofbiz.
> there are examples how to marshal information into Context or
> httpRequests and pass them thru the controller to services, events, and
> or views.
> 
> 
> BJ Freeman sent the following on 11/25/2008 10:09 AM:
>> There are many examples in ofbiz.
>> 
>> madppiper sent the following on 11/25/2008 10:03 AM:
>>> Absolutely...
>>>
>>>
>>> So how would i get through the controller exactly? I do not want to
>>> include
>>> the ftl files of the cms directly, because then I wouldn't be using the
>>> cms-renderer...
>>>
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Page-Processing-Error---Problems-Processing-Event-tp20666157p20697744.html
Sent from the OFBiz - User mailing list archive at Nabble.com.



How great the progress you make!

2008-11-26 Thread guo weizhan
How great progress you guys make in this half year! Ofbiz have ajax, groovy,
Visual theme and so lots of improvements. I'm very exciting to see that, and
have to learn more about Ofbiz :)
After half year busy in some other projects, I can back to the Ofbiz now and
say hello to everyone again.