Serializable interface problems

I am playing around with the Serializable interface and created a class:
import java.io.Serializable;
public class SerialMessage implements Serializable {
     public byte[] from = new byte[4];
     public byte[] to = new byte[4];
     public byte[] message = new byte[50];
Next I created somethign that would use this class
import java.io.*;
public class SOMessageUser {
     public static void main (String[] args) {
          SerialMessage one = new SerialMessage();
          SerialMessage two = new SerialMessage();
          byte[] serializedMessage;
          try {
               ByteArrayOutputStream baos = new ByteArrayOutputStream();
               ObjectOutputStream oos = new ObjectOutputStream(baos);
               System.out.print("From: ");
               System.in.read(one.from);
               System.out.print("\n");
               System.out.print("To: ");
               System.in.read(one.to);
               System.out.print("\n");     
               System.out.print("Message: ");
               System.in.read(one.message);
               System.out.print("\n");
               oos.writeObject(one);
               serializedMessage = baos.toByteArray();
               ByteArrayInputStream bais = new ByteArrayInputStream(serializedMessage);          
               ObjectInputStream ois = new ObjectInputStream(bais);          
               two = (SerialMessage)ois.readObject();
               System.out.print ("From: " + two.from.toString());
               System.out.print ("To: " + two.to.toString());
               System.out.print (two.message.toString());
          } catch (Exception e) {
               e.printStackTrace();
Very simple as you can see somewhere I have a logical error classes compile and run but here is the output.
From: as
To: sa
Message: qwertyuiopasdfghjklzxcvbn
From: [B@422edeTo: [B@112f614[B@1d9dc39[root@linux-lev root]#
why is it that I am gettig these numbers which I am guessing are addresses instead of my byte[]'s?

Hi,
>
               System.out.print ("From: " + two.from.toString());
               System.out.print ("To: " + two.to.toString());
               System.out.print (two.message.toString());
          Replace your above lines with the following ones:
               System.out.print ("From: " + new String(two.from));
               System.out.print ("To: " + new String(two.to));
               System.out.print (new String(two.message));

Similar Messages

  • Comparable and Serializable interfaces

    Hi All,
    I have developed a program in java which implements Comparable and Serializable Interfaces. After, I decided to run the program in J2ME. But later on, I found that MIDP doesn't implement these interfaces.
    Some one can help me how to implement my own interfaces.
    Thank you

    Hi Supareno
    I need urgently your help.
    I developed Java program which works as predicitive text system for my mother tongue.I would like to move from Java to J2ME. But until now I have problems. please can u help me. the following code run in command line.
    I tried to develop my own interfaces as you told me but it doesn't work.
    Help me also for reading and writing text files.
    Thank you
    import java.util.*;
    import java.io.*;
    import java.util.Vector;
    import java.util.Enumeration;
    public class PredText {
    private Vector dict;
    public static final String dictionaryFile = "C:/java/words.txt";
    // convert a string to the corresponding signature
    public static String toNumeric (String word) {
    String lowerWord = word.toLowerCase();
    StringBuffer result = new StringBuffer("");
    for (int i = 0; i < lowerWord.length(); i++) {
    char c = lowerWord.charAt(i);
    if ("abc".indexOf(c) > -1) result.append("2");
    else if ("def".indexOf(c) > -1) result.append("3");
    else if ("ghi".indexOf(c) > -1) result.append("4");
    else if ("jkl".indexOf(c) > -1) result.append("5");
    else if ("mno".indexOf(c) > -1) result.append("6");
    else if ("pqrs".indexOf(c) > -1) result.append("7");
    else if ("tuv".indexOf(c) > -1) result.append("8");
    else if ("wxyz".indexOf(c) > -1) result.append("9");
    else if (" ".indexOf(c) > -1) result.append("9");
    else result.append("?");
    return result.toString();
    // find all the words corresponding to a signature
    public Vector findMatches(String sig) {
    WordSig ws = new WordSig(sig, "");
    WordSig newws;
    Vector results = new Vector();
    int index;
    index = Collections.binarySearch(dict, ws);
    if (index < 0){
    // no matches! :(
    // try to get the string that starts with a substring like ours.
    index=-1-index;
    if (((WordSig)dict.get(index)).getSig().startsWith(sig)) {
    // no word found. we return those starting with the
    // same signature
    newws = (WordSig) dict.get(index);
    results.addElement(newws.getWord().substring(0,sig.length()));
    return results;
    } else{
    //no match
    return results;
    } else {
    // go back to the first match
    while(((WordSig)dict.get(index)).getSig().equals(sig) && index>0)
    index--;
    if (index != 0)
    index++;
    while ((newws = (WordSig) dict.get(index)).equals(ws)){
    results.addElement( newws.getWord() );
    index++;
    return results;
    // intialises the dictionary
    public PredText () {
         String word;
    String sig;
    Vector dict = null;
    // first try to load dict.dat
    try {
    System.out.print("Trying to load dict.dat...");
    FileInputStream fileStream = new FileInputStream("C:/java/dict.dat");
    ObjectInputStream objectStream = new ObjectInputStream(fileStream);
    dict = (Vector) objectStream.readObject();
    fileStream.close();
    System.out.println(" done.");
    }catch (ClassNotFoundException classNotFoundException) {
         System.out.println("Unable to create an object");     
    catch (IOException e) {
    // exception: create the dictionary
    System.out.println("Error. I'm going to recreate the dictionary file");
    try {
    dict = createDict();
    catch (IOException ioe) {
    System.err.println("Error while creating dictionary file. Exiting." + e);
    System.exit(1);
    this.dict = dict;
    // create the dictionary serialised file
    public Vector createDict () throws IOException {
    String word;
    Vector dict = new Vector();
    //open the dictionary file
    System.out.print("Reading the dictionary... ");
    BufferedReader dictFile = new BufferedReader(
    new FileReader(dictionaryFile));
    //insert each word into the data structure
    while ((word = dictFile.readLine()) != null) {
    word = word.toLowerCase();
    dict.addElement(new WordSig(toNumeric(word), word));
    // List list = dict.subList(0, dict.size());
    List list = dict.subList(0, dict.size());
    Collections.sort(list);
    System.out.println("done.");
    System.out.print("Writing the dictionary... ");
    FileOutputStream fileStream = new FileOutputStream("C:/java/dict.dat");
    ObjectOutputStream objectStream = new ObjectOutputStream(fileStream);
    objectStream.writeObject(dict);
    objectStream.flush();
    fileStream.close();
    System.out.println("done.");
    return dict;
    public static void main (String args[]) {
         PredText pt = new PredText();
    if (args.length == 0) {
    // no arguments, find the largest clash
         Vector result;
         Enumeration e = pt.dict.elements();
    String currentSig = "";
    String prevSig = "";
    int clash = 0;
    int maxClash = 0;
    String clashSig = "";
    while (e.hasMoreElements()) {
    WordSig ws = (WordSig) e.nextElement();
    currentSig = ws.getSig();
    if (currentSig.equals(prevSig)) {
    // another word with the same signature
    clash ++;
    } else {
    // new signature: check if the previous one led
    // to a maximal clash
    if (clash > maxClash) {
    clashSig = prevSig;
    maxClash = clash;
    clash = 1;
    prevSig = currentSig;
    result = pt.findMatches(clashSig);
    System.out.println("The signature leading to most clashes is "
    + clashSig + " with " + result.size() +
    " number of clashes");
    for (int j = 0; j < result.size(); j++) {
    System.out.println((String)result.get(j));
    } else if ("0123456789".indexOf(args[0].charAt(0)) > -1){
    // numeric input: find the matches for the argument
    Vector result;
    result = pt.findMatches(args[0]);
    for (int j = 0; j < result.size(); j++) {
    System.out.println((String)result.get(j));
    } else {
    // convert each word to the corresponding signature
    for (int i = 0; i < args.length; i++) {
    System.out.print(toNumeric(args) + " ");
    class WordSig implements Comparable, Serializable {
    String word;
    String sig;
    public WordSig (String sig, String word) {
    this.sig = sig;
    this.word = word;
    public String getSig () {
    return this.sig;
    public String getWord() {
    return this.word;
    public int compareTo (Object ws) {
    return sig.compareTo(((WordSig) ws).getSig());
    public boolean equals (Object ws) {
    return sig.equals(((WordSig) ws).getSig());
    public String toString () {
    return sig + ", " + word;

  • Comparable and Serializable Interfaces in MIDP

    Hi All,
    I have developed a program in java which implements Comparable and Serializable Interfaces. After, I decided to run the program in J2ME. But later on, I found that MIDP doesn't implement these interfaces.
    Some one can help me how to implement my own interfaces.
    Thank you

    Thank you for replying to me.
    My problem is to compare to objects in MIDP.
    You know that in java is possible to implements directly the Comparable interface but in MIDP is not the same. So I think it requires to create your own. Is that my question.
    I need some to help me. just to avoid the implentation of comparable interface from the java lang package.
    Thank u.

  • What is the use of Serializable Interface in java?

    Hello friends,
    I have one dout and i want to share with u guys:
    Why Serializable interface made and actully
    what's the use of it?
    At which place it become useful ?
    It is not contain any method then why it is made?
    If anyone have any idea about this then please reply.
    Thanks in advace
    Regards,
    Jitendra Parekh

    t is not contain any method then why it is made?To point out to the user of a class (and the programs) that the design of this class is conforming to certain restraints needed for Serialization.

  • Failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema

    I have generated my Web Service Client Control Class based on WSDL file provided by Web Service Provider using JAX-RPC in "Oracle Workshop for WebLogic version 10.3".
    I am using Web Service Client Control class in WebLogic Portal portlet backing class to invoke Web Service. But while invoking Web Service, I am getting following error:
    Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
    javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://xyz.com/abc/UpdateSR']:updateSRRequest}
    Here is the code of my Portlet Backing class where I am using Service Control to invoke Web Service:
    URL webServiceUrl = new URL(webServiceLocation);
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    QName qName = new QName(nameSpaceURI, serviceName);
    Service siebelService = serviceFactory.createService(webServiceUrl, qName);
    updateSRServiceControl siebelServiceProxy = (updateSRServiceControl)siebelService.getPort(qName, updateSRServiceControl.class);
    UpdateSRResponse updateSRResponse = siebelServiceProxy.updateSR(updateSRRequest);
    Please let me know if more information required.
    I appreciate for help.
    Thanks in advance.
    Regards
    Neeraj

    I have generated my Web Service Client Control Class based on WSDL file provided by Web Service Provider using JAX-RPC in "Oracle Workshop for WebLogic version 10.3".
    I am using Web Service Client Control class in WebLogic Portal portlet backing class to invoke Web Service. But while invoking Web Service, I am getting following error:
    Caused by: java.rmi.RemoteException: Failed to invoke; nested exception is:
    javax.xml.soap.SOAPException: failed to serialize interface javax.xml.soap.SOAPElementweblogic.xml.schema.binding.SerializationException: mapping lookup failure. class=interface javax.xml.soap.SOAPElement class context=TypedClassContext{schemaType=['http://xyz.com/abc/UpdateSR']:updateSRRequest}
    Here is the code of my Portlet Backing class where I am using Service Control to invoke Web Service:
    URL webServiceUrl = new URL(webServiceLocation);
    ServiceFactory serviceFactory = ServiceFactory.newInstance();
    QName qName = new QName(nameSpaceURI, serviceName);
    Service siebelService = serviceFactory.createService(webServiceUrl, qName);
    updateSRServiceControl siebelServiceProxy = (updateSRServiceControl)siebelService.getPort(qName, updateSRServiceControl.class);
    UpdateSRResponse updateSRResponse = siebelServiceProxy.updateSR(updateSRRequest);
    Please let me know if more information required.
    I appreciate for help.
    Thanks in advance.
    Regards
    Neeraj

  • Interface Problems in Yosemite

    Problem shows up when using software other than the native OS X apps.
    If I attempt to close a window behind the app that has focus by clicking the red x part of the semaphore buttons (top left on every window) it will not work unless I change focus to that app by clicking the bar at the top.
    As an example if I'm using Byword to view a document while composing an email in Airmail once I finished and move on to viewing, say a receipt, in Airmail and want to make a copy of that receipt and place it on the desktop. I'm done with Byword and it is covering the desktop so why not close it and get it out of the way. I move the mouse pointer over the red X part of the semaphore buttons and click, nothing happens. I have to bring Byword into focus by clicking the title bar, then click the red x to finally close the window. If the app below Airmail happened to be Safari the red X works properly.
    On my Mac Mini using Yosemite this works properly for all apps.
    This is only a slight problem but I have been having the odd quirky interface problems for the past while and I'm worried that something has gone south and these may end up adding together to make a very large problem.  Initially I had problems with PopClip which seemed to be screwing around with the interface buttons in Rapidweaver 6. I removed the app to clear that problem using AppDelete.
    While trying to diagnose this problem I have removed all the auto login apps that I can and rebooted several times to no avail.
    Any help would be greatly appreciated!
    EtreCheck version: 2.1.8 (121) log:
    EtreCheck version: 2.1.8 (121)
    Report generated February 5, 2015 at 12:32:53 PM EST
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        iMac (27-inch, Late 2012) (Technical Specifications)
        iMac - model: iMac13,2
        1 3.4 GHz Intel Core i7 CPU: 4-core
        8 GB RAM Upgradeable
            BANK 0/DIMM0
                4 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                4 GB DDR3 1600 MHz ok
            BANK 0/DIMM1
                Empty 
            BANK 1/DIMM1
                Empty 
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        NVIDIA GeForce GTX 680MX - VRAM: 2048 MB
            iMac 2048 x 1152
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 0:0:46
    Disk Information: ℹ️
        APPLE HDD WDC WD10EALX-408EA0 disk1 : (1 TB)
            EFI (disk1s1) <not mounted> : 210 MB
            Recovery HD (disk1s3) <not mounted>  [Recovery]: 650 MB
            Macintosh HD (disk2) / : 1.11 TB (263.43 GB free)
                Core Storage: disk0s2 120.99 GB Online
                Core Storage: disk1s2 999.35 GB Online
        APPLE SSD SM128E disk0 : (121.33 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Boot OS X (disk0s3) <not mounted> : 134 MB
            Macintosh HD (disk2) / : 1.11 TB (263.43 GB free)
                Core Storage: disk0s2 120.99 GB Online
                Core Storage: disk1s2 999.35 GB Online
    USB Information: ℹ️
        Verbatim Portable USB 3.0 Drive 1 TB
            EFI (disk3s1) <not mounted> : 210 MB
            Verbatim HD (disk3s2) /Volumes/Verbatim HD : 999.86 GB (31.06 GB free)
        Apple Inc. FaceTime HD Camera (Built-in)
        Logitech USB Receiver
        Samsung Electronics Co., Ltd. ML-2160 Series
        Wacom Co.,Ltd. Wacom Wireless Receiver
        Razer Razer 1600dpi Mouse
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/Transmit.app
        [not loaded]    com.panic.TransmitDisk.transmitdiskfs (4.0.0 - SDK 10.6) [Click for support]
            /Applications/VMware Fusion.app
        [not loaded]    com.vmware.kext.vmci (90.6.3) [Click for support]
        [not loaded]    com.vmware.kext.vmioplug.14.1.3 (14.1.3) [Click for support]
        [not loaded]    com.vmware.kext.vmnet (0231.47.74) [Click for support]
        [not loaded]    com.vmware.kext.vmx86 (0231.47.74) [Click for support]
        [not loaded]    com.vmware.kext.vsockets (90.6.0) [Click for support]
            /Library/Extensions
        [loaded]    at.obdev.nke.LittleSnitch (4234 - SDK 10.8) [Click for support]
        [loaded]    com.avatron.AVExFramebuffer (1.7 - SDK 10.9) [Click for support]
        [loaded]    com.avatron.AVExVideo (1.7 - SDK 10.9) [Click for support]
        [loaded]    com.globaldelight.driver.Boom2Device (1.1 - SDK 10.10) [Click for support]
        [loaded]    com.logitech.manager.kernel.driver (4.10.1 - SDK 10.8) [Click for support]
        [loaded]    com.sophos.kext.sav (9.2.50 - SDK 10.8) [Click for support]
        [loaded]    com.sophos.nke.swi (9.2.50 - SDK 10.8) [Click for support]
        [not loaded]    com.wacom.kext.ftdi (1 - SDK 10.9) [Click for support]
            /System/Library/Extensions
        [loaded]    com.Logitech.Control Center.HID Driver (3.7.0 - SDK 10.6) [Click for support]
        [loaded]    com.Logitech.Unifying.HID Driver (1.3.0 - SDK 10.6) [Click for support]
        [loaded]    com.eltima.SyncMate.kext (0.2.5b15) [Click for support]
        [loaded]    com.globaldelight.driver.BoomDevice (1.1 - SDK 10.1) [Click for support]
        [loaded]    com.splashtop.driver.SRXDisplayCard (1.6 - SDK 10.7) [Click for support]
        [not loaded]    com.splashtop.driver.SRXFrameBufferConnector (1.6 - SDK 10.7) [Click for support]
        [not loaded]    com.wacom.kext.wacomtablet (6.3.10 - SDK 10.9) [Click for support]
            /System/Library/Extensions/Soundflower.kext
        [not loaded]    com.Cycling74.driver.Soundflower (1.6.6 - SDK 10.6) [Click for support]
    Launch Agents: ℹ️
        [running]    at.obdev.LittleSnitchUIAgent.plist [Click for support]
        [not loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [running]    com.Logitech.Control Center.Daemon.plist [Click for support]
        [running]    com.logitech.manager.daemon.plist [Click for support]
        [loaded]    com.oracle.java.Java-Updater.plist [Click for support]
        [running]    com.realvnc.vncserver.peruser.plist [Click for support]
        [not loaded]    com.realvnc.vncserver.prelogin.plist [Click for support]
        [running]    com.sophos.uiserver.plist [Click for support]
        [running]    com.wacom.wacomtablet.plist [Click for support]
    Launch Daemons: ℹ️
        [running]    at.obdev.littlesnitchd.plist [Click for support]
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [running]    com.backblaze.bzserv.plist [Click for support]
        [loaded]    com.barebones.authd.plist [Click for support]
        [loaded]    com.oracle.java.Helper-Tool.plist [Click for support]
        [loaded]    com.oracle.java.JavaUpdateHelper.plist [Click for support]
        [running]    com.realvnc.vncserver.plist [Click for support]
        [loaded]    com.rogueamoeba.instanton-agent.plist [Click for support]
        [loaded]    com.sharpcast.xfsmond.plist [Click for support]
        [loaded]    com.sheepsystems.CocoaPrivilegedHelper.plist [Click for support]
        [running]    com.sophos.common.servicemanager.plist [Click for support]
        [loaded]    de.appgineers.Mountain.Helper.plist [Click for support]
    User Launch Agents: ℹ️
        [loaded]    com.adobe.AAM.Updater-1.0.plist [Click for support]
        [running]    com.backblaze.bzbmenu.plist [Click for support]
        [running]    com.ecamm.printopia.plist [Click for support]
        [loaded]    com.google.keystone.agent.plist [Click for support]
        [loaded]    com.pia.pia_manager.plist [Click for support]
        [loaded]    com.sheepsystems.BookMacster.3EAE0703-42...plist [Click for support]
        [loaded]    com.sheepsystems.BookMacster.3EAE0703-42...plist [Click for support]
        [loaded]    com.valvesoftware.steamclean.plist [Click for support]
        [failed]    ws.agile.1PasswordAgent.plist [Click for support] [Click for details]
    User Login Items: ℹ️
        WD Quick View    Application  (/Library/Application Support/WDSmartware/WDQuickView.app)
    Internet Plug-ins: ℹ️
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        WacomNetscape: Version: 2.1.0-1 - SDK 10.8 [Click for support]
        Default Browser: Version: 600 - SDK 10.10
        GarminGpsControl: Version: 4.0.2.6 Beta - SDK 10.6 [Click for support]
        WacomTabletPlugin: Version: WacomTabletPlugin 2.1.0.6 - SDK 10.9 [Click for support]
        JavaAppletPlugin: Version: Java 8 Update 31 Check version
    User internet Plug-ins: ℹ️
        Picasa: Version: 1.0 - SDK 10.6 [Click for support]
    Safari Extensions: ℹ️
        1Password
        Clip to DEVONthink
        Choosy
        Ember
        Save to Pocket
        Stache
    3rd Party Preference Panes: ℹ️
        AirServer Preferences  [Click for support]
        Backblaze Backup  [Click for support]
        Choosy  [Click for support]
        Flash Player  [Click for support]
        FUSE for OS X (OSXFUSE)  [Click for support]
        Hazel  [Click for support]
        Java  [Click for support]
        Logitech Control Center  [Click for support]
        Logi Preference Manager  [Click for support]
        Printopia  [Click for support]
        WacomTablet  [Click for support]
        WDQuickView  [Click for support]
        Web Sharing  [Click for support]
    Time Machine: ℹ️
        Skip System Files: NO
        Auto backup: YES
        Volumes being backed up:
            Macintosh HD: Disk size: 1.11 TB Disk used: 848.39 GB
        Destinations:
            Verbatim HD [Local]
            Total size: 999.86 GB
            Total number of backups: 101
            Oldest backup: 2013-11-22 16:26:50 +0000
            Last backup: 2015-02-05 15:55:38 +0000
            Size of backup disk: Too small
                Backup size 999.86 GB < (Disk used 848.39 GB X 3)
    Top Processes by CPU: ℹ️
            12%    mds
             2%    WindowServer
             0%    loginwindow
             0%    fontd
             0%    mds_stores
    Top Processes by Memory: ℹ️
        292 MB    mds_stores
        172 MB    SophosScanD
        172 MB    InterCheck
        155 MB    SophosAntiVirus
        120 MB    Finder
    Virtual Memory Information: ℹ️
        3.32 GB    Free RAM
        2.72 GB    Active RAM
        1.40 GB    Inactive RAM
        1.15 GB    Wired RAM
        1.56 GB    Page-ins
        0 B    Page-outs
    Diagnostics Information: ℹ️
        Feb 5, 2015, 12:30:03 PM    Self test - passed
        Feb 4, 2015, 10:59:58 PM    /Library/Logs/DiagnosticReports/RapidWeaver 6_2015-02-04-225958_[redacted].cpu_resource.diag [Click for details]
        Feb 3, 2015, 03:07:17 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/WebKitPluginHost_2015-02-03-15 0717_[redacted].crash
        Feb 3, 2015, 03:02:23 PM    /Users/[redacted]/Library/Logs/DiagnosticReports/WebKitPluginHost_2015-02-03-15 0223_[redacted].crash
        Jan 15, 2015, 08:04:41 PM    /Library/Logs/DiagnosticReports/Kernel_2015-01-15-200441_[redacted].panic [Click for details]

    Try un-installing Sophos.
    Sophos Un-install

  • Interface Problems: DBA = Data Pump = Export Jobs (Job Name)

    Hello Folks,
    I need your help in troubleshooting an SQL Developer interface problem.
    DBA => Data Pump => Export Jobs (Job Name) => Data Pump Export => Job Scheduler (Step):
    -a- Job Name and Job Description fields are not visible. Well the fields are there but each of them just 1/2 character wide. I can't see/enter anything in the fields.
    Import Wizard:
    -b- Job Name field under the first "Type" wizard's step looks exactly the same as in Export case.
    -c- Can't see any row under "Chose Input Files" section (I see just ~1 mm of the first row and everything else is hidden).
    My env:
    -- Version 3.2.20.09, Build MAIN-09.87
    -- Windows 7 (64 bit)
    It could be related to the fact that I did change fonts in the Preferences. As I don't know what is the default font I can't change it back to the default and test (let me know what is the default and I will test it).
    PS
    -- Have tried to disable all extensions but DBA Navigator (11.2.0.09.87). It didn't help
    -- There are no any messages in the console if I run SQL Dev under cmd "sqldeveloper\bin\sqldeveloper.exe
    Any help is appreciated,
    Yury

    Hi Yury,
    a-I see those 1/2 character size text boxes (in my case on frequency) when the pop up dialog is too small - do they go away when you make it bigger?
    b- On IMPORT the name it starts with IMPORT - if it is the half character issue have you tried making the dialog bigger?
    c-I think it is size again but my dialog at minimum size is already big enough.
    Have you tried a smaller font - or making the dialogs bigger (resizing from the corners).
    I have a 3.2.1 version where I have not changed the fonts from Tools->Preferences->CodeEditor->Fonts appears to be:
    Font Name: DialogInput
    Font size: 12
    Turloch
    -SQLDeveloper Team

  • Serializable interface

    I have a dount about with Serializable
    Serializable interface does not have any methods or varialbles, then how can a class be serialized just by implementing Serializable interface. What is happening internally in Java to make this. Pls clear my doubt.
    Thanks
    Srinivas

    Can U pls brief about reflectionSun has a tutorial on reflection that might interest you:
    http://java.sun.com/docs/books/tutorial/reflect/index.html

  • Using Serializable interface

    Hi, I have to write a program that implements the Serializable interface along with a LinkedList. It looks like this:
    public class Library implements Serializable{
       private LinkedList<LibraryBranch> collection;
    }However, all of my methods after that give a warning/error "class, interface, or enum expected." Do I have to write my own methods for Serializable that allows me to read and write data? I don't completely understand the Serializable interface description in the API.
    Thanks for your help.
    - Jeremy

    I don't know, the assignment asks for it. I think I have to be able to write the objects into a file and read them back again later.

  • Why do we need Serializable Interface since there is no method decl. inside

    On working with Serialization in java
    I could see that the Serializable Interface is empty without any method inside.
    Also, the writeObject() and readObject() accepts only if the Serializable interface is implemented to a class.
    What is the use of implementing an empty Interface?
    Please clarify.
    Thanks in advance.
    Regards,
    R.Mahendra Babu

    The completely empty Serializable is only a marker interface -- it simply allows the serialization mechanism to verify that the class is able to be persisted.

  • Working of serializable interface, when it doesn't have any methods

    Hi,
    I am curious about how the serializable interface is used in JVM.
    This is an empty interface. ie. it does not have any method signatures or any variables inside.
    How does java use this interface, for serializing purposes.
    Also, why should it be an interface, when its all empty.

    Such marker interfaces are just used to tell something about about a class, in this cases that the developer wants that instances of a class can be serialized. The code that handles the serialization just check s"instanceof Serializable". Of course Serializbale could look like this
    public interface Serializable
    public boolean isSerializable();
    But why make things more complicated than necessary?

  • Any ideas about interface problems on 2014.1.1?

    On a fresh install of 2014.1.1 on a new macbook pro I am having interface problems. The Edge program locks up after a few minutes or the cursor won't show what's being selected, items disappear, sometimes get the "Save your work, error occurred" message and other odd interface behavior. Are there any known issues or likely culprits that might cause this sort of thing?

    Thanks for jumping in. Yes, I've restored prefs and even uninstalled all (including prefs) and reinstalled. If it helps at all, I run several cloud apps (googledrive, dropbox, icloud, box, transporter, etc.). Other installed items include a Wacom tablet driver, latest Java, Flash player, Logitech mouse driver. Other than those the mac is brand new with no unusual system mods yet.
    Appreciate any ideas.

  • Example class that implements Serializable interface

    Dear,
    I have a class myData that I want to implement Serializable interface. class myData has only two fields: Integer iData1, String sData2.
    Could anybody shown me how my myData class should be?
    Thanks a lot!

    Hey, if you have yet to obtain a remote reference from the app server ...then we are into pandora's box. I lost three whole heads of hair getting up on JBoss when I first started. You want to check out the JBoss forums on the JBoss website, and the enterprise javabeans forum here. Search some posts and read the free JBoss manual.
    Unfortunately, there isn't a 'here, do this' solution to getting connected with JBoss. There are quite a few gotcha's. There are descriptors, descriptor syntax ...and this changes between releases so there seems to be alot of people saying 'here, do this' ...but you try and it doesn't work (wrong release). Here are some descriptors that I threw up recently for someone ...a place to start.
    http://forum.java.sun.com/thread.jsp?forum=13&thread=414432
    This drove me nuts until it all worked right. I was stuck for three weeks at one point ...ready to give up, but then I got it. Perservere ...its a nice container for learning in (its free!).
    I will try and watch for you.
    Oh, and put something in your head ...at least then you will keep your hair !
    :)

  • Can any one explaing about serializable interface.

    1)why we need serializable interface,when there is no methods in that interface.

    http://java.sun.com/javase/technologies/core/basic/serializationFAQ.jsp#whyserial
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/Serializable.html
    http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/serial-arch.html#4539

  • Functionality to generate UUID (for Serializable interface)

    When working with custom components, the java.io.Serializable interface often is a must. Eclipse always complains about the missing UUID-attribute. There are a few plugins around to generate them, but an integrated solution in NitroX would be really cool.

    Eclipse 3.1 will offer you the option to generate serials for you if you open the Quick Fix menu for the warning.PERFECT. :D :D Thanks for the hint. So we only have to wait for NitroX fro 3.1 :twisted:
    Apart from that I would claim it's hardly a feature in the scope of NitroX.Well. Yes an no.
    As lots of the objects that one uses in the context of the session, or as objects that should be sent over the wire (state=client) in JSF, it is in the scope of every plugin or IDE that wants to help the developer develop JSF-application, therefor it is in the scope...
    But with Eclipse providing it already (soon...) it is no discussion any more.
    regards
    Alexander

Maybe you are looking for

  • Access my MacPro (1st gen/ML) with iPhone (Back to My Mac or VPN etc)?

    i had a need the other day to send a file that was stored on my desktop. does anyone know if i can get Back to My Mac working on my iPhone for a first generation mac pro running Mountain Lion or if there is an alternate method to have access to this

  • Slow browsing on windows server

    I upgraded 4 stations that were running under Tiger to Lion and now the browsing of my Windows server via the Finder is awfully slow. I've a read a number of so-called fixex whcih none seems to work for everyone.

  • HT2731 how to create a free apple id without puttin in the cridit card info?

    how to create a free apple id without puttin in the cridit card info? Card type "None" option is not available

  • Memory to buy UK

    Anyone got any suggestions for what RAM to get. Am in UK so can't get Hynix, Apacer, KingMax, Nanya, etc. Anyone know either where to get them in UK or an alternate. I've currently got Corsair 512MB XMS DDR 3200, but neither stick (singles for testin

  • "index.numbers" can't be opened

    I have upgraded my MacBook Air 2012 to Mavericks, and then upgraded to Numbers 3.0 from whichever version I had before (bought a few months ago). One of my Numbers spreadsheets now refuses to open, giving the message ""index.numbers" can't be opened.