Login
Register

Home

Trainings

Fusion Blog

EBS Blog

Authors

Contact Us

Senthilkumar Shanmugam
  • Register

Oracle Gold Partners, our very popular training packages, training schedule is listed here
Designed by Five Star Rated Oracle Press Authors & Oracle ACE's.

webinar new Click here to raise Support Ticket. Get reply within 48 hours.

Search Courses

×

Warning

JUser: :_load: Unable to load user with ID: 881

User Rating: 5 / 5

Star ActiveStar ActiveStar ActiveStar ActiveStar Active
 

Hello World Program in Mobile Applications
In this article, we will create a Hello World page which gets the name from the user and prints the same with the string “Hello World”
We have to create 3 Java Class for the same. They are

1. CustomTestFunction.java: This Class is for Application level initialization and this class is registered as the Function in AOL. This extends the base class MenuItemBean

2. CustomTestPage.java: This Class is for Page initialization. It just creates the layout and adds the beans to the page. It extends PageBean Class

3. CustomTestFListener.java: This Class is the event listener class. It listens to the events on each bean on the page and calls appropriate method to handle the event.

 

1) CustomTestFunction.java

 

/* Function class - this links the page with FND Function in AOL */

package xxx.custom.server;

import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.inv.utilities.server.UtilFns;
import oracle.apps.mwa.beans.MenuItemBean;
import oracle.apps.mwa.eventmodel.MWAAppListener;
import oracle.apps.mwa.eventmodel.MWAEvent;


public class CustomTestFunction extends MenuItemBean implements MWAAppListener

{


public CustomTestFunction()

{

//Link the page with the function

setFirstPageName("xxx.custom.server.CustomTestPage");

addListener(this);

}

 

public void appEntered(MWAEvent mwaevent)

{

// Code here to initialize Application Level

 

// Logging Functions

UtilFns.trace("Application Entered");

}

 

public void appExited(MWAEvent mwaevent)

{

// Code to be executed when the user exits the application

 

// Logging Functions

UtilFns.trace("Application Exited");

}

 

public static final String RCS_ID = "$Header:$";

public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header:$", "%packageheader%");

 

}

 

 

 

2. CustomTestPage.java

 

/* Page Class - Which has the Page Layout. We create and add beans to it */

package xxx.custom.server;

 

import oracle.apps.fnd.common.VersionInfo;

import oracle.apps.inv.utilities.server.UtilFns;

import oracle.apps.mwa.beans.ButtonFieldBean;

import oracle.apps.mwa.beans.PageBean;

import oracle.apps.mwa.beans.TextFieldBean;

import oracle.apps.mwa.eventmodel.AbortHandlerException;

import oracle.apps.mwa.eventmodel.DefaultOnlyHandlerException;

import oracle.apps.mwa.eventmodel.InterruptedHandlerException;

import oracle.apps.mwa.eventmodel.MWAEvent;

 

import xxx.custom.server.CustomTestFListener;

 

 

//Page Listener Class

 

 

public class CustomTestPage extends PageBean {

 

 

/**

* Default constructor which just initialises the layout.

*/

public CustomTestPage() {

//Method to initialize the layout

initLayout();

}

 

 

/**

* Does the initialization of all the fields. Creates new instances

* and calls the method to set the prompts which may have to be later

* moved to the page enter event if we were using AK prompts as we

* require the session for the same.

*/

private void initLayout() {

 

//Logging

if (UtilFns.isTraceOn)

UtilFns.trace("CustomPage initLayout");

 

//Create a Text Filed and Set an ID

mHelloWorld = new TextFieldBean();

mHelloWorld.setName("TEST.HELLO");

 

// Create a Submit Button and set an ID

mSubmit = new ButtonFieldBean();

mSubmit.setName("TEST.SUBMIT");

 

//add the fields

addFieldBean(mHelloWorld);

addFieldBean(mSubmit);

 

//add field listener to all necessary fields

CustomTestFListener fieldListener =

new CustomTestFListener();

 

mHelloWorld.addListener(fieldListener);

mSubmit.addListener(fieldListener);

 

//call this method to initializa the prompts

this.initPrompts();

}

 

 

/**

* Method that sets all the prompts up.

*/

private void initPrompts() {

 

UtilFns.trace(" Custom Page - Init Prompts");

 

// sets the page title

this.setPrompt("Test Custom Page");

 

// set the prompts for all the remaining fields

mHelloWorld.setPrompt("Enter Your Name");

mSubmit.setPrompt("Submit");

 

//please note that we should not hard code page name and prompts

//as it may cause translation problems

//we have an different procedure to overcome this

 

}

 

// This method is called when the user clicks the submit button

 

public void print(MWAEvent mwaevent, TextFieldBean mTextBean) throws AbortHandlerException

{

UtilFns.trace(" Custom Page - print ");

 

// Get the value from Text bean and append hello world

// and display it to user on the same field

String s = mTextBean.getValue();

mTextBean.setValue(s+" Hello World");

}

 

// Method to get handle of TextBean

public TextFieldBean getHelloWorld() {

return mHelloWorld;

}

 

//Method called when the page is entered

 

public void pageEntered(MWAEvent e) throws AbortHandlerException,

InterruptedHandlerException,

DefaultOnlyHandlerException {

 

UtilFns.trace(" Custom Page - pageEntered ");

 

}

 

//Method called when the page is exited

 

public void pageExited(MWAEvent e) throws AbortHandlerException,

InterruptedHandlerException,

DefaultOnlyHandlerException {

 

UtilFns.trace(" Custom Page - pageExited ");

 

}

 

// Create the Bean Variables

TextFieldBean mHelloWorld;

protected ButtonFieldBean mSubmit;

 

}

 

 

3) CustomTestFListener.java

 

/* Listener Class - Handles all events */

 

package xxx.custom.server;

import oracle.apps.inv.utilities.server.UtilFns;
import oracle.apps.mwa.beans.FieldBean;
import oracle.apps.mwa.container.Session;
import oracle.apps.mwa.eventmodel.AbortHandlerException;
import oracle.apps.mwa.eventmodel.DefaultOnlyHandlerException;
import oracle.apps.mwa.eventmodel.InterruptedHandlerException;
import oracle.apps.mwa.eventmodel.MWAEvent;
import oracle.apps.mwa.eventmodel.MWAFieldListener;

 

 

public class CustomTestFListener implements MWAFieldListener {

public CustomTestFListener() {

}

 

public void fieldEntered(MWAEvent mwaevent) throws AbortHandlerException,InterruptedHandlerException, DefaultOnlyHandlerException {

UtilFns.trace("Inside Field Entered");

 ses = mwaevent.getSession();

String s = UtilFns.fieldEnterSource(ses);

// Prints the Current Bean's ID

UtilFns.trace("CustomFListener:fieldEntered:fldName = " + s);

}

 

public void fieldExited(MWAEvent mwaevent) throws AbortHandlerException, InterruptedHandlerException, DefaultOnlyHandlerException {

String s = ((FieldBean)mwaevent.getSource()).getName();

// Prints the Current Bean's ID

UtilFns.trace("CustomFListener:fieldExited:fldName = " + s);

 

// Get handle to session and page
Session ses = mwaevent.getSession();
pg = (CustomTestPage)ses.getCurrentPage();


// when the user clicks the Submit button call the method to print
// Hello world with the text entered in text box

 

if (s.equals("TEST.SUBMIT")) {

 pg.print(mwaevent,pg.getHelloWorld());

return;

 }

}

// Varibale declaration
CustomTestPage pg;
Session ses;

}



 

 

Screen shots:

 

Fig 1: Choose the Responsibility in the Mobile Device

Image

 

Fig 2: Choose the Function from main menu
Image

 

 


Fig 3: The Hello World Page appears

Image

 

Fig 4: Enter your name

Image

 

Fig 5: When you click submit button, Your name is appended with Hello world and displayed in the Text Box

Image

 

For MSCA/OAF consulting kindly contact us at This email address is being protected from spambots. You need JavaScript enabled to view it.

 


Comments   

0 #1 Amar@genpacts/w 2008-02-10 20:07
Hi Senthil,

Thank s for the detailed description on creating a Test page. Senthil, I have one question, Iam new to MWA so if I want to know about the various classes that we use in creating and customising the pages, for example this statement

impo rt oracle.apps.mwa .eventmodel.MWA Event;

I want to know the functionality of the methods in this clase, is there any Developer guide or any doc that has detailed informtion like these. Kindly Please help me on this.

Thanks in Anticipation.
A mar
Quote
0 #2 Rohini 2008-02-13 19:20
Hi Amar,

As far as I know, there is no developer guide made available to public by Oracle. However you can find some documents related to customizing/ext ending the Mobile Applications using MWA in metalink.

As you have requested, I plan to write some articles regarding the Beans available for MWA/MSCA and some APIs related to it in near future.

Thanks and Regards,
Senthi l
Quote
0 #3 brad 2008-03-10 21:54
Hi Senthil,

Great info! I've been looking for just this sort of tutorial for quite some time. I was hoping you could share some environment setup info for the java novice. I'm a pl/sql, forms, and reports programmer with a pretty rudimentary knowledge of java. It would be great if you could walk throught he steps required to create a new package with Jdeveloper that includes all of the referenced classes so we can take your sample .java and compile

Thanks !!!
Brad
Quote
0 #4 Rohini 2008-03-10 22:05
Hi Brad,

I am in process of writing a Java Doc for MWA. I will also try to include some sort of information along with that which you are looking for.

Thanks and Regards,
Senthi l
Quote
0 #5 Krishna Malleswara Rao 2008-04-12 09:56
Hi Senthil,
Thank you for this and other wonderful articles. I have a small question.
Can I use rf gun with this custom mobile form without adding special code or this textfield will get populated when I read data using rf gun.
Regards, Nathan.
Quote
0 #6 Rohini 2008-04-12 13:51
Hi Nathan,

Yep .. I tested this page with mobile device and i was able to read the data from the barcode using the RF gun without any special code.

Thanks,
Senthil
Quote
0 #7 Harish 2008-04-17 03:43
Hi senthil,

I am very much new to Oracle apps and ofcourse to MSCA. How can i create a pop up for displaying an error or success message with a sound suitable to them respectively.Is there any standard package for sound.
Quote
0 #8 Rohini 2008-04-17 03:52
Hi Harish,

Most of the mobile applications used in big Warehouses will be like a Character based application and you will not see the features of GUI like popups... The only sound you can hear from them is a "beep" sound ... :)

Thanks and Regards,
Senthi l
Quote
0 #9 Harish 2008-04-17 04:38
Hi senthil,

Thank s for your reply. But, the requirement that has been passed on to me is to, create a pop up message with a sound. Cant this be done atall??? :'(
Quote
0 #10 Rohini 2008-04-17 04:47
Hi Harish,

To my knowledge, I havent seen any mobile screens with popups. Also MSCA/MWA Framework doesnt have any feature to do the same. The normal process we follow in MSCA is to display the error message at the bottom of the screen with a beep sound.

Thanks and Regards,
Senthi l
Quote
0 #11 Harish 2008-04-17 06:36
Hi senthil,

Once again thanks for your information.Can you let me know how to enable the beep sound while displaying a message at the bottom of the screen.
And..Is there only beep sound that can be made..cant we provide a sound which indicates it is an error.

Regards ,
Harish.
Quote
0 #12 Rohini 2008-04-17 11:57
Hi Harish,
For the popup message I can suggest you the following workaround. This is more like a dialog page in OAF (if you are not comfortable with OA Framework ..no worries... just go ahead...) where in which the user will be redirected to a new confirmation or warning page. There you can show your warning messge or ask for confirmation etc... When the user press OK or Cancel or any other button of their choice,user will be returned back to your original Mobile form and do your processing based on user input in dialog page.

You can try that using the following code snippet:

impor t oracle.apps.mwa .presentation.t elnet.TelnetSes sion;

........ ............... .....

String dialogPageButto ns[] = {
"OK","Cancel"
};

TelnetSession telnetsession1 = (TelnetSession) ses;
int k = telnetsession1. showPromptPage( "Dialog Page Title","Dialog Page Message",dialog PageButtons);
if(k == 0) {
//the user pressed "OK" button ....write you custom logic ...
}

Hope this helps.

Thanks and Regards,
Senthi l

[img src=c: mp\dialog.gif]
Quote
0 #13 Harish 2008-04-18 00:34
Hi senthil,

Thank s a lot ...This is very usefull.
Quote
0 #14 Rohini 2008-04-18 04:00
Hi Harish,

You can try out the following code snippet to produce beep sound.

import oracle.apps.mwa .presentation.t elnet.*;

PresentationMan ager presentationman ager = ((TelnetSession)ses).getPresentationMan ager();
ProtocolHandler protocolhandler = presentationman ager.getProtocolHandler();
protocolhandler .willSendNegati veSound();

... ............... .........

You can play aroung with couple of methods available in ProtocolHandler Class for getting different sounds and select one ..

Hope this helps.

Thanks and Regards,
Senthi l
Quote
0 #15 Harish 2008-04-18 05:22
Thank you very much senthil...
Quote
0 #16 Rohini 2008-04-19 09:50
[img src=c:/dialog.j pg alt = "Dialog Page in MSCA"]
Quote
0 #17 Rohini 2008-04-20 06:33
Here is the image which has a the snapshot of Dialog page in MSCA

Quote
0 #18 Himanshu Joshi 2008-04-21 02:50
Hi


