Setter works but Getter does not

Hi all,
I have had relatively little problems with setting up and running Entity Ejb's as of yet with simple beans (with 2 attributes only). The below problems seems to be implemented in the same way as the smaller been, with the only difference being that this bean has 6 attributes.
Quite simply,
I have no problems setting up the EJB, deployement of EJB, and the running of the server.
I have created a testing program that creates a new instance of the bean, looks up a bean, sets one of the attributes of the bean and then uses a getter method to check to see if the setter works.
Out of all of the above I thought the simplest thing to use would be the getter method. But this is the area that I get the exception.
As I said everything else works, I can even check the database to check if the setter method works, and it does.
The exception that is called is:
<code>
java.rmi.ServerException: RemoteException occurred in the server thread; nested exception is:
java.rmi.RemoteException: Exception is in getAddress: nested Exception is:
javax.ejb.NoSuchEntityException
</code>
The name of the getter method that is called is getAddress, as seen above.
Please could anyone help.
Thanking you
Damian

Hi all,
I have been working on the problem now for a little more and I have worked something out.
I worked through everything and tried to work out what was out of the ordinary. I realized that I had an attribute in the bean of type java.util.Date. While all other attributes were of type String. When I created the bean with out the Date column, the getter methods for all the other attributes seem to work (unlike before).
Why has this made a difference, what is it about having a setter and a getter method for datatype Date that affects all of the other getter methods.
Of course I want to be able to have fields with datatype of Date, so please people help me on this one.
Damian

