Help me, I met an exception in WBXML!!! :((

when i parse a WBXML for my SoapEnvelope, i receive an exception:
"id 10 undef..." .What is it? How to solve it? help me,plz, my brothers....

How the heck do you get the SoapEnvelope to recognize wbxml? I'm assuming you're using ksoap?
I've thinking of integrating wbxml with ksoap 1.0 but am under the impression I would have create my own class to do so. If you can tell me an easier way, I'd be highly relieved.
Thanks.

Similar Messages

  • HELP Needed with this error:   Exception in thread "main" java.lang.NoClass

    Folks,
    I am having a problem connecting to my MSDE SQL 2000 DB on a WindowsXP pro. environment. I am learning Java and writing a small test prgm to connect the the database. The code compiles ok, but when I try to execute it i keep getting this error:
    "Exception in thread "main" java.lang.NoClassDefFoundError: Test1"
    I am using the Microsoft jdbc driver and my CLASSPATH is setup correctly, I've also noticed that several people have complained about this error, but have not seen any solutions....can someone help ?
    Here is the one of the test programs that I am using:
    import java.sql.*;
    * Microsoft SQL Server JDBC test program
    public class Test1 {
    public Test1() throws Exception {
    // Get connection
    DriverManager.registerDriver(new
    com.microsoft.jdbc.sqlserver.SQLServerDriver());
    Connection connection = DriverManager.getConnection(
    "jdbc:microsoft:sqlserver://LAPTOP01:1433","sa","sqladmin");
    if (connection != null) {
    System.out.println();
    System.out.println("Successfully connected");
    System.out.println();
    // Meta data
    DatabaseMetaData meta = connection.getMetaData();
    System.out.println("\nDriver Information");
    System.out.println("Driver Name: "
    + meta.getDriverName());
    System.out.println("Driver Version: "
    + meta.getDriverVersion());
    System.out.println("\nDatabase Information ");
    System.out.println("Database Name: "
    + meta.getDatabaseProductName());
    System.out.println("Database Version: "+
    meta.getDatabaseProductVersion());
    } // Test
    public static void main (String args[]) throws Exception {
    Test1 test = new Test1();

    I want to say that there was nothing wrong
    with my classpath config., I am still not sure why
    that didn't work, there is what I did to resolved
    this issue.You can say that all you like but if you are getting NoClassDefFound errors, that's because the class associated with the error is not in your classpath.
    (For future reference: you will find it easier to solve problems if you assume that the problem is your fault, instead of trying to blame something else. It almost always is your fault -- at least that's been my experience.)
    1. I had to set my DB connection protocol to TCP/IP
    (this was not the default), this was done by running
    the
    file "svrnetcn.exe" and then in the SQL Server Network
    Utility window, enable TCP/IP and set the port to
    1433.Irrelevant to the classpath problem.
    2. I then copied all three of the Microsoft JDBC
    driver files to the ..\jre\lib\ext dir of my jdk
    installed dir.The classpath always includes all jar files in this directory. That's why doing that fixed your problem. My bet is that you didn't have the jar file containing the driver in your classpath before, you just had the directory containing that jar file.
    3. Updated my OS path to located these files
    and....BINGO! (that simple)Unnecessary for solving classpath problems.
    4. Took a crash course on JDBC & basic Java and now I
    have created my database, all tables, scripts,
    stored procedures and can read/write and do all kinds
    of neat stuff.All's well that ends well. After a few months you'll wonder what all the fuss was about.

  • Dangling meta character exception

    Hi,
    we get this exception after a readAll query with conformResultsInUnitOfWork. The presence of the "+" in the text seems to confuse toplink.
    Is it a known bug or should we open a TAR?
    java.util.regex.PatternSyntaxException: Dangling meta character '+' near index 0
    +20019G KRUEGER RENATE.*
    ^
    at java.util.regex.Pattern.error(Pattern.java:1528)
    at java.util.regex.Pattern.sequence(Pattern.java:1645)
    at java.util.regex.Pattern.expr(Pattern.java:1545)
    at java.util.regex.Pattern.compile(Pattern.java:1279)
    at java.util.regex.Pattern.<init>(Pattern.java:1035)
    at java.util.regex.Pattern.compile(Pattern.java:779)
    at java.util.regex.Pattern.matches(Pattern.java:865)
    at oracle.toplink.internal.helper.JDK14Platform.conformLike(JDK14Platform.java:51)
    at oracle.toplink.internal.helper.JavaPlatform.conformLike(JavaPlatform.java:57)
    at oracle.toplink.expressions.ExpressionOperator.doesRelationConform(ExpressionOperator.java:769)
    at oracle.toplink.internal.expressions.RelationExpression.doesConform(RelationExpression.java:133)
    at oracle.toplink.publicinterface.UnitOfWork.getAllFromNewObjects(UnitOfWork.java:1493)
    at oracle.toplink.queryframework.ReadAllQuery.conformResult(ReadAllQuery.java:332)
    at oracle.toplink.queryframework.ReadAllQuery.registerObjectInUnitOfWork(ReadAllQuery.java:684)
    at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2222)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
    at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
    We use Toplink 9.0.4.4, jdk 1.4.

    This is a known bug. It will be fixed in TopLink 9.0.4.6.

  • Please help me to avoid this Exception.

    I have a JTextField which will accept only non-negative integer. To get the Document roll_doc for the constructor of JTextField
    I have a class maxLengthText which will make sure that the JTextfield accepts only non-negative integer.
    I have a problem while resetting the content of the JTextField. As I have made sure that only integers are allowed in my text field.
    So while using setText(" "). The code executes the exception in my actionListener. I don't want this exceptuion to get executed when I reset the content of my JTextField using setText(String).
    Please help. Suggest any workaround for this. Thanks in advance
    The code is as follows:
    package marksheet;
    import javax.swing.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.util.*;
    import javax.swing.BorderFactory;
    import javax.swing.*;
    import javax.swing.text.*;
    public class SpringApplet1 extends JApplet implements ActionListener {
         JLabel l_instruction1;
         JLabel l_instruction2;
         JLabel l_instruction3;
         JLabel l_instruction4;
         JLabel l_instruction5;
         JLabel l_instruction6;
         JLabel l_instruction7;
         JLabel l_instruction8;
         JLabel l_space;
         JLabel label1;
         JLabel label2;
         JLabel label3;
         JLabel label4;
         JTextField text1;
         JTextField text2;
         JTextField text3;
         JTextField text4;
         JLabel l_name;
         JLabel l_fname;     
         JLabel l_course;
         JLabel l_specialization;
         JLabel l_batch;
         JLabel l_semester;
         JLabel l_rollno;
         JLabel l_enrolno;
         JTextField t_name;
         JTextField t_fname;
         JTextField t_rollno;
         JTextField t_enrollno;
         JComboBox cb_course;
         JComboBox cb_branch;
         JComboBox cb_batch;
         JComboBox cb_semester;
         JCheckBox c_parttime;
         JCheckBox c_fulltime;
         JButton Submit;
         JButton enterMarks;
         JButton reset;
         JTextField txtInt;
         JPanel p;
         JPanel p1;
         JPanel p2;
         JPanel p3;
         public void init () {
         l_space = new JLabel(" ");
         Document roll_doc = new maxLengthText(5); // set maximum length to 5
         Document enroll_doc = new maxLengthText(6); // set maximum length to 6
         t_rollno= new JTextField(roll_doc, "", 6);
         t_enrollno= new JTextField(enroll_doc, "", 7);
         Document name_doc = new maxLengthAlpha(15); // set maximum length to 15
         t_name = new JTextField(name_doc, "", 7);
         l_instruction1 = new JLabel("All names should be alphabets",JLabel.LEFT);
         l_instruction1.setForeground(Color.blue);
         l_instruction1.setVisible(false);
         l_instruction1.setVisible(true);
         l_instruction2 = new JLabel("Name can not be greater than 15 characters",JLabel.LEFT);
         l_instruction2.setForeground(Color.blue);
         l_instruction2.setVisible(false);
         l_instruction2.setVisible(true);
         l_instruction3 = new JLabel("Seperate firstname and last name with a 'space'",JLabel.LEFT);
         l_instruction3.setForeground(Color.blue);
         l_instruction3.setVisible(false);
         l_instruction3.setVisible(true);
         l_instruction4 = new JLabel("All marks are out of 100, Marks obtained are non-negative integers",JLabel.LEFT);
         l_instruction4.setForeground(Color.blue);
         l_instruction4.setVisible(false);
         l_instruction4.setVisible(true);
         l_instruction8 = new JLabel("Marks obtained can not be greater than 100 ",JLabel.LEFT);
         l_instruction8.setForeground(Color.blue);
         l_instruction8.setVisible(false);
         l_instruction8.setVisible(true);
         l_instruction5 = new JLabel("Roll number should be of length 5 and only numeric",JLabel.LEFT);
         l_instruction5.setForeground(Color.blue);
         l_instruction5.setVisible(false);
         l_instruction5.setVisible(true);
         l_instruction6 = new JLabel("Enrolment number should be of length 6 and only numeric",JLabel.LEFT);
         l_instruction6.setForeground(Color.blue);
         l_instruction6.setVisible(false);
         l_instruction6.setVisible(true);
         l_instruction7 = new JLabel("All fields are Mandatory",JLabel.LEFT);
         l_instruction7.setForeground(Color.blue);
         l_instruction7.setVisible(false);
         l_instruction7.setVisible(true);
         l_name = new JLabel("Name",JLabel.LEFT);
         l_name.setForeground(Color.blue);
         l_fname = new JLabel("Father's Name",JLabel.LEFT);
         l_fname.setForeground(Color.blue);
         l_course = new JLabel("Course",JLabel.LEFT);
         l_course.setForeground(Color.blue);
         l_specialization = new JLabel("Specialization",JLabel.LEFT);
         l_specialization.setForeground(Color.blue);
         l_batch = new JLabel("Batch",JLabel.LEFT);
         l_batch.setForeground(Color.blue);
         l_semester = new JLabel("Semester",JLabel.LEFT);
         l_semester.setForeground(Color.blue);
         l_rollno = new JLabel("Roll Number",JLabel.LEFT);
         l_rollno.setForeground(Color.blue);
         l_enrolno = new JLabel("Enrolment Number",JLabel.LEFT);
         l_enrolno.setForeground(Color.blue);
         //t_name = new JTextField(20);
         t_name.setEditable(true);
    //     t_name.setBackground(Color.YELLOW);
         t_fname = new JTextField(20);
         t_fname.setEditable(true);
    //     t_fname.setBackground(Color.YELLOW);
         //t_rollno = new JTextField(20);
         t_rollno.setEditable(true);
    //     t_rollno.setBackground(Color.YELLOW);
         //t_enrollno = new JTextField(20);
         t_enrollno.setEditable(true);
    //     t_enrollno.setBackground(Color.YELLOW);
         label1 = new JLabel("Data Structures",JLabel.LEFT);
         label1.setForeground(Color.blue);
         label1.setVisible(true);
         label2 = new JLabel("Compiler Design",JLabel.LEFT);
         label2.setForeground(Color.blue);
         label2.setVisible(true);
         label3 = new JLabel("Numerical Analysis",JLabel.LEFT);
         label3.setForeground(Color.blue);
         label3.setVisible(true);
         label4 = new JLabel("Discrete Matehmatics",JLabel.LEFT);
         label4.setForeground(Color.blue);
         label4.setVisible(true);
         text1 = new JTextField(20);
         text1.setEditable(false);
    //     text1.setBackground(Color.green);
         text1.setVisible(true);
         text2 = new JTextField(20);
         text2.setEditable(false);
    //     text2.setBackground(Color.green);
         text2.setVisible(true);
         text3 = new JTextField(20);
         text3.setEditable(false);
    //     text3.setBackground(Color.green);
         text3.setVisible(true);
         text4 = new JTextField(20);
         text4.setEditable(false);
    //     text4.setBackground(Color.green);
         text4.setVisible(true);
         String a_course[] =
              {" ","BE","MCA"};
         String a_branch[] =
              {" ","Computer Science","Electronics"};
         String a_batch[] =
              {" ","2000-2001","2001-2002","2002-2003","2003-2004","2004-2005"};
         String a_semester[] =
              {" ","I","II","III","IV","V","VI","VII","VIII"};
         cb_course = new JComboBox(a_course);
         cb_branch = new JComboBox(a_branch);
         cb_batch = new JComboBox(a_batch);
         cb_semester = new JComboBox(a_semester);
         c_parttime = new JCheckBox("Part Time");
         c_fulltime = new JCheckBox("Full Time");
         Submit = new JButton ("Generate Marksheet");
         Submit.setVisible(true);
    //     Submit.addActionListener(this);
         enterMarks = new JButton ("Enter Marks");
         enterMarks.setVisible(true);
    // enterMarks.addActionListener(this);
         reset= new JButton ("Reset");
         reset.setVisible(true);
    //reset.addActionListener(this);
         p = new JPanel(new GridLayout(5,2,2,2));
    p.setBorder(BorderFactory.createTitledBorder("Student Details"));
         p.add(l_name);
         p.add(t_name);
    p.add(l_fname);
         p.add(t_fname);
    p.add(l_rollno);
         p.add(t_rollno);
    p.add(l_enrolno);
         p.add(t_enrollno);
         p.add(l_space);
         p.add(l_space);
         p1 = new JPanel(new GridLayout(0,2,2,2));
         p1.setBorder(BorderFactory.createTitledBorder("Course Details"));
         p1.add(l_course);
         p1.add(cb_course);
         p1.add(l_specialization);
         p1.add(cb_branch);
         p1.add(l_batch);
         p1.add(cb_batch);
         p1.add(l_semester);
         p1.add(cb_semester);
         p1.add(c_parttime);
         p1.add(c_fulltime);
         p1.add(reset);
         p1.add(enterMarks);
         p2 = new JPanel(new GridLayout(0,2,2,2));
         p2.setBorder(BorderFactory.createTitledBorder("Marks Details"));
         p2.add(label1);
         p2.add(text1);
         p2.add(label2);
         p2.add(text2);
         p2.add(label3);
         p2.add(text3);
         p2.add(label4);
         p2.add(text4);
         p2.add(Submit);
         p2.setVisible(true);
         p3 = new JPanel(new GridLayout(0,1,2,2));
         p3.setBorder(BorderFactory.createTitledBorder("Instructions"));
         p3.add(l_instruction1);
         p3.add(l_instruction2);
         p3.add(l_instruction3);
         p3.add(l_instruction4);
         p3.add(l_instruction8);
         p3.add(l_instruction5);
         p3.add(l_instruction6);
         p3.add(l_instruction7);
         JFrame f = new JFrame("Student Marksheet System");
    f.getContentPane().setLayout(new GridLayout(2,2,3,3));
    f.getContentPane().add(p3);
         f.getContentPane().add(p);
    f.getContentPane().add(p1);
         f.getContentPane().add(p2);
         enterMarks.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   String message = "Are you sure all information is correct";
                   String get_text1;
                   String title = "Confirmation";
                   int getcourseindex;
                   int getbranchindex;
                   int getsemesterindex;
                   int getbatchindex;
                   getcourseindex = cb_course.getSelectedIndex();
                   getbranchindex = cb_branch.getSelectedIndex();
                   getsemesterindex = cb_semester.getSelectedIndex();
                   getbatchindex = cb_branch.getSelectedIndex();
                   if (c_fulltime.isSelected() == false && c_parttime.isSelected() == false)
                        JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   if(getcourseindex == 0)
                             JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   if(getbranchindex == 0)
                             JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   if(getsemesterindex == 0)
                             JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   if(getbatchindex == 0)
                             JOptionPane.showMessageDialog(null,"Atleast one mandatory field is missing","TextField",1);
                             return;
                   int n = JOptionPane.showConfirmDialog(null,message,title, JOptionPane.YES_NO_OPTION);
                   if(n==0)
                        get_text1 = t_name.getText();
                        t_name.setEditable(false);
                        t_fname.setEditable(false);
                        t_rollno.setEditable(false);
                        t_enrollno.setEditable(false);     
                        cb_course.setEnabled(false);     
                        cb_branch.setEnabled(false);     
                        cb_batch.setEnabled(false);     
                        cb_semester.setEnabled(false);
                        reset.setEnabled(false);
         reset.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   String message = "Are you sure to reset the fields";
                   String title = "Confirmation";
                   int n = JOptionPane.showConfirmDialog(null,message,title, JOptionPane.YES_NO_OPTION);
                   if(n==0)
                        Submit.setEnabled(true);
                        cb_course.setSelectedIndex(0);
                        cb_branch.setSelectedIndex(0);
                        cb_batch.setSelectedIndex(0);
                        cb_semester.setSelectedIndex(0);
                        t_rollno.setText("");
         Submit.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   String message = "Confirmation will generate the marksheet";
                   String title = "Confirmation";
                   int n = JOptionPane.showConfirmDialog(null,message,title, JOptionPane.YES_NO_OPTION);
                   if(n==0)
                        Submit.setEnabled(true);
         c_parttime.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   if (c_fulltime.isSelected() == true)
                        c_fulltime.setSelected(false);
         c_fulltime.addActionListener(new ActionListener()
              public void actionPerformed(ActionEvent e)
                   if (c_parttime.isSelected() == true)
                        c_parttime.setSelected(false);
    f.pack();
    f.setVisible(true);
         public void paint(Graphics g) {
         //Draw a Rectangle around the applet's display area.
    g.drawRect(0, 0, size().width - 1, size().height - 1);
         public void actionPerformed(ActionEvent event){
         package marksheet;
         import javax.swing.*;
         import javax.swing.text.*;
         import java.awt.*;
         public class maxLengthText extends PlainDocument
              int maxVal=0;
              public maxLengthText(int maxLength)
                   maxVal = maxLength;
              publ1ic void insertString(int offset, String str, AttributeSet a) throws BadLocationException
                   if (getLength() + str.length() > maxVal)
                        return;
                   else
                        try
                             if(!Double.isNaN(Double.parseDouble(str)))
                                  super.insertString(offset, str, a);
                        catch(Exception e)
                             JOptionPane.showMessageDialog(null,"Numbers Only","TextField",1);
                             offset=0;
         }

    When you post code, please use the [co[i]de][co[i]de] tags. There is a code button above the message textfield.

  • Help Needed on Null Pointer Exception

    Hi All,
    Am using the wls10 platform. Any help would be appriciated. Have been struggling on this for a bit now.
    Thanks,
    The the relevant control code is:
    @JdbcControl.SQL(statement = "SELECT p.PATCH_ID, p.REQUIRES,ps.PRODUCT_DISPLAY_NAME, v.VERSION_NAME,p.PATCH_NAME,p.DESCRIPTION, to_char(p.RELEASE_DATE, 'MM/DD/YYYY') RELEASE_DATE, p.SUPERCEDES, p.RELEASE_TYPE, p.KB_ARTICLE, p.SYSTEM_IMPACT , p.DOWNLOAD_LOCATION, p.requirelogin, p.SEVERITY, p.ACTIVE, p.MD5, P.DOWNLOAD_FILE_SIZE from patch p, version v, products ps where p.VERSION_ID = v.VERSION_ID and v.PRODUCT_ID = ps.PRODUCT_ID and upper(p.PATCH_NAME) {sql: whereClause} and v.active = 1 ORDER BY ps.PRODUCT_DISPLAY_NAME, v.VERSION_NAME")
         public Patch[] findPatchByReleaseName(String whereClause)throws SQLException;
    The controller code is:
         @Jpf.Action(forwards = {
                        @Jpf.Forward(name = "success", path = "Downloadpage.jsp", actionOutputs = { @Jpf.ActionOutput(name = "findPatchResult", type = com.vmware.s3portal.domain.Patch[].class) }),
                        @Jpf.Forward(name = "noResults", path = "index.jsp"),
                        @Jpf.Forward(name = "authError", path = "/jsps/authCheck.jsp"),
                        @Jpf.Forward(name = "error", path = "/jsps/error.jsp") })
              public Forward findPatchByReleaseName(DisplayDataFormBean form) {
                   Forward forward = null;
                   String patchname = form.getPatchname();
                   boolean releaseNameFlag = true;
                   if (logger.isDebugEnabled()) {
                        logger.debug("patchname in findPatchByReleaseName is = " + patchname);
                   try {
                        findPatchResult = null;// reset it
                        if(patchname != null){
                             patchname = patchname.trim().toUpperCase();
                        if (! StringUtils.isEmptyString(patchname) && ! IllegalCharValidator.isValid(patchname)) {
                             logger.debug("patchname is illegal.");
                             forward = new Forward("noResults");
                             forward.addActionOutput("noResults", Boolean.TRUE);
                             setPageOutputs(forward, form);
                             return forward;
                        String whereClause = "";
                        if (!StringUtils.isEmptyString(patchname)) {
                             logger.debug("search by patchname");
                             if (patchname.indexOf("*") != -1 || patchname.indexOf(" ") != -1 || patchname.indexOf("-") != -1) {
                                  patchname = patchname.replaceAll("\\*", "%");
                                  patchname = patchname.replaceAll(" ", "%");
                                  patchname = patchname.replaceAll("\\-", "%");
                                  whereClause += " like '%" + patchname + "%'";
                             } else {
                                  whereClause += " like '%" + patchname + "%'";
                        whereClause = getWhereClause(whereClause);
                        logger.debug("whereClause in findPatchByReleaseName: " + whereClause);
                        findPatchResult = rmcontrol.findPatchByReleaseName(whereClause);
                        if (findPatchResult == null || findPatchResult.length == 0) {
                             // forward to index.jsp
                             forward = new Forward("noResults");
                             forward.addActionOutput("noResults", Boolean.TRUE);
                             setPageOutputs(forward, form);
                             return forward;
                        sorter.sort(getRequest(),findPatchResult);
                        logger.debug("Total number of patchs returned in ReleaseName Search: "+ findPatchResult.length);
                        forward = new Forward("success");
                        forward.addActionOutput("products", products);
                        forward.addActionOutput("versions", versions);
                        forward.addOutputForm(form);
                        forward.addActionOutput("actionForm", form);
                        forward.addActionOutput("findPatchResult", findPatchResult);
                        forward.addActionOutput("sorter", sorter);
                        forward.addActionOutput("releaseNameFlag", releaseNameFlag);
                   } catch (S3PException exception) {
                        logger.error("Auth Exception in findPatchByReleaseName().", exception);
                        forward = new Forward("authError");
                   } catch (Exception exception) {
                        logger.error("Exception in findPatchByReleaseName().", exception);
                        forward = new Forward("error");
                   return forward;
    The exception I am getting is:
    14 May 2008 15:48:58,028 ERROR PatchupdateController: Exception in findPatchByRe
    leaseName().
    java.lang.NullPointerException
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedS
    tatement(JdbcControlImpl.java:257)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.invoke(JdbcCo
    ntrolImpl.java:224)
    at com.vmware.s3portal.dbaccess.RMControlBean.findPatchByReleaseName(RMC
    ontrolBean.java:191)
    at portlets.patchupdate.PatchupdateController.findPatchByReleaseName(Pat
    chupdateController.java:291)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[
    Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;
    I)Ljava.lang.Object;(Unknown Source)
    at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(F
    lowController.java:870)
    at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForwa
    rd(FlowController.java:809)
    at org.apache.beehive.netui.pageflow.FlowController.internalExecute(Flow
    Controller.java:478)
    at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(
    PageFlowController.java:306)
    at org.apache.beehive.netui.pageflow.FlowController.execute(FlowControll
    er.java:336)
    at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execu
    te(FlowControllerAction.java:52)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:431)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201
    (PageFlowRequestProcessor.java:97)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunn
    er.execute(PageFlowRequestProcessor.java:2044)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:64)
    at org.apache.beehive.netui.pageflow.interceptor.action.ActionIntercepto
    r.wrapAction(ActionInterceptor.java:168)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors$WrapActionInterceptorChain.invoke(ActionInterceptors.java:50)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:58)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors.wrapAction(ActionInterceptors.java:87)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processAct
    ionPerform(PageFlowRequestProcessor.java:2116)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:236)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInt
    ernal(PageFlowRequestProcessor.java:556)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(Pa
    geFlowRequestProcessor.java:853)
    at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(A
    utoRegisterActionServlet.java:631)
    at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageF
    lowActionServlet.java:158)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlow
    Utils.java:1170)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.exec
    uteAction(ScopedContentCommonSupport.java:686)

    Hi All,
    Am using the wls10 platform. Any help would be appriciated. Have been struggling on this for a bit now.
    Thanks,
    The the relevant control code is:
    @JdbcControl.SQL(statement = "SELECT p.PATCH_ID, p.REQUIRES,ps.PRODUCT_DISPLAY_NAME, v.VERSION_NAME,p.PATCH_NAME,p.DESCRIPTION, to_char(p.RELEASE_DATE, 'MM/DD/YYYY') RELEASE_DATE, p.SUPERCEDES, p.RELEASE_TYPE, p.KB_ARTICLE, p.SYSTEM_IMPACT , p.DOWNLOAD_LOCATION, p.requirelogin, p.SEVERITY, p.ACTIVE, p.MD5, P.DOWNLOAD_FILE_SIZE from patch p, version v, products ps where p.VERSION_ID = v.VERSION_ID and v.PRODUCT_ID = ps.PRODUCT_ID and upper(p.PATCH_NAME) {sql: whereClause} and v.active = 1 ORDER BY ps.PRODUCT_DISPLAY_NAME, v.VERSION_NAME")
         public Patch[] findPatchByReleaseName(String whereClause)throws SQLException;
    The controller code is:
         @Jpf.Action(forwards = {
                        @Jpf.Forward(name = "success", path = "Downloadpage.jsp", actionOutputs = { @Jpf.ActionOutput(name = "findPatchResult", type = com.vmware.s3portal.domain.Patch[].class) }),
                        @Jpf.Forward(name = "noResults", path = "index.jsp"),
                        @Jpf.Forward(name = "authError", path = "/jsps/authCheck.jsp"),
                        @Jpf.Forward(name = "error", path = "/jsps/error.jsp") })
              public Forward findPatchByReleaseName(DisplayDataFormBean form) {
                   Forward forward = null;
                   String patchname = form.getPatchname();
                   boolean releaseNameFlag = true;
                   if (logger.isDebugEnabled()) {
                        logger.debug("patchname in findPatchByReleaseName is = " + patchname);
                   try {
                        findPatchResult = null;// reset it
                        if(patchname != null){
                             patchname = patchname.trim().toUpperCase();
                        if (! StringUtils.isEmptyString(patchname) && ! IllegalCharValidator.isValid(patchname)) {
                             logger.debug("patchname is illegal.");
                             forward = new Forward("noResults");
                             forward.addActionOutput("noResults", Boolean.TRUE);
                             setPageOutputs(forward, form);
                             return forward;
                        String whereClause = "";
                        if (!StringUtils.isEmptyString(patchname)) {
                             logger.debug("search by patchname");
                             if (patchname.indexOf("*") != -1 || patchname.indexOf(" ") != -1 || patchname.indexOf("-") != -1) {
                                  patchname = patchname.replaceAll("\\*", "%");
                                  patchname = patchname.replaceAll(" ", "%");
                                  patchname = patchname.replaceAll("\\-", "%");
                                  whereClause += " like '%" + patchname + "%'";
                             } else {
                                  whereClause += " like '%" + patchname + "%'";
                        whereClause = getWhereClause(whereClause);
                        logger.debug("whereClause in findPatchByReleaseName: " + whereClause);
                        findPatchResult = rmcontrol.findPatchByReleaseName(whereClause);
                        if (findPatchResult == null || findPatchResult.length == 0) {
                             // forward to index.jsp
                             forward = new Forward("noResults");
                             forward.addActionOutput("noResults", Boolean.TRUE);
                             setPageOutputs(forward, form);
                             return forward;
                        sorter.sort(getRequest(),findPatchResult);
                        logger.debug("Total number of patchs returned in ReleaseName Search: "+ findPatchResult.length);
                        forward = new Forward("success");
                        forward.addActionOutput("products", products);
                        forward.addActionOutput("versions", versions);
                        forward.addOutputForm(form);
                        forward.addActionOutput("actionForm", form);
                        forward.addActionOutput("findPatchResult", findPatchResult);
                        forward.addActionOutput("sorter", sorter);
                        forward.addActionOutput("releaseNameFlag", releaseNameFlag);
                   } catch (S3PException exception) {
                        logger.error("Auth Exception in findPatchByReleaseName().", exception);
                        forward = new Forward("authError");
                   } catch (Exception exception) {
                        logger.error("Exception in findPatchByReleaseName().", exception);
                        forward = new Forward("error");
                   return forward;
    The exception I am getting is:
    14 May 2008 15:48:58,028 ERROR PatchupdateController: Exception in findPatchByRe
    leaseName().
    java.lang.NullPointerException
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.execPreparedS
    tatement(JdbcControlImpl.java:257)
    at org.apache.beehive.controls.system.jdbc.JdbcControlImpl.invoke(JdbcCo
    ntrolImpl.java:224)
    at com.vmware.s3portal.dbaccess.RMControlBean.findPatchByReleaseName(RMC
    ontrolBean.java:191)
    at portlets.patchupdate.PatchupdateController.findPatchByReleaseName(Pat
    chupdateController.java:291)
    at jrockit.reflect.VirtualNativeMethodInvoker.invoke(Ljava.lang.Object;[
    Ljava.lang.Object;)Ljava.lang.Object;(Unknown Source)
    at java.lang.reflect.Method.invoke(Ljava.lang.Object;[Ljava.lang.Object;
    I)Ljava.lang.Object;(Unknown Source)
    at org.apache.beehive.netui.pageflow.FlowController.invokeActionMethod(F
    lowController.java:870)
    at org.apache.beehive.netui.pageflow.FlowController.getActionMethodForwa
    rd(FlowController.java:809)
    at org.apache.beehive.netui.pageflow.FlowController.internalExecute(Flow
    Controller.java:478)
    at org.apache.beehive.netui.pageflow.PageFlowController.internalExecute(
    PageFlowController.java:306)
    at org.apache.beehive.netui.pageflow.FlowController.execute(FlowControll
    er.java:336)
    at org.apache.beehive.netui.pageflow.internal.FlowControllerAction.execu
    te(FlowControllerAction.java:52)
    at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
    tProcessor.java:431)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.access$201
    (PageFlowRequestProcessor.java:97)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor$ActionRunn
    er.execute(PageFlowRequestProcessor.java:2044)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:64)
    at org.apache.beehive.netui.pageflow.interceptor.action.ActionIntercepto
    r.wrapAction(ActionInterceptor.java:168)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors$WrapActionInterceptorChain.invoke(ActionInterceptors.java:50)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors$WrapActionInterceptorChain.continueChain(ActionInterceptors.java:58)
    at org.apache.beehive.netui.pageflow.interceptor.action.internal.ActionI
    nterceptors.wrapAction(ActionInterceptors.java:87)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processAct
    ionPerform(PageFlowRequestProcessor.java:2116)
    at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
    va:236)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.processInt
    ernal(PageFlowRequestProcessor.java:556)
    at org.apache.beehive.netui.pageflow.PageFlowRequestProcessor.process(Pa
    geFlowRequestProcessor.java:853)
    at org.apache.beehive.netui.pageflow.AutoRegisterActionServlet.process(A
    utoRegisterActionServlet.java:631)
    at org.apache.beehive.netui.pageflow.PageFlowActionServlet.process(PageF
    lowActionServlet.java:158)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
    at org.apache.beehive.netui.pageflow.PageFlowUtils.strutsLookup(PageFlow
    Utils.java:1170)
    at com.bea.portlet.adapter.scopedcontent.ScopedContentCommonSupport.exec
    uteAction(ScopedContentCommonSupport.java:686)

  • Help! Hit an wierd exception when edit a column in editable table

    I created a view object with 3 entities objects (3 tables) in model project and drag view object into jsf page to create as an edit table in view controller project.
    when I run this jsf page and update the value for a column of one row in the page, hit below exeception?
    I try to find the reason but failed. appreciate if anybody can help. thanks.
    The date string "2013-10-06 01:00:00.0" is for YardFixedSlotRecomm.START_DT and I didn't change this value. it seems that it is using "2013-10-06 01:00:00.0" to set YardFixedSlot.FIXED_SLOT_ID value and no idea about why ADF is doing this and I tested view object and it can work, but when it is used in web app, problem occurred.
    Root cause error code is JBO-25009. Error message parameters are {0=java.lang.Integer, 1=2013-10-06 01:00:00.0, 2=java.sql.Timestamp}
    SQL queries in View objects and row key should contains:  YardFixedSlot.FIXED_SLOT_ID,YardBlock.BLOCK_M AS BLOCK_M1, FxedSlotRecomm.FIXED_SLOT_ID AS FIXED_SLOT_ID1,YardFixedSlotRecomm.START_DT.
    SELECT YardFixedSlot.BLOCK_M,
           YardFixedSlot.BLOCK_N,
           YardFixedSlot.FIXED_SLOT_ID,
           YardFixedSlot.SECTION_N,
           YardFixedSlot.STATUS_C,
           YardFixedSlot.TERMINAL_C,
           YardBlock.BLOCK_M AS BLOCK_M1,
           YardBlock.BLOCK_N AS BLOCK_N1,
           YardBlock.DISPLAY_COLUMN_N,
           YardBlock.DISPLAY_ROW_N,
           YardBlock.DISPLAY_SLOT_OFFSET_N,
           YardBlock.LINEAR_REGION_N,
           YardBlock.LINEAR_SEQ_N,
           YardBlock.MAX_STACK_WEIGHT_Q,
           YardBlock.PATH_DATA_X,
           YardBlock.ROW_FROM_N,
      YardBlock.ROW_NUMBER_DIRECTION_C,
           YardBlock.ROW_TO_N,
      YardBlock.SECTION_N AS SECTION_N1,
           YardBlock.SLOT_FROM_N,
           YardBlock.SLOT_NUMBER_DIRECTION_C,
           YardBlock.SLOT_NUMBER_TYPE_C,
           YardBlock.SLOT_TO_N,
           YardBlock.STATUS_C AS STATUS_C1,
           YardBlock.TERMINAL_C AS TERMINAL_C1,
           YardFixedSlotRecomm.CREATE_DT,
           YardFixedSlotRecomm.END_DT,
           YardFixedSlotRecomm.FIXED_SLOT_ID AS FIXED_SLOT_ID1,
           YardFixedSlotRecomm.RECOMMENDATION_C,
           YardFixedSlotRecomm.START_DT
    FROM  CITOSADMIN.YARD_FIXED_SLOT YardFixedSlot, CITOSADMIN.YARD_BLOCK YardBlock, CITOSADMIN.YARD_FIXED_SLOT_RECOMM YardFixedSlotRecomm
    (YardFixedSlot.BLOCK_M = YardBlock.BLOCK_M(+)) AND (YardFixedSlot.FIXED_SLOT_ID = YardFixedSlotRecomm.FIXED_SLOT_ID(+))
    Exception detail:
    [2013-12-04T10:30:21.873+08:00] [DefaultServer] [ERROR] [] [oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: <anonymous>] [ecid: 676653a7-bc31-46c9-ba9c-6a394c0b9ff1-000002d0,0] [APP: YPCApp] [DSID: 0000KAvRxpz5qYWFLzmJOA1IbbbH00000A] ADF_FACES-60096:Server Exception during PPR, #3[[
    oracle.jbo.domain.DataCreationException: JBO-29114 ADFContext is not setup to process messages for this exception. Use the exception stack trace and error code to investigate the root cause of this exception. Root cause error code is JBO-25009. Error message parameters are {0=java.lang.Integer, 1=2013-10-06 01:00:00.0, 2=java.sql.Timestamp}
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:933)
    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:112)
    at oracle.jbo.server.AttributeDefImpl.convertToJava(AttributeDefImpl.java:2515)
    at oracle.jbo.server.ViewRowSetImpl.prepKeyForFind(ViewRowSetImpl.java:5666)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5683)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5585)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5579)
    at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:12554)
    at oracle.jbo.uicli.binding.JUCtrlHierBinding.bringNodeToRangeKeyPath(JUCtrlHierBinding.java:846)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.bringNodeToRangeKeyPath(FacesCtrlHierBinding.java:122)
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:131)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:951)
    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:527)
    at org.apache.myfaces.trinidad.component.UIXTable.setRowKey(UIXTable.java:760)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.isRowAvailable(TableRendererUtils.java:1825)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.processAutoPPRUpdate(TableRendererUtils.java:412)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderModelChanges(TableRenderer.java:1075)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:627)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:650)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeCellComponent(PanelGridLayoutRenderer.java:1205)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:20)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:245)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:271)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:24)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:245)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:74)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:22)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:291)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer._encodeAllOrVisitChildrenForEncodingImpl(PanelGridLayoutRenderer.java:1036)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeAll(PanelGridLayoutRenderer.java:314)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:275)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1473)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at oracle.adfinternal.view.faces.context.PartialViewContextImpl._processRender(PartialViewContextImpl.java:304)
    at oracle.adfinternal.view.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:159)
    at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:981)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
    at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:102)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:391)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
    Caused by: java.lang.NumberFormatException: For input string: "2013-10-06 01:00:00.0"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.<init>(Integer.java:677)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:101)
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:883)
    ... 118 more
    ## Detail 0 ##
    java.lang.NumberFormatException: For input string: "2013-10-06 01:00:00.0"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:492)
    at java.lang.Integer.<init>(Integer.java:677)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
    at oracle.jbo.domain.TypeConvMapEntry.convert(TypeConvMapEntry.java:101)
    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:883)
    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:112)
    at oracle.jbo.server.AttributeDefImpl.convertToJava(AttributeDefImpl.java:2515)
    at oracle.jbo.server.ViewRowSetImpl.prepKeyForFind(ViewRowSetImpl.java:5666)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5683)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5585)
    at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:5579)
    at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:12554)
    at oracle.jbo.uicli.binding.JUCtrlHierBinding.bringNodeToRangeKeyPath(JUCtrlHierBinding.java:846)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding.bringNodeToRangeKeyPath(FacesCtrlHierBinding.java:122)
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:131)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:951)
    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:527)
    at org.apache.myfaces.trinidad.component.UIXTable.setRowKey(UIXTable.java:760)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.isRowAvailable(TableRendererUtils.java:1825)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRendererUtils.processAutoPPRUpdate(TableRendererUtils.java:412)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.renderModelChanges(TableRenderer.java:1075)
    at oracle.adfinternal.view.faces.renderkit.rich.TableRenderer.encodeAll(TableRenderer.java:627)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at org.apache.myfaces.trinidad.component.UIXCollection.encodeEnd(UIXCollection.java:650)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeCellComponent(PanelGridLayoutRenderer.java:1205)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:38)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellChildrenEncoderCallback.processComponent(CellChildrenEncoderCallback.java:20)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:245)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:271)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.CellEncoderCallback.processComponent(CellEncoderCallback.java:24)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:245)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:74)
    at oracle.adfinternal.view.faces.renderkit.rich.grid.RowEncoderCallback.processComponent(RowEncoderCallback.java:22)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:195)
    at org.apache.myfaces.trinidad.component.UIXComponent.processFlattenedChildren(UIXComponent.java:326)
    at org.apache.myfaces.trinidad.component.UIXComponent.encodeFlattenedChildren(UIXComponent.java:291)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer._encodeAllOrVisitChildrenForEncodingImpl(PanelGridLayoutRenderer.java:1036)
    at oracle.adfinternal.view.faces.renderkit.rich.PanelGridLayoutRenderer.encodeAll(PanelGridLayoutRenderer.java:314)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
    at oracle.adfinternal.view.faces.renderkit.rich.FormRenderer.encodeAll(FormRenderer.java:275)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeChild(CoreRenderer.java:624)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeAllChildren(CoreRenderer.java:641)
    at oracle.adf.view.rich.render.RichRenderer.encodeAllChildrenInContext(RichRenderer.java:3195)
    at oracle.adfinternal.view.faces.renderkit.rich.DocumentRenderer.encodeAll(DocumentRenderer.java:1473)
    at oracle.adf.view.rich.render.RichRenderer.encodeAll(RichRenderer.java:1578)
    at org.apache.myfaces.trinidad.render.CoreRenderer.encodeEnd(CoreRenderer.java:511)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:1085)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1786)
    at oracle.adfinternal.view.faces.context.PartialViewContextImpl._processRender(PartialViewContextImpl.java:304)
    at oracle.adfinternal.view.faces.context.PartialViewContextImpl.processPartial(PartialViewContextImpl.java:159)
    at javax.faces.component.UIViewRoot.encodeChildren(UIViewRoot.java:981)
    at javax.faces.component.UIComponent.encodeAll(UIComponent.java:1779)
    at oracle.adfinternal.view.faces.component.AdfViewRoot.encodeAll(AdfViewRoot.java:102)
    at com.sun.faces.application.view.FaceletViewHandlingStrategy.renderView(FaceletViewHandlingStrategy.java:391)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
    at org.apache.myfaces.trinidad.view.ViewDeclarationLanguageWrapper.renderView(ViewDeclarationLanguageWrapper.java:101)
    at org.apache.myfaces.trinidadinternal.application.ViewDeclarationLanguageFactoryImpl$ChangeApplyingVDLWrapper.renderView(ViewDeclarationLanguageFactoryImpl.java:338)
    at com.sun.faces.application.view.MultiViewHandler.renderView(MultiViewHandler.java:125)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:288)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:170)
    at oracle.adfinternal.view.faces.lifecycle.ResponseRenderManager.runRenderView(ResponseRenderManager.java:52)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:1104)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:389)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:255)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:594)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:192)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:478)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:303)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
    at java.security.AccessController.doPrivileged(Native Method)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
    at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
    at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
    at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:225)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3367)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
    at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
    at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)

    I am using JDeveloper 12c.
    I want to know why ADF selected input string: "2013-10-06 01:00:00.0"  for parsing? maybe it took wrong value. I just made one column: YardFixedSlot.STATUS_C ediable. input string: "2013-10-06 01:00:00.0" is a value for row key column: YardFixedSlotRecomm.START_DT.
    The row key compose of 4 columns with  respective types: [Interger,String ,Interger, Timestamp]
    YardFixedSlot.FIXED_SLOT_ID
    YardBlock.BLOCK_M AS BLOCK_M1
    FxedSlotRecomm.FIXED_SLOT_ID AS FIXED_SLOT_ID1
    YardFixedSlotRecomm.START_DT
    But error message show 3 parameters:
    Root cause error code is JBO-25009. Error message parameters are {0=java.lang.Integer, 1=2013-10-06 01:00:00.0, 2=java.sql.Timestamp}

  • Help with: oracle.toplink.essentials.exceptions.ValidationException

    hi guys,
    I really need ur help with this.
    I have a remote session bean that retrieves a list of books from the database using entity class and I call the session bean from a web service. The problem is that when i display the books in a jsp directly from the session bean everything works ok but the problem comes when I call the session bean via the web service than it throws this:
    Exception Description: An attempt was made to traverse a relationship using indirection that had a null Session. This often occurs when an entity with an uninstantiated LAZY relationship is serialized and that lazy relationship is traversed after serialization. To avoid this issue, instantiate the LAZY relationship prior to serialization.
    at oracle.toplink.essentials.exceptions.ValidationException.instantiatingValueholderWithNullSession(ValidationException.java:887)
    at oracle.toplink.essentials.internal.indirection.UnitOfWorkValueHolder.instantiate(UnitOfWorkValueHolder.java:233)
    at oracle.toplink.essentials.internal.indirection.DatabaseValueHolder.getValue(DatabaseValueHolder.java:105)
    at oracle.toplink.essentials.indirection.IndirectList.buildDelegate(IndirectList.java:208)
    at oracle.toplink.essentials.indirection.IndirectList.getDelegate(IndirectList.java:330)
    at oracle.toplink.essentials.indirection.IndirectList$1.<init>(IndirectList.java:425)
    at oracle.toplink.essentials.indirection.IndirectList.iterator(IndirectList.java:424)
    at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:278)
    at com.sun.xml.bind.v2.runtime.reflect.Lister$CollectionLister.iterator(Lister.java:265)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:129)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementNodeProperty.serializeItem(ArrayElementNodeProperty.java:65)
    at com.sun.xml.bind.v2.runtime.property.ArrayElementProperty.serializeListBody(ArrayElementProperty.java:168)
    at com.sun.xml.bind.v2.runtime.property.ArrayERProperty.serializeBody(ArrayERProperty.java:152)
    at com.sun.xml.bind.v2.runtime.ClassBeanInfoImpl.serializeBody(ClassBeanInfoImpl.java:322)
    at com.sun.xml.bind.v2.runtime.XMLSerializer.childAsXsiType(XMLSerializer.java:681)
    at com.sun.xml.bind.v2.runtime.MarshallerImpl.write(MarshallerImpl.java:277)
    at com.sun.xml.bind.v2.runtime.BridgeImpl.marshal(BridgeImpl.java:100)
    at com.sun.xml.bind.api.Bridge.marshal(Bridge.java:141)
    at com.sun.xml.ws.message.jaxb.JAXBMessage.writePayloadTo(JAXBMessage.java:315)
    at com.sun.xml.ws.message.AbstractMessageImpl.writeTo(AbstractMessageImpl.java:142)
    at com.sun.xml.ws.encoding.StreamSOAPCodec.encode(StreamSOAPCodec.java:108)
    at com.sun.xml.ws.encoding.SOAPBindingCodec.encode(SOAPBindingCodec.java:258)
    at com.sun.xml.ws.transport.http.HttpAdapter.encodePacket(HttpAdapter.java:320)
    at com.sun.xml.ws.transport.http.HttpAdapter.access$100(HttpAdapter.java:93)
    at com.sun.xml.ws.transport.http.HttpAdapter$HttpToolkit.handle(HttpAdapter.java:454)
    at com.sun.xml.ws.transport.http.HttpAdapter.handle(HttpAdapter.java:244)
    at com.sun.xml.ws.transport.http.servlet.ServletAdapter.handle(ServletAdapter.java:135)
    at com.sun.enterprise.webservice.JAXWSServlet.doPost(JAXWSServlet.java:176)
    ... 29 more
    This happens when I test the web service using netbeans 6.5.
    here's my code:
    session bean:
    ArrayList bookList = null;
    public ArrayList retrieveBooks()
    try
    List list = em.createNamedQuery("Book.findAll").getResultList();
    bookList = new ArrayList(list);
    catch (Exception e)
    e.getCause();
    return bookList;
    web service:
    @WebMethod(operationName = "retrieveBooks")
    public Book[] retrieveBooks()
    ArrayList list = ejbUB.retrieveBooks();
    int size = list.size();
    Book[] bookList = new Book[size];
    Iterator it = list.iterator();
    int i = 0;
    while (it.hasNext())
    Book book = (Book) it.next();
    bookList[i] = book;
    i++;
    return bookList;
    Please help guys, it's very urgent

    Yes i have a relationship but i didnt want it to be directly. Maybe this is a design problem but in my case I dont expect any criminals to be involved in lawsuit. My tables are like that:
    CREATE TABLE IF NOT EXISTS Criminal(
         criminal_id INTEGER NOT NULL AUTO_INCREMENT,
         gender varchar(1),
         name varchar(25) NOT NULL,
         last_address varchar(100),
         birth_date date,
         hair_color varchar(10),
         eye_color varchar(10),
         weight INTEGER,
         height INTEGER,
         PRIMARY KEY (criminal_id)
    ENGINE=INNODB;
    CREATE TABLE IF NOT EXISTS Lawsuit(
         lawsuit_id INTEGER NOT NULL AUTO_INCREMENT,
         courtName varchar(25),
         PRIMARY KEY (lawsuit_id),
         FOREIGN KEY (courtName) REFERENCES Court_of_Law(courtName) ON DELETE NO ACTION
    ENGINE=INNODB;
    CREATE TABLE IF NOT EXISTS Rstands_trial(
         criminal_id INTEGER,
         lawsuit_id INTEGER,
         PRIMARY KEY (criminal_id, lawsuit_id),
         FOREIGN KEY (criminal_id) REFERENCES Criminal(criminal_id) ON DELETE NO ACTION,
         FOREIGN KEY (lawsuit_id) REFERENCES Lawsuit(lawsuit_id) ON DELETE CASCADE
    ENGINE=INNODB;So I couldnt get it.

  • Array help for demand meter

    I am making a power demand meter that will warn when too much kW is being used. It counts pulses per minute and I am have problems with my arrays. Every minute I would like to record the current pulse count into an array to get 15 entries (minutes). Then remove the first entry (first minute)and places the new one at the bottom of the list. Then it takes the first and last counts, subtracts therefore getting pulses per 15mintes on a rolling scale. I have included my image and just dont know the problem because it doesnt do anything.
    Solved!
    Go to Solution.

    Having the code is more efficient that a screenshot, but a few things to hopefully kick-start you in the right direction.
    1.  A 60 sec delay is almost always a very bad idea, if you click the stop button, it will take up to a minute to react.
    2.  I assume the hidden loop on the left supplies the data.  As written, a single value is passed to the while loop and never updated.  Irregardless of other errors, this will be a problem.
    3.  The flat sequence is completely unneccesary.  Except for timing operations, this is almost always true.  LV dataflow will almost always take care of this for you.
    4.  As currently wired (unless there is a hidden bend in the wire), the Array Subset function is chopping off the first 15 elements of the array, you would rather have the last fifteen elements.  A simple method is to reverse the array, take the first 15 elements and reverse again.  Seems complicated but the reversals cost you very little and it even works if the array is smaller than 15 elements.
    5.  The shift register is good for this application, but you should either embed this while loop into your data taking loop with a false constant wired to the stop terminal so it loops once, or just add a shift register to the data taking loop to hold the data.  And with an uninitialized SR you are in for some unpredictable behavior.
    This all assumes you want to fix the existing code.  My suggestion is to look into a state machine, in this way you don't slow down user interactions (like the stop button) waiting for the slow acquisition.

  • Help!:  local class incompatible exception

    Hi!, im new in the ejb tech, I'm using jboss 3.2.3, windows 2000, j2ee 1.4 and jdk 1.4.1.
    I already deploy the ejb in the app server, but at the Context.lookup statement from the client i get a local class incompatible exception!!, could anyone help me with this??? the client and the ejb are running in different machines, but the classes are the same ( I map the network drive and put it in my classpath to ensure im using the same classes with the same serial uid).
    Thanks a lot!!!
    The complete Stack trace is
    javax.naming.CommunicationException. Root exception is java.io.InvalidClassException: org.jboss.proxy.ejb.GenericEJBInterceptor; local class incompatible: stream classdesc serialVersionUID = 3844706474734439975, local class serialVersionUID = 4582256576523491346
    at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:459)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
    at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1521)
    at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1435)
    at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1626)
    at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1274)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:324)
    at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:104)

    Sorry, i already found the problem!!! . I was running the client within the forte 4 ee ide, and it seems that forte assigns the objects their own serial uid. When I execute the client from a terminal, it executes ok =)

  • Help : javax.ejb.EJBException: nested exception is: SQL Exception: Database

    Hello,
    I found a write up of error connecting to DB2 from SUSE linux
    i am using websphere admin console , jdbc db2 universal driver to
    connect to a remote db (DB2).
    the test connection works...but the application gives
    the above error
    jdbc test connection trace
    [ibm][db2][jcc] BEGIN TRACE_DRIVER_CONFIGURATION
    [ibm][db2][jcc] Driver: IBM DB2 JDBC Universal Driver Architecture 1.1.67
    [ibm][db2][jcc] Compatible JRE versions: { 1.3, 1.4 }
    [ibm][db2][jcc] Range checking enabled: true
    [ibm][db2][jcc] Bug check level: 0xff
    [ibm][db2][jcc] Trace level: 0xffffffff
    [ibm][db2][jcc] Default fetch size: 64
    [ibm][db2][jcc] Default isolation: 2
    [ibm][db2][jcc] Collect performance statistics: false
    [ibm][db2][jcc] No security manager detected.
    [ibm][db2][jcc] Detected local client host: SUSE.SYSDEV/127.0.0.2
    [ibm][db2][jcc] Access to package sun.io is permitted by security manager.
    [ibm][db2][jcc] JDBC 1 system property jdbc.drivers = null
    [ibm][db2][jcc] Java Runtime Environment version 1.4.1
    [ibm][db2][jcc] Java Runtime Environment vendor = IBM Corporation
    [ibm][db2][jcc] Java vendor URL = http://www.ibm.com/
    [ibm][db2][jcc] Java installation directory =
    /opt/WebSphere/AppServer/java/bin/../jre
    [ibm][db2][jcc] Java Virtual Machine specification version = 1.0
    [ibm][db2][jcc] Java Virtual Machine specification vendor = Sun
    Microsystems Inc.
    [ibm][db2][jcc] Java Virtual Machine specification name = Java Virtual
    Machine Specification
    [ibm][db2][jcc] Java Virtual Machine implementation version = 1.4.1
    [ibm][db2][jcc] Java Virtual Machine implementation vendor = IBM Corporation
    [ibm][db2][jcc] Java Virtual Machine implementation name = Classic VM
    [ibm][db2][jcc] Java Runtime Environment specification version = 1.4
    [ibm][db2][jcc] Java Runtime Environment specification vendor = Sun
    Microsystems Inc.
    [ibm][db2][jcc] Java Runtime Environment specification name = Java
    Platform API Specification
    [ibm][db2][jcc] Java class format version number = 48.0
    [ibm][db2][jcc] Java class path =
    /opt/WebSphere/AppServer/properties:/opt/WebSphere/AppServer/properties:/opt/WebSphere/AppServer/lib/bootstrap.jar:/opt/WebSphere/AppServer/lib/j2ee.jar:/opt/WebSphere/AppServer/lib/lmproxy.jar:/opt/WebSphere/AppServer/lib/urlprotocols.jar:/opt/WebSphere/AppServer/
    [ibm][db2][jcc] Java native library path =
    /opt/WebSphere/AppServer/java/bin/../jre/bin:/opt/WebSphere/AppServer/java/jre/bin/classic:/opt/WebSphere/AppServer/java/jre/bin:/opt/WebSphere/AppServer/bin:/opt/mqm/java/lib:/opt/wemps/lib:/usr/lib
    [ibm][db2][jcc] Path of extension directory or directories =
    /opt/WebSphere/AppServer/java/bin/../jre/lib/ext
    [ibm][db2][jcc] Operating system name = Linux
    [ibm][db2][jcc] Operating system architecture = x86
    [ibm][db2][jcc] Operating system version = 2.4.19-64GB-SMP
    [ibm][db2][jcc] File separator ("/" on UNIX) = /
    [ibm][db2][jcc] Path separator (":" on UNIX) = :
    [ibm][db2][jcc] User's account name = root
    [ibm][db2][jcc] User's home directory = /root
    [ibm][db2][jcc] User's current working directory = /opt/WebSphere/AppServer
    [ibm][db2][jcc] END TRACE_DRIVER_CONFIGURATION
    **************************************imp ***********************
    [ibm][db2][jcc] BEGIN TRACE_CONNECTS
    [ibm][db2][jcc] Attempting connection to nnn.nnn.nnn.nnn:50000/was40
    [ibm][db2][jcc] Using properties: { dataSourceName=null,
    password=<escaped>, portNumber=50000, fullyMaterializeLobData=true,
    securityMechanism=3, cliSchema=dbo, resultSetHoldability=2,
    serverName=167.16.183.11, currentPackageSet=null, loginTimeout=0,
    planName=null, traceFile=/opt/WebSphere/AppServer/logs/server1/trace,
    kerberosServerPrincipal=null,
    retrieveMessagesFromServerOnGetMessage=true, currentSchema=dbo,
    driverType=4, description=null, readOnly=false, deferPrepares=true,
    databaseName=was40, traceLevel=-1, user=db2inst1 }
    [ibm][db2][jcc] END TRACE_CONNECTS
    *************************************imp *******************
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: EXCSAT (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0072D0410001006C 10410027115E8482
    .r.A...l.A.'.^.. ..}....%.....;db
    [ibm][db2][jcc][t4] 0010 F2918383E28599A5 9385A34BC5958789
    ...........K.... 2jccServlet.Engi
    [ibm][db2][jcc][t4] 0020 95854BE3998195A2 979699A3A2407A40
    ..K..........@z@ ne.Transports :
    [ibm][db2][jcc][t4] 0030 F2000F116DE2E4E2 C54BE2E8E2C4C5E5
    ....m....K...... 2..._SUSE.SYSDEV
    [ibm][db2][jcc][t4] 0040 000E115AC4C2F2D1 C3C340F14BF00018
    [email protected]... ...!DB2JCC 1.0..
    [ibm][db2][jcc][t4] 0050 1404140300032407 0007240F00071440
    ......$...$....@ ...............
    [ibm][db2][jcc][t4] 0060 000614740005000C 1147D8C4C2F261D1
    ...t.....G....a. ..........QDB2/J
    [ibm][db2][jcc][t4] 0070 E5D40026D0010002 0020106D000611A2
    ...&..... .m.... VM..}......_...s
    [ibm][db2][jcc][t4] 0080 000300162110A681 A2F4F04040404040
    ....!......@@@@@ ......was40
    [ibm][db2][jcc][t4] 0090 4040404040404040
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: EXCSATRD (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0066D04300010060 1443001C115E8482
    .f.C...`.C...^.. ..}....-.....;db
    [ibm][db2][jcc][t4] 0010 F28995A2A3F18482 F281878595A3F0F0
    ................ 2inst1db2agent00
    [ibm][db2][jcc][t4] 0020 F0F1F9C6F3F60018 1404140300032407
    ..............$. 019F36..........
    [ibm][db2][jcc][t4] 0030 0005240F00071440 000614740005000D
    [email protected].... ....... ........
    [ibm][db2][jcc][t4] 0040 1147D8C4C2F261F6 F0F0F0000C116D84
    .G....a.......m. ..QDB2/6000..._d
    [ibm][db2][jcc][t4] 0050 82F28995A2A3F100 0F115AC4C2F240E4
    ..........Z...@. b2inst1...!DB2 U
    [ibm][db2][jcc][t4] 0060 C4C240F74BF20010 D0030002000A14AC
    [email protected]........... DB 7.2..}.......
    [ibm][db2][jcc][t4] 0070 000611A20003 ......
    ...s..
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: SECCHK (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 003ED04100010038 106E000611A20003
    .>.A...8.n...... ..}......>...s..
    [ibm][db2][jcc][t4] 0010 00162110A681A2F4 F040404040404040
    ..!......@@@@@@@ ....was40
    [ibm][db2][jcc][t4] 0020 404040404040000C 11A08482F28995A2
    @@@@@@.......... ....db2ins
    [ibm][db2][jcc][t4] 0030 A3F1000C11A18482 F28995A2A3F100A8
    ................ t1...~db2inst1.y
    [ibm][db2][jcc][t4] 0040 D001000200A22001 00162110A681A2F4 ......
    ...!..... }....s......was4
    [ibm][db2][jcc][t4] 0050 F040404040404040 4040404040400006
    .@@@@@@@@@@@@@.. 0 ..
    [ibm][db2][jcc][t4] 0060 210F2407000C112E D1C3C3F0F1F0F0F0
    !.$............. ........JCC01000
    [ibm][db2][jcc][t4] 0070 003C210437D1C3C3 F0F1F0F0F0D1E5D4
    .<!.7........... .....JCC01000JVM
    [ibm][db2][jcc][t4] 0080 4040404040404040 4040404040404084
    @@@@@@@@@@@@@@@. d
    [ibm][db2][jcc][t4] 0090 82F2918383E28599 A59385A34BC59587
    ............K... b2jccServlet.Eng
    [ibm][db2][jcc][t4] 00A0 8995858482F28995 A2A3F100000D002F
    .............../ inedb2inst1.....
    [ibm][db2][jcc][t4] 00B0 D8E3C4E2D8D3C1E2 C300172135C1C3F1
    ...........!5... QTDSQLASC....AC1
    [ibm][db2][jcc][t4] 00C0 C6F1F2F7C54BD7C3 F1F200FD9591649F
    .....K........d. F127E.PC12..nj..
    [ibm][db2][jcc][t4] 00D0 001600350006119C 04B80006119D04B0
    ...5............ ................
    [ibm][db2][jcc][t4] 00E0 0006119E04B8 ......
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: SECCHKRM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0015D0420001000F 1219000611490000
    ...B.........I.. ..}.............
    [ibm][db2][jcc][t4] 0010 000511A4000033D0 020002002D220100
    ......3.....-".. ...u...}........
    [ibm][db2][jcc][t4] 0020 0611490000000C11 2EE2D8D3F0F7F0F2
    ..I............. .........SQL0702
    [ibm][db2][jcc][t4] 0030 F3000D002FD8E3C4 E2D8D3C1E2C3000A
    ..../........... 3....QTDSQLASC..
    [ibm][db2][jcc][t4] 0040 00350006119C0333
    .5.....3 ........
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] setDB2CurrentSchema () called
    [ibm][db2][jcc][Connection@887519a] BEGIN TRACE_CONNECTS
    [ibm][db2][jcc][Connection@887519a] Successfully connected to server
    jdbc:db2://167.16.183.11:50000/was40
    [ibm][db2][jcc][Connection@887519a] User: db2inst1
    [ibm][db2][jcc][Connection@887519a] Database product name: DB2/6000
    [ibm][db2][jcc][Connection@887519a] Database product version: SQL07023
    [ibm][db2][jcc][Connection@887519a] Driver name: IBM DB2 JDBC
    Universal Driver Architecture
    [ibm][db2][jcc][Connection@887519a] Driver version: 1.1.67
    [ibm][db2][jcc][Connection@887519a] END TRACE_CONNECTS
    [ibm][db2][jcc][t4] DRDA manager levels: { SQLAM=5, AGENT=3,
    CMNTCPIP=5, RDB=7, SECMGR=6 }
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.getConnection () returned a
    logical connection
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] getAutoCommit () returned true
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] isClosed () returned false
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.recycleConnection() ()
    called
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.recycleConnection ()
    returned void
    [ibm][db2][jcc][Thread:Servlet.Engine.Transports :
    2][Connection@887519a] DB2PooledConnection.close() (close the
    phycical connection) called
    [ibm][db2][jcc][t4] Request.flush() called at 2004-7-6 10:47:39
    Thread: Servlet.Engine.Transports : 2 Tracepoint: 1
    [ibm][db2][jcc][t4] SEND BUFFER: RDBCMM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 000AD00100010004 200E
    [ibm][db2][jcc][t4]
    [ibm][db2][jcc][t4] Reply.fill() called at 2004-7-6 10:47:39 Thread:
    Servlet.Engine.Transports : 2 Tracepoint: 2
    [ibm][db2][jcc][t4] RECEIVE BUFFER: ENDUOWRM (ASCII)
    (EBCDIC)
    [ibm][db2][jcc][t4] 0 1 2 3 4 5 6 7 8 9 A B C D E F
    0123456789ABCDEF 0123456789ABCDEF
    [ibm][db2][jcc][t4] 0000 0015D0520001000F 220C000611490004
    ...R...."....I.. ..}.............
    [ibm][db2][jcc][t4] 0010 0005211501000BD0 03000100052408FF
    ..!..........$.. .......}........
    [ibm][db2][jcc][t4]
    application error
    Exception Message:: RemoteException occurred in server thread; nested
    exception is: java.rmi.RemoteException: ; nested exception is:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.TransactionRolledbackException: CORBA
    TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    javax.transaction.TransactionRolledbackException: ; nested exception
    is: javax.ejb.EJBException: nested exception is: SQL Exception:
    Database 'WAS40' not found. vmcid: 0x0 minor code: 0 completed: No
    Localized Message :: RemoteException occurred in server thread; nested
    exception is: java.rmi.RemoteException: ; nested exception is:
    javax.ejb.EJBException: nested exception is:
    javax.transaction.TransactionRolledbackException: CORBA
    TRANSACTION_ROLLEDBACK 0x0 No; nested exception is:
    org.omg.CORBA.TRANSACTION_ROLLEDBACK:
    javax.transaction.TransactionRolledbackException: ; nested exception
    is: javax.ejb.EJBException: nested exception is: SQL Exception:
    Database 'WAS40' not found. vmcid: 0x0 minor code: 0 completed: No
    Do you have any suggestions
    Regards,
    Sunil

    Hi Peter,
    You are right. Child is being inserted even before parent got inserted (actually "committed") into the DB.we would need to look at your code where are you doing all these creates (may be ejbCreate). Most probably ur error should get fixed by changing the transactional attributes in the DD files. Try using <delay-database-inserts-until> element.
    More details available at:
    http://e-docs.bea.com/wls/docs70/faq/ejb.html#257426
    If it doesn't help, open up a case with BEA Support.
    Hope it helps!
    Thanks
    -Rais

  • ITT we help a beginner with ClassNotFound exception

    Hi, guys. I think I have a simple problem and I've done my best to make sure it's not a typo or something of that nature. I'll start with a quick introduction to my problem. A year ago I made a computer game using Eclipse, but despite all my progress I never attempted to deliver it. A year later I've decided to learn how to use the jar tool, and finally deploy my game so that my friends can see the fruits of my work.
    I've started by trying to archive a simple (trivial) program using the jar tool.
    My manifest file is identical to the default one created by the program, except it has a Main-Class attribute.
    Manifest-Version: 1.0
    Created-By: 1.6.0_14 (Sun Microsystems Inc.)
    Main-Class: TestFile.classthen I jar the file,
    jar cvmf manifest.mf TestFile.jar TestFile.class
    and it adds the two files, being the manifest file and the file TestFile.class
    added manifest
    adding TestFile.class (in = 1881) (out = 1061) (deflated 43%)
    then I try to run the jar file,
    java -jar TestFile.jar
    and it returns the error
    Exception in thread "main" java.lang.NoClassDefFoundError: TestFile/class
    When I extract the contents of the jar file, it gives me back my TestFile.class as well as a manifest file in a folder titled META-INF
    Java apparently is finding my manifest file, because it's looking for the right class, but why can't it find it? It's the only other file in the jar!
    I have searched around on the net before I came here, and somewhere else it was recommended that I add a Class-Path attribute to my manifest file, with a single dot or two dots to represent the current directory or parent directory, respectively. This seemed like a likely problem - maybe my manifest file was looking in the META-INF folder? Unfortunately that did not resolve the problem either.
    Any insights, cruel corrections, or sharp criticisms of my apparent noobiness are welcome.
    Thanks in advance,
    Dan

    macphearsome wrote:
    Hi, guys. I think I have a simple problem and I've done my best to make sure it's not a typo or something of that nature. I'll start with a quick introduction to my problem. A year ago I made a computer game using Eclipse, but despite all my progress I never attempted to deliver it. A year later I've decided to learn how to use the jar tool, and finally deploy my game so that my friends can see the fruits of my work.
    I've started by trying to archive a simple (trivial) program using the jar tool.
    My manifest file is identical to the default one created by the program, except it has a Main-Class attribute.
    Manifest-Version: 1.0
    Created-By: 1.6.0_14 (Sun Microsystems Inc.)
    Main-Class: TestFile.class
    The Main-Class attribute needs to be the fully qualified CLASS NAME. You provided a file name. Assuming your TestFile class is not in a named package, then Main-Class should be just TestFile but if TestFile is in, for example, mypackage, then Main-Class must be mypackage.TestFile
    Do not add .class to the end of a class name.

  • Need help on creating my own exception class

    The program should check if the user entered a string larger than eight characters. If so, throw a user-defined exception. I'm getting the following errors:
    Any help is great.
    C:\Program Files\Xinox Software\JCreatorV3\MyProjects\StringTooLong\src\StringTooLong.java:25: <identifier> expected
    System.out.println("Enter a message less or equal of eight characters:\n:");
    ^
    C:\Program Files\Xinox Software\JCreatorV3\MyProjects\StringTooLong\src\StringTooLong.java:27: illegal start of type
    try
    ^
    C:\Program Files\Xinox Software\JCreatorV3\MyProjects\StringTooLong\src\StringTooLong.java:41: <identifier> expected
    ^
    3 errors
    import java.io.*;
    * The main logic class of the program.
    public class StringTooLong implements IOException
         BufferedReader br = new BufferedReader(new InputSTreamReader(System.in));
         String buffer = "";                    // Stores user input.
         // Tells the user what to do.
         System.out.println("Enter a message less or equal of eight characters:\n:");
         try
              buffer = br.readLine();
              if (buffer.length > 8)
                   throw new StringTooLongException;
              System.out.println("Your String: " + buffer);     
         catch (StringTooLongException e)
              System.out.println("\nThe string was too long!");
    class StringTooLongException extends Exception
         public StringTooLongException()
    }

    well you've mis-typed "InputStreamReader" (note capital t) and I don't think you want to be implementing IOException.
    Oh, and you're code isn't inside a method.
    Do this:public class WhateverItsCalled {
      public static void main(String[] args) throws IOException {
       // your code goes here
    // your other class here

  • Please, help in RMI UnmarshalException: nested exception is: EOFException

    Good day,
    I have a problem in sample program, similar like an Oracle oriinal in "Getting Started Usin Java RMI", identically on server and client sides. It correctly works in NetBeans IDE, but never alone, as JAR archive or java class, if I used java -jar or java -classpath command-line form. Fragment of the server code includes final check on correct read from remote object, it corrrectly works within NetBeans but cause UnmarshalException in same server side in independent launch form (WeatherBean - sample object, contains points to information about city name, weather description, temperathure an small "weather" icon, WeatherService - interface with one getWeatherInformation() function):
                   String serverObjectName = "WeatherService";
                   final int remotePort = 1099;
                   final String remoteHost = "localhost";
                   Registry registry = LocateRegistry.getRegistry(remoteHost);
                   WeatherService remoteObject = (WeatherService)
                           UnicastRemoteObject.exportObject(service, 0);
                   registry.rebind(serverObjectName, remoteObject);
                   //control export output
                   java.util.List<WeatherBean> list =
                           service.getWeatherInformation();
                   for (int i = 0; i < list.size(); i++) {
                       WeatherBean wb = list.get(i);
                       service.addTextWeatherString(wb.getCityName() + " " +
                               wb.getDescription() + " " + wb.getTemperature());
                   //back read exported object (cause error)
                   String[] regArr = registry.list();
                   java.util.List<String> regList = Arrays.asList(regArr);
                   if (regList.contains(serverObjectName)) {
                        Remote remote = registry.lookup(serverObjectName);
                        if (Proxy.isProxyClass(remote.getClass())) {
                            Proxy proxy = (Proxy) remote;
                            InvocationHandler invocationHandler =
                                    Proxy.getInvocationHandler(proxy);
                            WeatherService weatherService = (WeatherService)
                                    Proxy.newProxyInstance(
                                    WeatherService.class.getClassLoader(),
                                    new Class[] { WeatherService.class },
                                                  invocationHandler);
                            list = weatherService.getWeatherInformation();
                            for (int i = 0; i < list.size(); i++) {
                            WeatherBean wb = list.get(i);
                            service.addTextWeatherString(wb.getCityName() + " " +
                                    wb.getDescription() + " " + wb.getTemperature());
                   }Starts with form java -jar WeatherServiceProj.jar (my project name) cause this error:
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
         java.io.EOFException
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:173)
         at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
         at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
         at $Proxy0.getWeatherInformation(Unknown Source)
         at deitel.rmi.weather.server.WeatherServiceImpl.main(WeatherServiceImpl.java:381)
    Caused by: java.io.EOFException
         at java.io.DataInputStream.readInt(DataInputStream.java:375)
         at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2775)
         at java.io.ObjectInputStream.readInt(ObjectInputStream.java:949)
         at javax.swing.ImageIcon.readObject(ImageIcon.java:441)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1946)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1870)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
         at java.util.ArrayList.readObject(ArrayList.java:593)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974)
         at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1848)
         at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1752)
         at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1328)
         at java.io.ObjectInputStream.readObject(ObjectInputStream.java:350)
         at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
         at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
         ... 4 moreI try to use many forms of java -Dxxxx keys, such as -Djava.rmi.server.codebase or -Djava.rmi.security.policy, but it does not help. Maybe i don't know something else? Key or sustem property, e. g.?
    Great thanks for some little help,
    Jaroslav
    Edited by: EJP on 5/10/2011 20:21: added {noformat}{noformat} tags: please use them.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Sweta,
    Is this a java mapping or Graphical, If Java, you should not run into this issue as you dont load the nested XSD`s.
    Also the error message indicates outofMemory in mercator side when posting your Large message.
    java.lang.OutOfMemoryError at com.philips.xi.mercator.MercatorCall.execute(MercatorCall.java:90) at
    Regards
    Ravi Raman
    Edited by: Ravi Raman on Jun 30, 2010 4:26 PM

  • Help needed on meta data export

    I need a meta data export dump of a source database of two schemas and import to a fresh new database.
    COuld you please help with the steps to be followed.

    Assuming you are using 10g and exp utility
    You can say rows=N
    exp help=yes
    Export: Release 10.2.0.1.0 - Production on Thu Jul 23 13:36:59 2009
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    You can let Export prompt you for parameters by entering the EXP
    command followed by your username/password:
    Example: EXP SCOTT/TIGER
    Or, you can control how Export runs by entering the EXP command followed
    by various arguments. To specify parameters, you use keywords:
    Format: EXP KEYWORD=value or KEYWORD=(value1,value2,...,valueN)
    Example: EXP SCOTT/TIGER GRANTS=Y TABLES=(EMP,DEPT,MGR)
    or TABLES=(T1:P1,T1:P2), if T1 is partitioned table
    USERID must be the first parameter on the command line.
    Keyword Description (Default) Keyword Description (Default)
    USERID username/password FULL export entire file (N)
    BUFFER size of data buffer OWNER list of owner usernames
    FILE output files (EXPDAT.DMP) TABLES list of table names
    COMPRESS import into one extent (Y) RECORDLENGTH length of IO record
    GRANTS export grants (Y) INCTYPE incremental export type
    INDEXES export indexes (Y) RECORD track incr. export (Y)
    DIRECT direct path (N) TRIGGERS export triggers (Y)
    LOG log file of screen output STATISTICS analyze objects (ESTIMATE)
    {color:red}*ROWS export data rows (Y)* {color} PARFILE parameter filename
    CONSISTENT cross-table consistency(N) CONSTRAINTS export constraints (Y)
    OBJECT_CONSISTENT transaction set to read only during object export (N)
    FEEDBACK display progress every x rows (0)
    FILESIZE maximum size of each dump file
    FLASHBACK_SCN SCN used to set session snapshot back to
    FLASHBACK_TIME time used to get the SCN closest to the specified time
    QUERY select clause used to export a subset of a table
    RESUMABLE suspend when a space related error is encountered(N)
    RESUMABLE_NAME text string used to identify resumable statement
    RESUMABLE_TIMEOUT wait time for RESUMABLE
    TTS_FULL_CHECK perform full or partial dependency check for TTS
    TABLESPACES list of tablespaces to export
    TRANSPORT_TABLESPACE export transportable tablespace metadata (N)
    TEMPLATE template name which invokes iAS mode export
    Export terminated successfully without warnings.

  • Help me,Why Null Pointer Exception!!!!

    Hi,
    I want to write a javabean to wrap some methods assosiated with database,the source code is like this:
    //ConnectToDBMS.java
    import java.sql.*;
    public class ConnectToDBMS
    private Connection conn=null;
    private Statement stmt=null;
    ResultSet rs=null;
    private String driver=null;
    public String url=null;
    public String user=null;
    public String password=null;
    public ConnectToDBMS(){}
    public void Connect()
    try
    Class.forName(driver);
    catch(Exception e)
    System.out.println("can't load driver��"+driver);
    e.printStackTrace();
    public void setDriver(String Driver)
    this.driver=driver;
    public void setUrl(String URL)
    this.url=URL;
    public void setUserPassword(String user,String password)
    this.user=user;
    this.password=password;
    public ResultSet executeQuery(String sql)
    rs=null;
    try
    conn=DriverManager.getConnection(url,user,password);
    stmt=conn.createStatement();
    rs=stmt.executeQuery(sql);
    catch(SQLException ee)
    System.out.println("error in query��"+ee.getMessage());
    return rs;
    public void closeStmt()
    try
    stmt.close();
    catch(SQLException eee)
    eee.printStackTrace();
    public void closeConn()
    try
    conn.close();
    catch(SQLException eeee)
    eeee.printStackTrace();
    compile ok,and then called in jsp,the jsp code is like this:
    <%@page contentType="text/html;charset=gb2312"%>
    <%@page import="java.sql.*"%>
    <jsp:useBean id="ConnectToDBMS" scop="page" class="ConnectToDBMS"/>
    <html>
    <title>my soft bank</title>
    <body background="gif/bk097.jpg">
    <center>
    <h1><font color='red'>software download</font></h1><hr color='green'>
    <table border="4" width="%80">
    <tr><th>name</th><th>����</th><th>comments</th>
    <%
    ConnectToDBMS.setDriver("org.gjt.mm.mysql.driver");
    ConnectToDBMS.Connect();
    ConnectToDBMS.setUrl("jdbc:mysql://localhost/mysoft");
    ConnectToDBMS.setUserPassword("root","");
    ResultSet rst=ConnectToDBMS.executeQuery("SELECT * FROM soft");
    while(rst.next())
    %><tr><td><a href="<%=rst.getString(url")%">"><%=rst.getString("soft_name")%></a></td>
    <%
    out.println("<td>"+rst.getFloat("soft_size")+"M</td>");
    out.println("<td>"+rst.getString("soft_intro")+"</td></tr>");
    ConnectToDBMS.closeStmt();
    ConnectToDBMS.closeConn();
    %>
    </body>
    </html>
    the database name is mysoft,and has a table named soft,it contains such fields:soft_name,soft_intro,soft_size,url. I found this error when visit this page:
    java.lang.NullPointerException
         at _soft__jsp._jspService(/soft.jsp:20)
         at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
         at com.caucho.jsp.Page.subservice(Page.java:506)
         at com.caucho.server.http.FilterChainPage.doFilter(FilterChainPage.java:182)
         at com.caucho.server.http.Invocation.service(Invocation.java:315)
         at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
         at com.caucho.server.http.HttpRequest.handleRequest(HttpRequest.java:246)
         at com.caucho.server.http.HttpRequest.handleConnection(HttpRequest.java:163)
         at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
         at java.lang.Thread.run(Thread.java:536)
    </a>

    The error is occurring somewhere in your JSP, according to the stack trace. It would help to know which is line 20, but it's hard to figure that out for a JSP. Just another reason why it's a bad idea to put lots of Java code in a JSP. But anyway, do you think it's possible that your putting
    scop="page"
    in your bean declaration instead of
    scope="page"
    is the problem? If not, you need to put debugging code in the scriptlet to find where the exception is being thrown.