Please Provide patch 4205328 for MWA Setup, Testing, Error Logging and Debugging

Rega rds
Himanshu Joshi
Quote
0 #19 nisha 2008-04-21 07:02
Hi Senthil,
In designing a new page,we saw 3 java class files created for the Purpose.Please let us know how to proceed further like precisely where it has to be place and what needs to compiled ?
Apologies if we are asking very fundamental questions!

Rgd s
Quote
0 #20 nisha 2008-04-21 07:46
Hi Senthil,

Addin g to my earlier doubts, can you kindly let me know if we need to write additional code to the source code in java and then recompile it to create our own page. If so how can i get this source code.

Regards
Nisha
Quote
0 #21 nisha 2008-04-22 02:43
Hi Senthil,
Please respond to our earlier queries as we are struck with the way forward!
Quote
0 #22 Ritesh M 2008-04-22 02:48
Hi Senthil,

I really liked your way to display the dialog message..... don't you think that we can achieve the same via creating another custom msca page for confirmation... .rather than opening another telnet session.

any thoughts ?

Regards,
Rit esh
Quote
0 #23 Ritesh M 2008-04-22 07:34
Hi Nisha,

Please follow the steps given below :

1) Copy all 3 Java Files to $CUST_TOP/java using any FTP tool
2) Set environment (if required)
3) Compile the java files using javac file.java
4) Register it ...
Quote
0 #24 nisha 2008-04-23 08:21
Hi Senthil,
We have a multirecord in the screen say typically Lot Id's,we scan Lot Id then the cursor should be in next record where a new lot will be captured.moving to next record precisely!How do we acheive this?
Quote
0 #25 Ritesh M 2008-04-24 23:39
Nisha,

Is this the standard form or its an custom form ?
Quote
0 #26 nisha 2008-04-25 00:28
Ritesh,
Its a custom form!
Quote
0 #27 Ritesh M 2008-04-25 01:09
i think you can make use of SpecialKeyPress ed event......

SpecialKeyPress ed – this is called when the user presses any special character, such as a Control character. Pressing CTRL-G to generate LPNs or Lots is one example of when this gets called
Quote
0 #28 Ritesh M 2008-04-25 01:26
by the way another question came into my mind........... ....how you have created a multirecord screen in MSCA ?....till now i've not seen a MSCA screen having Multiple Records (Generally its there in D2k forms...)...if you know any of the standard form......can u pls provide me the names of the .class/.java files...
Quote
0 #29 nisha 2008-04-25 04:14
Hi Senthil,

Is there any way we can have two text fields residing sidy by side in the UI as given below

________ ______________ _______________ __________
| | | |
|____________ _________| |______________ _________ |
Quote
0 #30 nisha 2008-04-25 04:16
Sorry the image got distorted.

[d: /img.bmp]
Quote
0 #31 Rohini 2008-04-25 18:06
Hello All,

My apologies for the delay .... there was technical problem and I havent got any notifications for your comments ... Will go through all of ur comments and post the reply tomorrow.

Than ks and Regards,
Senthi l
Quote
0 #32 Rohini 2008-04-25 18:08
A special thanks to Ritesh for answering the questions ... Appreciate it .. keep going...

Cheer s,
Senthil
Quote
0 #33 Rohini 2008-04-25 18:25
Hi Ritesh,

Design ing a new MSCA form for dialog page is also a good idea .... but this is the way, it is followed in Oracle Standard Applications.

Regarding the Multi Records, we normally handle by having the "Next" button in the form.

Hope this helps.

Thanks and Regards,
Senthi l
Quote
0 #34 Rohini 2008-04-26 07:33
Hi Nisha,

Hope Ritesh cleared most of your doubts.

Regard ing the multi record query, can u brief a littel bit more ... i could not get a clear picture of what you are trying to do ...

Regarding the UI layout issue, To my knowledege, i havent came across any such UI. Also It doesnt make much sense to have 2 fields in same row .... as the display unit in the mobile device is too small ...

Feel free to pour in your thoughts.

Than ks and Regards,
Senthi l
Quote
0 #35 Anil Passi- 2008-04-26 07:45
Hi Senthil & Ritesh

Thanks for your help to everyone here on this specialised subject matter.

Thanks
Anil Passi
Quote
0 #36 Rohini 2008-04-26 08:00
Hi Ritesh,

Regard ing the Multi Record query, you can create a drop down list box using the following class and on selection of each item in the list box, you can try and change the values for other fields in the page. I havent tried this out ... it is just a suggestion .. you can play around with this.

import oracle.apps.mwa .beans.ListFiel dBean;

Thanks and Regards,
Senthi l
Quote
0 #37 Ritesh M 2008-04-26 14:02
Hi Senthil,

thank s for your reply.....

but i think by using ListFieldBean we can't acheive MultiRecord scenario....i agree we can change the values of other fields based on the value selected from ListFieldBean.. ....

and regarding multirecord.... .by using NEXT button ....r we saving the records one by one or putting them into array...? just curious to know about the background ..... can u pls provide me any standard form which behaves the same way...

Thanks,
Ritesh
Quote
0 #38 Rohini 2008-04-26 15:28
Hi Ritesh,

Regard ing the "NEXT" button ... HashTables play a major role behind the screens. I have seen some standard screens with "Next" button feature. Not sure of the names .... will update you if I come across those pages agian.

Alterna tively, "oracle.apps.wm s.td.server.Tra nsactionDetails " Java Class play a major role in such kind of scenario.

To summarize, handling the multirecord in Mobile apps can be acheived by the following Java Classes in an effective manner.

java.s ql.ResultSet
ja va.util.Hashtab le
oracle.apps. wms.td.server.T ransactionDetai ls

Hope this helps.

Thanks and Regards,
Senthi l
Quote
0 #39 nisha 2008-04-28 02:37
Hi Senthil,

Thank s for your updates . We have the following requirement.

We are creating some custom screens (Multi record screen). This screen needs to scan a series of lot ids and some other corresponding values. So our screen needs to have a lot id and another corresponding field side by side. So far I have seen only text field one below another (Single record screen).

Is there any way by which we can have all the related text fields in a single line.

The screen should be similar to grid layout which has 2 columns per row.

Thanks,
Nisha
Quote
0 #40 Rohini 2008-04-28 03:16
Hi Nisha,

If you get the lot id and corresponding values via a single barcode, then you get it in same field as concatenated string and then u can split it using ur Java logic.

Not sure about having 2 fields in a sinlge line. Havent came across any MWA Java Class for Layouts ... If I find something, I will update you.

Thanks and Regards,
Senthi l
Quote
0 #41 Harish 2008-04-30 06:12
Hi senthil,

I was able to get negative beep and the popup window but, the problem was..The beep sound is coming only when i select OK button in the Popup window... Can u help me in this..


if(err Flg.equals("E") )
{

PresentationMan ager presentationman ager = ((TelnetSession)session).getPresentationMan ager();
ProtocolHandler protocolhandler = presentationman ager.getProtocolHandler();
protocolhandler .willSendNegati veSound();
session.setStat usMessage(errMs g);
String dialogPageButto ns[] = {"Ok"};
TelnetSession telnetsession1 = (TelnetSession) session;
int k = telnetsession1. showPromptPage( "Error",errMsg, dialogPageButto ns);
session.setNext FieldName(pg.ge tLotSublot().ge tName());

}

Regards,
Har ish
Quote
0 #42 Rohini 2008-04-30 07:04
Hi Harish,

Cant you split the code to produce the beep sound first and then to show the dialog box?

Thanks and Regards,
Senthi l
Quote
0 #43 Harish 2008-04-30 08:34
Hi senthil,
Splitt ing up the code will be difficult..cos am returning values from procedure. Based on which am passin the error messages....

I got an vauge idea..to do this..dono if it is correct....
can we check if calling beep is success and Then call the popup window??

regar ds,
Harish
Quote
0 #44 Rohini 2008-04-30 08:42
Hi Harish,

You can try that as well ...

Can you try something like this:

if(errFl g.equals("E"))
{
PresentationMa nager presentationman ager = ((TelnetSession )session).getPr esentationManag er();
ProtocolHandle r protocolhandler = presentationman ager.getProtocolHandler();
protocolhandle r.willSendNegat iveSound();
session.setSta tusMessage(errM sg);
}
if(errFlg.equa ls("E"))
{
String dialogPageButto ns[] = {"Ok"};
TelnetSession telnetsession1 = (TelnetSession) session;
int k = telnetsession1. showPromptPage( "Error",errMsg, dialogPageButto ns);
session.setNex tFieldName(pg.g etLotSublot().g etName());

}

Not sure whather it fits your requirement :)

Thanks and Regards,
Senthi l
Quote
0 #45 Harish 2008-04-30 08:54
Hi senthil,

If i spilt the code in this way..I can hear only the beep...And...

If i use it as nested IF..{} Then the result is same as popup first and Beep next on OK button... :'(


Regards,
Harish
Quote
0 #46 Harish 2008-05-02 02:46
Hi senthil,

Is the beep misfiring bcos of the popup..which is opening a new session???


Re gards,
Harish.
Quote
0 #47 Rohini 2008-05-03 02:36
Hi Harish,

Can you give me a clear picture of where this piece of code is placed...?

Bri ef me a bit about the code flow from fieldEntered() method in your Listener Java Class

Thanks and Regards,
Senthi l
Quote
0 #48 Harish 2008-05-05 04:41
Hi senthil,

This code is wriiten in the listener for the field Truck....


pub lic int validateTrip(MW AEvent mwaevent)
throws AbortHandlerExc eption
{
Session session = mwaevent.getSes sion();
Session session1 = mwaevent.getSes sion();
pg = (Page1)session. getCurrentPage( );

Connection connection = session.getConn ection();
CallableStateme nt callablestateme nt;
try
{

String orgid = (String)session .getValue("ORGI D");
callablestateme nt = connection.prep areCall("{call MSCA.VERIFY_TRI P(?,?,?,?,?)}") ;
callablestateme nt.registerOutParameter(1, Types.VARCHAR);
callablestateme nt.registerOutParameter(2, Types.VARCHAR);
callablestateme nt.registerOutParameter(3, Types.INTEGER);
callablestateme nt.registerOutParameter(4, Types.VARCHAR);
callablestateme nt.setString(5, truck);

callablestateme nt.execute();

String errMsg = callablestateme nt.getString(1);
String errFlg = callablestateme nt.getString(2);
int outVal = callablestateme nt.getInt(3);
String trip = callablestateme nt.getString(4);

if ( outVal == 1 )
{
pg.getTrip().se tValue(trip);
}

if(errFlg.equal s("E"))
{
PresentationMan ager presentationman ager = ((TelnetSession)session).getPresentationMan ager();
ProtocolHandler protocolhandler = presentationman ager.getProtocolHandler();
protocolhandler .willSendNegati veSound();
String dialogPageButto ns[] = {"Ok"};
TelnetSession telnetsession1 = (TelnetSession) session1;
int k = telnetsession1. showPromptPage( "Error",errMsg, dialogPageButto ns);
session.setStat usMessage(errMs g);
session.setNext FieldName(pg.ge tTrip().getName ());
}

return outVal;

}
Quote
0 #49 Harish 2008-05-05 04:43
Hi senthil,

The user scans/Enters the truck name...Validati on for the truck is done using the called procedure...Bas ed on the return value from the procedure the message is displayed..Hope this is clear..


Regar ds,
Harish.
Quote
0 #50 Rohini 2008-05-05 14:18
Hi Harish,

I just added a simple logic using a boolean variable ... not sure whether you tried this approach ...if not give a try ....

If this is not working, please update me with your findings for the failure ....

please go through my comments inline for clear understanding ..

public int validateTrip(MW AEvent mwaevent)
throws AbortHandlerExc eption
{
Session session = mwaevent.getSes sion();
Session session1 = mwaevent.getSes sion();
pg = (Page1)session. getCurrentPage( );

//A new boolean variable which is set to flase
boolean flag = false;

Connect ion connection = session.getConn ection();
CallableStatem ent callablestateme nt;
try
{

String orgid = (String)session .getValue("ORGI D");
callablestatem ent = connection.prep areCall("{call MSCA.VERIFY_TRI P(?,?,?,?,?)}") ;
callablestatem ent.registerOutParameter(1, Types.VARCHAR);
callablestatem ent.registerOutParameter(2, Types.VARCHAR);
callablestatem ent.registerOutParameter(3, Types.INTEGER);
callablestatem ent.registerOutParameter(4, Types.VARCHAR);
callablestatem ent.setString(5, truck);

callablestatem ent.execute();

String errMsg = callablestateme nt.getString(1) ;
String errFlg = callablestateme nt.getString(2) ;
int outVal = callablestateme nt.getInt(3);
String trip = callablestateme nt.getString(4) ;

if ( outVal == 1 )
{
pg.getTrip().s etValue(trip);
}

if(errFlg.equ als("E"))
{
PresentationMa nager presentationman ager = ((TelnetSession )session).getPr esentationManag er();
ProtocolHandle r protocolhandler = presentationman ager.getProtocolHandler();
protocolhandle r.willSendNegat iveSound();
//set the flag to true on error condition
flag = true;
}

//Call dialog page when the flag is ON
if(flag)
{
S tring dialogPageButto ns[] = {"Ok"};
TelnetSession telnetsession1 = (TelnetSession) session1;
int k = telnetsession1. showPromptPage( "Error",errMsg, dialogPageButto ns);
// Move the following 2 lines to the above condition,if it doesnt make any sense over here ..as it is a different session altogether ....
session.se tStatusMessage( errMsg);
session.setNex tFieldName(pg.g etTrip().getNam e());
//reset flag;
flag = false;
}

return outVal;

}
Quote
0 #51 Harish 2008-05-06 03:01
Hi senthil,

I tired with this boolean variable earlier and it didnt work the way we wished.... :'(
If i dont have the Popup message and jus the status message, the beep is coming at the right time..
Cant really find why its firing when i click explicitly on OK button.

Is opening a new session has priority more than the negative beep??


Regard s,
Harish.
Quote
0 #52 Rohini 2008-05-06 03:09
Hi Harish,

Not sure of this behaviour ....

As a work around you can try the following:

1)T ry to move the code for calling the dialog page outside validateTrip() ... may be fieldExit(); OR
2)Design a new custom page which is similiar to dialog page and call that on "Error"