Similar Messages

  • My new I phone 4s does not ring when someone calls. Speakers works with music, it works with headphones, it works with the ringtones in the setting mode but it does not ring when is in normal mode...Please HELP!!!!

    Speakers works with music, it works with headphones, it works with the ringtones in the setting mode but it does not ring when is in normal mode...Please HELP!!!!

    Try a different ringtone.
    Reset or restart the device.

  • Internet Download Manager cannot integration with firefox4 itis Look in the menus it works but it does not actually work ?

    internet Download Manager cannot integration with firefox4 its Look in the menus it works but it does not actually work

    IDM may need to be updated to work with Firefox 4.0. You could contact them and make them aware of the problems you are having with their program.

  • Why are my tags not syncing for a shared email account? IE One person tags an email as "Work" but it does not show on other users Thunderbird.

    Subject says it all for the most part.
    A shared email account we'll call "[email protected]" is not syncing tags across other end users Thunderbird. User A will tag an email as Work but it will not sync/show on anyone else's application. I've read that Thunderbird stores tags locally now? Is there a way to sync them up to our IMAP server? Or would we have to revert to a previous version of Thunderbird (if so which)?
    Any help is greatly appreciated. Thanks

    the issue is probably that the server does not support tags..... Thunderbird stores them locally, but syncs them were the server supports it.

  • Continuity calling works but Handoff does not.

    I got continuity calling to work by doing the on & off tricks with my iPhone 6 and iPad 4, but Handoff still does not work.

    Hi.
    Continuity works one way here: I can continue on my Mac, but not vice versa, Also cellular calling worked that way: receive on Mac works but no outgoing calls. I managed to get the latter work by switching a setting in FaceTime preferences, but continuity discontinues to work both ways.
    Klaus Löfflad
    Spezialist für Apple Produkte
    http://train4media.de

  • Time Capsule: IPv6 works, but IPv4 does not

    I have a Time Capsule (running 7.7.3) and a Mac Pro (2010, running 10.10.1) connected via ethernet. My ISP (Webpass) has IPv6 support.
    The Mac Pro can communicate over IPv6 (e.g. ping6 google.com works; I can load google.com over IPv6 using Safari).
    However, IPv4 does not work. The Mac Pro isn't even getting an IPv4 address via DHCP from the Time Capsule.
    I'm pretty sure I have my IPv4 configuration correct in the Time Capsule, because if I turn on wifi on the Mac Pro (using the Time Capsule as my base station), the wifi interface gets an IPv4 address, and can reach the Internet over IPv4.
    Possibly relevant: 3 days ago I noticed that IPv6 wasn't being routed properly by my ISP, so I filed a trouble ticket. They fixed it 2 days ago, which is when my wired IPv4 networking broke. (Given that I can use IPv4 via wifi suggests that the problem lies with the Time Capsule).
    I have tried rebooting the Time Capsule and different ethernet ports on both the Time Capsule and Mac Pro, to no avail.
    How can I get wired IPv4 working again?

    I wish you were running anything but yosemite on the computer as it is least reliable networking OS yet.
    Factory reset the TC. Redo the setup.. please use all short names, no spaces and pure alphanumeric.. do not use the names apple wizard will recommend.. keep passwords also 8-20 character pure alphanumeric but mixed case and numbers.
    In ethernet setup of the computer.. how have you got ipv6 set??
    How is ipv4 set?
    Have you tried static address in the Mac?
    What sort of broadband is this?? If there is a modem what sort? And what mode is the TC running in?
    One of the strange things that can happen.. with IPv6 you can use TC bridged to a fibre connection..
    But for ipv4 to work it must be set to DHCP and NAT in the network tab.

  • Weirdness: http works but https does not

    I have a very weird problem which no-one has been able to fix.
    I have an Airport Extreme card and a third-party DSL modem / wireless router combo. Most internet activities are fine (ftp, email, http) but whenever I try to access a secure site (https) or run a VPN connection (Apani Netlock) one of three things happen:
    1. I spontaneously disassociate from my WiFi base station, losing the wireless connection. If I cancel the https request or close down the VPN, the wireless link comes back after 5-10 seconds.
    2. I get TCP/IP timeouts - no responses from server.
    3. It works, but extremely slowly. Loading a single https web page can take anywhere between 30 seconds to 3 minutes. I'm on a 1.5 Mb/s DSL link.
    Things I have tried:
    1. Connecting by ethernet directly to the router instead of using 802.11b/g - all the problems go away. So it is not a DSL modem or ISP issue.
    2. Changing the MTU of the Airport Extreme card (en1). I have tried values from 600 to 1492. Same problems exist - makes no difference.
    3. Tried an Apple Airport base station connected by ethernet to the modem instead of using the modem's wireless. Same problems exist, although the VPN doesn't work at all (even slowly) because the ABS does not support that particular VPN protocol.
    I'm at my wits end. No one I have spoken to at tech support at the ISP or modem manufacturer have ever heard of such a problem.
    HELP!

    Ok, it's some years later. and the problem has gone away. Things which may have fixed it: OS software upgrades, client software upgrades, better signal strength (this problem did seem more prevalent at low WiFi signal strengths).

  • Connection works but program does not continue in the code ?

    Hello,
    I have a client, a server and a data class implementing Serializable interface.
    Both classes communicate via sockets.
    Between the sockets I transfer objects from the type of the data class.
    The client and the server are running each in a Thread.
    First the server is started then pressing a certain button in the GUI the client is started.
    1. Why is the code in the clients Thread never going beyond this code line: System.out.println("test"); ???
    2. Why is the file satz.dat not written ?
    This is the part code of all 3 classes which is making me trouble:
    Client code:
    public class ClientThread extends Thread
           ClientThread()
           public void run()
                try
                     InetAddress ip = InetAddress.getByName("localhost");                 
                     Socket socket = new Socket(ip , ServerThread.PORT); 
                     System.out.println("test");
                     ObjectInputStream incomingObject = new ObjectInputStream(socket.getInputStream());             
                     ObjectOutputStream outgoingObject = new ObjectOutputStream(socket.getOutputStream());                    
                      outgoingObject.writeObject(serializeObjekt(meineBuchdaten)); // serialize the object "meineBuchdaten"
                      incomingObject.close();
                      outgoingObject.close();
                      socket.close();              
                catch (Exception e)
                      e.printStackTrace();                
    Method to serialize the string data of the data class called Buchdaten class:
    public Object serializeObjekt(Object objekt) throws IOException
              ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream("d:/satz.dat")));
             oos.writeObject(objekt);
             oos.flush();
             oos.close(); 
             return oos;
    server class:
    public class ServerThread extends Thread
         public static final int PORT = 8080;
         private ServerSocket myServerSocket = null;
         private Socket myClientSocket;     
         private Database myDatabase = new Database();     
         public ServerThread()
        public void run()
              try
                   myServerSocket = new ServerSocket(PORT);               
              catch (IOException e)
                   e.printStackTrace();
              System.out.println("Started: " + myServerSocket);          
              try
                   while(true)
                        // Warten until the client connects...               
                        myClientSocket = myServerSocket.accept();     
                        System.out.println("Connection done - handshake " + myClientSocket);
                        ObjectInputStream incomingObject = new ObjectInputStream(myClientSocket.getInputStream());
                     ObjectOutputStream outgoingObject = new ObjectOutputStream(myClientSocket.getOutputStream());                    
                        Buchdaten bd = (Buchdaten) incomingObject.readObject();
                        System.out.println("This should be the deserialized data: " + bd);
                        myClientSocket.close();                    
              catch(Exception ex)
                   System.out.println(ex.getMessage());
    data class:
    public class Buchdaten implements Serializable
         private static final long serialVersionUID = 1L;
         private String autor;
         private String titel;
         private String jahr;
         private String verlag;
         private int number;
         private int id;
         public Buchdaten()
         public void setDataToArray(String autor, String titel, String jahr, String verlag , int number)
           this.autor = autor;
           this.titel = titel;
           this.jahr  = jahr;
           this.verlag = verlag;
           this.number = number;     
         public void setDataToArray(int number , int id)
           this.number = number;     
           this.id = id;
         public void setDataToArray(String autor, String titel, String jahr, String verlag , int number , int id)
           this.autor = autor;
           this.titel = titel;
           this.jahr  = jahr;
           this.verlag = verlag;
           this.number = number;     
           this.id = id;
    }

    >
    Oh, and by the way, is there a reason you aren't just using normal java RMI?
    Edited by: jtahlborn on Feb 1, 2008 9:34 PMOh, and by the way, is there a reason you aren't just using normal java RMI?
    yes for now i have to do it this way. The app must only run on my home pc but later i have to do it with RMI, but first it must work with sockets and streams etc stupd i know... ;-)
    sabre150: quote:"As with all two way communication, one thread should be used for writing and another for reading. This ways the blocking nature of the streams works for and not against."
    0: Does that mean i have to open 4 threads ? 2 threads for the client class and 2 threads for the server class? each one has an ObjectInput/Output - stream right?
    For now i have only opened the outputstream on client side and the inputstream on server side to see wether it works at all. Furthermore my object is now serialized to the satz.dat file and it works.
    1. Is there a way to serialize my data "meineBuchdaten" on-the-fly without writing it into a file on harddisk?
    2. I want to print out the deserialized data but it doesnt work i get no output using the system.out.println method?
    3. After this output: Connection done - handshake Socket[addr=/127.0.0.1,port=3139,localport=10001] I get this output: null
    why null? from where does this null come?
    Edit: ok my debugger work now again i reinstalled eclipse... debugging the cast into "meineBuchdaten" is the problem because right after this the debugger jumps into an exception this one
    catch(Exception ex)
                   System.out.println(ex.getMessage());
              }Edit: I have changed again the code a bit only this:
    // Output of the deserialized data for test purposes
    System.out.println("This should be the deserialized data: Autor: " + bd.getAutor());
    its accessing the autor attribute variable of the bd object in a proper way but still the bd object is null i guess the problem is my serialized data on the client side is not transported what do i wrong can someone pls help me please ?
    changed code:
    client class:
    public class ClientThread extends Thread
           ClientThread()
           public void run()
                  try
                          InetAddress ip = InetAddress.getByName("localhost");                 
                          Socket socket = new Socket(ip , ServerThread.PORT); 
                          System.out.println("test");                
                           // ObjectOutputStream for the object to be sent over socket to the server
                          ObjectOutputStream outgoingObject = new ObjectOutputStream(socket.getOutputStream());
                          // writing the class object "meineBuchdaten" into a file on the hard disk
                          try
                               ObjectOutputStream oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream("d:/satz.dat")));
                          oos.writeObject(meineBuchdaten);
                          oos.flush();
                          oos.close();
                          catch (NotSerializableException nse)
                               System.out.println("No Serialization of the class " + nse.getLocalizedMessage() + " is possible");                           
                          catch(IOException ioe)
                               System.out.println(ioe.getMessage());
                          // closing the ObjectOutputStream and the client connection to free resources
                           outgoingObject.close();
                           socket.close();              
                     catch (Exception e)
                           e.printStackTrace();                
    server class:
    public class ServerThread extends Thread
         public static final int PORT = 10001;
         private ServerSocket myServerSocket = null;
         private Socket myClientSocket;     
         private Database myDatabase = new Database();     
         public ServerThread()
        public void run()
              try
                   myServerSocket = new ServerSocket(PORT);               
              catch (IOException e)
                   e.printStackTrace();
              System.out.println("Started: " + myServerSocket);          
              try
                   while(true)
                        // wait until the client connects...               
                        myClientSocket = myServerSocket.accept();     
                        System.out.println("Connection done - handshake " + myClientSocket);
                        ObjectInputStream incomingObject = new ObjectInputStream(myClientSocket.getInputStream());                
                        // Reading the serialized data and cast it to the proper type
                        Buchdaten bd = (Buchdaten) incomingObject.readObject();
                        // Output of the deserialized data for test purposes
                        System.out.println("This should be the deserialized data: " + bd);
                        // closing the ObjectInputStream and the client connection to free resources
                        incomingObject.close();
                        myClientSocket.close();                    
              catch(Exception ex)
                   System.out.println(ex.getMessage());
    }Edited by: pel on Feb 2, 2008 2:04 AM

  • Airport express: wireless works, but internet does not

    Hello.
    It happened yesterday for no apparent reason: Internet was not working via airport anymore, as it should have normally.
    Config: Cable modem to Airport extreme (.g); USB printer attached to base station, base station Ethernet port going to router with Boradband phone and 1 PC attached to it.
    4 MAc computers attached to Network (and getting Internet) via Airport.
    Internet connection using DHCP, dynamic IP address provided by RoadRunner (Time Warner).
    I tested Cable Modem (works), all ethernet cables (good), reset base station and recreated an airport network.
    Airpot network works, USB printer is accessible via Airport, but Internet is still off (although Network Configuration in Sys Pref give me a green light and informs me that I am connected to the internet)
    My question: is it possible that Base Station fails only for its Internet/WAN capability, and not for Network functions?
    thanks. This one is a puzzler.
    Paul

    Hello.
    We have been having the same problem discussed in this thread earlier, described as follows:
    It happened two days ago for no apparent reason:
    Internet was not working via Airport Express anymore, as it
    should have normally.
    Config: Cable modem to Airport Express via a US Robotics router,
    2 MAC computers (iMac700 and MacMini) attached to Network (and getting
    Internet), the iMac through router and the MacMini via Airport Express.
    Internet connection using DHCP, dynamic IP address
    provided by RoadRunner (Time Warner).
    iMac connected to router is getting Internet just fine; MacMini connected to network via AEX is getting network signal but no Internet. Network diagnostics says it can't tell what's wrong and call ISP. ISP says it's an Apple problem.
    I tested Cable Modem (works), all ethernet cables
    (good), Airport Express network works, but Internet is still off for MacMini.
    I've done a power recycling exercise twice, but still no Internet on the MacMini.
    Does anyone have any ideas? Both my son and I are stumped. He's a teenager and is fairly computer savvy. Neither of us has been able to figure this out.
    Joe

  • TS3367 facetime used to work but now does not work on any of my devices

    I have been in regular contact until about 4 days ago using facetime on my iphone 5 imac 10.7.5. ipad 2 now none of these devices work from incoming calls from Philipinnes. Take note the caller had latest macbook pro 13 inch  and is able to call Guam on fatetime with success. What is happening why is incoming calls alway failing. This has been 4 days running and is not good enough. Okay I havent got the latest updates but why in the late few days whould this effect anything. I mean 3 devices and none of them work. This is most frustrating and annoying. I have intead used skype which does work but at night time the camera is not as clear. Tanke note also earlier in the year I received calls from Vietnam and although I did have dropouts was always able to connect only these last four days have had no success. Also I have not been able to call out. The wireless has full bar and am near the modem that is not an issue. Unless there has been a recent change why is htis not working all of a sudden.

    THere seems to be a FaceTime issue and some users who have been in contact with Apple support claim that Apple is working on this.
    I have read many posts on the issue and have seen that there are many reporting that when they have updated their various devices to the latest software, the issue has been resolved.
    You can wait for Apple to resolve the issue OR you can update everything to the latest software and see if this solves your issues.

  • After upgrading to 10.2.2.12  on windows XP SP3 , itunes does not display any summary info or buttons/options. The buttons work but it does not display the text on the button or the options available.

    I recently upgraded the iTunes software to 10.2.2.12 on my Windows XP laptop. Since then, iTunes stopped displaying the Summary info
    , the text on the buttons, the various drop down options. The buttons seem to be working but I can't tell what that button is supposed to do
    or the option I am selecting. This is preventing me from syncing my photos to the laptop.
    this was not a problem with the previous version of iTunes.
    Actions taken :
    - I tried downloading iTunes again and repairing the install. That did not fix it.
    - Don't want to uninstall it as I am worried that I would lose all the songs and the purchases etc.
    1. Has anyone encountered this ?
    2. Is there a solution for this ?
    Many thanks in advance for your time and help
    Nitin

    bmalones44 wrote:
    b noir, my Windows 7 machine is having the exact same issue as nsadal, and I have already confirmed that all six of the Segoe UI fonts are installed on my computer.  Are any other Windows users having this problem with the 10.2.2.12 iTunes release?
    Yeah it does, although the problem predates version 10.2.2.12. It's been around since earlier-on in the version 10s (at least).
    It's usually Segoe UI font trouble on the Windows 7 systems too. Unfortunately, the Vortical troubleshooting technique only works on XP and Vista systems, so dealing with the issue on a Windows 7 system is trickier. (There's a bunch of different possible issues relating to the fonts that could be in play, and so the treatment tends to depend on which issue in particular you've got with the Segoe_UI fonts.)
    For discussions of various Windows 7 variations of the "Missing text" thing, and possible treatments, see the following (unfortunately, rather long) topic:
    iTunes 10.1 Missing Text

  • I need to place the Maltese cross on a web page. IE works, Safari works, but Firefox does not. It is wingding character.

    The Maltese cross is in the winding font family. I have the following HTML on the pages:
    <pre><nowiki>
    <span class="cross" style="font-family: wingdings; vertical-align: top;">X</span></nowiki></pre>
    The inline element <span> tag is in a <font> tag.
    CSS: span.cross { color: #000; font-size: 16pt; font-weight: bold; }
    This has been working for years in IE 5, 6, 7 & 8, works also in safari (latest rev), but does not work in FireFox rev 4.0.1. FoxFire displays a large X instead of the Maltese cross.
    Other than this small problem FoxFire works great, especially with HTML5 & CSS3.
    Any help would be appreciated.
    DonL

    This concerns the Maltese cross problem. When I posted the problem, the data inside "<" and ">" characters is lost. The only thing that showed was the "X".
    I posted the HTML used to display the cross w/o these chars.
    span class="cross" style="font-family: wingdings; vertical-align: top" X /span
    Thanks for any help.
    DonL

  • WRT54G 1.1 Wireless works, but Ethernet does not

    Evening,
    This evening, I flashed the firmware on my WRT54G V1.1.
    Everything went fine, and it said click continue to continue, which I did.
    I tried to reset back to defaults (button on back), which as far as I know took, but I still can not access via wired connections. For the heck of it, I hopped on the laptop. Sure enough, the settings did take, because I could see and connect to the default settings (SSID of linksys, default pass, etc).
    I looked in the configuration page, and see that it is not pulling an IP from the cable modem. I reset the modem, reset the router, but still can not connect via wired.
    I even set my ethernet to a static IP (192.168.1.55) with a 255.255.255.0 mask, and cant even ping the router (192.168.1.1), however, I can ping it on the laptop connected via the wireless.
    It appears all my ethernet ports are dead, but, just from an upgrade?
    Anyone have any idea?
    Any help would be appreciated, thanks.

    Hi… Reduce the MTU on that router and check if you can get the connection on wired PCs. Or else reduce the Card speed (link, speed and duplex) to 10 Mb half duplex. This should give you a connection. For internet IP address, make sure you clone the MAC address of the Wired PC to this router (MAC Address clone sub-tab under setup) and power cycle the network. You can also try resetting the router for 1 min again.

  • Wired works but wireless does not

    I am posting this for two of my friends. Both of them have the same problem. They both brought their laptops to my house and connected wireless to my belkin router automatically. No problem. They both went home to their houses (two different friends both with linksys in their houses) and could not connect to their own linksys routers. They tried to repair connection but router did not show up as available. They both also have desktop computers that are wired and connect to the Internet without any problem. They both also wired their pc's to the router and connected without any problem. When they tried to connect wireless, they could not. We tried turning off the modem and router and pc and reboot the modem, router and pc again. Still only works when wired, but not wireless. By the way, they tried connecting wireless in the same room next to their router so there should not be any interference or something blocking the signal. Also they both have a Toshiba laptop with a built-in wireless.
    Any suggestions?
    Adam
    Message Edited by starace on 05-19-200711:38 AM
    (Mod note: Removed non-public information. Thank you.)Message Edited by Vince_02 on 05-19-2007 08:58 AM

    Hi, have your friends check the status of their adapter. And if it is working fine, ask them if they have trief already setting up the wireless settings of the router?
    Take the risk. Conquer your limitations!

  • Video Works but Mic Does Not

    I have a Creative Livecam Socialize HD(VF0616) installed in my PC. My OS is Win7 Ultimate 64 Bit. The camera was working before but I have not used it lately. I upgraded my Skype but when I tested it with the camera, the mic did not work. The camera video and the speaker seemed OK but the microphone did not work. Any simple way to test the mic feature of the camera?

    In Skype go to Tools -> Options -> Audio settings. What device do you see there selected as your Microphone? Is there more than one option available in the selection box? Can you see any respponse on the Volume bar when you make any sound?

Maybe you are looking for

  • Title in Modulepool

    Hi all, How to set title in Dialog Programming Thanks & regards, Sinha.

  • How to Identify Changes in outline

    <p>Hi,</p><p>I need to make a report that contains all the members that passto another dimention or to other parent in the same dimention. Inaddition I need to insert  ( with calc) new values to themember in the new location.</p><p> </p><p>Anyone has

  • Need Example of FOProcess to create PDF...

    Hi all, Does anybody have working example of producing PDF from View Object ? Using FOProcessor ?? Thank you, xtanto

  • I cant join wifi

    it suck i cant login to my wifi ipod touch say unable to join the network it"s a 2 generation place help

  • Inbox blank

    All of a sudden my inbox is showing blank yet there over 1200 emails in there. also Sometimes they show up, but when they do clicking on the 'From' 'Subject' and 'Date Received' fields has no effect on the order of the lists. I've tried re-installing