Maybe you are looking for

  • Broken RH HTML 7 project

    I'm using RH HTML 7.0.3 on Windows XP Pro, SP3. Two disturbing symptoms have suddenly begun to occur, only within the last week. Symptom 1: In only one project, my compiled CHM file no longer displays browse sequences. Nothing relevant in the project

  • Does anyone else have this problem

    This is going to sound really stupid but its been driving me crazy. I have high cheek bones which is usually a plus however I have noticed when I am talking on a call.. more times then not the caller can't hear me.. the reason it seems is while talki

  • Interface tables bug?? Hyp 11.1.1.2 with EPMA patched

    HI, I am facing one issue. When loading metadata from interface tables to dimension library, not all my member properties make their way into dimension library. This happens when i am performing load of all dimensions in one profile: E.g. Account dim

  • Multiple delivery for one Sales Order?

    I have been searching for the subject in forum....i dint get any possible answers? So in never the case multiple delivery will be attached to sales order ??? Thanks in advance for your valuable comments... Thanks Hari

  • Java reference to NWDS

    Hi, I am using NWDS 7.3 and i have reference the java version if JDK 1.6.0_18. Now I have updraged the patch level of JDK to 1.6.0_27. After these java upgrade, i have changed the java reference in NWDS to JDK1.6.0_27 through Windows --> Preferences