Hope this helps.

Cheers,
Senthil
Quote
0 #53 Harish 2008-05-06 05:08
Hi senthil,

Guess found the solution for this..Instead of using protocolhandler .willSendNegati veSound(); .....
I used..protocolh andler.sendNega tiveSound(); ..

Now this is working fine..first the beep triggers and then the Popup...
Thanks a lot for spending your time in this..
Really your inforamtions helped me out...

Regards ,
Harish.
Quote
0 #54 Himanshu Joshi 2008-05-06 09:16
Hi

I am very new to MSCA framework.

I am getting an error while populating LOV.On the first hit, I am getting the error below:

(Thread -13) MWA_LOV_ROW_CON S_FAIL: Unsuccessful row construction
ja va.lang.NullPoi nterException
at oracle.apps.mwa .container.LOVR untimePageHandl er.pageEntered( LOVRuntimePageH andler.java:89)
at oracle.apps.mwa .container.Stat eMachine.callLi steners(StateMa chine.java:1666 )
at oracle.apps.mwa .container.Stat eMachine.handle Event(StateMach ine.java:1067)
at oracle.apps.mwa .presentation.t elnet.Presentat ionManager.hand le(Presentation Manager.java:70 2)
at oracle.apps.mwa .presentation.t elnet.ProtocolH andler.run(Prot ocolHandler.jav a:820)

But when I go to next LOV and traverse back to first one, It gives me the LOV.

Please help me in resolving the issue.
Quote
0 #55 nisha 2008-05-06 09:46
Hi Senthil,

Is there any way by which we can add a vertical scroll bar to the custom page? For example, if my page contains more than 15
textfields one below the another, we need a scroll bar to go to either the first field or the last. But I have come across the
scroll bars only in case of LOV displays and menu page.

Thanks & Regards,
Nisha
Quote
0 #56 Rohini 2008-05-06 10:38
Hi Nisha,

The Scroll bar in LOV is provided by the Framework.

Nor mally, we will have only 10 fields in a single page in any mobile screen. when u have more than 10 fields, after entering the value in 10th fieild, u will be automaticlly taken to other page with rest of the fields.

Also, if you want to have all 15 fields in the same page, you can adjust the hardware setting in the mobile device to do the same.(You need to check for the user manual for hardware or seek assistance from DBAs)

Also, From my view point, having scroll bar in a mobile device doesnt make much sense ... as it is going to be a source of input in a warehouse.

If you want to jump to last field after the first field, you can set the focus to next field (will check out for the API name) or u can just hide the other feilds which are not necessary.

Hop e this helps.

Thanks and Regards,
Senthi l
Quote
0 #57 Ritesh M 2008-05-08 05:09
Hi Himanshu,

From the error its seems that you LOV is having some of the input parameters and the very first time when you navigated to the LOV ....value of one of the input parameter was not initialized and second time it got initialized.... .

Suggest you to check the values for input parameters..

R egards,
Ritesh
Quote
0 #58 Harish 2008-05-13 03:01
Hi senthil,

How do i get the trace file for the MSCA application...N eed to some performamce tuning to be done...
I have used..FileLogge r.getSystemLogg er().trace("');

But dono the path for getting the complete trace file..

Can you please help me out...

Regards ,
Harish
Quote
0 #59 Rohini 2008-05-13 03:52
hi Harish,

FileLo gger basically uses "java.io.PrintW riter" to write the content into log files. The log file name will be usually be port_no.system. log

The Log directory can be identified from the "mwa.logdir" settings in mwa.cfg file.

The mwa.cfg file is located on $INST_TOP/admin /install (in case of R12). For more details, please refer to my artilce on "MWA Setup, Testing, Error Logging and Debugging"

Hop e this helps.

Thanks and Regards,
Senthi l
Quote
0 #60 Harish 2008-06-03 02:02
Hi senthil,

Is ther any way adjusting the size of the popup message windows..i.e the new telnet session window.??
Or Can i make the cursor to starting position of the error message beeing displayed....

In the mobile device, the scanner, the popup error messages run for a second and the display goes to the right bottom end of the screen.These popups work well in the computer and there is no problem like this.

Regards,
Harish.
Quote
0 #61 Rohini 2008-06-03 03:22
Hi Harish,

I guess there is some issue with your mobile hardware device. One of the readers of apps2fusion faced similiar issue and he sorted out to be a issue by installing the new tiny jvm CrEme v.4.2.

You can try investigating on your hardware device.

Thanks and Regards,
Senthi l
Quote
0 #62 Harish 2008-06-03 07:28
Hi senthil,

Can't we adjust the size of the new telnet session using TelnetSession.i nitializeSessio n().
And what is this CrEme v.4.2..should this be installed on the scanner?

Regar ds,
Harish.
Quote
0 #63 Rohini 2008-06-03 07:34
Hi Harish,

I never tried using TelnetSession.i nitializeSessio n(). please test it and update us with your findings ... we are eager to know the results ....
Regarding the scanner issue, I would suggest you to go through the device manual or get in touch with DBAs.

Thanks and Regards,
Senthi l
Quote
0 #64 Harish 2008-06-03 09:49
Hi senthil,

I tried the initializeSessi on method and it was erroring out for me. Might bcos i don't know how to call that or the values to passed to the method are wrong.

For a popup message we use a new telnet session to display the message. Can we set the window size for this popup and can we bring the cursor to the starting position of the window.

Is ther anyway to add a textfield to the same popup window.


Regar ding.. jvm CrEme v.4.2..I didn't understand about this.


Regards ,
Harish.
Quote
0 #65 Rohini 2008-06-03 10:05
Hi Harish,

You can play around with various APIs available in oracle.apps.mwa .presentation.t elnet.TelnetSes sion Java Class and figure out whether it meets ur requirement.

T hanks and Regards,
Senthi l
Quote
0 #66 Abdul Rasheed 2008-11-11 05:19
Hi All,

I am new this forum and basically i m distribution consultant as of now i was assigned MSCA project.

I have gone through user guide which is provided by oracle, then i was looked out this website. It really gives spoon feeding to begineer.

Can you tell me what is the basic hardware needs for implementing MSCA.

Thanks in advance

M.Abdu l
Quote
0 #67 Rohini 2008-11-11 05:39
Hi Abdul,

You need to have a hand held mobile device for the warehouse. Metalink Note 269260.1 gives the complete list of mobile devices compatible with Oracle WMS / MSCA

Hope this helps.

Please feel free to post your issues in our forum(http://apps2fusion.com/forums/viewforum.php?f=145)

Thanks and Regards,
Senthi l
Quote
0 #68 Tron 2008-11-19 18:48
Was anybody able to get the example to compile? I am a little confused since CustomTestPage needs CustomTestFList ener to compile and CustomTestFList ener needs CustomTestPage to compile. Anyone else have this problem?
Quote
0 #69 Rohini 2008-11-20 02:51
Hi,

Can you please explain your problem.

If you have both files under same directory, there will not be any problem in compilation.

T hanks and Regards,
Senthi l
Quote
0 #70 Tron 2008-11-20 08:40
You are correct. I had mistyped the package name in one of the import statements :)

Agreed with the others. This is an extremely useful document. Thank you for putting it together. If only Oracle was this useful ;)
Quote
0 #71 Rohini 2008-11-20 08:43
My Pleasure.

Than ks and Regards,
Senthi l
Quote
0 #72 Tron 2008-11-20 10:03
Senthil

Sorry, one more question. I registered the CustomTestFunct ion and I can see it in my menu, however I can't get it to do anything when I click on it. Any suggestions where I should start troubleshooting ? I attached the JAR with my classes to jserv.propertie s on the server and restarted apache. Do I need to restart the listener as well?
Quote
0 #73 Rohini 2008-11-20 10:12
Hi,

You can go through my article on Debugging and Trouble shooting:

http://apps2fusion.com/at/ss/225-mwa-setup-testing-error-logging-and-debugging

You can use our forum "http://apps2fu sion.com/forums /viewforum.php? f=143" to upload files.

Please feel free to post your issues.

Thanks and Regards,
Senthi l
Quote
0 #74 Tron 2008-11-20 10:23
This did the trick! I had deployed my class files to the wrong location. Thanks again. I reviewed some of the training that you all offer. Are the classes based in the US or Europe? Is there a contact email I can use for more details?
Quote
0 #75 Rohini 2008-11-20 10:30
Hi,

It is online training. You can find more information from "http://apps2fu sion.com".

Tha nks and Regards,
Senthi l
Quote
0 #76 Kaukab 2009-01-12 14:47
How to find which java code is being called in a particular screen.

please let me know its urgent
Quote
0 #77 Rohini 2009-01-13 01:10
Hi,

You can userControl-X to invoke an 'About' page that lists details of the current connection that could be useful in debugging problems.

From here you can find the page class name.

Press F3 to exit from the "About" page.

Hope this helps.

Thanks and Regards,
Senthi l
Quote
0 #78 Kaukab 2009-01-13 19:49
Thanks Senthil that was of great help.
I want to add 2 more feilds in a particular page can u suggest the procedure for that. the documentation I have are not very clear.
Quote
0 #79 Rohini 2009-01-13 20:33
Hi,

If you want to modify a standard oracle page, please follow the steps in my article

http://www.apps2fusion.com/at/ss/293-extend-a-standard-oracle-mscamwa-page

Kindly let me know if you face any issues.

Thanks and Regards,
Senthi l
Quote
0 #80 Kaukab 2009-01-14 01:18
Where should the modified java file be kept. And where should its class file be generated. Also please give some details about registration.
D o we need to change in fnd function screen the web_html name or it needs to be registered some where else.
Quote
0 #81 Rohini 2009-01-14 05:49
Hi,

It is the normal procedure for any other source code which we develpp for Oracle Apps Impl. My article on "Entending a std page" explains the detail steps involved in this.

Hope this helps.

Thanks and Regards,
Senthi l
Quote
0 #82 Anju 2009-02-10 03:55
Hi Senthil,

Can we use showPromptPage( ) for prompting a input number field other than dialog box?

Thanks,
A nju
Quote
0 #83 Rohini 2009-02-10 13:00
Hi Anju,

I am not sure whether you can have input field rather than a Dialog box ... My gud feeling says "No". Give a try and let us know the outcome.

Cheer s,
Senthil
Quote
0 #84 Anju 2009-02-11 01:08
Thanks Senthil.

We have a requirement to print the label on press of F2.
If the user selects Yes, then he would be prompted for the number of prints. The message would be
No of Prints:

We have done the code changes in the following way

TelnetSess ion telnetsession1 = (TelnetSession) session;
int print1 = telnetsession1. showPromptPage( "Print",iknSeri alMaterialPage. IKN_CU850_LABEL _PRINT,dialogPa geButtons);
if(print1 == 0)
{
session.setNext PageName("oracl e.apps.wip.wma. page.newpage");
}

But the new page is not being called.

Please guide us on how to call the new page.
Quote
0 #85 Rohini 2009-02-11 12:58
Hi,

Is your page flow something like this

User press F2 -> Dialog Page -> User selects "Yes" -> New page which will ask for no:of Prints.

Correc t me if I am wrong.

Thanks and Regards,
Senthi l
Quote
0 #86 /dev/null 2009-04-15 04:07
I have been writing pages in MWA however am stuck on a small problem. I am able to successfully use appEntered() within my function however the appExited() method never seems to fire. The requirement I have is to do some tidying up either when a user logs off or when their session is ended completely.

Th anks,
Quote
0 #87 satish_p 2009-06-22 01:03
Dear Senthil

Thanks very much for the support on Mobile Supply Chain Application Framework .Tried Hello World Example.
Follow ed the steps like below

