The serializable class SpacePainter does not declare a static final serial

The serializable class SpacePainter does not declare a static final serialVersionUID field of type longWhat does this mean??? It appears as a warning in Eclipse but I have no idea what it is. It happens when I create a class the extends JFrame or JCompnent or JApplet. I finnally got it to stop with this:
static final long serialVersionUID = 1;

Because your eclipse is configured that way. You can probably filter the warning. You don't have to implement the serialVersionUID, but you should if you really serialize the exceptions.

Similar Messages

  • ERROR: serializable class HelloComponent does not declare a static final

    Hi everyone! I'm sorry but I'm a newbie to Java and I'm having some, I assume, basic problems learning to compile and run with javac. Here is my code:
    import javax.swing.* ;
    import java.awt.* ;
    public class MyJava {
    * @param args
    public static void main(String[] args)
    // TODO Auto-generated method stub
    JFrame frame = new JFrame( "HelloJava" ) ;
    HelloComponent hello = new HelloComponent() ;
    frame.add( hello ) ;
    frame.setSize( 300, 300 ) ;
    frame.setVisible( true ) ;
    class HelloComponent extends JComponent
    public void paintComponent( Graphics g )
    g.drawString( "Hello Java it's me!", 125, 95 ) ;
    And here is the error:
    1. WARNING in HelloJava.java
    (at line 20)
    class HelloComponent extends JComponent {
    ^^^^^^^^^^^^^^
    The serializable class HelloComponent does not declare a static final serialVersionUID field of type long
    ANY HELP WOULD BE GREAT! THANKS! =)

    Every time I extend GameLoop, it gives me the warning
    serializable class X does not declare a static final serialVersionUID field of type long
    This is just a warning. You do not need to fix this because the class you are writing will never be serialized by the gaming engine. If you really want the warning to go away, add the code to your class:
    static final long serialVersionUID=0;

  • The edit JSP page does not appear...

    Hi!
    I make a simple JSF application, I would like to show a DB table in a h:dataTable component and edit a given row after click, but the edit JSP page does not appear. I click the on link in the table, but the list is loaded again and not the edit page...:(
    (no exception in application server console)
    Please help me!
    my code:
    **************************************** listmydata.jsp***************************
                   <h:dataTable
                             value="#{myBean.myDataList}"
                             var="myDataItem"
                             binding="#{myBean.myDataTable}"
                   >
                        <h:column>
                             <f:facet name="header">
                                  <h:outputText value="Ajdi"/>
                             </f:facet>
                             <h:commandLink action="#{myBean.editMyData}">
                                  <h:outputText value="#{myDataItem.id}"/>
                             </h:commandLink>
                        </h:column>
    ********************************* MyBean.java *******************************
    package bean;
    import java.sql.Connection;
    import java.sql.SQLException;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.component.html.HtmlDataTable;
    import javax.faces.context.FacesContext;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.sql.DataSource;
    import wrapper.MyData;
    public class MyBean {
         private List myDataList;
         private HtmlDataTable myDataTable;
         private MyData myDataItem;
         protected Connection Conn;
         // *********************** actions ***********************
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
         public String saveMyData() {
              try {
                   updateDataInDB();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              return "listmydata";
         // *********************** setter ***********************
         public void setMyDataList(List myDataList) {
              this.myDataList = myDataList;
         public void setMyDataTable(HtmlDataTable myDataTable) {
              this.myDataTable = myDataTable;
         public void setMyDataItem(MyData myDataItem) {
              this.myDataItem = myDataItem;
         // *********************** getter ***********************
         public List getMyDataList() {
              if (myDataList == null || FacesContext.getCurrentInstance().getRenderResponse()) {
                   loadMyDataList();
              return myDataList;
         public HtmlDataTable getMyDataTable() {
              return myDataTable;
         public MyData getMyDataItem() {
              return myDataItem;
         // *********************** others ***********************
         public void loadMyDataList() {
              try {
                   getDataFromDB();
              catch (NamingException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
              catch (SQLException e) {
                   System.out.println(e);
                   System.err.println(e);
                   e.printStackTrace();
         void getDataFromDB() throws NamingException, SQLException {
              myDataList = new ArrayList();
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement("SELECT id, name, value FROM BEA_JSF_SAMPLE");
              PreStat.execute();
              java.sql.ResultSet Rs = PreStat.getResultSet();
              while(Rs.next()) {
                   MyData OneRecord = new MyData();
                   OneRecord.setId(Rs.getLong(1));
                   OneRecord.setName(Rs.getString(2));
                   OneRecord.setValue(Rs.getString(3));
                   myDataList.add(OneRecord);
         void updateDataInDB() throws SQLException, NamingException {
              String sql = new String("UPDATE BEA_JSF_SAMPLE SET name=?,value=? WHERE id=?");
              java.sql.PreparedStatement PreStat = ownGetConnection().prepareStatement(sql);
              PreStat.setString(1,myDataItem.getName());
              PreStat.setString(2,myDataItem.getValue());
              PreStat.setLong(3,myDataItem.getId().longValue());
              PreStat.execute();
              ownGetConnection().commit();
         Connection ownGetConnection() throws SQLException, NamingException {
              if (Conn == null) {
                   InitialContext IniCtx = new InitialContext();
                   DataSource Ds = (DataSource)IniCtx.lookup("JDBCConnectToLocalhost_CRS");
                   Conn = Ds.getConnection();
              return Conn;
    ******************************* editmydata.jsp *****************************
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <html>
    <body>
    <f:view>
    <h:form>
         <h:panelGrid columns="2">
              <h:outputText value="Name"/>
              <h:inputText id="name" value="#{myBean.myDataItem.name}"/>
              <h:outputText value="Value"/>
              <h:inputText id="value" value="#{myBean.myDataItem.value}"/>
         </h:panelGrid>
         <h:commandButton action="#{myBean.saveMyData}" value="Save"/>
    </h:form>
    </f:view>
    </body>
    </html>

    I have put his lines in the faces-config.xml and now it works:
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>editmydata</from-outcome>
                   <to-view-id>editmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
         <navigation-rule>
              <from-view-id>*</from-view-id>
              <navigation-case>
                   <from-outcome>listmydata</from-outcome>
                   <to-view-id>listmydata.jsp</to-view-id>
              </navigation-case>
         </navigation-rule>
    I don't understand, that I define the next JSP page in the bean java file, which must be shown, but I must define this in the faces-config.xml as well.
    for example:
         public String editMyData() {
              myDataItem = (MyData)getMyDataTable().getRowData();
              return "editmydata";
    is it right or Do I make a mistake somewhere?

  • Object class name does not exist in IDM

    Hi Team
    We are process of Integrating GRC 10.1 to Enterprise Portal.Followed accordingly as per the SAP Note No. 1977781.
    While running the Schema Job, we get a message Schema Imported Suxcessfully. While running the Job : GRAC_REPOSITORY_SYNC_JOB, the job
    shows successful, but a Warning Message : User Adaptor Empty in SLG1 T.code.
    I have checked the Path suffix,connectors,data source and all are maintained but no sure about this warning message.
    Secondly,I tried for test creation of user on Portal via GRC 10.1.I am getting below error
    "Object class name does not exist in IDM" Please see log below
    Request gets closed stating Auto Provisioning failed.Please advice if someone has faced same issue and the steps taken to rectify it.
    Thanks
    Nitesh

    Hi Nitesh,
    We worked on this issue for quiet sometime with SAP to get this finally fixed You can check all below mentioned notes.
    First Check:
    Please check the Note: 1915763 - Error Provisioning from GRC 10 to SAP Portal while adding or removing a role in Change Account request type.
    This Note says that if your LDAP set as data source is read-only in Portal, then you need to change it to Modifiable in order to allow create or change user belonging to LDAP.
    We have set the UME correctly and no longer read-only. But our access requests still used to fail with the following messages.
    "Object class name does not exist in IDM".
    Second Check:
    Kindly ensure the field mapping for portal is done in IMG settings properly.
    If it is fine please check below note 2033714 - AC10.0: error in SGL1 "Object class name does not exist in IDM".
    This note is only to check if you have made any mistake with your portal mapping and doesn't address the correct issue.
    Third Check:
    Finally after implementing SAP note 1941250 - UAM: Truncated parameters provisioned on changing users from Access Request
    our issue got fixed.
    Regards,
    Madhu.

  • The selected context node does not have attributes - Message no. SWDP_WB_TO

    Hello,
    I am trying out the example in web dynpro documentation -> Creating a Simple Flight Info Application
    and in part 3 steps 11 - 13 I get the following error
    The selected context node does not have attributes
    and the associated message class and # is :
    Message no. SWDP_WB_TOOL467
    can anyone please help ?

    Hi Raj,
    Have you done the steps 7 and 8 as described
    7.      Create an additional node called u201CflightSu201D, this time with the cardinality 0..n.
    8.      Use the Create Using Wizard option of the context node again to define attributes from the SFLIGHT structure for this new node (see part 1, step 15). Choose the following fields: CARRID, CONNID, FLDATE, PRICE and PLANETYPE.
    See the flights node , if there are no attributes the perform the steps as described in 8.

  • Post Goods Issue - error : Class type does not exist - Message no. VK662

    Hi,
    I am trying to do Post Goods Issue and getting this error: Class type does not exist
    When double click on the error, it shows it is a message no vk662.
    Any help to resolve it is appreciated. Thanks in advance.
    -Sri

    Sri
    There is a problem in batch determination.
    The batch you assigned to the material does not have a class or if it has a class, that class does not exist.
    Display the batch from the delivery item  using MSC3N and go into the Classification tab. You should have a class of class type 22.  See if that class exists in CL03 and its status in basic data tab. Work on these lines and revert.
    Hope this helps.

  • Class CL_RSR_QUERY_VARIABLES does not exit anymore

    Dear all,
    Class CL_RSR_QUERY_VARIABLES does not exist anymore in NW04s. Does anybody know what is the new class that substitutes it?
    Thanks and regards,
    Flavia Sanchez

    Hi Michael,
    I am the guy responsible for this development.
    The class is used in a function module to execute a BW Query and return a xml string within a BSP application. The result table of the query is used within the BSP application logic to fill the graphical presentation layer that consitutes the front end of the BSP application. 
    Here is the statement within the FM where the class is used:
      DATA: wf_query_var TYPE REF TO cl_rsr_query_variables .
    Here is the call to the FM within the BSP application (Even Handler: OnInputProcessing):
          CALL FUNCTION 'Z_RMZ_BW_SEM_NGRM_EXE_QRY'
            EXPORTING
              QUERY_NAME            = rpt_tech_id
            IMPORTING
              XML_OUT               = xml_out
              REF_RESULT_TAB        = res_tab
            TABLES
              QUERY_VARIABLES       = var
              RETURN                = breturn
              META                  = meta
            EXCEPTIONS
              BAD_VALUE_COMBINATION = 1
              USER_NOT_AUTHORIZED   = 2
              UNKNOWN_ERROR         = 3
              QUERY_NOT_FOUND       = 4
              OTHERS                = 5.
    If this class does not exist with this name in NW then I assume it must exist as another object since this is THE class for programming with query variables.
    Thanks for your support.
    Greetings,
    Martin

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Why the x$bh view does not exist?

    Why the x$bh view does not exist?
    SQL> select*from v$version;
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS for 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    SQL> conn system/oracle
    Connected.
    SQL> desc X$BH;
    ERROR:
    ORA-04043: object X$BH does not exist

    SQL> desc x$bh
    Name                            Null?    Type
    ADDR                                  RAW(4)
    INDX                                  NUMBER
    INST_ID                             NUMBER
    HLADDR                              RAW(4)
    BLSIZ                                  NUMBER
    NXT_HASH                             RAW(4)
    PRV_HASH                             RAW(4)
    NXT_REPL                             RAW(4)
    PRV_REPL                             RAW(4)
    FLAG                                  NUMBER
    RFLAG                                  NUMBER
    SFLAG                                  NUMBER
    LRU_FLAG                             NUMBER
    TS#                                  NUMBER
    FILE#                                  NUMBER
    DBARFIL                             NUMBER
    DBABLK                              NUMBER
    CLASS                                  NUMBER
    STATE                                  NUMBER
    MODE_HELD                             NUMBER
    CHANGES                             NUMBER
    CSTATE                              NUMBER
    LE_ADDR                             RAW(4)
    DIRTY_QUEUE                             NUMBER
    SET_DS                              RAW(4)
    OBJ                                  NUMBER
    BA                                  RAW(4)
    CR_SCN_BAS                             NUMBER
    CR_SCN_WRP                             NUMBER
    CR_XID_USN                             NUMBER
    CR_XID_SLT                             NUMBER
    CR_XID_SQN                             NUMBER
    CR_UBA_FIL                             NUMBER
    CR_UBA_BLK                             NUMBER
    CR_UBA_SEQ                             NUMBER
    CR_UBA_REC                             NUMBER
    CR_SFL                              NUMBER
    CR_CLS_BAS                             NUMBER
    CR_CLS_WRP                             NUMBER
    LRBA_SEQ                             NUMBER
    LRBA_BNO                             NUMBER
    HSCN_BAS                             NUMBER
    HSCN_WRP                             NUMBER
    HSUB_SCN                             NUMBER
    US_NXT                              RAW(4)
    US_PRV                              RAW(4)
    WA_NXT                              RAW(4)
    WA_PRV                              RAW(4)
    TCH                                  NUMBER
    TIM                                  NUMBERwrong USER

  • Manifest class-path does not works

    Hi,
    We use Jrockit 1.4.2 (latest) on Solaris.
    We found that manifest class-path does not seems to work, we got classdef not found messages.
    If we change the JVM to sun 1.4.2 that everything works perfectly.
    Manifest:
    Manifest-Version: 1.0
    Ant-Version: Apache Ant 1.5.2
    Created-By: 1.4.1_02-b06 (Sun Microsystems Inc.)
    Implementation-Title: com.clarify.igb.common.ejbserver
    Implementation-Version: 12.5.000
    Implementation-Vendor: Amdocs Inc.
    Specification-Title: ClarifyCRM Business Object Infrastructure
    Specification-Version: 12.5.000
    Specification-Vendor: Amdocs Inc.
    Class-Path: ClfyShared.jar ClfyCbo.jar ClfyClient.jar ClfyWebInf.jar C
    lfyiSupport.jar ClfyUtil.jar jdom.jar ClfyCommon.jar ClfySales.jar Cl
    fymOrder.jar ClfyiAdmin.jar ClfyBilling.jar ClfyBillingManager.jar Cl
    fyEmailProcessor.jar
    What can be the problem?
    Regards.,
    LJ

    Hi Jaejun,
    a.jar should also have a MANIFEST.MF Class-Path refering to b.jar.
    HTH
    Regards,
    Slava Imeshev
    "Jaejun Lee" <[email protected]> wrote in message
    news:3e541ede$[email protected]..
    >
    I meant <CRLF> not <CR> only.
    Thank you.
    "Jaejun Lee" <[email protected]> wrote:
    Ravinder Pal <[email protected]> wrote:
    I have read all message posted in this regard but my problem still
    remain.
    Please read the context to give me some pointers.
    myapp.ear contains
    - myejb.jar contains
    - manifest with Class-Path a.jar b.jar
    - a.jar (Internal)
    - b.jar (Some external Vendor)
    Problem: Call from a.jar classes which reference b.jar classes doesraise
    a ClassNotFoundException.
    Thanks.
    I have a similar problem with WebLogic 7.0 sp1.
    I have to verify this.
    Dose WebLogic support MANIFEST.MF Class-Path in development-mode.
    Indeed, I just put a.jar and b.jar in application directory.
    I put Class-Path: b.jar<carrage-return> in MANIFEST.MF of a.jar.
    But, a.jar cannot find classes in b.jar.
    Do I have to make EAR?

  • The authentication information provided does not match our records. Please verify your personal information and try again.

    i keep getting this error when i try to change my password.
    the authentication information provided does not match our records. please verify your personal information and try again.

    I have totally forgotten the answers to "security" questions.  Please help - I am 84 years old and somewhat lacking recall intelligence about what I might have declared earlier.
    <Personal Information Edited by Host>

  • Can I convert a proxy for a class that does not has any interfaces?

    Can I convert a proxy for a class that does not has any interfaces?

    Hi.
    I can hardly understand your question: what do you want your proxy (what kind of proxy?) to be converted into?
    All I can tell you is the following: Proxies created using java.lang.reflect.Proxy can only be created using an interface. This interface has to be implemented by the proxied object. So: no interface, no java.lang.reflect.Proxy.
    Bye.

  • Class OracleXMLStore does not exist error

    I get keep getting this error but don't know why
    ORA-29540 class OracleXMLStore does not exist
    Did anyone else get this error. When I try and run the
    oraclexmlsqltest.sql script I get this error. I installed the
    XML Sql utility and configured my class paths. I am using Oracle
    8.1.5 and Java 1.2.2
    Any help is appricated
    Thanks
    null

    I got the same thing, but found that some of the paths in the
    env.bat were not correct for my system. After I edited this
    file and ran it, I reloaded the classes. It worked fine after
    that.
    Minh Pham (guest) wrote:
    : Hi Murali,
    : I ran into the same problem as Arpan. I tried with different
    : versions of JDK (1.2.1, 1.2.2, and 1.1.5). Following your
    : suggestion, I installed JDK 1.1.8 (there is a JDK 1.1.7B-- I
    : didn't want to install a beta version of the JDK). The same
    : exact problem still persists.
    : My next questions are:
    : 1. How do you test to see if all the classes loaded
    correctly?
    : I ran the env.bat and oraclexmlsqlload.bat files, but I don't
    : exactly whether these files loaded the classes correctly.
    : 2. Is JDK 1.1.8 supported?
    : 3. Is there anymore documentation available? I followed all
    the
    : steps prescribed in the online documentation, but I still felt
    : something is missing.
    : Thanks for your help.
    : Minh
    : Oracle XML Team wrote:
    : : Hi Arpan,
    : : The problem could be that the classes did not get loaded
    : : correctly. One reason could be that you are using Java 1.2
    : : whereas the supported versions for 8.1.5 is JDK 1.7.
    : : Two things,
    : : Did u run oraclexmlsqlload.csh (or .bat for windows)
    first?
    : : Cause this is the one that loads all the classes (the
    : : oraclexmlsql.jar and xmlparser.jar into the database).
    : : Second, if u did, did the loadjava commands in
    : : oraclexmlsqlload.csh load sucessfully? If not please recheck
    : the
    : : JDK version and load these again.
    : : All oraclexmlsqltest.sql does is to check if these things
    : got
    : : loaded successfully.
    : : Thx
    : : Murali
    : : Arpan Desai (guest) wrote:
    : : : I get keep getting this error but don't know why
    : : : ORA-29540 class OracleXMLStore does not exist
    : : : Did anyone else get this error. When I try and run the
    : : : oraclexmlsqltest.sql script I get this error. I installed
    : the
    : : : XML Sql utility and configured my class paths. I am using
    : : Oracle
    : : : 8.1.5 and Java 1.2.2
    : : : Any help is appricated
    : : : Thanks
    : : Oracle Technology Network
    : : http://technet.oracle.com
    null

  • Implementation class ZCL_*****************does not exist

    Hi ,
    I implemented BADI - ME_PROCESS_PO_CUST ,tested in development system,worked well.
    When I moved it to Test system I am geting the below error.Is there any thing I need to do while transporting the implementation..
    Implementation class ZCL_IM_ME_PROCESS does not exist
    Message no. ENHANCEMENT363.
    Can any body temm me what sould I do now.
    Regards
    Rammohan.

    Hi,
    Are you sure the you have transported the class ZCL_IM_ME_PROCESS ?
    Check in SE24 --> Goto --> Object Directory entry --> Lock overview.
    May be the class was saved in a different request and you did not transport it
    Regards

  • MachineExceptions.h:245: error: declaration does not declare anything

    I've been having a terrible time trying to compile something and have worked through most issues, but running into this error:
    /System/Library/Frameworks/CoreServices.framework/Frameworks/CarbonCore.framewor k/Headers/MachineExceptions.h:245: error: declaration does not declare anything
    What little there is on the web seems to indicate that there's something perhaps messed up with vtk on intel macs? Or perhaps something else. I also can't seem to compile vtk from source at all, so couldn't fix it that way.
    Anyone have any suggestions?
    Mac Pro   Mac OS X (10.4.9)   8-core, x1900 vid

    Hi Jeff,
    > Well, geometric algebra need not encompass the
    whole of Clifford algebras in order to be a development
    in the field.
       Of course I'm not saying that Geometric Algebra must contain the entirety of the theory of Clifford Algebras in order to be a development in the area. I'm saying that it must leave the confines of that area to be a development. I'm sure you've encountered the word "subset" in the math you've already studied. There is nothing in the definition of a subset about how much of the parent set that the subset should contain. The only requirement of a subset is that it cannot leave the confines of the parent set. I don't care how much of the original theory is omitted, I'm just saying that there exists nothing outside of the original theory.
    > Are you saying the work being done is entirely redundant
    and should perhaps be abandoned for what's already
    been done in studying Clifford algebras and their
    generalizations?
       Now you're addressing the meaning of my statements; "Entirely redundant" does characterize a subset so yes, that is what I'm saying. However, you then read in additional meaning. No, I'm not saying that it should be abandoned. I tried to devote half of the original post to saying that a rose by any other name ...
    > Perhaps it's just the way you express yourself, but
    this topic does seem like it hits a nerve with you
       You are correct. I excluded my perception of plagiarism from the set of statements that I claim to be factual but it's difficult to hide my strong emotional response to that. I agree with everything you say about reformulations but there are right ways and wrong ways to do that. Consider the following search, Google search: Clifford site:geometricalgebra.org, for the word "Clifford" on their website. The only places it appears is in source code and then it is merely a reference to a conjugation operator. There is no mention of Clifford Algebras on their website. The right way would be to state the situation up front.
       I apologize for inflicting my emotional baggage on you. All I really wanted to do is to warn you. You have exactly the right attitude. I envy the sense of wonder and discovery that you now enjoy and the last thing I want to do is to dampen that. In fact, what I would most like to convey is that that feeling shouldn't diminish as you continue. What I fear and want to prepare you for is that when you are ready to branch out and learn the math, it will likely be more difficult than it should be because they haven't given the math foundation that you would need. My fear is that you might get the impression that the math itself is more difficult than it is. I don't want frustration to hinder your efforts to learn.
       You have a great attitude now. I'm convinced that you sense the power and the beauty of the subject. As long as you resist frustration and continue to learn, you should be fine. I assure you that the subject is worth any and all effort that you put into it.
    Gary
    ~~~~
       Before borrowing money from a friend,
       decide which you need more.
             -- Addison H. Hallock

Maybe you are looking for