Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0027209Openbravo ERPB. User interfacepublic2014-07-27 17:552014-07-29 08:03
gorozcoh 
dbaz 
highmajoralways
closedno change required 
10Windows Server 2008 R2 Standard
 
 
Google Chrome
Core
No
0027209: Error 404 Open Process PopUp
Process linked to window button do not run. Shows Error 404 Resource not found.
(See Attached Files)
0. Create Openbravo Clean Instance.
1. Create new Module
2. Create Table A in PostgreSQL
3. Create Stored Procedure C (Function) in PostgreSQL
4. Create a process in Report & Process Window using stored procedure C in PostgreSQL.
5. Create Table A with column button
6. Create Window B linked to Table A
7. Try run process in window B
No tags attached.
rar ErrorOpenbravo.rar (249,076) 2014-07-27 17:55
https://issues.openbravo.com/file_download.php?file_id=7091&type=bug
png Report and Process Without Java Class.png (86,002) 2014-07-29 02:34
https://issues.openbravo.com/file_download.php?file_id=7097&type=bug
png
Issue History
2014-07-27 17:55gorozcohNew Issue
2014-07-27 17:55gorozcohAssigned To => dbaz
2014-07-27 17:55gorozcohFile Added: ErrorOpenbravo.rar
2014-07-27 17:55gorozcohWeb browser => Google Chrome
2014-07-27 17:55gorozcohModules => Core
2014-07-27 17:55gorozcohTriggers an Emergency Pack => No
2014-07-29 01:26dbazNote Added: 0068939
2014-07-29 01:28dbazStatusnew => feedback
2014-07-29 02:34gorozcohFile Added: Report and Process Without Java Class.png
2014-07-29 02:42gorozcohNote Added: 0068940
2014-07-29 08:02alostaleNote Added: 0068941
2014-07-29 08:03alostaleNote Added: 0068942
2014-07-29 08:03alostaleStatusfeedback => closed
2014-07-29 08:03alostaleResolutionopen => no change required

Notes
(0068939)
dbaz   
2014-07-29 01:26   
In the "Steps to reproduce" I don't see the step where you create the java that handles the process.

I would suggest you to follow this guide:
http://wiki.openbravo.com/wiki/How_to_create_a_Standard_Process_Definition#Java_Implementation [^]

Anyway, if you want to see a real example in core, check this process:
FIN_AddPaymentFromJournal

Where you can see that there is a "Report and Process" created for it, with a "Process Class" associated.

Also, there is a "FIN_AddPaymentFromJournal.java" file that calls the stored procedure. This kind of file is what I miss in your "Steps To Reproduce".
(0068940)
gorozcoh   
2014-07-29 02:42   
thanks for your kind reply.

In page http://wiki.openbravo.com/wiki/Processes [^] you could see:

Defining Processes

Processes can be of two different types: PL/SQL Processes and Java Processes. PL/SQL processes are implemented in the PL/SQL language and are executed by the database engine. Java proceses are implemented in the Java language and are executed by the application server.

My process is PL/SQL type. Java clas is not required. there are dozens of such processes in openbravo(see file attached Report & Process Without Java Class.png) without java class associated.

I've created and used before such processes in my applications and had never received this error message.
(0068941)
alostale   
2014-07-29 08:02   
Looks like compilation is missed (I updated documentation with a note to include it). So in your case before step 7 you should run ant smartubuild and restart Tomcat.
(0068942)
alostale   
2014-07-29 08:03   
Updated documentation http://wiki.openbravo.com/wiki/Processes#Executing_processes [^] to include required compilation step.