1.Copied the JAVA files CustomTestFunct ion.java,Custom TestFListener.j ava,CustomTestP age.java into $CUSTOM_TOP/jav a/xxx/custom/se rver
2.Changed the Classpath to append the $CUSTOM_TOP/jav a
3.Compiled sucessfully the custom java files
4.Created Form Function to point to xxx.custom.serv er.
5.Attached to Menu WMS_MOB_NAVIGAT E
6.Checked with MSCA GUI Client
7.Logged to application with GUI client with option of Trace and choosed the Function XX MSCA Mobile APP test
8.Getting the exception immediately like "Connection Closed"
9.When i check the trace file,getting the Information like below at end of the file
(BG 1; Setting cursor to [2,1]
(BG) Done MWAClient
(BG) 1245636514500:B G released lock, GivenLocks = 0
(GUI) 1245636514500:G UI got writelock, GivenLocks = -1
(GUI) in drawScreen() ....
(GUI) In drawScreen... But doing nothing !!! ++++++++ !!! +++++++++
(GUI) Start moveCursor to 0
(GUI) OW:in moveCursor() ... 0
(GUI) OraTable: Selecting row 1
(GUI) End moveCursor to 0
(GUI) Setting Message Bar:
(GUI) 1245636514500:G UI released lock, GivenLocks = 0
(BG) [? : -1]
(BG) Available Chars=0
(BG) 1245636514515:B G got writelock, GivenLocks = -1
(GUI) OW:Setting body & table bounds to (0,36,292,330)
(AWT-EventQueue -0) WL: windowDeactivat ed...


Tried so many ways but still getting the same exception.Final ly comming to you.

Environme nt Details
------- --------------- -
Oracle Application Release 11i(11.5.2)
ATG _PF.H_RUP5

Can you pls tell me is there any step which is missed by me.
Is it required to bounce the MSCA server.

Pls let me know.


Once again thanks for the help

Thanks
Be st Regards
Satish
Quote
0 #88 Rohini 2009-06-22 04:45
Hi Satish,

Do you face the same problem when you use telnet instead of GUI client to connect to Mobile Application?

Thanks and Regards,
Senthi l
Quote
0 #89 Satish_p 2009-06-22 08:32
Dear Senthil

Tested with Telnet and observed the same behaviour.

Get ting the Error like "Connection to host is lost"

Even seen same behaviour after bouning the MSCA telnet port services

Can you pls advice if anything missed out by me

Thanks
Best Regards
Satish P
Quote
0 #90 Rohini 2009-06-22 08:34
Hi Sathish,

Looks like there is some problem with Telnet configuration. May I ask you to contact your Oracle Apps DBA and explain the problem?

Thank s and Regards,
Senthi l
Quote
0 #91 Satish_p 2009-06-22 08:50
Dear Senthil

Thanks for the Support.Working with DBA.

Some more points i thought brining to your notice

Existin g couple of extensions done before for receipt and Subinventory Transfer working fine through telnet and Client GUI.

I am new to MSCA and required to work on requirement like capturing the additional Information while performing the WIP Issue Transaction.Bef ore trying out the extension,i just started with "Hello World Application"

L et me check with DBA and get back to you

Thanks
Bes t Regards
Satish P
Quote
0 #92 Rohini 2009-06-22 08:54
cool ... keep posting you updates .. I will help you with whatever I can.

Thanks and Regards,
Senthi l
Quote
0 #93 Satish_p 2009-06-26 05:43
Dear Senthil

Hellow world application worked fine in vision Instance,but it was failed with the message like "Connection Closed" in Project Instance

When we see the log file,it shows like below

[Fri Jun 26 04:55:58 EDT 2009] (Thread-12) MWA_PH_GENERAL_ ERROR: General error occurred, disconnecting client and marking its session dropped.
java.l ang.Unsupported ClassVersionErr or: oracle/apps/gep swip/wma/page/C ustomTestFuncti on (Unsupported major.minor version 49.0)
at java.lang.Class Loader.defineCl ass0(Native Method)
at java.lang.Class Loader.defineCl ass(ClassLoader .java:539)
at java.security.S ecureClassLoade r.defineClass(S ecureClassLoade r.java:123)
at java.net.URLCla ssLoader.define Class(URLClassL oader.java:251)
at java.net.URLCla ssLoader.access $100(URLClassLo ader.java:55)
a t java.net.URLCla ssLoader$1.run( URLClassLoader. java:194)
at java.security.A ccessController .doPrivileged(N ative Method)
at java.net.URLCla ssLoader.findCl ass(URLClassLoa der.java:187)
a t java.lang.Class Loader.loadClas s(ClassLoader.j ava:289)
at sun.misc.Launch er$AppClassLoad er.loadClass(La uncher.java:274 )
at java.lang.Class Loader.loadClas s(ClassLoader.j ava:235)
at java.lang.Class Loader.loadClas sInternal(Class Loader.java:302 )
at java.lang.Class .forName0(Nativ e Method)
at java.lang.Class .forName(Class. java:141)
at oracle.apps.mwa .container.Appl icationsObjectL ibrary.loadClas s(ApplicationsO bjectLibrary.ja va:1354)
at oracle.apps.mwa .container.Appl icationsObjectL ibrary.getFirst ApplicationName (ApplicationsOb jectLibrary.jav a:727)
at oracle.apps.mwa .container.Menu PageBeanHandler .pageExited(Men uPageBeanHandle r.java:218)
at oracle.apps.mwa .container.Stat eMachine.callLi steners(StateMa chine.java:1612 )
at oracle.apps.mwa .container.Stat eMachine.handle Event(StateMach ine.java:812)
a t oracle.apps.mwa .presentation.t elnet.Presentat ionManager.hand le(Presentation Manager.java:69 0)
at oracle.apps.mwa .presentation.t elnet.ProtocolH andler.run(Prot ocolHandler.jav a:820)


Do you have any Info on this

Thanks
Sa tish.p
Quote
0 #94 Rohini 2009-06-26 06:13
Hi,

The log says "Unsupported Class version".

Do you face the same problem when you connect thru TELNET and GUI client versions?

Plea se upload your source and log files in our forum so that I can have a look.

Link: http://apps2fusion.com/forums/viewforum.php?f=145

Thanks and Regards,
Senthi l
Quote
0 #95 Satish_p 2009-06-30 09:51
Dear Senthil

Issue with mismatch of Java Versions

Compi led code with javac 1.5.0_07 in server.but Jre is setup with java version "1.4.2_04".
Iss ue was resolved by compiling the code with java version "1.4.2_04"

Tha nks for the Support

Thanks
Best Regards
P.Satee sh Kumar
Quote
0 #96 srini p 2009-10-01 12:24
Hi Senthil,

I am building HelloWorld Custom page. When user clicks on Submit page I want to call Oracle procedure

(Checked procedure outside and working fine).
But I am getting unexpected error occurred, Please check the log.

Please help me out. I am struck with Custom LOV and want to try this one.

--------- --------------- --------------- --------------- --------------- ----
Java Custom Page code (Removed some functions, in order to post here (Comments too long))
-------- --------------- --------------- --------------- --------------- -----
/* Page Class - Which has the Page Layout. We create and add beans to it */

package oracle.apps.mwa .demo;

import java.sql.Connec tion;
import java.sql.Prepar edStatement;
im port java.sql.Result Set;
import java.sql.Callab leStatement;
im port java.sql.Types;
import java.sql.SQLExc eption;

import oracle.apps.fnd .common.Version Info;
import oracle.apps.inv .utilities.serv er.UtilFns;
imp ort oracle.apps.mwa .beans.ButtonFi eldBean;
import oracle.apps.mwa .beans.PageBean ;
import oracle.apps.mwa .beans.TextFiel dBean;
import oracle.apps.mwa .eventmodel.Abo rtHandlerExcept ion;
import oracle.apps.mwa .eventmodel.Def aultOnlyHandler Exception;
impo rt oracle.apps.mwa .eventmodel.Int erruptedHandler Exception;
impo rt oracle.apps.mwa .eventmodel.MWA Event;
import oracle.apps.mwa .demo.CustomTes tFListener;
imp ort oracle.jdbc.dri ver.*;
import oracle.apps.mwa .container.Sess ion;

//Page Listener Class


public class CustomTestPage extends PageBean {


/**
* Default constructor which just initialises the layout.
*/
publ ic CustomTestPage( ) {
//Method to initialize the layout




// This method is called when the user clicks the submit button

public void print(MWAEvent mwaevent, TextFieldBean mTextBean) throws SQLException,Ab ortHandlerExcep tion
{

String s = mTextBean.getVa lue();
String s2 = "PROD-SEARCH";
//Pack slip code call procedure here
String s1 = null;
CallableStateme nt cstmt = null;
Session ses = new Session();
Connection con = ses.getConnecti on();

try
{

cstmt = con.prepareCall ("{call APPS.XXPHC_REPO RTS_UTIL.GET_XX URL(?, ?)}");
cstmt.setString ("P_URLTYPE", s2);
cstmt.registerO utParameter("P_ OUT_VAL", Types.VARCHAR);
cstmt.execute() ;
s1 = cstmt.getString ("P_OUT_VAL");
}
finally
{
if( cstmt!= null)
cstmt.close();
}
// return s1;
mTextBean.setVa lue(s2);
//mTextBean.set Value(s+" World");
}

// Method to get handle of TextBean
public TextFieldBean getHelloWorld() {
return mHelloWorld;
}

// Create the Bean Variables
TextF ieldBean mHelloWorld;
pr otected ButtonFieldBean mSubmit;

}
------------ --------------- --------------- --------------- --------------- -
System Log
----------- --------------- --------------- --------------- --------------- --
[Thu Oct 01 11:49:23 EDT 2009] (Thread-15) MWA_PM_UNEXPECT ED_ERROR_MESG: Unexpected error occurred, Please

check the log.
java.lang. NullPointerExce ption
at oracle.apps.mwa .container.Appl icationsObjectL ibrary.getConne ction

(Applica tionsObjectLibr ary.java:1020)
at oracle.apps.mwa .container.Base Session.getConn ection(BaseSess ion.java:205)
a t oracle.apps.mwa .demo.CustomTes tPage.print(Cus tomTestPage.jav a:114)
at oracle.apps.mwa .demo.CustomTes tFListener.fiel dExited(CustomT estFListener.ja va:43)
at oracle.apps.mwa .container.Stat eMachine.callLi steners(StateMa chine.java:1720 )
at oracle.apps.mwa .container.Stat eMachine.handle Event(StateMach ine.java:543)
a t oracle.apps.mwa .presentation.t elnet.Presentat ionManager.hand le(Presentation Manager.java:70 2)
at oracle.apps.mwa .presentation.t elnet.ProtocolH andler.run(Prot ocolHandler.jav a:820)
[Thu Oct 01 11:49:23 EDT 2009] (Thread-15) MWA_PM_UNEXPECT ED_ERROR_MESG: Unexpected error occurred, Please

check the log.


java.lan g.NullPointerEx ception
at oracle.apps.mwa .container.Appl icationsObjectL ibrary.getConne ction

(Applica tionsObjectLibr ary.java:1020)
at oracle.apps.mwa .container.Base Session.getConn ection(BaseSess ion.java:205)
a t oracle.apps.mwa .demo.CustomTes tPage.print(Cus tomTestPage.jav a:114)
at oracle.apps.mwa .demo.CustomTes tFListener.fiel dExited(CustomT estFListener.ja va:43)
at oracle.apps.mwa .container.Stat eMachine.callLi steners(StateMa chine.java:1720 )
at oracle.apps.mwa .container.Stat eMachine.handle Event(StateMach ine.java:543)
a t oracle.apps.mwa .presentation.t elnet.Presentat ionManager.hand le(Presentation Manager.java:70 2)
at oracle.apps.mwa .presentation.t elnet.ProtocolH andler.run(Prot ocolHandler.jav a:820)
-------- --------------- --------------- --------------- --------------- --------------- --------------- --------
Quote
0 #97 Rohini 2009-10-02 07:03
Hi,

From the above log I understand that Session variable is not initialized.

C an you try the following code snippet?

Session ses = getSession();
Connection mConn;

Let me know how it goes.

Thanks and Regards,
Senthi l
Quote
0 #98 srini p 2009-10-02 11:11
Hi Senthil,
Sessio n ses = getSession();

This code worked. Thanks for your help. As you suggested I was uploaded LOV code to your forum. Could you please look at my code let me know what I am doing wrong.

Thanks a ton for your help.

Regards,
Srini.
Quote
0 #99 srini p 2009-10-12 10:02
Hi Senthil,

I was struck with Custom Lov and so thought of achiving same functinality with Custom List Box.
When I try to build List box from Database. I am getting errors and exceptions.
--- --------------- --------------- --------------- --------------- --------------- --------------- --------------- ----------
Syst em Log
----------- ---------
[Fri Oct 09 08:54:14 EDT 2009] *************** * MWA Version 1.0.8.4 *************** **
[Fri Oct 09 08:54:14 EDT 2009] *************** ** Start New Logging *************** ***
[Fri Oct 09 08:54:49 EDT 2009] (Thread-12) SM_EXCEPTION: Exception occurred with user SPADMALA
java.l ang.reflect.Inv ocationTargetEx ception
at sun.reflect.Nat iveConstructorA ccessorImpl.new Instance0(Nativ e Method)
at sun.reflect.Nat iveConstructorA ccessorImpl.new Instance(Native ConstructorAcce ssorImpl.java:3 9)
at sun.reflect.Del egatingConstruc torAccessorImpl .newInstance(De legatingConstru ctorAccessorImp l.java:27)
at java.lang.refle ct.Constructor. newInstance(Con structor.java:2 74)
at oracle.apps.mwa .container.Stat eMachine.loadPa ge(StateMachine .java:1409)
at oracle.apps.mwa .container.Stat eMachine.loadMe nuItem(StateMac hine.java:1617)
at oracle.apps.mwa .container.Stat eMachine.handle Event(StateMach ine.java:1002)
at oracle.apps.mwa .presentation.t elnet.Presentat ionManager.hand le(Presentation Manager.java:70 2)
at oracle.apps.mwa .presentation.t elnet.ProtocolH andler.run(Prot ocolHandler.jav a:820)
Caused by: java.lang.NullP ointerException
at oracle.apps.mwa .demo.CustomTes tPage.getPrinte rNames(CustomTe stPage.java:192 )
at oracle.apps.mwa .demo.CustomTes tPage.initLayou t(CustomTestPag e.java:105)
at oracle.apps.mwa .demo.CustomTes tPage.(CustomTe stPage.java:43)
... 9 more
[Fri Oct 09 08:54:49 EDT 2009] (Thread-12) SM_EXCEPTION: Exception occurred with user SPADMALA
java.lang.NullP ointerException
at oracle.apps.mwa .demo.CustomTes tPage.getPrinte rNames(CustomTe stPage.java:192 )
at oracle.apps.mwa .demo.CustomTes tPage.initLayou t(CustomTestPag e.java:105)
at oracle.apps.mwa .demo.CustomTes tPage.(CustomTe stPage.java:43)
at sun.reflect.Nat iveConstructorA ccessorImpl.new Instance0(Nativ e Method)
at sun.reflect.Nat iveConstructorA ccessorImpl.new Instance(Native ConstructorAcce ssorImpl.java:3 9)
at sun.reflect.Del egatingConstruc torAccessorImpl .newInstance(De legatingConstru ctorAccessorImp l.java:27)
at java.lang.refle ct.Constructor. newInstance(Con structor.java:2 74)
at oracle.apps.mwa .container.Stat eMachine.loadPa ge(StateMachine .java:1409)
at oracle.apps.mwa .container.Stat eMachine.loadMe nuItem(StateMac hine.java:1617)
at oracle.apps.mwa .container.Stat eMachine.handle Event(StateMach ine.java:1002)
at oracle.apps.mwa .presentation.t elnet.Presentat ionManager.hand le(Presentation Manager.java:70 2)
at oracle.apps.mwa .presentation.t elnet.ProtocolH andler.run(Prot ocolHandler.jav a:820)
[Fri Oct 09 09:07:48 EDT 2009] (Thread-12) PH: User got disconnected...
[Fri Oct 09 09:07:48 EDT 2009] (Thread-12) PH: caught IOException
java.net.Socke tException: Connection reset
at java.net.Socket InputStream.rea d(SocketInputSt ream.java:168)
at java.net.Socket InputStream.rea d(SocketInputSt ream.java:182)
at java.io.FilterI nputStream.read (FilterInputStr eam.java:66)
at java.io.Pushbac kInputStream.re ad(PushbackInpu tStream.java:12 0)
at oracle.apps.mwa .presentation.t elnet.ProtocolH andler.readChar (ProtocolHandle r.java:1338)
at oracle.apps.mwa .presentation.t elnet.ProtocolH andler.enterDat a(ProtocolHandl er.java:1599)
a t oracle.apps.mwa .presentation.t elnet.ProtocolH andler.run(Prot ocolHandler.jav a:808)
-------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- ----


Thanks,
Srini.
Quote
0 #100 Rohini 2009-10-12 10:07
Hi Srini,

Can you please brief about the errors occured when u try to implement LOV and List box?

Please upload your source and log files in our forum for wider audience

Link: http://apps2fusion.com/forums/viewforum.php?f=145

Thanks and Regards,
Senthil
Quote
0 #101 srini p 2009-10-12 12:12
Hi Senthil,
In case LOV I am getting (Unsuccessful row construction) and uploaded LOV related source code, Oracle Procedure and Log files to Forum.
-------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- --------------- ------
In case of List Box (Menu doesn't appear). and Uploading List Box related source code, Oracle Procedure and Log files to Forum.

Thanks for your help.
Srini.
Quote
0 #102 aligeldi 2010-04-21 09:20
i make your customtestpage but pageEntered method is not called when the page is entered. can you help me please?
Quote
0 #103 Senthilkumar Shanmugam1 2010-04-21 09:27
Hi,

Can you please paste the error message or log file information?

T hanks,
Senthil
Quote
0 #104 aligeldi 2010-04-21 09:43
there is no any erro message i made a custom_table and i use it for debugging. in pageEntered method from nwaevent i get the session then i create a statment. after this i am inserting the value fro debugging. insert proceses is not occured. i use this debugging class other sides of page. esspecillay in the fieldlistener it works there. my code is here.

//Page Listener Class
package xxxt.oracle.app s.inv.mo.server ;
import oracle.apps.mwa .beans.*;
impor t oracle.apps.mwa .container.*;
i mport oracle.apps.mwa .eventmodel.*;
import xxxt.oracle.app s.inv.mo.server.XxxtDebug;
import oracle.apps.inv .utilities.serv er.*;
import xxxt.oracle.app s.inv.lov.serve r.*;
import oracle.apps.inv .mo.server.*;
i mport java.sql.SQLExc eption;

public class XxxtTeslimatNoG irisPage extends PageBean {
/**
* Default constructor which just initialises the layout.
*/
// Create the Bean Variables
LOVFieldBean mDelivLOV;
//LOVFieldBean mDelivLOV;
TextFieldBean mHelloWorld;
protected ButtonFieldBean mIleri;
protected ButtonFieldBean mGeri;
protected ButtonFieldBean mIlkKayit;
protected ButtonFieldBean mSonKayit;
protected ButtonFieldBean mSevkEt;
TextFieldBean mSeriNo;
TextFieldBean mKalemKod;
TextFieldBean mAcikalama;
TextFieldBean mTeslimatNo;
TextFieldBean mId;
XxxtDebug debug;
public XxxtTeslimatNoG irisPage()
{
//Method to initialize the layout
initLayout();
}
/**
* Does the initialization of all the fields. Creates new instances
* and calls the method to set the prompts which may have to be later
* moved to the page enter event if we were using AK prompts as we
* require the session for the same.
*/
private void initLayout()
{
//Create a Text Filed and Set an ID
//mDelivLOV = new XxxtDeliveryLOV ("MO");
mDelivLOV = new LOVFieldBean();
mDelivLOV.setNa me("DelivNumber ");
mDelivLOV.setRe quired(true);
mDelivLOV.setVa lidateFromLOV(f alse);
mSeriNo = new TextFieldBean() ;
mSeriNo.setName ("SERINO");
mSeriNo.setRequ ired(true);
mKalemKod = new TextFieldBean() ;
mKalemKod.setNa me("KALEMKOD");
mKalemKod.setRe quired(true);
//mKalemKod.set Editable(false) ;
mAcikalama = new TextFieldBean() ;
mAcikalama.setN ame("ACIKLAMA") ;
//mAcikalama.se tEditable(false );
mAcikalama.setR equired(true);
mId = new TextFieldBean() ;
mId.setName("ID ");
mIleri = new ButtonFieldBean ();
mIleri.setName( "ILERI");
mGeri = new ButtonFieldBean ();
mGeri.setName(" GERI");
mIlkKayit = new ButtonFieldBean ();
mIlkKayit.setNa me("ILKKAYIT");
mSonKayit = new ButtonFieldBean ();
mSonKayit.setNa me("SONKAYIT");
mSevkEt = new ButtonFieldBean ();
mSevkEt.setName ("SEVKET");
//add the fields
addFieldBean(mD elivLOV);
addFieldBean(mS eriNo);
addFieldBean(mK alemKod);
addFieldBean(mA cikalama);
addFieldBean(mI d);
//addFieldBean( mHelloWorld);
addFieldBean(mI lkKayit);
addFieldBean(mG eri);
addFieldBean(mI leri);
addFieldBean(mS onKayit);
addFieldBean(mS evkEt);
//add field listener to all necessary fields
XxxtTeslimatNoG irisFListener fieldListener = new XxxtTeslimatNoG irisFListener();

mDelivLOV.addLi stener(fieldLis tener);
//mHelloWorld.a ddListener(fiel dListener);
mGeri.addListen er(fieldListene r);
mIleri.addListe ner(fieldListen er);
mIlkKayit.addLi stener(fieldLis tener);
mSonKayit.addLi stener(fieldLis tener);
mSevkEt.addList ener(fieldListe ner);
mSeriNo.addList ener(fieldListe ner);
//call this method to initialize the prompts
this.setHiddenV alues();
this.initPrompt s();
}
/**
* Method that sets all the prompts up.
*/
private void initPrompts()
{
// sets the page title
this.setPrompt( "Teslimat No Giris Sayfasi");
// set the prompts for all the remaining fields
//mHelloWorld.s etPrompt("Enter Your Name");
mSeriNo.setProm pt("Seri No");
mKalemKod.setPr ompt("Kalem Kod");
mAcikalama.setP rompt("Açiklama ");
mId.setPrompt(" Id");
mIleri.setPromp t("Ileri");
mGeri.setPrompt ("Geri");
mIlkKayit.setPr ompt("Basa Git");
mSonKayit.setPr ompt("Sona Git");
mSevkEt.setProm pt("Sevk Et");
mDelivLOV.setPr ompt("Teslimat No");
}
//Method called when the page is entered
public void pageEntered(MWA Event e)
{
try
{
Session ses = e.getSession();
String type = "page entered!";
String hata = "hata";
debug = new XxxtDebug();
debug.insertDeb ugStrings(type, hata ,ses);
}catch(Exceptio n ex){;}
}
//Method called when the page is exited
public void pageExited(MWAE vent e)
{}
}
Quote
0 #105 Rohini 2010-04-21 09:47
Hi,

Can you please enable the logging and have a look at the trace files?

See http://www.apps2fusion.com/at/ss/225-mwa-setup-testing-error-logging-and-debugging for logging.

Thank s and Regards,
Senthi l
Quote
0 #106 aligeldi 2010-04-21 09:54
ok. i am enabling.
Quote
0 #107 aligeldi 2010-04-21 10:34
this is the log file. i made your custom lov example so the "User LOV Entered" is writin in log file.

[Wed Apr 21 17:21:24 EEST 2010] (Thread-13) ValidateOrgPage : Page Exit entered
[Wed Apr 21 17:21:24 EEST 2010] (Thread-13) InvOrganization PageBean: pageExited
[Wed Apr 21 17:21:24 EEST 2010] (Thread-13) InvOrganization PageBean: Old OrgId is 363
[Wed Apr 21 17:21:24 EEST 2010] (Thread-13) InvOrganization PageBean: Current OrgId is 363
[Wed Apr 21 17:21:24 EEST 2010] (Thread-13) MFG_ORGANIZATIO N_ID's value set ? true
[Wed Apr 21 17:21:24 EEST 2010] (Thread-13) User LOV Entered
[Wed Apr 21 17:21:24 EEST 2010] (Thread-13) Error in calling LOV
[Wed Apr 21 17:21:35 EEST 2010] (Thread-13) User LOV Exited
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) setOrgParameter s: Org id = 363
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) setOrgContext: Org id = 363
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) UtilFns:process :{call INV_PROJECT.SET _SESSION_PARAME TERS(?,?,?,?)}
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) UtilFns:process :execution complete
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) UtilFns:process :value pair retrieval complete
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) Closing Statement
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) after closing
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) OrgFunction: AppEntered - MFG_ORGANIZATIO N_ID's value set ? true
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) OrgFunction Date12718562580 00
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) OrgFunction Orgid363
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) long tempDate12718562580 00
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) Timestamp tm2010-04-21 16:24:18.0
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) UtilFns:process :{call INV_INV_LOVS.td atechk(?,?,?)}
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) UtilFns:process :execution complete
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) UtilFns:process :value pair retrieval complete
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) Closing Statement
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) after closing
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) VALID PERIOD CHECK SUCCESS
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) User LOV Entered
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) Error in calling LOV
[Wed Apr 21 17:24:29 EEST 2010] (Thread-13) User LOV Exited
[Wed Apr 21 17:24:18 EEST 2010] (Thread-13) Error in calling LOV
[Wed Apr 21 17:24:29 EEST 2010] (Thread-13) User LOV Exited
[Wed Apr 21 17:26:15 EEST 2010] (Thread-13) Employee ID :null
[Wed Apr 21 17:26:15 EEST 2010] (Thread-13) Organization ID :363
[Wed Apr 21 17:26:15 EEST 2010] (Thread-13) Executing the J Patch Set Code
[Wed Apr 21 17:26:15 EEST 2010] (Thread-13) Error java.lang.Numbe rFormatExceptio n: null
[Wed Apr 21 17:27:23 EEST 2010] (Thread-13) Employee ID :null
[Wed Apr 21 17:27:23 EEST 2010] (Thread-13) Organization ID :null
[Wed Apr 21 17:27:41 EEST 2010] (Thread-13) ValidateOrgPage : Page Enter entered
[Wed Apr 21 17:27:41 EEST 2010] (Thread-13) ValidateOrgPage : Page Enter entered
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) ValidateOrgPage : Page Exit entered
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) InvOrganization PageBean: pageExited
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) InvOrganization PageBean: Old OrgId is
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) InvOrganization PageBean: Current OrgId is 363
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) Resetting the Organization parameters
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) setOrgParameter s: Org id = 363
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) setOrgContext: Org id = 363
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) UtilFns:process :{call INV_PROJECT.SET _SESSION_PARAME TERS(?,?,?,?)}
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) UtilFns:process :execution complete
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) UtilFns:process :value pair retrieval complete
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) Closing Statement
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) after closing
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) MFG_ORGANIZATIO N_ID's value set ? true
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) ValidateOrgPage : Page Exit entered
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) InvOrganization PageBean: pageExited
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) InvOrganization PageBean: Old OrgId is 363
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) InvOrganization PageBean: Current OrgId is 363
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) MFG_ORGANIZATIO N_ID's value set ? true
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) User LOV Entered
[Wed Apr 21 17:27:43 EEST 2010] (Thread-13) Error in calling LOV
[Wed Apr 21 17:28:43 EEST 2010] (Thread-13) User LOV Exited
Quote
0 #108 Rohini 2010-04-21 11:00
From your error stack I understand that your LOV is causing some error. Look at your code snippet where you have printed the log message "Error in calling LOV " and analyse more or can you paste the piece of code please?

