Adding a new class with Creator (really simple problem i think..)

I added a new class to my project with creator...
class name is "CambiaNote" and there's a method called Cambia
tabellaselezionabile is my project(package)
I tried to run everything but It gave me an error:
Exception Details:  org.apache.jasper.JasperException
  Error getting property 'cambia' from bean of type tabellaselezionabile.Page1I don't know, but the word cambia don't exists at all in my code... or it is not case sensitive..?
please help, thanks

typo: correct Paint() to paint()

Similar Messages

  • Help with a really simple SQL statement

    Hi All
    I'm relatively new to SQL and can't get my head round what I believe to be a really simple problem.
    I have a table I want to query called locations. We use locations to mean groups and regions as well as people s ofr example:
    TABLE: LOCATION
    IDENTIFIER----------NAME-----------------PART_OF
    101--------------------USER A---------------123
    123--------------------GROUP A-------------124
    etc
    What I'm trying to write is a statement that will return the 'PART_OF' as the 'NAME' rather than the ID number if the ID = 101.
    I was wondering if a nested select statement would do (select as select etc) but just can't get my head round it!
    Any ideas?
    TIA. Jake.

    Hi Jake,
    It's not clear what you are looking for. If USER A is just Part of GROUP A, a self-join will do:
    SQL> with loc as (select 101 locid, 'USER A' locname, 123 part_of from dual
                 union all
                 select 123 locid, 'GROUP A' locname, 124 part_of from dual
                 union all
                 select 124 locid, 'REGION A' locname, null part_of from dual)
    -- End of test data
    select l1.locid, l1.locname, l2.locname part_of
      from loc l1, loc l2
    where l2.locid(+) = l1.part_of
         LOCID LOCNAME  PART_OF
           101 USER A   GROUP A
           123 GROUP A  REGION A
           124 REGION A        
    3 rows selected.But if you want USER A to be part of REGION A, then you need a hierarchia lquery:
    SQL> with loc as (select 101 locid, 'USER A' locname, 123 part_of from dual
                 union all
                 select 123 locid, 'GROUP A' locname, 124 part_of from dual
                 union all
                 select 124 locid, 'REGION A' locname, null part_of from dual)
    -- End of test data
    select l1.locid, l1.locname, connect_by_root(locname) part_of
      from loc l1
    start with part_of is null
    connect by prior locid = part_of
         LOCID LOCNAME  PART_OF
           124 REGION A REGION A
           123 GROUP A  REGION A
           101 USER A   REGION A
    3 rows selected.Regards
    Peter

  • Error while adding a new col with check constriant

    Hello
    I tried adding a new column with check constraint but giving the error please correct me..
    drop table testchk
    create table testchk(typenm varchar2(5))
    insert into testchk values('mon')
    alter table testchk add typechk varchar2(5) default 'both' constraint chk_test check(typechk in('m','d') and typechk is not null)For the alter comman getting the ORA-02293 cannot validate error..
    I dont want to create any other constriant like not null etc .. but need only one check constriant
    Thanks

    You cannot assign a default value = 'both' while the constraint allows only 'm' or 'd'.
    This will work:
    ALTER TABLE testchk ADD typechk VARCHAR2(5) DEFAULT 'both'
    CONSTRAINT chk_test CHECK(typechk IN('m','d', 'both') AND typechk IS NOT NULL);Edited by: kordirko on 2010-05-14 18:41

  • Ava Web Service, Help me please with this really simple project

    Hi,
    I', using Tomcat 557 jdk 1.5.0.0_01, axis 1.2, and i have to build simple web service. The project is a list of students (their name, surname) and it has to do as the following:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    And it has to operate with simple text file (the database is too complicated in my situation)
    In C:\Java\jakarta-tomcat-5.5.7\webapps\axis i have student.jws file:
    import java.util.*;
    public class students{
                    private Map dane = new TreeMap();
         public students() {
              dane.put(new Integer(1), new Students("Adam", "Alt"));
              dane.put(new Integer(2), new Students("Claudia", "Shift"));
         dane.put(new Integer(4), new Students("Gregor", "Tab"));
              dane.put(new Integer(3), new Students("Robert", "Enter"));
         public void new(String name, String surname){
         public int[] list() {
              Set klucze = dane.keySet();
              int[] list = new int[klucze.size()];
              int i = 0;
              for (Iterator it = klucze.iterator(); it.hasNext(); ) {
                   list[i++] = ((Integer) it.next()).intValue();
              return list;
         public Student student (int nr) {
              Student u = (Student ) dane.get(new Integer(nr));
              return u;
    }And in C:\Java\jakarta-tomcat-5.5.7\webapps\axis\WEB-INF\classes i have the Student.java file:
    public class Student{
         private String name;
         private String surname;
         public Student() {
         public Student(String name, String surname) {
              this.name= name;
              this.surname= surname;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name= name;
         public String getSurname() {
              return surname;
         public void setSurname(String surname) {
              this.surname= surname;
    }And in IE http://localhost:8080/axis/students.jws?method=list
    Shows the list of students.
    The thing is, that it should work with at least simple text file (i don't even know the methods for connecting the database) and it should do the things, that i've already mentioned:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    Could somebody add some code to this simple service? I know, that for you it's not any problem, you know java and it's a matter of life and death for me. Only if somebody help me, i will be able to finish current year of my studies. Normally i don't ask for such things, but now i don't have any choice - i have very important exam on monday, and i also have to present this project in this day.[/code                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    And in IE http://localhost:8080/axis/students.jws?method=list
    Shows the list of students.
    The thing is, that it should work with at least simple text file (i don't even know the methods for connecting the database) and it should do the things, that i've already mentioned:
    -adding new student
    -deleting existing student
    -changing existing student (not a must)
    -dispaying all students list
    -searching student by id
    Could somebody add some code to this simple service? I know, that for you it's not any problem, you know java and it's a matter of life and death for me. Only if somebody help me, i will be able to finish current year of my studies. Normally i don't ask for such things, but now i don't have any choice - i have very important exam on monday, and i also have to present this project in this day.

  • New class with actionPerformed

    This is part of my code:
    //setup buyerJButton
                        buyerJButton = new JButton ();
                        buyerJButton.setText("Buyer");
                        buyerJButton.setBackground( Color.YELLOW );
                        contentPane.add( buyerJButton );
                        buyerJButton.addActionListener(
                             new ActionListener(){
                                  public void actionPerformed( ActionEvent event )
                                       f = new BidFrame() extends JFrame;
                                       f.setVisible(true);
                                       //JFrame frame = new JFrame("Bid");
                                       //frame.setVisible(true);
                        );I want to create a new class within the actionperformed bit, so a new window can appear once clicked on Jbutton... it doesn't seem to work
    Can anyone help? what am i doing wrong? Its the two lines with f = and f.set thats giving me propblems

    I would implement it like this:
    private void whatever ()
        // Skipping code here...
        JButton buyerJButton = new JButton();
        buyerJButton.addActionListener(
            new ActionListener() {
                public void actionPerformed(ActionEvent event)
                    BidFrame f = new BidFrame();
                    f.setVisible(true);
        return;
    // BidFrame defined as an inner class
    private class BidFrame extends JFrame
        // Skipping code here...
    }

  • Removing a window and adding a new one with swing.

    Hi,
    A friend of mine recently asked me to add a GUI for a small chat he made, so I thought I'd help him out. I've come across something that's troubled me in the past, and I could never find a solution. What I'm trying to do is make it so a log in window pops up (have that working alright) and then when you press sign in, it removes that window (log in) and adds the main chat window (have this fully functional, too).
    If someone could provide an example or point me in the direction of the proper API to look into, so that I don't have to look through them all, I'd be extremely grateful.
    Here's an SSCCE example:
    import java.awt.BorderLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.text.DateFormat;
    import java.text.SimpleDateFormat;
    import javax.swing.DefaultListModel;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JList;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextField;
    import javax.swing.JTextPane;
    import javax.swing.ListSelectionModel;
    import javax.swing.ScrollPaneConstants;
    import javax.swing.SwingUtilities;
    public class Gui extends JFrame {
         public static final DateFormat dateFormat = new SimpleDateFormat("HH:mm:ss");
         public String sessionId;
         public int returnCode;
         public boolean recievedReturnCode;
         public boolean errorConnecting;
         public long lastActionDelay;
         private JScrollPane listScrollPane;
         private JList list;
         private JTextPane console;
         private JButton signInButton;
         private JScrollPane consoleScrollPane;
         private JTextField typingField;
         private DefaultListModel userList;
         private JButton sendButton;
         public static void main(String[] args) {
              try {
                   SwingUtilities.invokeAndWait(new Runnable() {
                        public void run() {
                             new Gui().setVisible(true);
              } catch (Exception e) {
                   e.printStackTrace();
         public Gui() {
              setResizable(false);
              setSize(500, 500);
              consoleScrollPane = new JScrollPane();
              console = new JTextPane();
              typingField = new JTextField();
              userList = new DefaultListModel();
              sendButton = new JButton();
              initializeLoginWindow();
              setDefaultCloseOperation(EXIT_ON_CLOSE);
         public void initializeLoginWindow() {
              setTitle("Login");
              signInButton = new JButton("Sign in");
              signInButton.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent evt) {
                        initializeChatWindow();
              signInButton.setBounds(5, 100, 75, 20);
              getContentPane().add(signInButton);
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(new JPanel());
         public void initializeChatWindow() {
              consoleScrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
              consoleScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_AS_NEEDED);
              consoleScrollPane.setViewportView(console);
              consoleScrollPane.setBounds(5, 5, 575, 350);
              console.setEditable(false);
              typingField.setEditable(true);
              typingField.setBounds(5, 360, 575, 25);
              list = new JList(userList);
            list.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            list.setSelectedIndex(0);
            list.setVisibleRowCount(5);
            listScrollPane = new JScrollPane(list);
              listScrollPane.setBounds(585, 5, 110, 350);
              sendButton.setText("Send");
              sendButton.setBounds(585, 360, 111, 25);
              getContentPane().add(consoleScrollPane);
              getContentPane().add(typingField);
              getContentPane().add(listScrollPane);
              getContentPane().add(sendButton);
              getContentPane().setLayout(new BorderLayout());
              getContentPane().add(new JPanel());
    }Thanks in advanced!

    jduprez wrote:
    I've come across something that's troubled me in the past, and I could never find a solutionWhat is the problem?
    a log in window pops up (have that working alright)
    and then when you press sign in, it removes that window (log in) and adds the main chat window (have this fully functional, too).Hum, between what is working alright and what is already functional, I fail to see what is missing. Again, what is your problem/question?
    If someone could provide an example or point me in the direction of the proper API to look into, so that I don't have to look through them all, I'd be extremely grateful.
    [url http://download.oracle.com/javase/tutorial/uiswing/components/frame.html]JFrames and [url http://download.oracle.com/javase/tutorial/uiswing/components/dialog.html]dialogs seem to show enough API usage to do that. Still, I stronlgy encourage you to read the whole Swing tutorial: http://download.oracle.com/javase/tutorial/uiswing/index.html
    Incase you didn't see the hyperlink above, here's the SSCCE link: http://www.mediafire.com/?e5e3ci3kbvickla
    The "S" in SSCCE stands for "Short" (or, depending on authors, "Simple"). Anyway, a decent SSCCE should fit within a forum post (between code tags please). The whole idea is to provide the simplest thing to people willing to help. No doubtful sites. No non-standard extensions.
    Best regards,
    The problem is that I cannot seem to remove the first pane, leaving the second one to be drawn on the current one.
    In reguards to SSCCE, I always thought it was just a short runnable class example, but I've added the class to the main post. I'll take a look at the API in a few as well.

  • [New] Help with a VERY simple asterisk program.

    Alright...I feel like a complete idiot asking this question..but I'm having such trouble writing this program. The program description is here:
    Write a Java application using two for loops to produce the following pattern of asterisks.
    I guess I'm really bad at algorithms yeah? Haha...well, any help would be very much appreciated.

    Hi,
    I don't think you don't need to look through any C programming books.
    When you have a problem like this, do some thinking about what methods you need to use and what the general structure of the program will be.
    You need to print asterisks out to the screen... so you'll need:
    System.out.println
    System.out.printAnd you already know that you need two loops.
    Now you can ask yourself how you might use the print statements with two loops in order to design a basic structure for the program.
    You have 8 lines, so you might want a loop that runs through 8 times, one of the lines printed each time.
    Within this loop, you need another loop that prints out *'s. This loop could run once for each asterisk, but because there is a different number of asterisks on each line, the number of times this loop runs would be variable.
    So a basic structure:
    //loop1 that runs 8 times
        //loop2 that runs once for each *
            print one star
        //end loop2
    //end loop1The key now is to recognise the difference between print and println. I don't know if you alread know, but System.out.print will print a string without creating a new line at the end, and println will create a new line at the end of the printed string.
    Hope that helps. If you have any other problems, post specific questions along with the code you've written and are having trouble with.

  • JButton to run new class (with main)

    Hi all,
    I hope someone out there can help me with this.
    Class1 = GUI_1:
    I have written a program(GUI) that takes in user input (JTextArea) and saves it to a file. The program then performs a few functions on this text file and spits out the resulting text file.
    Class2 = PLOTTER:
    I have a seperate class I have written that takes this resulting text file and plots the output of the file on a graph.
    The problem is that I have a JButton on the GUI_1 that calls the PLOTTER class in the following way when the mouse is clicked :
    private void jButton3MouseClicked(java.awt.event.MouseEvent evt) {                                     
            LineChart lc = new LineChart("");
        }The problem is that I only get console output and not the actual plotted data i.e. the GUI_1 doesn't draw the plotted data. Both Classes are main()'s.
    The Plotter class runs fine on its own i.e. it plots data fine.
    Sorry if it's a bit confusing, writing this at 2am zzzzzzzzz
    regards,
    Seany

    Thanks, I got it sorted now.
    Why should I use ActionListener instead of MouseListener ?
    The event handling code was automatically generated by NetBeans...
    regards,
    Se�n.

  • Adding a new song with a different computer..?

    Ok. I'm on vacation in Costa Rica right now, and I'm using my aunt's computer. My iPod already has music on it, which I put into it on my computer from Texas.
    A while ago, I downloaded a song and I would really like to put it on my iPod...so I downloaded iTunes on this computer. But whenever I try to add it, it gives me:
    The iPod "Lovelitz"* is linked to another iTunes music library. Do you want to change this link to this iTunes music library and replace all existing songs and playlists on this iPod with those from this library?
    * = the name of my iPod.
    Is there any way I can get around this? Obviously I don't want to erase all my songs off my iPod and just have this one song on it. Any help would be greatly appreciated! I'm desperate to have this song on my iPod, haha.

    Nevermind! I figured it out.

  • BUG: Adding a new parent with multiple children in one transaction

    Technology scope: JDeveloper Studio Edition Version 11.1.1.0.2, ADF Business Components.
    If you have a master-detail page (where master and detail views are both updateable tables) and you insert
    a new master record (without committing it) and you continue with inserting two or more child records you’ll receive
    the following error when I commit the transaction:
    java.sql.SQLIntegrityConstraintViolationException: ORA-02291: Integriteitsbeperking (PUBLICSUITE.DREXTRL_LANG_DREXTRL_FK1) is geschonden - bovenliggende sleutel is niet gevonden.
    ORA-06512: in regel 1
    at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:85)
    at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
    at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
    at oracle.jdbc.driver.T4CCallableStatement.doOall8(T4CCallableStatement.java:191)
    at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:944)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:3462)
    at oracle.jdbc.driver.OracleCallableStatement.executeUpdate(OracleCallableStatement.java:3877)
    at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeUpdate(OraclePreparedStatementWrapper.java:1349)
    at oracle.jbo.server.OracleSQLBuilderImpl.doEntityDML(OracleSQLBuilderImpl.java:434)
    at oracle.jbo.server.EntityImpl.doDML(EntityImpl.java:7779)
    at axi.casemanagement.model.base.CMEntityImpl.doDML(CMEntityImpl.java:62)
    at oracle.jbo.server.EntityImpl.postChanges(EntityImpl.java:6162)
    at oracle.jbo.server.DBTransactionImpl.doPostTransactionListeners(DBTransactionImpl.java:3253)
    at oracle.jbo.server.DBTransactionImpl.postChanges(DBTransactionImpl.java:3061)
    at oracle.jbo.server.DBTransactionImpl.commitInternal(DBTransactionImpl.java:2180)
    at oracle.jbo.server.DBTransactionImpl.commit(DBTransactionImpl.java:2382)
    at oracle.adf.model.bc4j.DCJboDataControl.commitTransaction(DCJboDataControl.java:1565)
    at oracle.adf.model.dcframe.LocalTransactionHandler.commit(LocalTransactionHandler.java:140)
    at oracle.adf.model.dcframe.DataControlFrameImpl.commit(DataControlFrameImpl.java:597)
    at oracle.adfinternal.controller.util.model.DCFrameImpl.commit(DCFrameImpl.java:83)
    at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.resolveTransaction(TaskFlowReturnActivityLogic.java:509)
    at oracle.adfinternal.controller.activity.TaskFlowReturnActivityLogic.execute(TaskFlowReturnActivityLogic.java:114)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:834)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.doRouting(ControlFlowEngine.java:718)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.routeFromActivity(ControlFlowEngine.java:491)
    at oracle.adfinternal.controller.engine.ControlFlowEngine.performControlFlow(ControlFlowEngine.java:108)
    at oracle.adfinternal.controller.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:86)
    at org.apache.myfaces.trinidadinternal.application.NavigationHandlerImpl.handleNavigation(NavigationHandlerImpl.java:43)
    at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
    at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
    at oracle.adf.view.rich.component.fragment.UIXRegion.broadcast(UIXRegion.java:142)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent$1.run(ContextSwitchingComponent.java:70)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent._processPhase(ContextSwitchingComponent.java:274)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.broadcast(ContextSwitchingComponent.java:74)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:754)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:282)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Unknown Source)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Important notes:
    - This error occurs only if you insert multiple children, if you insert just one child in the same transaction everything works fine.
    - We have tested this application directly via "Run" BC application module and there everything works fine just like it hast to be.
    - Because we have a “Composed” association we don’t need to override the postChanges() method in order to controls the order for saving the entities (regarding the documentation).
    - Related to thread: http://forums.oracle.com/forums/thread.jspa?threadID=897936&tstart=30

    Gert,
    I think Frank's suggestion was that you file the test case with Oracle Support (Metalink) ;)
    John

  • New developer with spacial - need simple example

    Dear All
    i developing an application that need to store coordinates which represented with 3 floats. i need simple demo which illustrates me how can i insert such coordinate using Oracle Spatial and the how to select it. i also need little explanation of the structure of the select and insert queries
    Thanks alot

    Well, Ron, I think you will need to read a minimum in order to use oracle spatial. I admit that the Oracle docset can seem daunting, but I don't think you can use it without at least reading some of the Oracle Spatial Users Guide, available here (file://localhost/D:/Doc/Oracle/1020/B19306_01/appdev.102/b14255/toc.htm) in HTML and PDF.
    I suggest reading at least chapters 1 (concepts) and 2 (data types) in this manual.
    Albert

  • What will happen if adding a new node with current cluster, while new node's CPU is slower quality?

    Hello,
    Say, I have a 3 nodes RAC, I want to add a new node to current cluster... while the new node's CPUs are slower than the others.. what will happen?
    (my concern is : can I add this new node successfully? if yes, can it anyway improve the whole cluster performance or not?)
    Thank you
    s9225

    Also you can refer MOS note : RAC: Frequently Asked Questions (Doc ID 220970.1)
    Can I have different servers in my Oracle RAC? Can they be from different vendors? Can they be different sizes?

  • Help please with debugging program (simple error i think)

    This code will compile/execute fine, but when I run it through an automatic marking system which forces it to read lines from a text file, it runs into errors.
    It seems as if it reads in the first line fine, and does what it has to do it to it, but it errors out once it tries to read the 2nd line. Can anybody see any reasons for this?
    The auto mark system returns this error:
    FAIL: java Mind 0113 < input.txt
    Expected: Guess the 4 digit secret, or type ? to give up
    Expected: > Golds 1, silvers 0
    Expected: > Golds 3, silvers 0
    Expected: > Correct, using 3 guesses
    Actual: Guess the 4 digit secret, or type ? to give up
    Actual: > Golds 1, silvers 0
    Actual: >
    Expected: no error output
    Error: Exception in thread "main" java.util.NoSuchElementException: No line found
    Error:      at java.util.Scanner.nextLine(Scanner.java:1471)
    Error:      at Mind.begin(Mind.java:113)
    Error:      at Mind.main(Mind.java:32)
    NO NEWLINE AT END OF LAST LINE
    And here is my code:
    //Mind game
    import java.io.*;
    import java.util.*;
    import java.util.Random;
    class Mind
         public static void main(String[] args){
              Mind program = new Mind();
              if(args.length > 2)
                   System.err.println("Invalid");
              else if(args.length == 2)
                   program.start(args[0],args[1]);
              else if(args.length == 0)
                   Random number = new Random();
                   int n1 = number.nextInt(10);
                   int n2 = number.nextInt(10);
                   int n3 = number.nextInt(10);
                   int n4 = number.nextInt(10);
                   String sec=""+n1+n2+n3+n4;
                   program.begin(sec);     
              else
                   program.begin(args[0]);
         void start(String s1,String s2)
              int length = 4;
              int a = 0;
              int b = 0;
              if((s1.length() == length) && (s2.length() == length))
                   try
                        a = Integer.parseInt(s1);
                        b = Integer.parseInt(s2);
                   catch (NumberFormatException exc)
          System.err.println("Invalid - Incorrect formatting");
          System.exit(1);
              Gold name = new Gold();
              int[] result=name.gold(s1,s2);
              System.out.println("Golds " + result[0] + ", silvers " + result[1]);
              else
                   System.err.println("Invalid numbers");
         void begin(String s1)
              int i = 1;
              char word[] = s1.toCharArray();
              int Length = 4;
              int a = 0;
              int g = 0;
              if((word[0] == '-') && (word[1] == 's'))
                   Random number = new Random();
                   int n1 = number.nextInt(10);
                   int n2 = number.nextInt(10);
                   int n3 = number.nextInt(10);
                   int n4 = number.nextInt(10);
                   String secret=""+n1+n2+n3+n4;
                   System.out.println(secret);
              else if(s1.length() == Length)
                   System.out.println("Guess the 4 digit secret, or type ? to give up");
                   try
                        a = Integer.parseInt(s1);
                   catch (NumberFormatException exc)
          System.err.println("Invalid - Incorrect formatting");
          System.exit(1);
        do
        String prompt = "> ";
        System.out.print (prompt);
        System.out.flush();
        Scanner input = new Scanner(System.in);
        String line = input.nextLine();
        char key[] = s1.toCharArray();
        char guess[] = line.toCharArray();
        if(guess[0] == '?')
             System.out.println("The secret was " + s1 );
             System.exit(1);
        if(line.length() == Length)
             try
                  g = Integer.parseInt(line);
             catch (NumberFormatException exc)
          System.err.println("Please type 4 digits or ? to give up");
          i--;
        if(line.equals(s1))
             System.out.println("Correct, using " + i + " guesses");
             break;
        Gold name1 = new Gold();
         int[] result1=name1.gold(line,s1);
         System.out.println("Golds " + result1[0] + ", silvers " + result1[1]);
        else
        System.out.println("Please type 4 digits or ? to give up"); 
        i--;
         i++;
              } while(i < 2000);
    }

    The line:
    String line = input.nextLine();is being invoked repetitively within the do loop and you are not checking if there is a next line. You have to test the result of input.hasNextLine() and break out of your loop when it returns false.

  • New MacBook with built in iSight problem

    Green light is on but when I go to photo booth or iChat the screen is black?
    I can't take pics or video:(

    Welcome to Apple Discussions, klassikgirl
    Having tried all the suggestions on the boards, I think you should take it back to the retailer and exchange it for one that works. The problem cannot get better with time, and a same day exchange for a non-functional Mac should be no problem.
    EZ Jim
    PowerBook 1.67 GHz w/Mac OS X (10.4.11) G5 DP 1.8 w/Mac OS X (10.5.1)  External iSight

  • New G40 with a lot of problems.

    Just acquired this notebook a few weeks ago and I'm having a lot of issues (not sure if they're hardware of software problems) :
    - When I press the power button in order to make the computer start, it automatically shuts down again when it's on the dark screen with "Lenovo" written, then I have to press it again to start;
    - My cursor is always with the "loading ball" on it;
    - HD use on Task Manager is most of times between 80% and 99%. CPU and RAM also have high use sometimes, the Host Service process sometimes uses about 1700 Mb of RAM. The solution center show alerts about memory too;
    - Heat on the left side;
    - System is slow;
    - Energy Manager doesn't start;

    Hi HenriqueMK,
    Welcome to the Forums     
    As per the query we understood that you are facing multiple issues with your Lenovo G40 laptop.
    As you have mentioned that the system is slow try to boot the system to safe mode and check if the system is slow in safe mode.
    Try to remove the dust in the fan through energy management, go to energy management and select maintainence guide and select run under fan dust removal  and check for the issue.
    Close the background running applications.
    Hope this helps. Do post back if the issue persists!                                         ​          
    Best regards,                                                   ​       
    Ashwin. S
    Did someone help you today? Press the star on the left to thank them with a Kudo!
    If you find a post helpful and it answers your question, please mark it as an "Accepted Solution"! This will help the rest of the Community with similar issues identify the verified solution and benefit from it.
    Follow @LenovoForums on Twitter!

Maybe you are looking for