Simple compared to other topics on here

This is very simple or so it would seem compared to what i've read on this forum so far.
If any of you would be kind enough to tell me why i can not read an Object from a file...
I'm storing a single object made from a class to a file...
This single object has another object from a different class in it...
I get a NullPointerException and the file returns null.
I'm posting in Serialization because Object I/O does implement...if this is the wrong forum let me know..
If you need more information i can try to give it... or if there is no helping me i'll also understand that...
Thanks

OK, it's up to you. You're description is rather general, so the best you can expect are generalizations. Here are a few:
if you catch the exception and then print it out, e.g.
try {
  ... trouble code goes here
catch (Exception e) {
  e.printStackTrace();
}Java will literally tell you the line where things are going wrong. You can then stare at that line and think about what might be causing it.
The other thing I do is to try to write the smallest program that still has the problem. That usually gets rid of all the distracting junk and let's you see what the problem is. In the worst case, you have something that's postable that other people can help you with!
Good luck.

Similar Messages

  • Simple compare condition fails [Solved: Bug 4619731]

    Edit: I have found the root of the problem, and Simple compare condition fails [Solved: Bug 4619731]. I have opened a Service Request 7045745.993 on the problem.
    Original text:
    I have encountered the most bizarre bug today. An associate is trying to debug a 1900 line package that was NOT terminating a loop properly.
    The package has the code:
        Exit when x <> y;where x and y are VARCHAR2(8) variables.
    The problem is that even though the values were UNequal, the loop never ended. We added dbms_output debugging code to display x and y, and we could easily see that their values were NOT equal.
    For instance, one was 19824E1A and the other was 19824E2A. Or one was 19824E1A while the other was 99999999.
    I even added a block of code re-testing the condition like this:
      If x <> y then
        dbms_output.put_line(x||'<>'||y);
      Else
        dbms_output.put_line(x||'='||y);
      End if;But no matter what the values of x and y, it always reported them equal.
    I found two workarounds:
    1. concatenate a character (I used a period) to the end of each variable in the condition.
        Exit when x||'.' <> y||'.'2. Or, add an anonymous block before or after the Exit when..., such as:
    Declare
      v varchar2(2);
    Begin
      v := 'AB';
    End;Curiously, when I replaced the v := 'AB'; with NULL;, the bug came back.
    This bug occurs on Oracle Database 10g Enterprise Edition Release 10.2.0.3.0
    I am not sure where to start to try to solve or report this problem. It pretty much destabilizes the entire PL/SQL programming foundation for all our packages. It leaves me wondering where else the code may be failing.
    Has anyone seen something like this reported before?
    Edited by: Steve Cosner on Aug 27, 2008 10:05 PM

    No offense taken, SY. I was just trying to express how aware I am of the issue of comparing null values in condition statements.
    All I can do here is underscore that it is not an issue with null values. The problem is with the statement in the first line. To prove that it was not null values, I coded the second line following the first:
        exit when x <> y;
        dbms_output.put_line('x='||x ||' and y='||y);The output from the run showed in the first pass through the loop, x and y were equal and were not null. So the process ran correctly that time. But in subsequent passes through the loop, they were NOT equal and were not null, but the debugging code was executed.
    There is no way the values were null.
    I certainly wondered about the null issue when I concatenated a character to the variables in the conditional test. But my debugging lines first confirmed that they were not null. I suspect more that the bug has something to do with the size of the package and the variables being exactly eight characters, which is 64 bits, which has special significance in many computer languages.
    Regarding your concern of the variable names and scope issues, the actual variable names in the actual code can be seen below (I just used x and y for simplicity within this thread):
        LOOP
          EXIT WHEN V_LAST_PERIOD <>
              SIPK0003.COURSE_ADJUST_REC.ACAD_REC_PERIODwhile the silly anonymous block that caused the process to work, using the variable named v, was the actual code. There is no way we use simple one-character variable names in a 1900 line package. There is no way the scope of variable V extended outside the embedded anonymous block. My point was that somehow, changing the size of the compiled package object, or at least the size of the code generated for the loop process caused the package to run correctly. In fact, thinking about the
    Declare V... Begin Null; End; sequence, I'll bet the PL/SQL compiler is sharp enough to notice that it was a do-nothing block, so never included it in the compiled object. As soon as I assigned V a value, the code WAS included, so the size of the generated code for the loop changed, and somehow, that caused it to run correctly.
    Regarding the use of the package.record.column value above, we even copied the value to a local variable, and then used the local variable in the Exit When statement. Doing that made no difference.

  • Compared to other *nixes

    Compared to other *nixes, does OSX spend a LOT of time with "super" processes?
    Roger

    I don't think there's a simple answer to that question, Roger.
    A lot of it is going to depend on your specific environment - not just the hardware configuration (disks, RAM, etc. which will affect memory-based tasks, paging, etc.) but also the software you're running.
    On the software side you'd need to consider how the applications are written to be able to compare them. It's quite likely that a generic POSIX souce file compiled and run would work well, but probably not optimally compared to other OSes. Differences in things like threading models, memory handling, etc. will all affect the OS overhead element (which is what I assume you're leading towards).
    So the answer to your question is a definite 'maybe'.

  • What is the diff between sd userexits compared to other userexits

    hi all,
    can anybody tell the diff between  sd userexits compared to other userexits
    thanks and regards
    sareen

    Hi
    In some of the SD Transactions, Some user exits were default provided in the STd program of that transaction for example Sales order program SAPMV45A has provided with MV45AFZZ and in that you can write most of your user exits
    similarly the Delivery Std Program SAPMV50A also has this type of facility
    apartfrom these exits these transactions also have other exits which we create/using CMOD/SMOD tcodes
    User exits (Function module exits) are exits developed by SAP. The exit is implementerd as a call to a function module. The code for the function module is written by the developer. You are not writing the code directly in the function module, but in the include that is implemented in the function module.
    The naming standard of function modules for functionmodule exits is:
    EXIT_<program name><3 digit suffix>
    The call to a functionmodule exit is implemented as:
    CALL CUSTOMER.-FUNCTION <3 digit suffix>
    To find a Exit.
    Goto Transaction -- Find The Package
    SMOD >f4>Use the Package here to Find the Exits In the Package.
    Else if you Want to search by Application Area wise ,
    There is one more tab to find the Exits in the Respective Application Area.
    Implementing the Exit-- CMOD Create ProjectsAssgn your Component .
    Now Run ur Transaction to Check if it Triggers.
    Thats it..
    Suppose you need to find out all the user exits related to a tcode.
    1. Execute the Tcode.
    2. Open the SAP program.
    3. Get the Development Class.
    4. Execute Tcode SE84.
    5. Open the Node 'Envir. -> Exit Techniques -> 'Customer Exits -> Enhancements'
    6. Enter the Development class and execute.
    Check out this thread..
    The specified item was not found.
    1. Type the transaction : system->status-> <PROG. NAME>
    2 open SE37 , type EXIT<PROG NAME> and press F4 to get the list of function exits available.
    3. Open CMOD utilities->SAP enhancements
    EDIT->All selections
    4.type the function module name obtained in step 2, in fields 'component name' in 'additional selections' block. and execute.
    5. The displayed list contains the enhancements names for the transaction You were looking for.
    6. Create a project in CMOD and the code in default include->activate.
    http://www.erpgenie.com/sap/abap/code/abap26.htm
    which gives the list of exits for a tcode
    http://help.sap.com/saphelp_nw04/helpdata/en/bf/ec079f5db911d295ae0000e82de14a/frameset.htm
    For information on Exits, check these links
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sapgenie.com/abap/code/abap26.htm
    http://www.sap-img.com/abap/what-is-user-exits.htm
    http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
    http://www.easymarketplace.de/userexit.php
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sappoint.com/abap/userexit.pdfUser-Exit
    http://www.planetsap.com/userexit_main_page.htm
    User-Exits
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://www.sap-img.com/ab038.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.sap-basis-abap.com/sapab013.htm
    http://sap.ittoolbox.com/documents/popular-q-and-a/user-exits-for-the-transaction-code-migo-3283
    These links will help you to learn more on user exits.
    http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/c8/1975cc43b111d1896f0000e8322d00/frameset.htm
    http://www.planetsap.com/userexit_main_page.htm
    http://www.allsaplinks.com/user_exit.html
    www.sap-img.com/abap/what-is-user-exits.htm
    Also please check these threads for more details about user exits.
    Re: Screen exit
    user exit and customer exit
    user exit
    1. Document on UserExits in FI/CO
    http://www.ficoexpertonline.com/downloads/User%20ExitsWPedit.doc
    2. Finding User Exits...
    http://sap.ionelburlacu.ro/abap/sap2/Other_Useful_Tips.html#Finding_User_Exits
    3. List of all User Exits...
    http://www.planetsap.com/userexit_main_page.htm
    <b>Reward points for useful Answers</b>
    Regards
    Anji

  • How do I transfer my MacBook Air to my wife so she can sync her iTunes account and other settings with her iPad Mini?

    How do I transfer my MacBook Air to my wife so she can sync her iTunes account and other settings with her iPad Mini?

    You can change the account shortname to whatever you wish to use.
    As you can see from my example above. Once you click on the Create User button a new account will be created.
    She will need to get her own Apple ID setup so when she starts with iTunes she can open her own iTunes account unless you both want to share the use of the same Apple ID. This can create a bit of confusion if you have your own iPads or iPhones or iPods. As you have discovered it's pretty much one iDevice with one Apple ID.
    As for the iTunes library that becomes a more complicated issue.

  • My MacBook (late 2009 Mac OS X Lion 10.7.5 (11G63) often runs VERY slow...beach ball of death frequently.  My page ins (5.29GB), page outs (5.64BG), and swap files (10GB) seem extremely high in comparison to most other discussions in here.  HELP!!??

    My MacBook (late 2009 Mac OS X Lion 10.7.5 (11G63) often runs VERY slow...beach ball of death frequently.  My page ins (3.29GB), page outs (5.64BG), and swap files (10GB) seem extremely high in comparison to most other discussions in here.   I don't know how to copy the pie chart so it shows on here but here's what it says right now:
    Free - 176 MB
    Wired - 592MB
    Active - 843MB
    Inactive - 432MB
    Used - 1.82 GB
    VM size - 198GB
    The page ins and page outs have 0 bytes/sec in the parenthesis even though the numbers are so high. 
    Any help anyone could provide would be greatly appreciated!!!

    You difinately need more ram. 2gb is the bare minimum to run just the Lion OS, anything extra will slow your Mac to a crawl. Upgrade to 8gb from either Crucial http://www.crucial.com/ or OWC http://eshop.macsales.com/
    And you will be a happy camper!

  • EA1 - File Compare With Other File... Does Not Work

    I open a file in the SQL Worksheet, select File > Compare With > Other File..., nothing happens! Is this part of the Version Control feature that is yet to be implemented?

    I have it logged.
    Thanks
    Sue

  • "Create Simple document" from other objects

    Scenario: Creating a document using option "Create Simple document" from other objects
    I have created a document type and defined the object link for Functional Location with option "create simple document"
    When clicking on create icon on the additional data tab on IL02 screen, The system asks for the document type and then the file to be uploaded.
    The document type that i have defined has the Description filed as mandatory field and hence i am not able to create the document.
    However, for the Document type when i set the description field as not mandatory the system creates DIR. But this DIR has no description.
    Please let me know if there is a BADI, using which i could set the Functional location name as the description OR if there is some enhancement by which the user is asked to enter the description when creating the document.
    Warm Regards,
    Vivek Mohankumar

    Hi Vivek,
    After my tests I would like to inform you that this is                  
    the standard system behavior as the document description field is       
    maintained as mandatory in transaction DC10. Please note that for the   
    simple creation of documents this should not be set as a mandatory      
    field.                                                                               
    The creation mode can be defined in transaction DC10 for each object    
    under 'Define object links'.                                                                               
    Please note that the value "1" for the creation of documents is used    
    to enable a user to simple attache a word file to an object             
    without going to the transaction CV01n. Therefore the system behaviour  
    is different then creating a document by CV01n and attaching a          
    file to it. With simple creation mode there should not be any           
    mandatory fields as the user cannot enter anything during the creation  
    process.                                                                               
    However, you can change the behaviour how the document is created by    
    MM02 transaction if you change the customizing in transaction DC10      
    like this:                                                                               
    If you maintain the value "2" for creation of documents, the user is    
    put to transaction CV01n and then the description can be entered. So    
    maybe this would solve the issue.  
    Regarding a useful BADI I can only recommned you to test BADI DOCUMENT_OBJ1,
    DOCUMENT_OBJ2 or DOCUMENT_MAIN01 for fill the description field.
    I hope this information could be useful for you and help to avoid the   
    mentioned error message.                                                                               
    Best regards,
    Christoph

  • Exception in CVS integration: comparing to other revision

    Hi
    If I try to compare a file with an other revision using the CVS JDeveloper integration ("compare to other revision" I get the following Exception:
    java.lang.ArrayIndexOutOfBoundsException: 0
         at oracle.jdevimpl.vcs.cvs.op.CVSOperationDiffAgainst.showDialog(CVSOperationDiffAgainst.java:148)
         at oracle.jdevimpl.vcs.cvs.op.CVSOperationDiffAgainst.access$5000071(CVSOperationDiffAgainst.java:55)
         at oracle.jdevimpl.vcs.cvs.op.CVSOperationDiffAgainst$2.run(CVSOperationDiffAgainst.java:101)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)"Compare to previous revision" however works. Has anyone an idea? I'm using JDeveloper 9.0.5.2.
    Thanks

    To reproduce the problem:
    - open any file from the applications-browser
    - click into the editor window to make it active
    - select the "Source"-View
    - right-click into the editor window and choose "Compare With / Other Revision"
    => an Error-Message "0" will be shown, Button Details reveals the stacktrace above
    The problem does NOT apear if you
    - right click in the Application-Browser
    - right click in the "Design" or "History" view of the selected file.
    The problem apears with any type of file (tested: jsp, xml. java)
    Thanks

  • Content server pros and cons when compared to others

    Hi DMS Gurus,
    we are in a process of deciding which storage area to go for, and the client is kneen on going for a common existing  server, as he is not kneen on spending on DMS content server.
    my question are,
    can we transform any existing file server or system (which is already in use) in to a content server just by installing windows 2003, and content server CDs. if so please tell me how to go about this.
    is content server only the preferred storage to process the original files in through WEB DMS, or will Starage in SAP Database,Vault or Archive also will give this funtionality.
    let me please know what are the major Pros (benifits) and cons (demerits)  which Content server storage gives when compared to other storage.
    Points for sure,
    thanks in advance
    Shanti

    Shanti,
    ArchiveLink:
    You use SAP ArchiveLink as a communication interface between the document management system and the archiving systems. You can display the archived data using the SAP ArchiveLink viewer. Many times there are documents generated which needs to be tied to a DIR and hence you use the archive link to tie these to a transaction and the originals can be stored in the content server.
    KPRO
    KPRO apart from attaching the originals, it provides a wide range of other functionalities like content service,
    where after every check in& checkout of DIR you can mantain the working copies in the content server.
    Knowledge Provider is a component of SAP Web Application Server and provides the general infrastructure for storing and administrating documents.The Content Server and the Cache Server are server components that interact with the Knowledge Provider
    Knowledge Provider provides the following services:
    -Services for KPro client applications
    -Document Management Framework (DMF)
    -Document Management Service (DMS)
    -Content Management Service (CMS)
    -Integration of content servers and cache servers
    -Content Server
    -Allows you to integrate SAP Content Sever or
    external content servers
    -Cache Server
    -Allows you to store documents close to the client (caching)
    -Content Modeling Tool
    -Document Modeling Workbench (DMWB)
    Hope this helps
    Paddy

  • How do create jumps to other topics from a WebHelp proj linking to word docs?

    How do I create jumps to other topics in a WebHelp proj that links to other word docs?

    Can you please confirm that you want to link to Word files and where these files are? Also if they are external to your RH project, where they reside. The answrs to these questions will help us help you.

  • How does x120 compares to other netbook

    Hi,
    When you consider that you can get an asus eeepc for 220-250$, I wonder if the x120 high price tag is justifiable. I own a x220 and love it, but really it wasn't that expensive if you compare to similar options (fast cpu, lightweight, long battery life...).
    When it comes to a netbook, the cpu are pretty much the same, along with size and weight. I wonder what the x120 would give me that an eeepc doesn't, given it's about twice the price!
    Thanks,
    Dave

    I've had my lenovo for about a year now, I bought it in Feb.. 2011, and it's freaking awesome. Before I had decided on my X120E (with the E-350) I had actually ordered an HP DMZ1, and HP even shipped it to me because I had cancelled that order right when I learned about the X120E. I had a chance to compare the quality of both PCs and it's a world of difference. The case, the screen hinges, and the plastics on the lenovo are basically better quality. The build quality itself is pretty good too; I had a Sager before my Lenovo and that thing creaked (a lot), and it was way more expensive. 
    Compared to other netbooks, it's fast, really fast. Not only does the GPU/CPU integration work, but it works well. The performance beats other comparable PCs, in both price and specs, and that's something's that's weird coming from a netbook that only costs $450.00. At the time I got it there were other PCs out there for almost the same price, and some were even actual laptops, but for the price I think I got a bargain.
    Another thing I failed to mention is the warranty. The HP, for the same price, only had a 30 day warranty and that was one of the big factors that switched me over to the X120E. The one year warranty cannot be beat. I just sent in my netbook because the right speaker went out, and the turnaround was quick, since they didn't have to wait on any parts. They even did a good job at the repair depot, a fact which I found surprising due to all the negative feedback I've heard from it. All in all, even with the one issue I had with my speaker, I would definitely buy my X120E again if I had to.

  • Beats Solo HD On-Ear Headphone red has a 5 stars review compared to others,are they the same products ,same quality of sound?

    Beats Solo HD On-Ear Headphone red has a 5 stars review compared to others,are they the same products ,same quality of sound?

    First, there are plenty "Fake" Beats headphones and earphones, they are almost looked the same with the original, but the sound qualities are basically poor.
    Beats is good for people who likes strong bass.
    Recently, I am in love with the new Apple earpods, they perform good, and particular with an app. called "Dirac" lite.
    This is a great review for most of the top quality headphones and earphones
    http://www.head-fi.org/t/634201/battle-of-the-flagships-57-headphones-compared-u pdate-hifiman-he-400-added-12-24-12
    I have the below quite interesting too
    http://dalethorn.com/Headphones_Top_30.txt

  • I got my iPhone 4S and I think I have a problem with it. Sound when locking and unlocking is quiet compared with other iPhone 4S. I compared it with others and really is a little quiet. Other people have confirmed it too. Other sounds may be better. No pr

    I got my iPhone 4S and I think I have a problem with it. Sound when locking and unlocking is quiet compared with other iPhone 4S. I compared it with others and really is a little quiet. Other people have confirmed it too. Other sounds may be better. No problem tones, watching videos. This problem or is it something normal?

    I have this problem too, but it is intermittent. Sometimes the lock/unlock volume will drop to barely-audible, even though in settings the volume slider hasn't changed. If I then move the volume slider, it fixes the problem and the lock sounds jump back to normal, but then later on the problem will happen again.

  • Sony NX5u with FCP - it will help me to compare what others are doing

    Earlier today I posted a topic regarding issues I'm having with SD footage shot on my NX5u cameras being very interlaced. Further, when viewing the footage on an SD tv (either via an external monitor through Firewire right off the timeline, or, exporting footage and burning to DVD via iDVD) it is very jumpy or jittery. A deinterlace filter helps this some, but not nearly enough to be comfortable giving product to client.
    So, what would be helpful now is simply to hear from others on how you're handling footage from this camera in FCP - particularly SD. My camera settings are SD 720x480 60i. When playing this footage back on an HD tv the interlacing is severe, utterly unusable.
    Compare this to my old camera (Panasonic DVX-100B; 720x480 60i) where the footage would appear somewhat distorted on an HD tv, but nothing more than as to be expected when viewing SD footage on an HD tv. But from the Sony camera it is not even usable, professionally.
    I'm trying to trouble shoot and first determine if the "problem" is in camera or FCP. Further, with FCP capture settings, timeline settings, export settings, etc.
    If you haven a suggestion then great, but I'm asking anybody using the NX5u with FCP to respond and just tell me your experience. That will help me troubleshoot.
    Thank you,
    Eric

    Thank you for your reply David.
    Sorry for the lack of details. I thought about posting screen shots from the tv, so I will try that now, good idea.
    Anyway, the camera is the Sony NXCAM HXR-NX5u. It records AVCHD files to SDHC cards. AVCHD files were converted to ProRes 422 upon L&T into FCP. As I learned in Shane Ross's tutorial on log & transfer workflow, I should have dumped the original files from the card onto a harddrive first, but to this point I have not done that. I have taken the footage straight into FCP (via converting to ProRes 422).
    Late yesterday somebody mentioned to me that these cameras have had issues with SD. I haven't heard anymore on that or what issues they are.
    As for the image quality being subjective, I understand what you're saying, but the amount of interlacing visible is far worse than anything I've done in the past (ie, tape-based SD cameras).
    Am I able to upload a picture here or should I post it somewhere else and provide a link?
    Thank you,
    Eric

Maybe you are looking for

  • I would like to see targets have "fly-in" animation capabilities...

    I would like to see targets have "fly-in" animation capabilities to be used with menus, panels, etc. I would be great to click on a trigger and have a menu fly in from left, right, top or bottom  - control it the way you do with scrolling effects.

  • How to set jdk1.6 path in Solaris Sparc 64-bit machine

    Hi All, I am very much new to Solaris and do not know whether this is the right place to put my question. Already jdk1.5 installed in the machine (it came with the Operating System.) I have installed the JDK 1.6 and set the path in .profle file as ex

  • Audio Freezes 5 seconds in I-Tunes 7.0.1.8 windows

    When playing audio from I-Tunes, my CPU maxes, and the audio mutes, (continues to 'play, just not out to the audio device). If I pause, Unpause, it will replay, BUT this is not always possible as CPU cycles get pegged. Can usually reproduce during 'm

  • 'lastFieldsOptional' parameter in Inbound File adapter ?

    Hi there, Im getting the following error from the adapter engine when trying to process a flat file. At The same time the adapter recommends to use the 'lastFieldsOptional' parameter, however,this parameter cannot be found in the provided documentati

  • Flicker on subject from LCD projector

    Hi all, Bit of a strange one here: I have just finished shooting a corporate presentation evening where the speakers got up and spoke at a lectern. All very simple stuff. Off to one side was a screen showing slides from a projector mounted on the cei