Thanks and Regards,
Senthi l
Quote
0 #109 aligeldi 2010-04-26 04:20
i solve the lov erro but pageEntered is not called. hero is the tarce file. i write trace code in constructor so i can see it in log file. do you have any idea about this.

[Tue Apr 13 15:25:40 EEST 2010] (Thread-13) ValidateOrgPage : Page Enter entered
[Tue Apr 13 15:25:40 EEST 2010] (Thread-13) ValidateOrgPage : Page Enter entered
[Tue Apr 13 15:25:42 EEST 2010] (Thread-13) ValidateOrgPage : Page Exit entered
[Tue Apr 13 15:25:42 EEST 2010] (Thread-13) InvOrganization PageBean: pageExited
[Tue Apr 13 15:25:42 EEST 2010] (Thread-13) InvOrganization PageBean: Old OrgId i
s
[Tue Apr 13 15:25:42 EEST 2010] (Thread-13) InvOrganization PageBean: Current Org
Id is 363
[Tue Apr 13 15:25:42 EEST 2010] (Thread-13) Resetting the Organization parameter
s
[Tu e Apr 13 15:25:42 EEST 2010] (Thread-13) setOrgParameter s: Org id = 363
[Tue Apr 13 15:25:42 EEST 2010] (Thread-13) setOrgContext: Org id = 363
@
"10202.IN V.log" 1021 lines, 68377 characters
[Mon Apr 26 11:11:31 EEST 2010] (Thread-13) MFG_ORGANIZATIO N_ID's value set ? tr
ue
[Mon Apr 26 11:11:31 EEST 2010] (Thread-13) ValidateOrgPage : Page Exit entered
[Mon Apr 26 11:11:31 EEST 2010] (Thread-13) InvOrganization PageBean: pageExited
[Mon Apr 26 11:11:31 EEST 2010] (Thread-13) InvOrganization PageBean: Old OrgId i
s 363
[Mon Apr 26 11:11:31 EEST 2010] (Thread-13) InvOrganization PageBean: Current Org
Id is 363
[Mon Apr 26 11:11:31 EEST 2010] (Thread-13) MFG_ORGANIZATIO N_ID's value set ? tr
ue
[Mon Apr 26 11:11:31 EEST 2010] (Thread-13) XxxtTeslimatNoG irisPage: constructor
Quote
0 #110 aligeldi 2010-04-26 05:19
i solve the problem. you have to write this addListener(thi s); into the constructor. if not pageEntered and pageExited is not handled.

