Help needed to solve "java.io.NotSerializableException: java.util.Vector$1"

hi to all,
i am using a session less bean A to querry a Entity Bean B , which inturns calls another EntityBean C ,
finally a ' find' method is invoked on the EntityBean C, In this a vector is created which holds 3 different vectors at different indexes, now the problem i am facing is that when Enity Bean B is returning the final vector to the A , it's firing out a errors that :-
TRANSACTION COULD NOT BE COMPLETED: RemoteException occurred in server thread;
ested exception is:
java.rmi.RemoteException: null; nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread; ne
ted exception is:
java.rmi.RemoteException: null; nested exception is:
java.io.NotSerializableException: java.util.Vector$1
java.rmi.ServerException: RemoteException occurred in server thread; nested exc
ption is:
java.rmi.RemoteException: null; nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread; ne
ted exception is:
java.rmi.RemoteException: null; nested exception is:
java.io.NotSerializableException: java.util.Vector$1
java.rmi.RemoteException: null; nested exception is:
java.rmi.ServerException: RemoteException occurred in server thread; ne
ted exception is:
java.rmi.RemoteException: null; nested exception is:
java.io.NotSerializableException: java.util.Vector$1
java.rmi.ServerException: RemoteException occurred in server thread; nested exc
ption is:
java.rmi.RemoteException: null; nested exception is:
java.io.NotSerializableException: java.util.Vector$1
java.rmi.RemoteException: null; nested exception is:
java.io.NotSerializableException: java.util.Vector$1
java.io.NotSerializableException: java.util.Vector$1
<<no stack trace available>>
ur any help would be highly appricated to solve out this prob.
If i try to iterate through this vector it's gives IOR:0232003x343242344asdsd................................................blabla....................
thanxs in adavance
Deepak

Hi I think you are using the method elements() in a remote method.
This method can't be Serializable!! Because it returns an Interface. Interfaces are never Serializable.
Regards,
Peter

