Customize Standard Java Class

Hi,
I need to customize a standard java class. I decomplied the source code of the class file, make the changes as required, and then compile it and upload it to the original path.
The problem is that I am receiving java exception NoSuchMethod error after customizing. Even though I revert it to the original one, I am receiving the same error. I did re-bounce the HTTP server.
The class is $JAVA_TOP/oracle/apps/po/communicate/POGenerateDocument.class
Am I missed any important steps?
Thanks in advance!

Hi,
I need to customize a standard java class. I decomplied the source code of the class file, make the changes as required, and then compile it and upload it to the original path.
The problem is that I am receiving java exception NoSuchMethod error after customizing. Even though I revert it to the original one, I am receiving the same error. I did re-bounce the HTTP server.
The class is $JAVA_TOP/oracle/apps/po/communicate/POGenerateDocument.class
Am I missed any important steps?
Thanks in advance!

Similar Messages

  • Standard Java class communicating with a servlet

    Hey,
    I am trying to access a standard java classes member via a servlet class however the data is never received even though the member is visible on compilation. is there something Im doing wrong ?
    public class Start {
    //lots of stuff
         static List<Plug> plugList = Collections.synchronizedList(new LinkedList<Plug>());
    //lots more stuff
    public class wah extends HttpServlet{
            public void doGet( HttpServletRequest request, HttpServletResponse response)throws ServletException, IOException{
                    doPost(request, response);
        public void doPost(HttpServletRequest request,
                                    HttpServletResponse res)throws ServletException, IOException{
                    res.setContentType("text/html");
                    PrintWriter out = res.getWriter();
                    out.println("wahwahwah");
                    synchronized(Start.plugList){
                            out.println("pluglist");
                            Iterator i1 = Start.plugList.iterator();
                            while (i1.hasNext()) {
                                    Plug oldPlug = (Plug)i1.next();
                                    out.println("PLug : " + oldPlug.getaddress64());
            }//doPost
    }

    Don't post all your code. Instead, make a simplified version of the code that demonstrates what your problem is and that we could compile and see what is going on. Make it as simple as possible but still demonstrating the problem.
    Who knows, when you make the SSCCP (small, self contained, compileable program) you will find your mistake as well.
    But without seeing any code all I can say is that the date you are accessing in the list has not been made available when you try to get it from the servlet. Perhaps the servlet call is blocking the other threads from accessing the list to put data into it, perhaps the other threads haven't begun working yet, perhaps the list you give to the servlet isn't the same list (but instead a copy of the list) that the data is being entered into, or many other reasons.
    One thing I would assume you need to do, since the Servlet is the data consumer, you need to make sure the data has been entered before the servlet tries to read it. The best way to do that is to put a wait() in the servlet code so that it knows it can't do anything until the producers are finished. Then the producers would add a notify() to tell the servlet to go ahead and display the data.
    So some modification might be:
    public class Start {
    //lots of stuff
         static List<Plug> plugList = Collections.synchronizedList(new LinkedList<Plug>());
            //marker to let servlet know that it can consume data
            private static boolean done = false;
            //producers call this method when list is ready for use
            static void setReadyToConsume() { done = true; }
            //servlet calls this to check if the list is ready
            public static boolean isReadyToConsume() { return done; }
    //lots more stuff
        public void doPost(HttpServletRequest request,
                                    HttpServletResponse res)throws ServletException, IOException{
                    res.setContentType("text/html");
                    PrintWriter out = res.getWriter();
                    out.println("wahwahwah");
                    synchronized(Start.plugList){
                           //Hold off trying to use list until list is ready
                            while (!Start.isReadyToConsume()) {
                                  try {
                                          Start.plugList.wait();
                                  } catch (InterruptedException ie) {
                                          log("Waiting for Plugs to be ready interrupted.  Continuing to wait.");
                                          log(ie.getMessage(), ie);
                            out.println("pluglist");
                            Iterator i1 = Start.plugList.iterator();
                            while (i1.hasNext()) {
                                    Plug oldPlug = (Plug)i1.next();
                                    out.println("PLug : " + oldPlug.getaddress64());
            }//doPostAnd don't forget to add a Start.plugList.notify() or Start.plugList().notifyAll() in the producer code after it calls the setReadyToConsume() method.

  • Customize MWA and WMA standard Java Classes

    Hi,
    Are there any guidelines/white papers, if you want to add customizations in Java to eBS modules? In our project, customizations are needed for the eBS WMA (Warehouse Management) and MWA (Mobile Supply Chain Applications) modules.
    Best regards,
    Antonio San Miguel

    Oracle have certainly not made it easy to customise MWA pages. However it can be done with a little understanding of the architecture. Sadly I've not found any documentation, but I've decompiled most of it and gone through it all manually.
    The biggest issue is that all the pages have hard coded paths. So for an LOV, it will refer to oracle.apps.wms.td.server.PickLoadPage.INV.ITEM. So if you extend this class (eg: xxx.oracle.apps.wms.td.server.PickLoadPage) then the LOV won't work. So you need to change the LOV field beans to point to the custom class. Also buttons have these, when linking to other pages, etc.. Also the field listener (FListener) class will sometimes set the path, so your changes will be overwritten. In these cases you need to add your own FListener to the standard fields and change them back. Crazy I know!
    Basically if you want to customise the pages mentioned, you need to:
    - First trace the class back to the Function that calls it. This will point to a Function class.
    - Create your own Function class that points to your own Page class.
    - Create your own Page class that extends the standard Page class.
    - In your custom Page class, init the super class then go through all the field beans and ensure their LOV parameters point to your custom page class. Same for buttons
    - Create an FListener class and add it to all the fields/buttons on the standard (and custom) page. This will allow you to change things on field entry/exit as needed.
    I think in your case, the PickLoadPage is called from another page class, so you'll need to customise that one as well in order for it to link to you custom one.
    Good luck!

  • Java Program in MDM to call a standard java class

    Hi All,
    In MDM- GDS, (Global Data Synchronization), we have a scenario where, once we register the Items , it will be transported to a Data Pool called 1SYNC through SAP PI.
    There is a standard Java PRoxy(Kind of java Class) in MDM, which will be triggered once we register the Item in MDM-GDS.
    That Java Proxy will send the Item INfo as a XML message to PI.
    So we would like to know whether its possible to automate this process.
    Like,Writing a new Java Program which will check all the new items and trigger the Java Proxy and send these items as XML Messages to PI.
    I m new to MDM. So it would be really helpful, If i could get some inputs on this. Like, is it possible in MDM. If so, how?

    Aarthi,
    you can acheive this from MDM itself, and need not to write any Java proxy.
    you may consider following logic.
    Create a field with the Name Status and Initilize it with Value "new". Now define syndicaiton Map to syndicate records which holds value "new" in the status field.  define a workflow with syndication step, using maps defined earlier. After syndication step, execute an assignment to change Status field value from "New" to "Syndicated".
    Revert back if any question.
    ~ Shiv

  • After upgrade to JHS Production: cannot find two standard java Classes

    Hi, First: congratulations on the Production release. Great that it is there.
    After making several backups, I have upgraded to JHS build 91 Production release (I came from JHS build 78).
    1. after upgrade to JHS Production, I tested my application first (so before re-enabling Jheadstart on the ViewController and regenerating pages). The application still worked fine
    2. I re-enabled JHeadstart on the VC project
    3. I opened my Applictation Definition Files and saved them (I noticed a deprecated property OverwriteUiModel that disappeared after saving)
    4. I ran the generator on my three App. Def. Files.
    5. I rebuild the whole application
    6. I ran the application, the first (Table-style) page comes up fine
    7. But when clicking on one of the records in the Table to navigate to the Form page...the Embedded OC4J exits with a fatal error:
    Fatal error: Cannot find class java/lang/StackOverflowError
    Fatal error: Cannot find class java/lang/NullPointerException
    The last part of the log before these fatal errors is as follows:
    06/08/11 10:12:47 [1171] Binding param "Bind_IdPerson": 210002
    06/08/11 10:12:47 [1172] **** refreshControl() for BindingContainer :PersonsPageDef
    06/08/11 10:12:47 [1173] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    06/08/11 10:12:47 [1174] **** refreshControl() for BindingContainer :PersonsPageDef
    06/08/11 10:12:47 [1175] Invoke method Action:999
    06/08/11 10:12:47 [1176] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeAddrLinkTypes
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeAddrLinkTypes: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1177] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1178] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1179] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1180] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c60
    06/08/11 10:12:47 [1181] Invoke method Action:999
    06/08/11 10:12:47 [1182] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeAddrLinkStatuses
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeAddrLinkStatuses: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1183] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1184] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1185] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1186] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c61
    06/08/11 10:12:47 [1187] Invoke method Action:999
    06/08/11 10:12:47 [1188] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeOrgPersonTypes
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeOrgPersonTypes: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1189] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1190] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1191] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1192] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c62
    06/08/11 10:12:47 [1193] Invoke method Action:999
    06/08/11 10:12:47 [1194] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeDivDataValidationStatuses
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeDivDataValidationStatuses: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1195] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1196] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1197] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1198] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c63
    06/08/11 10:12:47 [1199] Invoke method Action:999
    06/08/11 10:12:47 [1200] DCInvokeMethod:Invoking PersonServiceDataControl.dataProvider.applyBindParams()
    10:12:47 DEBUG (JhsApplicationModuleImpl) -Executing applyBindParams for CodeDivDataDivisionStatuses
    10:12:47 DEBUG (JhsApplicationModuleImpl) -ViewObject CodeDivDataDivisionStatuses: bind parameter values have not changed, NO Requery performed
    06/08/11 10:12:47 [1201] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:47 [1202] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result = null
    06/08/11 10:12:47 [1203] DCUtil, returning:oracle.adf.model.binding.DCDataControl$MethodResultsMap, for methodResults
    06/08/11 10:12:48 [1204] putValueInPath :PersonServiceDataControl.methodResults.PersonServiceDataControl_dataProvider_applyBindParams_result~cp = [Ljava.lang.Object;@c64
    06/08/11 10:12:48 [1205] *** DCDataControl.sync() called from :DCBindingContainer.refresh
    06/08/11 10:12:48 [1206] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1207] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1208] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1209] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1210] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1211] ##### QueryCollection.finl no RowFilter
    06/08/11 10:12:48 [1212] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1213] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1214] Business Object Browsing may be unavailable
    06/08/11 10:12:48 [1215] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovAddressesPageDef.xml
    06/08/11 10:12:48 [1216] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1217] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1218] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1219] Executing and syncing on IteratorBinding.refresh from :AddrLinkTypeIterator
    06/08/11 10:12:48 [1220] Resolving VO:CodeAddrLinkTypes for iterator binding:AddrLinkTypeIterator
    06/08/11 10:12:48 [1221] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1222] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1223] Business Object Browsing may be unavailable
    06/08/11 10:12:48 [1224] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovPersonAddrOrganizationsPageDef.xml
    06/08/11 10:12:48 [1225] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1226] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1227] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1228] Executing and syncing on IteratorBinding.refresh from :AddrLinkStatusIterator
    06/08/11 10:12:48 [1229] Resolving VO:CodeAddrLinkStatuses for iterator binding:AddrLinkStatusIterator
    06/08/11 10:12:48 [1230] No XML file /com/jnj/jacnl/cab/view/pagedefs/person/person.xml for metaobject com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1231] Cannot Load parent Package : com.jnj.jacnl.cab.view.pagedefs.person.person
    06/08/11 10:12:48 [1232] Business Object Browsing may be unavailable
    06/08/11 10:12:48 [1233] Loading from XML file /com/jnj/jacnl/cab/view/pagedefs/person/PersonLovOrganizationsPageDef.xml
    06/08/11 10:12:48 [1234] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1235] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:48 [1236] DCUtil, returning:oracle.jbo.uicli.binding.JUApplication, for PersonServiceDataControl
    06/08/11 10:12:49 [1237] Executing and syncing on IteratorBinding.refresh from :OrgPersonTypeIterator
    06/08/11 10:12:49 [1238] Resolving VO:CodeOrgPersonTypes for iterator binding:OrgPersonTypeIterator
    Fatal error: Cannot find class java/lang/StackOverflowError
    Fatal error: Cannot find class java/lang/NullPointerException
    Process exited with exit code -1.
    Any idea why this might have happened, just because I upgrade to JHS production release?
    I am reverting to build 78 again to continue developing, but hope to be able to get working with the prod release soon, but I lack knowledge to determine where the error occurs...
    Toine

    Sandra,
    I have the (ugly) feeling that I am facing the problem mentioned in http://forums.oracle.com/forums/thread.jspa?messageID=1211326? : it looks like when a JSPX page gets too complex, the Embedded OC4J raises this StackOverFlow class notfound error :-(. Probably the (it only hits me when navigating to the most complex page) generated page generated with build 78 was fine, but the generated page after build 91 has become too complex, allthough nothing changed in between. What I can see from the difference between the before and after build 91 situation for all pages, is that you have added the <id=...> arguments to all ADF elements, like [id="PersonsSaveButton"] in:
    <af:commandButton actionListener="#{bindings.Commit.execute}"
                      action="Commit"
                      textAndAccessKey="#{nls['SAVE_BUTTON_LABEL_PERSONS']}"
                      id="PersonsSaveButton">
                   <af:resetActionListener/>
      </af:commandButton>In build78 these were not there. As far as I can see another difference after generating with build 91 is a new element in the page:
    <af:panelGroup rendered="#{(bindings.PersonsIterator.currentRowIndexInRange!=-1 and bindings.PersonsIterator.findMode!='true')}">I have not seen a proper solution for this on the JDeveloper forum. I noticed people asking if there is a kind of 'maximum' on how complex a page can get before this error situation happens. No answer on that found (you do not want to know there is a maximum anyway).
    The specific page is a master with 5 stacked detail regions and three "use as LOV" groups. Further on about 30 domains are used...
    And the page has not finished yet, it will get more "complex" that this. I hope someone knows a good solution so that I can continue to use the Embedded OC4J for testing, otherwise developing wil get very time consuming if I have to deploy to AS every time...something I cannot afford since the project deadline is getting nearer and nearer.
    Toine

  • Where the $%^&* are the standard Java classes?

    I've loaded and run j2sdk-1_4_2_01-windows-i586.exe (I use Win 98).
    Then I tried to write my first applet, which began:
    import java.awt.Graphics;
    import java.awt.Font;
    import java.awt.Color;
    But the compiler said it could not find the Color class.
    So I looked in the installation directory and its various subdirectories and could not find Color.java or Color.class (or rather Wondows Explorer could not find them for me).
    So where the $%^&* are they supposed to be?
    If necessary how do I get them installed in the right place?

    Thanks for your initial responses, everyone. Here's the additional info some of you requested.
    I installed the SDK in directory C:\j2sdk1.4.2 in case I ever want to experiment with another version.
    I have not modified any MS-DOS environment variables - as far as I'm concerned this is the installer's responsibility and every other product I've ever installed has handled this - sound cards, CD readers, software, whatever.
    Directory C:\j2sdk1.4.2 contains file src.zip and WinZip (6.3, so AFAIK it handles long file names OK) tells me src.zip contains a vast collection of files - some look relevant to my current requirements (e.g. those with path java\applet and java\awt) and others not so relevent to my requirements.
    abramia is right, I used the Gel IDE (http://www.gexperts.com/). I've set the project properties as follows in Gel:
    Libraries:
    * Basic Java libraries
    Source paths:
    * Where I keep my own source code - no problem, javac is finding the applet code OK.
    * C:\j2sdk1.4.2 (where I installed the SDK).
    Command line generated by the "compile" menu option - too long to copy & paste!
    Output path: I'll worry about this when I get a clean compile. I used the same procedure as when I set the 1st source path, so I don't expect problems.
    So can anyone help me now with this additional info? Or is there any other info I need to supply?

  • Error while trying to call Java Class from Peoplecode

    Gurus,
    I am trying to read a property file from peoplecode using standard java classes. However, I am getting this error more than one overload matches
    Below are 2 ways in which I tried doing this and both ended up in the same error
    Code 1>_
         Local JavaObject &file = CreateJavaObject("java.io.File", "D:\\psft.properties");
         Local JavaObject &properties = CreateJavaObject("java.util.Properties");
         Local JavaObject &reader = CreateJavaObject("java.io.FileReader", &file);
         &properties.load(); Error thrown : "Calling Java java.io.FileReader.<init>: more than one overload matches"
    Code 2>_
         Local JavaObject &file = CreateJavaObject("java.io.File", "D:\\psft.properties");
         Local JavaObject &properties = CreateJavaObject("java.util.Properties");
         Local JavaObject &properyFile = CreateJavaObject("java.io.FileInputStream", &file);
         &properties.load();
    Error thrown : "Calling Java java.io.FileInputStream.<init>: more than one overload matches."
    The above error is thrown on the 3rd line when I try to invoke the FileInputStream or FileReader class/constructor.
    In fact both the above code pieces work absolutely fine when I write them into a java class and run them on a java runtime. Any inputs would be of great help !! Alternatively, I will have to use peoplecode file.readline(), etc to read the property file. Since java has this smarter way to reading a property file, I thought of giving it a try ..
    -Sudripta

    I tested this on one of my windows servers using PT 8.50:
    Local JavaObject &joCurrFile = CreateJavaObject("java.io.File", "c:/temp/test-date.txt");
    Local JavaObject &jlongtime = CreateJavaObject("java.util.Date");
    Local number &modifytime = &jlongtime.getTime();
    MessageBox(0, "", 0, 0, "original time: " | &joCurrFile.lastModified());
    Local boolean &filemodified = &joCurrFile.setLastModified(&modifytime);
    MessageBox(0, "", 0, 0, "&modifytime: " | &modifytime, "");
    MessageBox(0, "", 0, 0, "&filemodified: " | &filemodified, "");
    MessageBox(0, "", 0, 0, "new time: " | &joCurrFile.lastModified());Here are the results:
    PeopleTools 8.50.05 - Application Engine
    Copyright (c) 1988-2010 PeopleSoft, Inc.
    All Rights Reserved
    original time: 1287677026144 (0,0)
    Message Set Number: 0
    Message Number: 0
    Message Reason: original time: 1287677026144 (0,0) (0,0)
    &modifytime: 1287677277845 (0,0)
    Message Set Number: 0
    Message Number: 0
    Message Reason: &modifytime: 1287677277845 (0,0) (0,0)
    &filemodified: True (0,0)
    Message Set Number: 0
    Message Number: 0
    Message Reason: &filemodified: True (0,0) (0,0)
    new time: 1287677277845 (0,0)
    Message Set Number: 0
    Message Number: 0
    Message Reason: new time: 1287677277845 (0,0) (0,0)
    Application Engine program DSS_TEST_IO ended normallyDoes your app server have permissions to modify the files you are trying to modify? Also, how did you verify the date/time of the files? Were you using Windows Explorer? Did you refresh the view first? Or did you use the console dir/ls? I seriously doubt there is a security manager in place that would restrict what you can do with Java. Security managers are common in applets/browser context, but not in apps.

  • Difference b/w Java Class and Bean class

    hi,
    can anybody please tell me the clear difference between ordinary java class and java Bean class. i know that bean is also a java class but i donno the exact difference between the both.
    can anybody please do help me in understanding the concept behind the bean class.
    Thank u in advance.
    Regards,
    Fazlina

    While researching this question, I came across this answer by Kim Fowler. I think it explains it better than any other answer I have seen in the forum.
    Many thanks Kim
    Hi
    Luckily in the java world the definition of components is a little
    less severe than when using COM (I also have, and still occasionaly
    do, worked in the COM world)
    Firstly there are two definitions that need to be clarified and
    separated: JavaBean and EnterpriseJavaBean (EJB)
    EJB are the high end, enterprise level, support for distributed
    component architectures. They are roughly equivalent to the use of MTS
    components in the COM/ COM+ world. They can only run within an EJB
    server and provide support, via the server, for functionality such as
    object pooling, scalability, security, transactions etc. In order to
    hook into this ability EJB have sets of interfaces that they are
    required to support
    JavaBeans are standard Java Classes that follow a set of rules:
    a) Hava a public, no argument constructor
    b) follow a naming patterns such that all accessor and modifier
    functions begin with set/ get or is, e.g.
    public void setAge( int x)
    public int getAge()
    The system can then use a mechanism known as 'reflection/
    introspection' to determine the properties of a JavaBean, literally
    interacting with the class file to find its method and constructor
    signatures, in the example above the JavaBean would end with a single
    property named 'age' and of type 'int' The system simply drops the
    'set' 'get' or 'is' prefix, switches the first letter to lower case
    and deduces the property type via the method definition.
    Event support is handled in a similar manner, the system looks for
    methods similar to
    addFredListener(...)
    addXXXListener
    means the JavaBean supports Fred and XXX events, this information is
    particularly useful for Visual builder tools
    In addition there is the abiliity to define a "BeanInfo' class that
    explicitly defines the above information giving the capability to hide
    methods, change names etc. this can also be used in the case where you
    cannot, for one reason or another, use the naming patterns.
    Finally the JavaBean can optionally - though usually does - support
    the Serializable interface to allow persistence of state.
    As well as standard application programming, JavaBeans are regularly
    used in the interaction between Servlets and JSP giving the java
    developer the ability to ceate ojbect using standard java whilst the
    JSP developer can potentially use JSP markup tags to interact in a
    more property based mechanism. EJB are heaviliy used in Enterprise
    application to allow the robust distribution of process
    HTH.
    Kim

  • Replace Java Class?

    Hi to all of yours.
    Standard Java classes, like File, OutputStream and such and such, are included in every Java distribution.
    I have a .jar library which uses them, for example FileOutputStream. I load this library with an URLClassLoader.
    What I want to achive is that the library uses a class defined by myself instead of FileOutputStream. This class will have the same signature and methods, of course.
    This sounds strange, but consider the following: the library I use (3rd party) creates a pile of files with stuff in them on the hard disk. However, I dont want these files to be on the hd, but in memory instead. Therefore I created some sort of "virtual file system" with streams and all sorts of gimicks.
    I dont want to replace FileOutputStream permanently, just within the ClassLoader used to load that jar.
    First idea was to override the loadClass method to return my class whenever "java.io.FileOutputStream" is requested.
    Well, this works for normal classes, but these "basic" java classes (as I said, like File, FileOutputStream and so on..) are not requested from the classloader but somehow already "known".
    Can someone either tell me how to achieve my goal of replacing them dynamically or at least point me some links where i can get information on how the class-retrieving process of the "basic" java classes is done or could be influenced?
    Thanks a million,
    Thomas.

    Hey
    You need to add a parameter to exchange profile before you can see ABAP-class in Interface mapping,please follow the below steps:
    Go to http://<host:port>/exchangeProfile in internet explorer
    Expand IntegrationBuilder ->IntegrationBuilder.Repository->click on com.sap.aii.repository.mapping.additionaltypes link ,then on right hand side just type
    R3_ABAP|Abap-class in i/o field. and save.
    You may need to restart Java engine for this take effect.
    Thanks
    Aamir
    Edited by: Aamir Suhail on Aug 5, 2009 1:02 PM
    Edited by: Aamir Suhail on Aug 5, 2009 1:02 PM

  • Calling Java Classes from Forms 6.0

    Can this be done?
    How can it be done?
    And, I don't mean JavaBeans... I don't want to embed a control
    on my form... I want to call a standard java class routine.
    Any help or laughter would be appreciated...
    Thanks,
    Pat Caldwell
    [email protected]
    null

    You have to write a wrapper classes so forms can call your java,
    if you've got any yet.
    Then use the Bean Area tool to draw the area your applet will
    display in (if you don't want to display anything then don't
    display anything in you java).
    Its not really JavaBeans more like oracleBeans.
    I've had to re-write functionality for the web such as
    displaying open/save file dialogs.
    If your interested and you've installed dev60, the example:
    C:\orant\FORMS60
    \java\oracle\forms\DEMOS\SOURCE\ProgressBarPJC.java and
    ProgressBar.java got me started with alot of reading from
    http://java.sun.com/products/jdk/1.1/docs.html
    Patrick Caldwell (guest) wrote:
    : Can this be done?
    : How can it be done?
    : And, I don't mean JavaBeans... I don't want to embed a control
    : on my form... I want to call a standard java class routine.
    : Any help or laughter would be appreciated...
    : Thanks,
    : Pat Caldwell
    : [email protected]
    null

  • Custom java class in Quoting screen Customization

    Hi,
    We are working with Customization of couple of screens in Quote module. Esp. the Create Template screen. We decide to add new property to the Template and user needs to choose among a set of values to this new property through a radio button.
    Instead of hardcoding these property values and radiobuttons, we thought we would define these data in some lookup table and fetch them and display.
    Now, since we are defining these lookup data, should we write our custom java class to interact with database and fetch them from any lookup table (should we use flex fields ?) ?
    If we are going to write custom java object, any guidance on how to compile/deploy/standards for them ?
    Message was edited by:
    tcesenthil

    Since our this requirement is in Quotes module, its not using OAF. It is using plain JSPs and java classes.
    What i was thinking is, create the Option values as flex fields, and write a custom java class to fetch these data from the flex tables and use it in the JSP.
    The main problem we are facing now is,
    "...we wrote a simple java class, which establishes database connection, executes a simple insert & select query to our custom table. compiled & placed the class file under our new pkg structure under $JAVA_TOP eg. oracle.apps.xxx.quot.tmpl , bounced the apache."
    But when we tried to import this class in the jsp (which is being customized), the app just throwed Internal Server Error and we couldnt find any info in the Log file.
    Couldnt guess, why is this simple thing failing. Any idea ?

  • To Unable to Import Customize Java classes in Report Builder 10g

    Hi,
    In Report Builder 10g , I am trying to load image from Remote server
    URL:"http://imagecache5.art.com/p/LRG/15/1544/1ABDD00Z/muhammad-ali-vs-sonny-liston.jpg"
    Steps did in Report Builder 10g
    1.In Report Builder Created a Formula column with
    Datatype : Character
    Read from File: Yes
    File Format: Image
    In Formula columns trying to Unable to Import Customize Java classes.
    To read methods from Java classes.
    Please help on this.
    Ranga

    Hello,
    To import the Java classes:
    Add your jar in the REPORTS_CLASSPATH
    Launch Reports Builder.
    Note:
    You must launch Reports Builder now so that the new REPORTS_CLASSPATH is used.
    Choose Program > Import Java Classes to display the Import Java Classes dialog box.
    Regards

  • Audit and Standard Javadoc applied to all Jdeveloper project java classes

    Hi,
    I want to apply standard Javadoc to all the java classes I have written. Is there a quick way of doing it in 11.1.1.3
    I have already done the following but the code editor rules are not getting enforced.
    1) Go to 'Tools' and then choose 'Preferences
    2) Go to the 'Code Editor' and under it 'Java' and then 'Javadoc'
    3) Select all the tags like @author @version @param etc and modify the Tag properties to be required and then click OK
    4) Next I create a new Java class but the code editor rules are not enforced.
    Questions:
    a) How to enforce the code editor preferences?
    b) How to automatically generate the missing javadocs in the existing classes in Jdeveloper?
    c) How to audit and setup a coding standard, so that it's easier to monitor what everybody in the project does and adheres to the coding guidelines.
    Bottomline - Are these possible in JDeveloper 11.1.1.3
    Thanks

    Have a look at the JDeveloper code audit feature.
    Under tools->preferences->audit->profiles
    You can either modify or add a new profile and check the JavaDoc Comments rules.
    You can switch the Missing Comment rule to have a more serious severity.
    Then you can audit your file (or the complete project).
    In the audit window you'll see an option to automatically fix error that the Audit flagged - this can include adding the missing Javadoc.

  • Customization of generated Java class names

    Hi,
    I could not find any documentation on how to customize names of the generated
    Java classes/types. In Castor, you can do it with a simple mapping, is it possible
    with XMLBeans?
    Thanks,
    Marina

    Hi, Steve,
    thanks for your reply!
    I have tried to add an xsdconfig file, but when I run the following command:
    C:\Java\XMLBeans\xkit\bin\scomp -src . -srconly order.xsd
    with the xsdconfig file in the current directory , nothing happens - the xsdconfig
    file is ignored and Java files are generated in exactly same way as they were
    without the xsdconfig file...
    Here is the content of my xsdconfig file - it is very simple, for test purposes:
    <xb:config xmlns:order="http://order"
    xmlns:xb="http://www.bea.com/2002/09/xbean/config">
    <xb:namespace uri="http://order">
    <xb:package>neptune.neptunelib</xb:package>
    </xb:namespace>
    <xb:qname name="order:order" javaname="OrderDO"/>
    <xb:qname name="order:shippingID" javaname="ShippingInfoDO"/>
    <xb:qname name="order:addressInfo" javaname="AddressInfoDO"/>
    <xb:qname name="order:destination" javaname="DestinationDO"/>
    </xb:config>
    I'm not sure about the namespace part - currently, my order.xsd has no namespace
    or URI assigned. I asked BEA's customer support about this and the answer was:
    'use anything, the URI does not matter'. Well, I did use "anything" but I'm not
    sure this is correct...
    Thanks,
    Marina
    "Steve Traut" <[email protected]> wrote:
    Marina -- You can do this by creating an xsdconfig file and including
    it
    when you compile your XSD files. The xsdconfig file maps schema types
    to
    generated Java type names.
    If you're using WebLogic Workshop, the following topic should give you
    what
    you need:
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/howdoi/howGuideXMLBeansTypeNaming.html
    If you're using Ant, I can provide a topic that will be available soon.
    Please send email if you'd like information on the Ant task.
    Steve
    "Marina Popova" <[email protected]> wrote in message
    news:3f8c468c$[email protected]..
    Hi,
    I could not find any documentation on how to customize names of thegenerated
    Java classes/types. In Castor, you can do it with a simple mapping,is it
    possible
    with XMLBeans?
    Thanks,
    Marina

  • Can't find Java Class of a standard UI Command

    Hello everybody,
    Where can i find Java classe source and Bundle file of a standard UI Command "AppDetails"
    for example ?
    Thanks & Regards,
    Hassan Mounim

    Hi Hassan,
    You can find the UIDetailsCommand class here:
    ..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\private\lib\km.appl.ui.flex.uicommand_core.jar
    And the bundle file UIConst here:
    ..\WEB_INF\portal\portalapps\com.sap.km.cm.ui.flex\lib\km.shared.ui.flex.uicommand_api.jar
    Hope this helps,
    Robert

Maybe you are looking for