Thanks a lot.
Quote
0 #111 Stelios 2010-05-04 00:36
I cannot compile the pages "CustomTestPage .java" and "CustomTestFLis tener.java". Both of them are using funcionality from the other page.
I have no problem of compiling the "CustomTestFunc tion.java". What I am missing here ?
Quote
0 #112 Senthilkumar Shanmugam1 2010-05-04 04:22
Hi,

What is the error you are getting while compilation?

- Senthil
Quote
0 #113 Stelios 2010-05-04 10:17
I have added in the CLASSPATH the top directory (all the path for the java files except the "xxx/custom/ser ver".
Regards,
Stelios
Quote
0 #114 Mik 2010-05-10 18:00
Hi,

When I performing the Misc Receipt Transaction and trying to enter Serial Number, I am getting the below error message:

Error :java.lang.Null PointerExceptio n

Please help

Thanks
Mi ke
Quote
0 #115 Rohini 2010-05-10 18:19
Hi Mike,

Can you please upload the complete error stack?

Please refer to the following article http://apps2fusion.com/at/ss/225-mwa-setup-testing-error-logging-and-debugging for tracing log messages.

Than ks and Regards,
Senthi l
Quote
0 #116 GirishNarne 2010-09-22 17:34
Hi Senthil,

I have developed a custom mobile page and need to initialize variables. I have added the initialization logic in the pageEntered method in the java class extending the PageBean. But the pageEntered is not being invoked by the page. Could you please help me in resolving this issue.

Thanks,
Girish.
Quote
0 #117 Rohini 2010-09-22 17:42
Hi Girish,

Can you please paste your code snippets .. Functionclass , Page Class.

Also Please paste your log message as well

Thanks and Regards,
Senthi l
Quote
0 #118 GirishNarne 2010-09-23 11:41
Hi Senthil,

I am unable to paste the code as I get a message saying comment is too long. Is there any mail Id where I can send my code.

Regards,
Girish.
Quote
0 #119 Rohini 2010-09-23 12:01
Hi Girish,

You can use our forum to upload our files.

http://apps2fusion.com/forums/viewforum.php?f=145

Thanks and Regards,
Senthi l
Quote
0 #120 shailendra_singh 2010-11-02 08:38
hello Senthil ,

i want to change the logo og oracle gui mobile client .
can u please telll me how to change log..
thanks
shailendra
Quote
0 #121 Miklos 2010-11-15 10:49
Hi Senthil,

Could You please help me.
I tried to deploy the Hello World Mobile Supply Chain Application Framework, but attempting to lunch it I receive the following error:
Couldn't load given class : oracle.apps.fnd .hu.xxsys.mwaex tension.MWAExte ndedClass
java. lang.ClassNotFo undException: oracle.apps.fnd .hu.xxsys.mwaex tension.MWAExte ndedClass

I developed and compiled it locally, and deployed as a jar (mwaextention.j ar)
- MWAExtendedClas s
- MWAExtendedPage
- MWAExtendedFiel dListener
The package was added with full path to $CLASSPATH and the MWA server was bounced.

The package structure
oracl e.apps.fnd.hu.x xsys.mwaextensi on – contains the 3 class files

CLASSPAT H
/u01/applmgr/ yyyytestcomn/ja va/hu/xxsys/mwa extension/mwaex tension.jar


M any thanks in advance,
Miklos
Quote
0 #122 Rohini 2010-11-15 14:14
Hi,

Looks like there is a classpath issue.

did u deploy the files under $JAVA_TOP or anyother CUSTOM_TOP?

Kindly clarify.

Thank s and Regards,
Senthi l
Quote
0 #123 Miklos 2010-11-16 01:53
Dear Senthil,

Thank You for Your reply.
Yes, the $JAVA_TOP is /u01/applmgr/yy yytestcomn/java
The directory where the jar file is placed is /u01/applmgr/yy yycomn/java/hu/ xxsys/mwaextens ion

Furthermor e the package itself was added to $CLASSPATH.

Wh at is strange to me, the class files are in hu.xxsys.mwaext ension package, but as the log file showed the class loader tried to load them from oracle.apps.fnd.hu.xxsys.mwaext ension.
Why does the class loader “prefix” the class as defined at the function in the system with oracle.apps.fnd?
hu.xxsys.mwaext ension.MWAExtendedClass -> oracle.apps.fnd.hu.xxsys.mwaext ension.MWAExtendedClass

Thank You for Your help.

Regards,
Miklos
Quote
0 #124 Rohini 2010-11-16 07:04
Hi,

I beleive you would have created a AOL function for the mobile page and given the path the page starting with 'oracle/apps/fn d' ... Can you please check that one?

Also, it is a standard practice to create Oracle packages like 'oracle.apps... server.

So, I would say please stick to that.

Hope this helps.

Thanks and Regards,
Senthi l
Quote
0 #125 Miklos 2010-11-16 10:04
Dear Senthil,

I bag Your pardon I know that it is more then ironic, but…

No, the HTML function name started with hu, and not with 'oracle/apps/fn d'
In the meantime I refactored the app to the original naming You used:
Package: xxx.custom.serv er
Files: CustomTestFunct ion,class CustomTestPage. class, CustomTestFList ener.class

Dep loyment:
- create directory under $JAVA_TOP/xxx/c ustom/server
- checked that $JAVA_TOP is added to the $CLASSPATH
- copy the 3 class file into the $JAVA_TOP/xxx/c ustom/server directory
- change file and directory permission (for testing) to 777

The form function is registered XXRA_MWA_TEST -> xxx.custom.serv er.CustomTestFu nction

Trying to run from the menu the log file shows:
Couldn't load given class : oracle.apps.fnd .xxx.custom.ser ver.CustomTestF unction
java.la ng.ClassNotFoun dException: oracle.apps.fnd .xxx.custom.ser ver.CustomTestF unction

Refact or the package to oracle.apps.fnd .xxx.custom.ser ver and subdirectories reflecting this new structure are created, and files placed in this directory.
Erro r message in log file is the same.

Certainl y I do not give up, could You please give me any further hint?

Many thanks in advance and regards,
Miklos
Quote
0 #126 Rohini 2010-11-16 10:34
Hi,

Dont worry .. you will get there be patient .. we are always here to help.

Few things which you can do:

1) pls send the output of the query:

select function_name,w eb_html_call from fnd_form_functi ons
where function_name like 'XXRA_MWA_TEST% '

2) Can you please try the same after bouncing the MWA ports?

Kindly update your findings.

Than ks and Regards,
Senthi l
Quote
0 #127 Miklos 2010-11-17 02:27
Hi Senthil,

The result is in both cases:

FUNCTIO N_NAME WEB_HTML_CALL
- --------------- --------------- --------------- -----
XXRA_MWA_ TEST xxx.custom.serv er.CustomTestFu nction

Thank You,
Miklos
Quote
0 #128 Rohini 2010-11-17 05:06
Hi,

This looks wierd ... can you please uplaod your source files and log files into our forum and point me to the link?

Link to forum: http://apps2fusion.com/forums/viewforum.php?f=145

Thanks and Regards,
Senthi l
Quote
0 #129 Miklos 2010-11-18 09:27
Hi Senthil

My good, the error message in log is completely misleading. We compiled the files on the server and WORKS!
As far as I remember one claimed yet for similar problem, so it seems to be wise not to copy the locally compiled class files on the server, even if it is easier for one like me, who has only limited access to the server.
Otherwi se in the meantime I extended Your sample app. with a couple of new functionality, I hope You do not mind :-):-)

Thank You for Your valuable time spent on my issue, and have a nice day!

Regards,
Miklos
Quote
0 #130 jaja 2011-09-02 11:46
Hi ,
I have following situation:

I have added two buttons in this order
(Done first, Cancel second at the bottom of the page):
public oracle.apps.mwa .beans.ButtonFi eldBean mDone;
public oracle.apps.mwa .beans.ButtonFi eldBean mCancel;

and the same listeners for both
mDone.addL istener(mListen er)
mCancel.add Listener(mListe ner)

The problem is when the focus is on the some field and I want to click Cancel button.
In that case mListener.field Entered and mListener.field Exited is executed
for both mDone and mCancel, and I want to be executed only
for mCancel

Genera lly - when I jump from one field to another,
mListener.field Entered and mListener.field Exited methods are executed
for all fields between those two. Problem is that focus doesn’t jump
directly from one field to another but goes through all fields between
those two.

jaja
Quote
0 #131 Rohini 2011-09-03 05:04
Hi,

I have never seen a behaviour like this. Can you enable logging and upload the source file and log files please?

Thanks and Regards,
Senthi l
Quote
0 #132 jaja 2011-09-05 02:37
Hi Senthil
Thank you for your quick answer.
I’ve made some short example to show you my problem. Down is source code (XXPage and XXListener) and system.log for the case when the cursor is on field1 and then is clicked on field3 ( field2 is between). As I mentioned before problem is that XXListner.field Entered and XXListener.file dExited are executed for field2 (see log).

XXPage short code:
public class XXPage extends PageBean
{
public TextFieldBean text1;
public TextFieldBean text2;
public TextFieldBean text3;
public oracle.apps.mwa .beans.ButtonFi eldBean mDone;
public oracle.apps.mwa .beans.ButtonFi eldBean mCancel;

public XXPage() {
initLayout();
}

public void initLayout(){
XXListener xxListener = new XXListener();

UtilFns.trace ("CustomPage before text1 field");
text1 = new TextFieldBean() ;
text1.setName ("INV.TEXT1");
text1.setPrompt ("text 1");
text1.addListener(xxListener);

UtilFns.trace ("CustomPage before text2 field");
text2 = new TextFieldBean() ;
text2.setName ("INV.TEXT2");
text2.setPrompt ("text 2");
text2.addListener(xxListener);

UtilFns.trace ("CustomPage before text3 field");
text3 = new TextFieldBean() ;
text3.setName ("INV.TEXT3");
text3.setPrompt ("text 3");
text3.addL istener(xxListe ner);

mDone = new ButtonFieldBean ();
mDone.setNa me("INV.XX_DONE ");
mDone.setPr ompt("Done");
m Done.addListene r(xxListener);

mCancel = new ButtonFieldBean ();
mCancel.set Name("INV.XX_CA NCEL");
mCancel .setPrompt("Can cel");
mCancel. addListener(xxL istener);

this .addFieldBean(t ext1);
this.add FieldBean(text2 );
this.addFiel dBean(text3);
t his.addFieldBea n(mDone);
this. addFieldBean(mC ancel);
}
}

