creating a new process

Ouch!! Open Source ERP & Compiere beginners WILL have Teething Pains. This is where you rumbled thru like Rasputin, cry like a babe, and grin like a chimp! :D

Moderators: lofx, neilg, moyses, hema

creating a new process

Postby hema » Wed May 11, 2005 10:43 pm

Hi,

I created a new process, 'NewProcess.java' and placed it in the base/src/org/compiere/process folder.
In the Report & Process window, I created a new record called NewProcess and set the classname to org.compiere.process.NewProcess. Then I linked it to a button. When I click on the button I get "ClassNotFound". My trace is as follows:

APanel.setStatusLine: ClassNotFound [11]
17:39:06.218 CPreparedStatement.executeQuery: server => CStatementVO[SEL
ECT Log_ID, P_ID, P_Date, P_Number, P_Msg FROM AD_PInstance_Log WHERE AD_PInstan
ce_ID=? ORDER BY Log_ID; #1=1000966], Remote=true

However when I link an existing compiere process to my button, it runs.

Am I missing something?

Thank you very much,
Hema
hema
Regular
 
Posts: 81
Joined: Wed Aug 25, 2004 5:21 pm

creating a new Process

Postby new_soft » Wed May 11, 2005 11:09 pm

Hi Hema,
I dont know why exactly, but try to re-deploy all. Perhaps. Try and let us know why.
new_soft
Best Regards,

Khaled Najeh.
new_soft
 
Posts: 28
Joined: Tue Dec 21, 2004 9:29 pm
Location: TUNISIA

Postby red1 » Thu May 12, 2005 12:38 am

Hi New Soft,
Thanks for the compliments and u re certainly welcome ! :)

Hi Hema,
hmm, it seems that u are entering the developer's world and doing some code! U re using Eclipse? Well if so, Eclipse can check first if your code is fully clear and clean.
When u say u run it, are u running from Eclipse or outside it? Otherwise u have to compile it and deploy the jars again.
red1
Site Admin
 
Posts: 2759
Joined: Tue Jul 06, 2004 3:01 pm
Location: Kuala Lumpur, Malaysia

Postby hema » Thu May 12, 2005 2:44 pm

Hi new_soft & red1,

thank you for your replies.
I am coding and running via eclipse. For testing purposes my NewProcess.java only contains the following:

package org.compiere.process;

public class NewProcess extends SvrProcess
{

/**
* Prepare
*/
protected void prepare ()
{

} // prepare

/**
* Process
* @return info
* @throws Exception
*/
protected String doIt ()throws Exception
{

return "";
} // doIt

} // TestProcess

When I run in eclipse, I still get the "ClassNotFound" error.

I also tried to redeploy via run_build.bat and run_setup.bat. I get the same error message.

I still don't know why.

Regards,
Hema
hema
Regular
 
Posts: 81
Joined: Wed Aug 25, 2004 5:21 pm

Postby hema » Thu May 12, 2005 3:21 pm

Hello again,

my process is working now. I re-dployed it a second time.

thank you very much,
Hema
hema
Regular
 
Posts: 81
Joined: Wed Aug 25, 2004 5:21 pm

Postby hema » Thu May 12, 2005 4:51 pm

Sorry,

I come back on what I wrote earlier.

My process is still gives "ClassNotFound" error.

Any idea what might be wrong?

Hema
hema
Regular
 
Posts: 81
Joined: Wed Aug 25, 2004 5:21 pm

Postby trifon » Thu May 12, 2005 10:15 pm

Hi Hema,

could you try to find your org.compiere.process.NewProcess in Compiere.jar file?

Regards,
Trifon
Trifon Trifonov
trifon
Senior
 
Posts: 324
Joined: Thu Dec 23, 2004 11:20 pm
Location: Bulgaria, Sofia

Postby hema » Fri May 13, 2005 4:06 pm

Hi Trifon,

Thank you very much for your help. I checked the Compiere.jar file and NewProcess.class is there.

Regards,
Hema
hema
Regular
 
Posts: 81
Joined: Wed Aug 25, 2004 5:21 pm

try to deploy your work

Postby artu » Tue May 17, 2005 6:46 am

hi Hema,

From you log :


****************
17:39:06.218 CPreparedStatement.executeQuery: server => CStatementVO[SEL
ECT Log_ID, P_ID, P_Date, P_Number, P_Msg FROM AD_PInstance_Log WHERE AD_PInstan
ce_ID=? ORDER BY Log_ID; #1=1000966], Remote=true
****************

your must check "run processes on server" at [tools--preference].And if remote debug,your remote jboss jar of your work must be new.

So,after your work,you have to get a new installation,and use this as your new server.

Maybe a little help!

artu001
artu
 
Posts: 1
Joined: Wed Mar 23, 2005 2:52 pm


Return to Growing Pains

Who is online

Users browsing this forum: No registered users and 2 guests