Similar Messages

  • Java.io.NotSerializableException: java.util.RandomAccessSubList

    Hi,
    I'm testing a software but I receive this error message:
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
            java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.util.RandomAccessSubList
            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 $Proxy7.getDataPackage(Unknown Source)
            at gaia.dpct.cu3.avu.gsr.server.GsrSourceIdServerRmiImpl.getDataPackage(GsrSourceIdServerRmiImpl.java:73)
            at gaia.dpct.cu3.avu.gsr.reader.GsrSystemRowReaderStrategy.loadData(GsrSystemRowReaderStrategy.java:52)
            at gaia.dpct.pfs.infraimpl.PFSGenericPersistenceManager.loadData(PFSGenericPersistenceManager.java:455)
            at gaia.dpct.pfs.infraimpl.PFSPersistenceManagerAdpaterImpl.loadData(PFSPersistenceManagerAdpaterImpl.java:318)
            at gaia.cu1.tools.infraimpl.GenericDataTrain.run(GenericDataTrain.java:546)
            at gaia.dpct.pfs.infraimpl.PFSDataTrainAdapterImpl.run(PFSDataTrainAdapterImpl.java:166)
            at gaia.dpct.pfs.nodes.TrainManager$TrainExecution.run(TrainManager.java:735)
            at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
            at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
            at java.util.concurrent.FutureTask.run(FutureTask.java:138)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: java.util.RandomAccessSubList
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1333)
            at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947)
            at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
            at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:155)
            ... 16 more
    Caused by: java.io.NotSerializableException: java.util.RandomAccessSubList
            at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)
            at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)
            at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1474)
            at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1392)
            at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1150)
            at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:326)
            at sun.rmi.server.UnicastRef.marshalValue(UnicastRef.java:274)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:315)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            ... 3 moreI checked all the code but the objects I use are instantiated from Serializable classes.
    I read something about "java.util.RandomAccessSubList" but what is this? I use List and Map.
    Are there problem with the List and the Map I use?
    Could someone help me?
    Thanks, bye bye.

    You have a List member whose value is derived from List.subList(), which is implemented by the class named in the exception, which isn't serializable. Change it to
    subList = new LinkedList<T>(list.subList());where T is whatever it should be.
    You should do this anyway, as the subList is merely a view of the original list, so if it was serializable it would take the entire original list with it.

  • Java.io.NotSerializableException: java.awt.AWTEventMulticaster

    I have an Applet. When I try to use the "print" feature on IE to print out the applet. I'm getting this Exception. java.io.NotSerializableException: java.awt.AWTEventMulticaster
    What should I do?
    Andy

    please help!!

  • Java.io.NotSerializableException: java.util.Vector$1

    I am using Java 2 in the API it says that the Vector implements Serializable but I am getting an exception java.io.NotSerializableException: java.util.Vector$1 I don't know why please help.
    Thank you
    palanisr

    Although Vectors are Serializable that doesn't mean that the contents of a Vector are necessarily Serializable. What are the contents of your Vector? Are they objects of a Serializable class? If not that is your problem. The attached sample code demonstrates the problem of serializing a Vector that contains non-serializable data. If you make the Employee class Serializable the code works.
    import java.util.*;
    import java.io.*;
    public class Serialize
    public static void main(String args[])
      ObjectOutputStream oos = null;
      FileOutputStream fos = null;
      Vector v = new Vector();
      v.add(new Employee("Smith","John"));
      v.add(new Employee("Jones","Albert"));
      try
       fos = new FileOutputStream("vector.ser");
       oos = new ObjectOutputStream(fos);
       oos.writeObject(v);
      catch(FileNotFoundException fnfe)
       fnfe.printStackTrace();
      catch(IOException ioe)
       ioe.printStackTrace();
      finally
       try
        if (oos != null)
         oos.close();
       catch(IOException ioe)
       try
        if (fos != null)
         fos.close();
       catch(IOException ioe)
    class Employee //implements Serializable
    private String lastName;
    private String firstName;
    public Employee(String lastName, String firstName)
      this.lastName = lastName;
      this.firstName = firstName;
    }

  • Java.io.NotSerializableException: java.awt.BasicStroke - really confusing

    I have a class Box which has two member Size and Location, both Serializable.
    Then I have several classes (e.g. Node) which extend Box.
    None of all the classes (Box, Size, Location and all extensions of Box e.g. Node) use BasicStroke. I commented out the import of BasicStroke in all classes that are Serializable, so it cannot be used anywhere.
    The problem is I use drag and drop, and when Box is also Serializable I get the following error when trying to drop:
    java.io.NotSerializableException: java.awt.BasicStroke
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1081)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1251)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1075)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:391)
         at java.util.Vector.writeObject(Vector.java:1018)
         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:585)
         at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:917)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1339)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
         at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
         at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
         at sun.awt.datatransfer.TransferableProxy.getTransferData(TransferableProxy.java:66)
         at java.awt.dnd.DropTargetContext$TransferableProxy.getTransferData(DropTargetContext.java:359)
         at kfotobook.kgui.KPageViewer.getFlavorData(KPageViewer.java:767)
         at kfotobook.kgui.KPageViewer.getFlavorData(KPageViewer.java:750)
         at kfotobook.kgui.KPageViewer.drop(KPageViewer.java:791)
         at java.awt.dnd.DropTarget.drop(DropTarget.java:430)
         at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(SunDropTargetContextPeer.java:500)
         at sun.awt.dnd.SunDropTargetContextPeer.access$800(SunDropTargetContextPeer.java:53)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(SunDropTargetContextPeer.java:812)
         at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(SunDropTargetContextPeer.java:736)
         at sun.awt.dnd.SunDropTargetEvent.dispatch(SunDropTargetEvent.java:29)
         at java.awt.Component.dispatchEventImpl(Component.java:3826)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processDropTargetEvent(Container.java:3963)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3817)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    I do not know how to better describe the error, because I have no clue why BasicStrokes is tried to serialize at all. I am really confused, but perhaps somebody has seen something similar and can give a hint.
    Message was edited by:
    kudi

    Thanks for the hint. Actually I must say once more that I was too tired that I have overseen a memeber field because of bad code layout :-( I better went to sleep...
    But there is still something confusing, that is also the reason why I did not search for the fields in the right class.
    So I have a class Box and a class Node which extends Box. Node is the one which contains the evil AWT references. When I declare only Node as Serializable, it works. But when I also declare the super class Box as Serializable the error occured.
    In my opinion a Serializable sub class with a super class which does not implement Serializable does not make sence, but as an accident I did it. What is the semantic in such a case? (At least I know it could not serialize the sub class as expected...)
    Message was edited by:
    kudi

  • Help needed in solve my issue in sapscript.

    Hi all,
    I have a requirement to prin the terms and condiions after my Po layout. for this i have created 4 pages for terms and condition. Each page i have included two windows. One is main window and another window is having the text to be printed.
    in standard attributes i have assigned as
    page                         next page
    first                           next
    next                          last
    last                           last1
    last1                          last2
    last2                          last3
    last3                          last3.
    Here my issue is only the first page of the terms and conditions are printing in the output... Remaining text dint print..
    Please help me to solve the issue....
    Thanks
    Ahamed
    Edited by: Ahamed Anish on Oct 22, 2011 3:27 PM

    Locked Out, Forgot Lock or Restrictions Passcode, or Need to Restore Your Device: Several Alternative Solutions
    A
    1. iOS- Forgotten passcode or device disabled after entering wrong passcode
    2. iPhone, iPad, iPod touch: Wrong passcode results in red disabled screen
    3. Restoring iPod touch after forgotten passcode
    4. What to Do If You've Forgotten Your iPhone's Passcode
    5. iOS- Understanding passcodes
    6. iTunes 10 for Mac- Update and restore software on iPod, iPhone, or iPad
    7. iOS - Unable to update or restore
    Forgotten Restrictions Passcode Help
                iPad,iPod,iPod Touch Recovery Mode
    You will need to restore your device as New to remove a Restrictions passcode. Go through the normal process to restore your device, but when you see the options to restore as New or from a backup, be sure to choose New.
    You can restore from a backup if you have one from BEFORE you set the restrictions passcode.
    Also, see iTunes- Restoring iOS software.

  • Urgent help need to solve wlst  RuntimeMBeanServer is not enabled

    I am using wlst to connect to a osb but I am getting the following errors:
    How can enable RuntimeMBeanServer using the console ?
    [wlst] The CompatabilityMBeanServer is not initialized properly.
    [wlst] This might happen if the CompatabilityMBeanServer is
    [wlst] disabled via the JMXMBean.
    [wlst]
    [wlst] To view the root cause exception use dumpStack()
    [wlst] WLST detected that the RuntimeMBeanServer is not enabled. This
    [wlst] might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
    [wlst] Please ensure that this MBeanServer is enabled. Online WLST cannot
    [wlst] function without this MBeanServer.
    [wlst] Traceback (innermost last):
    [wlst] File "/tmp/wlsttempfile1273502167.py", line 8, in ?
    [wlst] File "<iostream>", line 22, in connect
    [wlst] File "<iostream>", line 646, in raiseWLSTException
    [wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST."
    [wlst] Use dumpStack() to view the full stacktrace
    [wlst] Exception in thread "main" java.lang.IllegalStateException: Traceback (innermost last):
    [wlst] File "/tmp/wlsttempfile1273502167.py", line 8, in ?
    [wlst] File "<iostream>", line 22, in connect
    [wlst] File "<iostream>", line 646, in raiseWLSTException
    [wlst] WLSTException: Error occured while performing connect : "Cannot connect to WLST."
    [wlst] Use dumpStack() to view the full stacktrace
    [wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.printError(WLSTInterpreterInvoker.java:110)
    [wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.executePyScript(WLSTInterpreterInvoker.java:103)
    [wlst]      at weblogic.management.scripting.WLSTInterpreterInvoker.main(WLSTInterpreterInvoker.java:27)
    [wlst] Java Result: 1

    N Gasparotto wrote:
    bsac14 wrote:
    my database is in no archive mode
    can you please tell how to restore
    yes it is a datafile corruptionYou did not say how you defined that's a datafile corruption. You provide minimum to zero information.
    I just need to bring the database up,no need any exact data
    I can refresh from prod laterThen drop and recreate database. Basically and since you are not in archive mode, no recover is possible. Period.
    Nicolas.Hi,
    How did you come to the conclusion that your datafile is corrupted? Can you provide and supported logs?
    Regards .....

  • Java.io.NotSerializableException: java.util.Hashtable$KeySet

    Hi,
    i have a
        private Hashtable<IDInterface, String> globalPeerFarmMap_=new Hashtable<IDInterface,String>();    in one class and it can be serialized OK.
    In another class, however i have a     private Hashtable<IDInterface, PeerBasic> thesePeers_=new Hashtable<IDInterface, PeerBasic>();     and a java.io.NotSerializableException is thrown - on the KeySet it seems.
    However, ID (which implements IDInterface) is serializable (and all its fields are serializable) and it works in the first case.
    Any ideas? Didn't want to be confusing, but if simplistic i will post some code.
    Thanks

    Found it. The compiler didn't provice much info. Somewhere inside PeerBasic, i call keySet on a Hashtable. I don't understand why this cause a problem.

  • Help needed in solving ArrayOutOfBoundsException

    This is the stacktrace of the error I get. I am unable to catch this exception that happens even if i try/catch the whole page. Since I am unable to catch the exception, I am unable to locate the error. This error occurs 100% of the time and sometimes it loads 1/2 of the page before this error occurs at the end of the page. Can anyone give any advice on how to solve this problem or have encountered this problem before ? Thanks in advance
    I am using Oracle 10g Application server 10.1.2.
    OracleJSP:
    JSP Error:
    Request URI:xxxxxx.jsp
    Exception:
    java.lang.ArrayIndexOutOfBoundsException: 8192
         at com.evermind.server.http.AJPHttpServletResponse.commit(AJPHttpServletResponse.java:595)
         at com.evermind.server.http.EvermindServletOutputStream.flushBuffer(EvermindServletOutputStream.java:64)
         at com.evermind.server.http.EvermindServletOutputStream.write(EvermindServletOutputStream.java:186)
         at com.evermind.server.http.EvermindJSPWriter.writeOut(EvermindJSPWriter.java:475)
         at com.evermind.server.http.EvermindJSPWriter.jspflush(EvermindJSPWriter.java:392)
         at com.evermind.server.http.EvermindJSPWriter.close(EvermindJSPWriter.java:363)
         at oracle.jsp.runtime.OracleJspRuntime.extraHandlePCFinally(OracleJspRuntime.java:1460)
         at search.jspService(_xxxxxx.java:3293)
         [SRC:/xxxxxx.jsp]
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:257)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:224)
         at init.jspService(_init.java:227)
         [SRC:/init.jsp:160]
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:220)
         at com.evermind.server.http.GetParametersRequestDispatcher.forward(GetParametersRequestDispatcher.java:257)
         at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:224)
         at process.jspService(_process.java:408)
         [SRC:/process.jsp:354]
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:347)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:509)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:413)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
         at java.lang.Thread.run(Thread.java:534)

    check the following locations
    process.jsp: line 354
    init.jsp: line 160 and
    _xxxxxx.java: line 3293
    Looks like you are using a tag the wrong way (e.g. without setting it up properly). The _xxxxxx.java is the java code cenerated from the jsp xxxxxx.jsp. Try reading throw the code to identify the location in the jsp which causes the error.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Help needed in learning the basics of Java Smart Card and implementation?

    Hello every body,
    I am trying to develop the applications on java contactless smart cards technology.
    Can any body give me the details like how to start?
    What are the required softwares and installation procedure and path settings and etc.?
    I am the beginner in java smart card application development.
    plz help me out

    Dear Friend,
    I would advice to divide learning into two main parts: JavaCard technology and contactless RFID cards. For JavaCard technology you can find useful articles on Sun web-site (developers.sun.com/mobility/javacard/articles/javacard1/). For contactless RFID you can find few useful books at Amazon. Regarding software you need JC development kit. How to install it there is an instrunction in JCDK user guide.
    If it is not a secret what a javacard contactless card you are going to use in your work?
    Yours
    Dmitri

  • Help needed to iterat a List in Java

    HI,
    I am new to Java and I am not sure how to do this.Please help me with following.
    I have a List called injuryList which contains all my injury data from database,how do I iterate it with for loop and get my data.
    List<InjuryRecord> injuryList = (List<InjuryRecord>)model.get("injuryRecord");
    //I have to do something like this...I am not sure how to do it..
    for(int i =0; i??? ; i++)  (please help me with the middle condition)
       injuryList.get(i)
    or should I iterate like this:
    for (Iterator itr = injuryList.iterator(); itr.hasNext();) {
           Object o = itr.next();    }
    but how do I pull data from injuryList..Please help me
    If possible I want to do with for loop.
    Please help...
    Thanks,

    Darryl.Burke wrote:
    Umm.. devote a little time to thinking about this, but with the limited information, I'm guessing a bit..
    -- Which class has a method getIjuryNumber() (is there a typo there?)*** Yes, it was a typo,,I just corrected it
    -- What is the class of the object returned by injuryList.get (i) (is there a semicolon missing there?)** there is a class called InjuryRecord.java which has all getters and setters ..which I have included in my imports
    No semicolon is not missing,,it was typo
    -- (Maybe this should come first) Do you understand that a method returns a reference to an object (or void)?*****No, I am not sure about this
    >
    So, finally, should the parameter to method yyy be a list, or an object retrieved from the list using get (...)?
    ******I think it should be a List,it doesn't have to though..but I thought if I pass the List I can get each field....How does it work with object??
    db

  • Help me to Solve Numerical Errors in Java

    Does anyone here knows how to solve/minimize/fixed numerical errors in JAVA..
    syntax:
    System.out.println(1.2 + 1.2 + 1.2);
    // output is 3.5********** not 3.6;

    user590232,
    This works for me using JDK 1.6
    public class Whatever {
      public static void main(String[] args) {
        System.out.println((12 + 12 + 12) / (float) 10);
    }Good Luck,
    Avi.

  • Help Needed urgently - MKTCALENDAR button removal from java applet

    Hi Experts ,
    We have a requirement to remove buttons from the markeing calendar/projects applet .
    In Marketing->Search->Marketing Calendar , when we click on search button , result is displayed in the result view . This is a java applet and has a toolbar with buttons like new,save,copy etc,fields with drop down and also the result list below it.
    We have the option to prevent the button functionalities by controlling authorization to SAP objects.But my requirement is to completely hide these buttons from getting displayed in the applet view.
    Can anyone help me regarding how to remove the buttons from the java applet  .
    Appreciate the help a lot.
    Thanks
    Swapna.

    hii,
    checkout my add from, HTH
    [http://forums.sun.com/thread.jspa?threadID=5419921&messageID=10885709#10885709]
    ... kopik

  • Help need to solve in calculating the grades of students

    select * from std where cno = 'CS 130' and csno= 2 and sfname='Yvonne';
    SFNAME SLNAME CNO CSNO AC MARKS
    Yvonne Williams CS 130 2 PA 77
    Yvonne Williams CS 130 2 QZ 92
    Yvonne Williams CS 130 2 QZ 76
    Yvonne Williams CS 130 2 QZ 99
    Yvonne Williams CS 130 2 QZ 99
    Yvonne Williams CS 130 2 HW 92
    Yvonne Williams CS 130 2 HW 91
    Yvonne Williams CS 130 2 HW 74
    Yvonne Williams CS 130 2 HW 74
    Yvonne Williams CS 130 2 Mi 92
    Yvonne Williams CS 130 2 Fi 77
    11 rows selected.
    Select * from gpol where cno = 'CS 130' and csno= 2;
    CNO CSNO GP PTAKEN D
    CS 130 2 Final Exam 30
    CS 130 2 Homework 20 Y
    CS 130 2 Midterm Exam 20
    CS 130 2 Participation 10
    CS 130 2 Quiz 20 Y
    here D= drop lowest. PTAKEN is the percentage taken. According to these 2 tables I have to drop the lowest score in HW and QZ and find the average of the remaining scores. After that according to the grading policy I have to calculate the grade points. Like this there are many courses and different grading policies.
    Any help is really appreciated.
    Thanks
    Smitha

    Hi Hoek and Frank,
    Thnks for ur replies. I tried Hoek method also. It didn't work. let me tell u in detail with giving information about the tables used here. Plz hav pateince 2 read it.
    1) create table student (
    ID varchar2(7) not null,
    sfname varchar2(20) not null,
    slname varchar2(20) not null,
    constraint id_pk primary key (ID)
    I'm just displaying a part of output here
    SQL> select * from student;
    ID SFNAME SLNAME
    CS00000 Jeff Runyan
    CS00001 J. Landry
    CS00002 Laetia Ension
    CS00003 Z.A. Scrittorale
    CS00004 Sarah Wilson
    CS00005 Irv Dalvi
    CS00006 Daniel Wicelinski
    CS00007 Michael Carcia
    CS00008 Roy Limate
    CS00009 J. Segall
    CS00010 Gerard Biers
    2) create table section (
    cno char(6) not null,
    csno number(1) not null
    check (csno<10),
    slno char(3) not null
    constraint sec_pk primary key (slno),
    constraint cn_uk unique (cno, csno)
    SQL> select * from section;
    CNO CSNO SLN
    CS 10 2 000
    CS 20 2 001
    CS 20 4 002
    CS 20 7 003
    CS 20 8 004
    CS 25 1 005
    CS 25 2 006
    CS 25 3 007
    CS 25 4 008
    CS 25 5 009
    CS 25 6 010
    3) create table course (
    cno char(6) not null,
    descript varchar(40) not null,
    cost number(8,2),
    prereq char(6),
    credit number(1) default '3' not null,
    constraint cn_pk primary key (cno)
    SQL> select * from course;
    CNO DESCRIPT COST PREREQ CREDIT
    CS 10 DP Overview 1195 3
    CS 20 Intro to Computers 1195 3
    CS 25 Intro to Programming 1195 CS 140 3
    CS 80 Structured Programming Techniques 1595 CS 20 3
    CS 100 Hands, On Windows 1195 CS 20 3
    CS 120 Intro to Java Programming 1195 CS 80 3
    CS 122 Intermediate Java Programming 1195 CS 120 3
    CS 124 Advanced Java Programming 1195 CS 122 3
    CS 125 JDeveloper 1195 CS 122 3
    CS 130 Intro to Unix 1195 CS 20 3
    CS 132 Basics of Unix Admin 1195 CS 130 3
    4) create table activity (
    AID char(2) not null,
    activity varchar2(7) not null
    check (activity in ('Final', 'Midterm', 'Project', 'PA', 'PA_1', 'PA_2', 'PA_3', 'PA_4’, 'PA_5', 'PA_6', 'PA_7', 'PA_8', 'PA_9', 'PA_10', 'PA_11', 'PA_12', 'HW', 'HW_1', 'HW_2', 'HW_3', 'HW_4', 'HW_5', 'HW_6', 'HW_7', 'HW_8’,
    'HW_9', 'HW_10', 'QZ', 'QZ_1', 'QZ_2', 'QZ_3', 'QZ_4')),
    constraint aid_pk primary key (AID)
    AI ACTIVIT
    00 Midterm
    01 Project
    02 QZ
    03 QZ_1
    04 QZ_2
    05 QZ_3
    06 QZ_4
    07 PA
    08 PA_1
    09 PA_2
    10 PA_3
    5) create table studentrecord (
    ID varchar2(7) not null,
    slno char(3) not null,
    aid char(2) not null,
    marks number(3) not null
    check (marks <= 100),
    constraint idsr_fk foreign key (ID)
    references student (ID) on delete set null,
    constraint slsr_fk foreign key (slno)
    references section (slno) on delete set null,
    constraint aidsr_fk foreign key (AID)
    references activity (AID) on delete set null
    SQL> select * from studentrecor
    ID SLN AI MARKS
    CS00000 000 07 91
    CS00000 000 03 76
    CS00000 000 04 90
    CS00000 000 05 83
    CS00000 000 06 73
    CS00000 000 21 76
    CS00000 000 22 75
    CS00000 000 23 98
    CS00000 000 24 98
    CS00000 000 00 76
    CS00000 000 31 91
    ID SLN AI MARKS
    CS00001 001 07 91
    CS00001 001 03 76
    CS00001 001 04 90
    CS00001 001 05 83
    CS00001 001 06 73
    CS00001 001 21 76
    CS00001 001 22 75
    CS00001 001 23 98
    CS00001 001 24 98
    CS00001 001 00 76
    CS00001 001 31 91
    Now I created a view based on these tables as
    CREATE OR REPLACE VIEW std AS
    SELECT sfname, slname, section.cno, csno, substr (activity, 1, 2) as activity, marks FROM student, studentrecord, section, course, activity WHERE student.id= studentrecord.id and studentrecord.slno = section.slno and section.cno = course.cno and studentrecord.aid = activity.aid ;
    6) create table gp (
    gpno char(2) not null,
    gp varchar2(13) not null
    check (gp in ('Final Exam', 'Midterm Exam', 'Project', 'Participation', 'Quiz', 'Homework')),
    constraint g_pk primary key (gpno)
    GP GP
    00 Participation
    01 Project
    02 Final Exam
    03 Midterm Exam
    04 Quiz
    05 Homework
    7) create table gpcourse (
    slno char(3) not null,
    gpno char(2) not null,
    ptaken number(3) not null
    check(ptaken <=100),
    dropl char(1)
    check (dropl in (‘Y’)),
    constraint s_fk foreign key (slno)
    references section (slno) on delete set null,
    constraint g_fk foreign key (gpno)
    references gp (gpno) on delete set null
    SQL> select * from gpc
    SLN GP PTAKEN D
    000 02 30
    000 05 20 Y
    000 03 20
    000 00 10
    000 04 20 Y
    001 02 30
    001 05 20 Y
    001 03 20
    001 00 10
    001 04 20 Y
    002 00 25 Y
    SLN GP PTAKEN D
    002 01 75
    003 02 60
    003 03 40
    004 02 60
    004 03 40
    005 02 50
    005 05 10 Y
    005 03 25
    005 00 5
    005 04 10
    006 02 30
    Now i created one more view
    CREATE OR REPLACE VIEW gpol AS
    SELECT section.cno, csno, gp, ptaken, dropl FROM gp, gpcourse, section, course WHERE gpcourse.slno= section.slno and section.cno= course.cno and
    gp.gpno = gpcourse.gpno;
    Now let me know where I'm going wrong?

  • Help needed in solving issue regarding shwoing data

    Hello,
    I am using obiee 11g,I am trying to create a report for finding the usage for each user.
    Now i have auser column and usage 5 columns.
    Each usage column is from 4 tables,3 from 3 diff tables and 2 columns from 1 tables.
    I have a head prompt so that report gets filtered for head.
    And the users belonging to head will display in the report.
    Now the problem is especailly when i dont have data for a user for col4 or col5 of table4
    of the report in the database.The reports starts showing "No Data Found".Even though
    there are data for col1(tabe1),col2(table2),col3(table3).
    I can't put ifnull because there are no data itself its not as there are null data.
    So confused where am i going wrong?
    Users are coming from tableA with left outer join with othere table1,table2,table3,table4 on username
    Please help me out.
    Any help?
    Thanks

    Hi User,
    You can better go for "Save Current Customization" option available in Edit Dashboard to have user specifi default prompt values.
    Rgds,
    Dpka

Maybe you are looking for

  • How do I Create a Hyperlink to other text within same email?

    I want to use Mail to send out Newsletters. Content section would contain hyperlinked text to each section (or Heading in PC world) below. How do I create a hyperlink to text within the same email? It's not hard to do in the PC world, how about the M

  • Sap Query Additional Fields using  Abap Code

    Hi Experts, I am relatively new to the world of SAP query (Log Database PNPCE), I have written a number of additional fields to retrieve previous info-type data using the select statement E.G prev_endda = p0008-begda - 1. SELECT  single bsgrd       I

  • Outlook for Mac - Calendars Suddenly Hiding

    Hello everyone, I've been scouring the net trying to find someone else having this issue and have not had any luck. Hoping maybe one of you might have some insight. We are running Exchange 2010. I have a Mac user who is running OS X 10.4.4 and (as of

  • Looking for a Codec

    I have no clue where to start looking or even what exactly I'm looking for, but I'm after the codec for Quicktime which allows me to play .avi files of the "MP42" type. Anyone know where I can go for that? Thanks, Felixia G4 iBook   Mac OS X (10.3.9)

  • Anyone using MBA with Aperture?

    I'm considering getting an MBA, but (aside from the limited hd space) I'm concerned about how efficiently it will run aperture. If you are a current owner and work with aperture regularly, I would appreciate your feedback. Thanks!