XX Listener code:
public class XXListener implements MWAFieldListene r {

XXPage mCurrPg;
Sessio n ses;
public XXListener() {
}

public void fieldEntered(MW AEvent mwaevent) throws AbortHandlerExc eption,
Interru ptedHandlerExce ption, DefaultOnlyHand lerException {
if (ses == null)ses = mwaevent.getSes sion();
if (mCurrPg == null) mCurrPg = (XXPage)ses.get CurrentPage();
String field = UtilFns.fieldEn terSource(ses);
UtilFns.trace( "XX entered filed = " + field);
ses.set RefreshScreen(t rue);
}


publi c void fieldExited(MWA Event mwaevent) throws AbortHandlerExc eption,
Interru ptedHandlerExce ption, DefaultOnlyHand lerException {
if (ses == null)ses = mwaevent.getSes sion();
if (mCurrPg == null) mCurrPg = (XXPage)ses.get CurrentPage();
String field = UtilFns.fieldEn terSource(ses);
UtilFns.trace(" XX field = " + field);
ses.set RefreshScreen(t rue);
}
}


jaj a
Quote
0 #133 jaja 2011-09-05 02:45
Here is system log for above source code when you go directly from field text1 to text3
system.lo g:
(Thread-17) PH.run - before PM handle
(Thread- 17) PM - handle enter
(Thread-1 7) PM - reset session variables
(Thre ad-17) PM - verify inputs
(Thread- 17) Entered Input:
(Thread-17) Pre-preocessing the inv scan
(Thread-17 ) Trying to load custom class oracle.apps.inv .lov.server.Inv ScanManager
(Th read-17) Found and invoking custom class
(Thread-1 7) Alias processing
(Thr ead-17) Alias: Return:
(Thread-17) PM - call to InputableFieldB ean
(Thread-17) PM - return InputableFieldB ean
(Thread-17) PM - check for data stream character
(Thread-17) PM - swith to actionCode 13
(Thread-17) PM - Action MWA_TAB
(Thread-17) () callListeners: executing 1 listeners, action = 1
(Thread-17) () callListeners: FieldBean
(Thre ad-17) () callListeners: fieldExited() for INV.TEXT1, Listener=oracle .apps.xxin.invt xn.server.XXLis tener
(Thread-1 7) () handleEvent: going to next field
(Thread-1 7) setCurrentField Index: i = 1 = INV.TEXT2
(Thre ad-17) () callListeners: executing 1 listeners, action = 0
(Thread-17) () callListeners: FieldBean
(Thre ad-17) () callListeners: fieldEntered() for INV.TEXT2, Listener=oracle .apps.xxin.invt xn.server.XXLis tener
(Thread-1 7) () handleEvent: done (pageIx = 3, fieldIx = 1, memory used = 60088480)
(Thre ad-17) PM - After switch action
(Thread-17) PM - curtSession not null
(Thread-17) in initializePage. ..
(Thread-17) Start getCustomPage, page=oracle.app s.xxin.invtxn.s erver.XXPage at Mon Sep 05 08:24:39 CEST 2011
(Thread-17 ) PM - existingPage
(Thread-17) PM - initializeArray s
(Thread-17) PM - check for PageBean
(Thread-17) PM - after InitializePage
(Thread-17) PM - handle exit
(Thread-17 ) PH.run - after PM handle
(Thread- 17) PH.run - while true
(Thread-17) PH.run - while true PM.m_drawScreen
(Thread-17) PH.run - while true PM.m_upArrow
(T hread-17) PH.run - while true PM.m_isNormalTe xt
(Thread-17) PH.run - while true PM.m_highlighte dList
(Thread-17) PH.run - while true PM.m_highlightT ext
(Thread-17) PH.run - while true PM.personalizat ion check
(Thread-17) PH.run - before PM handle
(Thread- 17) PM - handle enter
(Thread-1 7) PM - reset session variables
(Thre ad-17) PM - verify inputs
(Thread- 17) Entered Input:
(Thread-17) Pre-preocessing the inv scan
(Thread-17 ) Trying to load custom class oracle.apps.inv .lov.server.Inv ScanManager
(Th read-17) Found and invoking custom class
(Thread-1 7) Alias processing
(Thr ead-17) Alias: Return:
(Thread-17) PM - call to InputableFieldB ean
(Thread-17) PM - return InputableFieldB ean
(Thread-17) PM - check for data stream character
(Thread-17) PM - swith to actionCode 13
(Thread-17) PM - Action MWA_TAB
(Thread-17) () callListeners: executing 1 listeners, action = 1
(Thread-17) () callListeners: FieldBean
(Thre ad-17) () callListeners: fieldExited() for INV.TEXT2, Listener=oracle .apps.xxin.invt xn.server.XXLis tener
(Thread-1 7) () handleEvent: going to next field
(Thread-1 7) setCurrentField Index: i = 2 = INV.TEXT3
(Thre ad-17) () callListeners: executing 1 listeners, action = 0
(Thread-17) () callListeners: FieldBean
(Thre ad-17) () callListeners: fieldEntered() for INV.TEXT3, Listener=oracle .apps.xxin.invt xn.server.XXLis tener
(Thread-1 7) () handleEvent: done (pageIx = 3, fieldIx = 2, memory used = 60123952)
(Thre ad-17) PM - After switch action
(Thread-17) PM - curtSession not null
(Thread-17) in initializePage. ..
(Thread-17) Start getCustomPage, page=oracle.app s.xxin.invtxn.s erver.XXPage at Mon Sep 05 08:24:39 CEST 2011
(Thread-17 ) PM - existingPage
(Thread-17) PM - initializeArray s
(Thread-17) PM - check for PageBean
(Thread-17) PM - after InitializePage
(Thread-17) PM - handle exit
(Thread-17 ) PH.run - after PM handle
(Thread- 17) PH.run - while true
(Thread-17) PH.run - while true PM.m_drawScreen
(Thread-17) PH.run - while true PM.m_upArrow
(T hread-17) PH.run - while true PM.m_isNormalTe xt
(Thread-17) PH.run - while true PM.m_highlighte dList
(Thread-17) PH.run - while true PM.m_highlightT ext
(Thread-17) PH.run - while true PM.personalizat ion check


jaja
Quote
0 #134 Rohini 2011-09-06 08:18
Hi jaja,

I see a code

UtilFns.t race("XX entered filed = " + field);

But I could not find the same in log message.

This is same with

UtilFns.t race("XX field = " + field);

Am i missing something? Kindly Clarify.

Thank s and Regards,
Senthi l
Quote
0 #135 Phu Tri Nguyen 2011-09-07 03:54
Hello,
I'm very new to java class and MSCA. I create the three java files and and compile them.

CustomTestFun ction.java : compiled successfully


CustomTestPage. java: I have three errors
cannot find symbol
symbol : class CustomTestFList ener
location: package xxx.custom.serv er
import xxx.custom.serv er.CustomTestFL istener;

symbo l : class CustomTestFList ener
location: class xxx.custom.serv er.CustomTestPa ge
new CustomTestFList ener();

symbol : class CustomTestFList ener
location: class xxx.custom.serv er.CustomTestPa ge
CustomTestFL istener fieldListener =


CustomTestF Listener.java: has 2 errors
symbol : class CustomTestPage
location: class xxx.custom.serv er.CustomTestFL istener
CustomT estPage pg;

symbol : class CustomTestPage
location: class xxx.custom.serv er.CustomTestFL istener
pg = (CustomTestPage )ses.getCurrent Page();


It seems like the last two files are related. Please help.

Thank in advance.
PhuTri
Quote
0 #136 Rohini 2011-09-07 06:35
Hi PhuTri.

The page and listener class are interdependant on each other and will not compile if an one of them fails.

Please send the source code and exact error message so that we can have a look.

Thanks and Regards,
Senthi l
Quote
0 #137 Phu Tri Nguyen 2011-09-07 19:47
Hi Senthil,
I compiled them seperately in EBS environment. I created three java programs exactly as they show in the top of the page. Here are the commands that I use to compile them
javac -verbose /d01/oracle/DEV 1/apps/apps_st/ appl/xxc/12.0.0 /java/CustomTes tPage.java
java c -verbose /d01/oracle/DEV 1/apps/apps_st/ appl/xxc/12.0.0 /java/CustomTes tFListener.java

How can I send the sourcode and error message to you?

Thank you for helping.
PhuTri
Quote
0 #138 Rohini 2011-09-08 06:07
Hi,

Can you please paste the source code and error message on this section?

Thank s and Regards,
Senthi l
Quote
0 #139 Phu Tri Nguyen 2011-09-08 21:39
CustomTestPage. java
/* Page Class - Which has the Page Layout. We create and add beans to it */

package xxx.custom.serv er;

import oracle.apps.fnd .common.Version Info;
import oracle.apps.inv .utilities.serv er.UtilFns;
imp ort oracle.apps.mwa .beans.ButtonFi eldBean;
import oracle.apps.mwa .beans.PageBean ;
import oracle.apps.mwa .beans.TextFiel dBean;
import oracle.apps.mwa .eventmodel.Abo rtHandlerExcept ion;
import oracle.apps.mwa .eventmodel.Def aultOnlyHandler Exception;
impo rt oracle.apps.mwa .eventmodel.Int erruptedHandler Exception;
impo rt oracle.apps.mwa .eventmodel.MWA Event;

import xxx.custom.serv er.CustomTestFL istener;

//Pag e Listener Class
public class CustomTestPage extends PageBean {

/**
* Default constructor which just initialises the layout.
*/
publ ic CustomTestPage( ) {

//Method to initialize the layout
initLayout();
}


/**
* Does the initialization of all the fields. Creates new instances
* and calls the method to set the prompts which may have to be later
* moved to the page enter event if we were using AK prompts as we
* require the session for the same.
*/

priva te void initLayout() {
//Logging

if (UtilFns.isTrac eOn)
UtilFns.tr ace("CustomPage initLayout");

//Create a Text Filed and Set an ID
mHelloWorld = new TextFieldBean() ;
mHelloWorld.s etName("TEST.HE LLO");

// Create a Submit Button and set an ID
mSubmit = new ButtonFieldBean ();
mSubmit.set Name("TEST.SUBM IT");

//add the fields
addField Bean(mHelloWorl d);
addFieldBea n(mSubmit);

// add field listener to all necessary fields
CustomTe stFListener fieldListener =
new CustomTestFList ener();

mHello World.addListen er(fieldListene r);
mSubmit.add Listener(fieldL istener);

//ca ll this method to initializa the prompts
this.in itPrompts();
}

/**
* Method that sets all the prompts up.
*/
private void initPrompts() {
UtilFns.trace (" Custom Page - Init Prompts");

// sets the page title
this.setP rompt("Test Custom Page");

// set the prompts for all the remaining fields
mHelloWo rld.setPrompt(" Enter Your Name");
mSubmit .setPrompt("Sub mit");

//pleas e note that we should not hard code page name and prompts
//as it may cause translation problems
//we have an different procedure to overcome this
}


// This method is called when the user clicks the submit button
public void print(MWAEvent mwaevent, TextFieldBean mTextBean) throws AbortHandlerExc eption
{
UtilFns.trace( " Custom Page - print ");

// Get the value from Text bean and append hello world
// and display it to user on the same field
String s = mTextBean.getVa lue();
mTextBea n.setValue(s+" Hello World");
}


// Method to get handle of TextBean
public TextFieldBean getHelloWorld() {
return mHelloWorld;
}


//Method called when the page is entered
public void pageEntered(MWA Event e) throws AbortHandlerExc eption,
InterruptedHan dlerException,
DefaultOnlyHan dlerException {
UtilFns.trace (" Custom Page - pageEntered ");
}


//Method called when the page is exited
public void pageExited(MWAE vent e) throws AbortHandlerExc eption,
InterruptedHan dlerException,
DefaultOnlyHan dlerException {
UtilFns.trace (" Custom Page - pageExited ");
}


// Create the Bean Variables
TextF ieldBean mHelloWorld;
pr otected ButtonFieldBean mSubmit;
}
Quote
0 #140 Phu Tri Nguyen 2011-09-08 21:43
CustomTestFList ener.java
/* Listener Class - Handles all events */
package xxx.custom.serv er;

import oracle.apps.inv .utilities.serv er.UtilFns;
imp ort oracle.apps.mwa .beans.FieldBea n;
import oracle.apps.mwa .container.Sess ion;
import oracle.apps.mwa .eventmodel.Abo rtHandlerExcept ion;
import oracle.apps.mwa .eventmodel.Def aultOnlyHandler Exception;
impo rt oracle.apps.mwa .eventmodel.Int erruptedHandler Exception;
impo rt oracle.apps.mwa .eventmodel.MWA Event;
import oracle.apps.mwa .eventmodel.MWA FieldListener;


