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.

Similar Messages

  • Applet communication with struts servlet

    Hi
    I�ve seen a lot of examples where a Java applet communicates with a servlet.
    I�ve made a web application using Struts, and i would like to know if it is possible to use an applet (View) and send to Stuts some data, I mean, call an action like http://localhost:8080/ViewRoads.do.
    Is it possible? ,Where can I find some examples about?, could anyone explain how would it work?, any good book to read about?.
    Thank you.

    I'm sorry but don't you have a communication source code example between a servlet and an applet that does work ? I'm looking for one of these since Two days already.
    thanks

  • Java class integration with Oracle Identity Manager 9.1.0.2

    Hello Friends,
    I have a java class that is responsible for sending notifications, my question is how do the relationship of this class with the Oracle Identity Manager 9.1.0.2 so you can take the class and notify users when an application is approved or rejected.
    Any recommendation for this process.
    Thanks for the support
    Edited by: JLK on Jun 12, 2012 5:20 PM

    Hi
    Java class integration with OIM happen through concept of adapters. You can go through OIM documentation of how to create adapters.
    In your case you should create a process task adapetrs adn attach it on the Approved response code in your approval process.
    Desingn Console --> Process management --> Process definition --> <Apprlication Process Ex: AD User>.
    Alternatively you can also send notification using OIM OOTB email templates.
    Regards
    user12841694

  • Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, don´t work with UCCX 10.5

    I have a Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, after upgrade it don´t work with UCCX 10.5
    I get the error message: "Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL.; nested exception is: javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. (line: 1, col: 47)
    Does anyone know about this ?

    Did you ever find a resolution to this issue? I have a similar issue after upgrading from 7 to 10.5. I have loaded all provided certificates to the tomcat-trust store, restarted Tomcat Services and still get the same error
    Thanks

  • 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!

  • Could not create Java class: associated with region:

    Hi All,
    I am extending the standard controller oracle.apps.pos.supplier.webui.SuppSummCO
    With a custom controller xxmycomp.oracle.apps.pos.supplier.webui.XXSuppSummCO
    I have built the project in my local JDEV,
    Compiled the custom controller and put it under $JAVA_TOP
    I have verified the same by ls -l $JAVA_TOP/xxmycomp/oracle/apps/pos/supplier/webui/XXSuppSummCO.class
    I have given full permission to xxmycomp folder under $JAVA_TOP (chmod -R 777 xxmycomp)
    I have done the OC4J core bounce
    After setting the custom controller at site level by personalizing the Region,
    When I am returning to the application I am getting the following error
    oracle.apps.fnd.framework.OAException: Could not create Java class: (xxmycomp.oracle.apps.pos.supplier.webui.XXSuppSummCO) associated with region: (PageLayoutRN). This is probably because the class name is wrong or not included in project.
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
         at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
         at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2559)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1894)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:538)
         at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:426)
         at OA.jspService(_OA.java:212)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
         at RF.jspService(_RF.java:225)
    The custom controller is for testing only and has only the following code
    public void processRequest(OAPageContext oapagecontext,
    OAWebBean oawebbean)
    super.processRequest(oapagecontext, oawebbean);
    public void processFormRequest(OAPageContext oapagecontext,
    OAWebBean oawebbean)
    super.processFormRequest(oapagecontext, oawebbean);
    I have created the directory xxmycomp under $JAVA_TOP
    I have read only access to other directories under $JAVA_TOP apart from xxmycomp.
    Can anybody help me resolve this error?
    I am doing the same steps in another instance where it is working fine.
    Regards,
    Gourab

    Hi Gourab,
    Double check the the page.xml has referring to the correct CO. Open the page.xml and see which controller is attached to it.
    Also attach the extended controller through personalization to the page/Region.
    Thanks
    --Anil                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • 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

  • 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!

  • When Teststand is expired, the java process communicating with Teststand engine is killed.

    We are using an evaluation version of Teststand for development. We are using Teststand API in C code to communicate with the Teststand engine and in turn the java process communicates with the C code. But if the Teststand is expired, the java process is killed. Please suggest if there is a solution to stop the killing of java process when the teststand is expired.

    Hi geddam,
    The fact that the entire application is ending is expected as it is trying to access the TestStand API. Since your evaluation period is over you no longer have an active license and cannot access TestStand. We allow an evaluation period so that someone new to TestStand can evaluate it to determine if they will benefit from the software. However, once you have decided to develop using TestStand, you need to obtain a development license for TestStand. We have several different licenses for TestStand and a specific license to be used for development. The evaluation period should not be used as a time for development but a time to evaluate the software. So, in order for your application to work again, you will need to obtain a license for TestStand software.
    Thanks,
    Caroline
    National Instruments
    Thanks,
    Caroline Tipton
    Data Management Product Manager
    National Instruments

  • Communicating with a Servlet

    How do i send objects from an application to a Servlet so that the servlet can use those objects to check if they exist in a database
    thank you kindly

    Since i cant setup my Servlet engine and check if it works i thought id ask if there are gonna be any problems with this code so i can continue on with my project
    heres the modified Info class
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.io.*;
    public class Info extends JFrame{
         private JLabel user, pass, cpass;
         private JTextField usert;
         private JPasswordField passt, cpasst;
         private Socket s;
         private ObjectOutputStream out;
         public Info(){
              super("Login");
              Container c = getContentPane();
              c.setLayout(new GridLayout(6,1));
              user = new JLabel("Username");
              pass = new JLabel("Password");
              cpass = new JLabel("Confirm Pass");
              usert = new JTextField("ivo");
              passt = new JPasswordField();
              cpasst = new JPasswordField();
              c.add(user);
              c.add(usert);
              c.add(pass);
              c.add(passt);
              c.add(cpass);
              c.add(cpasst);
              try{
                   s = new Socket("127.0.0.1", 3456);
                   out = new ObjectOutputStream(s.getOutputStream());
                   out.writeObject(user.getText());
              }catch(Exception e){
                   e.printStackTrace();
              setSize(200,200);
              show();
         public static void main(String args[]){
              Info app = new Info();
    }and heres the Servlet class
    import javax.servlet.*;
    import javax.servlet.http.*;
    import java.io.*;
    import java.net.*;
    public class servlet extends HttpServlet{
    private ServerSocket ss;
    private Socket s;
    private ObjectInputStream in;
    public void init(){
         try{
         ss = new ServerSocket(3456);
         s = ss.accept();
         in = new ObjectInputStream(s.getInputStream());
         System.out.print((String)in.readObject());
    }catch(Exception e){
         e.printStackTrace();
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
         response.setContentType("text/html");
         PrintWriter out;
         out = response.getWriter();
         StringBuffer buf = new StringBuffer();
         buf.append("<HTML><HEAD><TITLE>\n");
         buf.append("My Servlet\n");
         buf.append("</TITLE></HEAD><BODY>\n");
         buf.append("<H3>SUP!!!</H3>");
         buf.append("</BODY></HTML>");
         out.println(buf.toString());
         out.close();
    }thank u in advance

  • 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?

  • Java.lang.NullPointerException with Tomcat  Servlet

    Hi,
    I have got in my database the year as a number (Integer) like 1973 whatever, and in my servlet i get the yearFrom and the yearTo. Then parse them into an integer but I get java.NullPointerException and I dunno why???
    Then I put them in my SQL statement:
    ageFrom = Integer.parseInt(strAgeFrom);
    ageTo = Integer.parseInt(strAgeTo);
    String SQL = "SELECT * FROM People where YearBirth >= " + ageFrom + "  AND YearBirth <= " + ageTo + " AND Gender like '%" + seekFor + "%' AND Interests like '%" + interest + "%' AND Address2 like '%" + suburb + "%';";Thank you

    Hi,
    I have got in my database the year as a number
    (Integer) like 1973 whatever, and in my servlet i get
    the yearFrom and the yearTo. Then parse them into an
    integer but I get java.NullPointerException and I
    dunno why???
    Then I put them in my SQL statement:
    ageFrom = Integer.parseInt(strAgeFrom);
    ageTo = Integer.parseInt(strAgeTo);
    String SQL = "SELECT * FROM People where YearBirth >=
    " + ageFrom + "  AND YearBirth <= " + ageTo + " AND
    Gender like '%" + seekFor + "%' AND Interests like
    '%" + interest + "%' AND Address2 like '%" + suburb +
    "%';";Thank youThat's simply because your strAgeFrom, strAgeTo return NULL.
    If it's possible that you'll get NULL values from those fields, you should do some data validation before using Integer.parseInt().
    Good luck :D

  • Java  PComm (Communication with mainframe)

    Hi All,
    In VB or Excel Macros we have set of objects (autECLConnList, autECLPS, etc- Automation Objects for PComm) to communicate with mainframe applications and perform actions.
    Eg: Set AEOB = CreateObject("PCOMM.autECLPS")
    Set AECL = CreateObject("PCOMM.autECLConnList")
    Set AS1 = CreateObject("PCOMM.autECLoia")
         AEOB.SetConnectionByName ("a")
         AS1.SetConnectionByName ("A")
         AEOB.SendKeys "[enter]"
    We want to use these objects in java.Please let me know if there is same objects or objects with same functionality available in java.
    It would be helpful if some sample code snippets were available?

    you don't want to serialize this thing to your C++ server, as the serialization header info would cause it all manner of trouble. You just want to open up a socket and write the bytes out in the proper order. The server will read those bytes, not caring where they came from. All will be well so long as you present them to it in the correct order. Depending on the platform you might have to worry about endian and encoding issues, I can't remember where that gets taken care of.
    Good luck
    Lee

  • Java Thread communication with web browser

    Hi All,
    I am facing a kind of problem, which i dont know if its a bug or the configuration setting in the web browser
    I have opened a server socket connection, that listens to a request coming from the browser(i.e the URL) and when request comes a new thread is being created..
    The problem is that when I enter a URL in the browser, it is being received by the socket but the thread runs into an infinite loop,for a specific period of time..
    What could be the problem,
    any help shall be appreciated..

    Most likely It's browser, some browsers open multiple connection to the server, for performance reasons. IE does it, try other browsers and see.

Maybe you are looking for

  • Firewire camera disappear after reboot

    Hello all, I've the following system configuration:  - 4 AVT guppy 033B firewire cameras (speed: 200 Mbps; Shutter: 250; trigger: mode0)  - Adlink SBC 852  - 1GB Ram  - CPU DUAL CORE E2200 socket 77  - firewire cable: 10 m  - firewire board: PCI dual

  • 2011 macbook pro OSX maverick, error: storage system verify or repair failed

    Hi there, My 2011 Macbook pro which came with Lion but now upgraded to Maverick 10.9.5 has just crashed. It will start up in recovery mode but when I've gone to the apple logo to start up from disk, it shows the disk but doesn't start up from it I ju

  • Adobe Bridge CC will not launch OS 10.9.5

    I've recently installed Adobe Creative Cloud onto a brand new Mac Pro.  All the Adobe apps launch with no issue except for Bridge, which does not launch at all.  The app icon bounces in the dock for a second, then disappears.  I've tried uninstalling

  • PDF Merge software on Server side

    Hi, Do you use any PDF Merge software on Server side that combines the many PDF files (originally from Broadcaster) into one PDF? This final PDF file should have the Table of Contents with the corresponding page numbers. Therefore, this software shou

  • How to keep data integrity with the two business service in OSB 10.3.1.0

    How to keep data integrity with the two business service in OSB 10.3.1.0 In our customer system, customer want to keep data integerity between two businness service. I thinks this is XA transaction issue. Basing customer requirment, I created a testc