public class CustomTestFList ener implements MWAFieldListene r {
public CustomTestFList ener() {
}


public void fieldEntered(MW AEvent mwaevent) throws AbortHandlerExc eption,Interrup tedHandlerExcep tion, DefaultOnlyHand lerException {
UtilFns.trace ("Inside Field Entered");
ses = mwaevent.getSes sion();
String s = UtilFns.fieldEn terSource(ses);

// Prints the Current Bean's ID
UtilFns.trac e("CustomFListe ner:fieldEntere d:fldName = " + s);
}


public void fieldExited(MWA Event mwaevent) throws AbortHandlerExc eption, InterruptedHand lerException, DefaultOnlyHand lerException {
String s = ((FieldBean)mwa event.getSource ()).getName();
// Prints the Current Bean's ID
UtilFns.trac e("CustomFListe ner:fieldExited :fldName = " + s);

// Get handle to session and page
Session ses = mwaevent.getSes sion();
pg = (CustomTestPage )ses.getCurrent Page();

// when the user clicks the Submit button call the method to print
// Hello world with the text entered in text box
if (s.equals("TEST .SUBMIT")) {
pg.print(mwaeve nt,pg.getHelloW orld());
return ;
}
}

// Varibale declaration
Cus tomTestPage pg;
Session ses;
}
Quote
0 #141 Phu Tri Nguyen 2011-09-08 21:47
[parsing completed 16ms]
[search path for source files: /d01/oracle/DEV 1/apps/tech_st/ 10.1.3/appsutil /jdk/lib/dt.jar ,/d01/oracle/DE V1/apps/tech_st /10.1.3/appsuti l/jdk/lib/tools .jar,/d01/oracl e/DEV1/apps/tec h_st/10.1.3/app sutil/jdk/jre/l ib/rt.jar,/d01/ oracle/DEV1/app s/apps_st/comn/ java/lib/appsbo rg.zip,/d01/ora cle/DEV1/apps/t ech_st/10.1.2/f orms/java,/d01/ oracle/DEV1/app s/tech_st/10.1. 2/forms/java/fr mall.jar,/d01/o racle/DEV1/apps /tech_st/10.1.2 /jlib/ewt3.jar, /d01/oracle/DEV 1/apps/tech_st/ 10.1.2/j2ee/OC4 J_BI_Forms/appl ications/formsa pp/formsweb/WEB -INF/lib/frmsrv .jar,/d01/oracl e/DEV1/apps/app s_st/comn/java/ classes]
[searc h path for class files: /d01/oracle/DEV 1/apps/tech_st/ 10.1.3/appsutil /jdk/jre/lib/re sources.jar,/d0 1/oracle/DEV1/a pps/tech_st/10. 1.3/appsutil/jd k/jre/lib/rt.ja r,/d01/oracle/D EV1/apps/tech_s t/10.1.3/appsut il/jdk/jre/lib/ sunrsasign.jar, /d01/oracle/DEV 1/apps/tech_st/ 10.1.3/appsutil /jdk/jre/lib/js se.jar,/d01/ora cle/DEV1/apps/t ech_st/10.1.3/a ppsutil/jdk/jre /lib/jce.jar,/d 01/oracle/DEV1/ apps/tech_st/10 .1.3/appsutil/j dk/jre/lib/char sets.jar,/d01/o racle/DEV1/apps /tech_st/10.1.3 /appsutil/jdk/j re/classes,/d01 /oracle/DEV1/ap ps/tech_st/10.1 .3/appsutil/jdk /jre/lib/ext/su njce_provider.j ar,/d01/oracle/ DEV1/apps/tech_ st/10.1.3/appsu til/jdk/jre/lib /ext/localedata .jar,/d01/oracl e/DEV1/apps/tec h_st/10.1.3/app sutil/jdk/jre/l ib/ext/dnsns.ja r,/d01/oracle/D EV1/apps/tech_s t/10.1.3/appsut il/jdk/jre/lib/ ext/sunpkcs11.j ar,/d01/oracle/ DEV1/apps/tech_ st/10.1.3/appsu til/jdk/lib/dt. jar,/d01/oracle /DEV1/apps/tech _st/10.1.3/apps util/jdk/lib/to ols.jar,/d01/or acle/DEV1/apps/ tech_st/10.1.3/ appsutil/jdk/jr e/lib/rt.jar,/d 01/oracle/DEV1/ apps/apps_st/co mn/java/lib/app sborg.zip,/d01/ oracle/DEV1/app s/tech_st/10.1. 2/forms/java,/d 01/oracle/DEV1/ apps/tech_st/10 .1.2/forms/java /frmall.jar,/d0 1/oracle/DEV1/a pps/tech_st/10. 1.2/jlib/ewt3.j ar,/d01/oracle/ DEV1/apps/tech_ st/10.1.2/j2ee/ OC4J_BI_Forms/a pplications/for msapp/formsweb/ WEB-INF/lib/frm srv.jar,/d01/or acle/DEV1/apps/ apps_st/comn/ja va/classes]
[lo ading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ fnd/common/Vers ionInfo.class]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ inv/utilities/s erver/UtilFns.c lass]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/Butto nFieldBean.clas s]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/PageB ean.class]
[loa ding /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/TextF ieldBean.class]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ AbortHandlerExc eption.class]
[ loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ DefaultOnlyHand lerException.cl ass]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ InterruptedHand lerException.cl ass]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ MWAEvent.class]
/d01/oracle/DE V1/apps/apps_st /appl/xxc/12.0. 0/java/CustomTe stPage.java:27: cannot find symbol
symbol : class CustomTestFList ener
location: package xxx.custom.serv er
import xxx.custom.serv er.CustomTestFL istener;
^
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/MWABe an.class]
[load ing java/io/Seriali zable.class(jav a/io:Serializab le.class)]
[loa ding java/lang/Objec t.class(java/la ng:Object.class )]
[checking xxx.custom.serv er.CustomTestPa ge]
[loading java/lang/Strin g.class(java/la ng:String.class )]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/Input ableFieldBean.c lass]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/Field Bean.class]
/d0 1/oracle/DEV1/a pps/apps_st/app l/xxc/12.0.0/ja va/CustomTestPa ge.java:113: cannot find symbol
symbol : class CustomTestFList ener
location: class xxx.custom.serv er.CustomTestPa ge
CustomTestFL istener fieldListener =
^
/d01/oracle /DEV1/apps/apps _st/appl/xxc/12 .0.0/java/Custo mTestPage.java: 115: cannot find symbol
symbol : class CustomTestFList ener
location: class xxx.custom.serv er.CustomTestPa ge
new CustomTestFList ener();
^
[loading java/lang/Excep tion.class(java /lang:Exception .class)]
[loadi ng java/lang/Throw able.class(java /lang:Throwable .class)]
[total 222ms]
3 errors
Quote
0 #142 Phu Tri Nguyen 2011-09-08 21:52
[parsing completed 15ms]
[search path for source files: /d01/oracle/DEV 1/apps/tech_st/ 10.1.3/appsutil /jdk/lib/dt.jar ,/d01/oracle/DE V1/apps/tech_st /10.1.3/appsuti l/jdk/lib/tools .jar,/d01/oracl e/DEV1/apps/tec h_st/10.1.3/app sutil/jdk/jre/l ib/rt.jar,/d01/ oracle/DEV1/app s/apps_st/comn/ java/lib/appsbo rg.zip,/d01/ora cle/DEV1/apps/t ech_st/10.1.2/f orms/java,/d01/ oracle/DEV1/app s/tech_st/10.1. 2/forms/java/fr mall.jar,/d01/o racle/DEV1/apps /tech_st/10.1.2 /jlib/ewt3.jar, /d01/oracle/DEV 1/apps/tech_st/ 10.1.2/j2ee/OC4 J_BI_Forms/appl ications/formsa pp/formsweb/WEB -INF/lib/frmsrv .jar,/d01/oracl e/DEV1/apps/app s_st/comn/java/ classes]
[searc h path for class files: /d01/oracle/DEV 1/apps/tech_st/ 10.1.3/appsutil /jdk/jre/lib/re sources.jar,/d0 1/oracle/DEV1/a pps/tech_st/10. 1.3/appsutil/jd k/jre/lib/rt.ja r,/d01/oracle/D EV1/apps/tech_s t/10.1.3/appsut il/jdk/jre/lib/ sunrsasign.jar, /d01/oracle/DEV 1/apps/tech_st/ 10.1.3/appsutil /jdk/jre/lib/js se.jar,/d01/ora cle/DEV1/apps/t ech_st/10.1.3/a ppsutil/jdk/jre /lib/jce.jar,/d 01/oracle/DEV1/ apps/tech_st/10 .1.3/appsutil/j dk/jre/lib/char sets.jar,/d01/o racle/DEV1/apps /tech_st/10.1.3 /appsutil/jdk/j re/classes,/d01 /oracle/DEV1/ap ps/tech_st/10.1 .3/appsutil/jdk /jre/lib/ext/su njce_provider.j ar,/d01/oracle/ DEV1/apps/tech_ st/10.1.3/appsu til/jdk/jre/lib /ext/localedata .jar,/d01/oracl e/DEV1/apps/tec h_st/10.1.3/app sutil/jdk/jre/l ib/ext/dnsns.ja r,/d01/oracle/D EV1/apps/tech_s t/10.1.3/appsut il/jdk/jre/lib/ ext/sunpkcs11.j ar,/d01/oracle/ DEV1/apps/tech_ st/10.1.3/appsu til/jdk/lib/dt. jar,/d01/oracle /DEV1/apps/tech _st/10.1.3/apps util/jdk/lib/to ols.jar,/d01/or acle/DEV1/apps/ tech_st/10.1.3/ appsutil/jdk/jr e/lib/rt.jar,/d 01/oracle/DEV1/ apps/apps_st/co mn/java/lib/app sborg.zip,/d01/ oracle/DEV1/app s/tech_st/10.1. 2/forms/java,/d 01/oracle/DEV1/ apps/tech_st/10 .1.2/forms/java /frmall.jar,/d0 1/oracle/DEV1/a pps/tech_st/10. 1.2/jlib/ewt3.j ar,/d01/oracle/ DEV1/apps/tech_ st/10.1.2/j2ee/ OC4J_BI_Forms/a pplications/for msapp/formsweb/ WEB-INF/lib/frm srv.jar,/d01/or acle/DEV1/apps/ apps_st/comn/ja va/classes]
[lo ading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ inv/utilities/s erver/UtilFns.c lass]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/Field Bean.class]
[lo ading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/container/S ession.class]
[ loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ AbortHandlerExc eption.class]
[ loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ DefaultOnlyHand lerException.cl ass]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ InterruptedHand lerException.cl ass]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ MWAEvent.class]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ MWAFieldListene r.class]
[loadi ng /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/eventmodel/ MWAListener.cla ss]
[loading java/util/Event Listener.class( java/util:Event Listener.class) ]
[loading java/lang/Objec t.class(java/la ng:Object.class )]
/d01/oracle/ DEV1/apps/apps_ st/appl/xxc/12. 0.0/java/Custom TestFListener.j ava:75: cannot find symbol
symbol : class CustomTestPage
location: class xxx.custom.serv er.CustomTestFL istener
CustomT estPage pg;
^
[checking xxx.custom.serv er.CustomTestFL istener]
[loadi ng java/lang/Error .class(java/lan g:Error.class)]
[loading java/lang/Excep tion.class(java /lang:Exception .class)]
[loadi ng java/lang/Throw able.class(java /lang:Throwable .class)]
[loadi ng java/lang/Runti meException.cla ss(java/lang:Ru ntimeException. class)]
[loadin g java/lang/Strin g.class(java/la ng:String.class )]
[loading java/util/Event Object.class(ja va/util:EventOb ject.class)]
[l oading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/MWABe an.class]
/d01/ oracle/DEV1/app s/apps_st/appl/ xxc/12.0.0/java /CustomTestFLis tener.java:56: cannot find symbol
symbol : class CustomTestPage
location: class xxx.custom.serv er.CustomTestFL istener
pg = (CustomTestPage )ses.getCurrent Page();
^
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/container/B aseSession.clas s]
[loading /d01/oracle/DEV 1/apps/apps_st/ comn/java/class es/oracle/apps/ mwa/beans/PageB ean.class]
[tot al 224ms]
2 errors
Quote
0 #143 Phu Tri Nguyen 2011-09-08 21:55
I basically compiled the files within the EBS. Thank you for helping.
PhuTri
Quote
+1 #144 Phu Tri Nguyen 2011-09-09 02:57
I follow your steps and able to have it work. Here are the steps

1) Copy all 3 Java Files to $JAVA_TOP/xxx/c ustom/server (/d01/oracle/DE V1/apps/apps_st /comn/java/clas ses/xxx/custom/ server)
2) Set environment (the .env file)
3) Compile the java files from the uploaded directory (javac -classpath $JAVA_TOP *.java)
4) Register it in EBS as function (HTML Call: xxx.custom.serv er.CustomTestFu nction)
5) Register it in Mobile responsibility

And that's it. Thank you very much for the articals and your posts.
PhuTri
Quote
0 #145 pnagashankar 2012-05-02 07:16
Hi

Please let me know the Code snippet for getting the Background color in Red, Green and Yellow for the Out message in MWA form.

Thanks
S hankar
Quote
0 #146 Vishy 2013-12-13 05:46
Is there any method in MSCA that can make a button clicked automatically without manual key/mouse event.
Quote
0 #147 WayneSpoof 2021-06-14 02:07
MEET HOT LOCAL GIRLS TONIGHT WE GUARANTEE FREE SEX DATING IN YOUR CITY CLICK THE LINK:
FREE SEX
Quote

Add comment


Security code
Refresh

Search Trainings

Fully verifiable testimonials

Apps2Fusion - Event List

<<  Jun 2021  >>
 Mon  Tue  Wed  Thu  Fri  Sat  Sun 
   1  2  3  4  5  6
  7  8  910111213
14151617181920
21222324252627
282930    

Enquire For Training

Fusion Training Packages

Get Email Updates


Powered by Google FeedBurner