A bug in Weblogic6.1 for EJB2.0?

Hello All,
I have a hello world type simple stateless session bean which has a method like this:
     public String getMyString()
String s=null;
try
if(s.equals("hello"))
System.out.println("this will never happen");
catch(Exception ex)
ex.printStackTrace();
          return s;
When I package this into a EJB1.1 bean I got the exception print out in the console
like the following:
java.lang.NullPointerException
at tester.ExceptionTesterEJB.getMyString(ExceptionTesterEJB.java:63)
at tester.ExceptionTesterEJB_q2a85q_EOImpl.getMyString(ExceptionTesterEJ
B_q2a85q_EOImpl.java:36)
at tester.ExceptionTesterEJB_q2a85q_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:267)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
I am perfectly happy with the printout of the stackTrace because it tells me exactly
in my source code where the exception occurs (at line ExceptionTesterEJB.java:63).
However, when I migrate it to EJB2.0 I got the following:
java.lang.NullPointerException
at tester.ExceptionTesterEJB.getMyString(Unknown Source)
at tester.ExceptionTesterEJB_q2a85q_EOImpl.getMyString(ExceptionTesterEJ
B_q2a85q_EOImpl.java:36)
at tester.ExceptionTesterEJB_q2a85q_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:298)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerR
ef.java:93)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.jav
a:267)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest
.java:22)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
What's the problem? The line number is gone!! I got tester.ExceptionTesterEJB.getMyString(Unknown
Source).
Can anyone help me out?
Thanks.
Ling

Dear Cedric,
How do I do it? I am using ant to do the compilation. Here is the snippet of the
scripts:
<!-- Compile -->
<target name="java_compile" depends="app_javadocs">
<javac srcdir="${java_src}" destdir="${build}/." deprecation="on">
</javac>
</target>
<!-- EJBC -->
<target name="ejbc" depends="java_compile">
<ejbc src="${ejb_jar}" dest="${ejb_jar}" descriptors="${ejb_jar}" keepgenerated="true">
</ejbc>
</target>
Thanks a lot.
Ling
Cedric Beust <[email protected]> wrote:
Deactivate the JIT when you compile your source.
Cedric
"Ling Wang" <[email protected]> wrote in
news:[email protected]:
Hello All,
I have a hello world type simple stateless session bean which has a
method like this:
public String getMyString()
String s=null;
try
if(s.equals("hello"))
System.out.println("this will never happen");
catch(Exception ex)
ex.printStackTrace();
return s;
When I package this into a EJB1.1 bean I got the exception print out
in the console like the following:
java.lang.NullPointerException
at
tester.ExceptionTesterEJB.getMyString(ExceptionTesterEJB.java:6
3) at
tester.ExceptionTesterEJB_q2a85q_EOImpl.getMyString(ExceptionTe
sterEJ
B_q2a85q_EOImpl.java:36)
at
tester.ExceptionTesterEJB_q2a85q_EOImpl_WLSkel.invoke(Unknown
Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java
:298) at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareS
erverR
ef.java:93)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerR
ef.jav
a:267)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteR
equest
java:22)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
I am perfectly happy with the printout of the stackTrace because it
tells me exactly in my source code where the exception occurs (at line
ExceptionTesterEJB.java:63).
However, when I migrate it to EJB2.0 I got the following:
java.lang.NullPointerException
at tester.ExceptionTesterEJB.getMyString(Unknown Source)
at
tester.ExceptionTesterEJB_q2a85q_EOImpl.getMyString(ExceptionTe
sterEJ
B_q2a85q_EOImpl.java:36)
at
tester.ExceptionTesterEJB_q2a85q_EOImpl_WLSkel.invoke(Unknown
Source)
at
weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java
:298) at
weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareS
erverR
ef.java:93)
at
weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerR
ef.jav
a:267)
at
weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteR
equest
java:22)
at
weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
What's the problem? The line number is gone!! I got
tester.ExceptionTesterEJB.getMyString(Unknown Source).
Can anyone help me out?
Thanks.
Ling

Similar Messages

  • Software bug in OneDrive for Business 1.2.2 (IOS)

    I found a software bug in OneDrive for Business 1.2.2 (iOS) and is related to the space characters inside the logon name. I am using SharePoint 2013 (15.0.4617.1000 June 2014 CU) and my setup
    corresponds with the OneDrive for Business App requirements.
    I am not able to connect using OneDrive for Business 1.2.2 (iOS) to the SharePoint 2013 OneDrive personal site if the logon name has space characters in it. With the same user account, but this time with the logon name changed (removed all
    the space characters) the authentication works and I am able to configure the app (OneDrive for Business 1.2.2 - iOS).
    I wrote more details here
    http://www.vioreliftode.com/index.php/software-bug-in-onedrive-for-business-1-2-2-ios/.
    Any other of you in the same situation? 

    Hi,
    I understand that the issue occurred in OneDrive for Business 1.2.2 (iOS).
    If this is a suspicious bug, I recommend you to open a ticket with Microsoft.
    In the meanwhile, you can post the thread at the OneDrive support forum:
    http://answers.microsoft.com/en-us/onedrive/forum/ .
    More experts will assist you, then you will get more information relation to OneDrive for Business.
    Thanks,
    Victoria
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Victoria Xia
    TechNet Community Support

  • Is this a bug in Safari for iOS ??

    http://www.clfsrpm.net/sample/
    The control buttons above playlist display just fine in every Android, Linux, and Windows browser I have used - including Safari for Windows.
    However they do not display properly in Safari for iOS as tested on my iPod (but they do display correctly in Opera Mini for iPod)
    Is this a bug in Safari for iOS ??

    Why was this moved to "Using iPhone" ??
    It is a question about Safari for iOS - not iPhone/iPod usage.

  • Bug in iCloud for Windows

    Bug in iCloud for Windows.
    Es gibt einen Bug in iCloud für Windows. In diesem Forum wird er beschrieben:
    https://forums.adobe.com/thread/1587466?start=200&tstart=0
    Please have a look to the Adobe Forum.
    Premiere Pro Project will be destroid when you install iCloud for Windows.
    After deinstalling Cloud - everything is ok.
    Please make a bugfix!
    Cu Jürgen

    On Bug in iCloud 4.0 control panel - decimal places Office 2013 / Outlook 2013
    they mentioned the same Bug.
    Apple do you hear us?

  • BUG in Workflow for overall PR release

    hi,
    I have configured work flow for PR for individual release....work flow  is working fine.....
    Now i have set up the work flow for over all release of PR...i have done all work flow settings
    I have activated the links for WS 20000077.
    I have assigned agents to WS 20000077,TS 20000159, TS 20000161, TS 20000162,TS 20000163.....
    ...But my work flow is not getting triggered.
    Is there any BUG in Workflow for overall PR release??
    Utsav
    Edited by: Utsav.agra on Aug 26, 2009 6:00 AM

    hi,
    Activate the WF template....check  notes 103628 & 103628 and as per this req, settings....
    then
    Use transaction SWLD and Select the "Tasks" button.
    Input task type WS, task 20000077.
    Select Change (its client-independent object).
    Select the graphical editor.
    Select "Activate" button, or Workflow -> Activate...
    Now check it...
    Regards
    Priyanka.P

  • Bug fix list for JDev 10.1.2

    I would like to know if exists any bug fix list for JDev 10.1.2, and where I can find it, if exists.
    Thanks in advanced.

    Hi Shay, of cours Chris is right. The main reasons for this is
    1. We need to convince our management to invest in the efforts to update to a new version, find workarounds for new bugs, make complete tests of our product, update the installed base, ....
    2. We need to check if there are any unknown but critical fixed and we need to update our installed base.
    3. We need to decide how fast we need to update installed base.
    4. If there are 998 IDE bugs fixed and only one BC4J and one UIX bug, i think we will wait for the 10g final release...
    Like most engineering teams in the world we have to fight with limited resources, so there is no chance to spend much time without a real need.
    Thanks, Markus
    Btw. Even for the Oracle Database release there is always a list of fixed bugs. And this list also most often really scares me.

  • Publicly accessable list of bugs/known issue for the 2.1 release?

    Does one exist? If so, where can I find it?

    If you have an Oracle Support contract you are able to review any bug that has been published. We publish bugs that customer request be published. We are not trying to hide bugs from the user base, it is in your interest that every bug is not published, as this would then include trivial bugs you are not interested in. For example, we log bugs for typos, each new icon raised and updated, and for requested updates to menu titles, for the order of the tabs in the display editors and so on. If you have a bug you're interested in, you can contact Support, request the bug be published, if it's not already published and then keep track of its progress.
    There have been requests that we publish bugs mentioned on the forum, and we do this where we can. Bugs are by default not published. If the product is in a beta cycle for example, then the bug is logged for that beta cycle and is not publishable. We can publish bugs that are logged against production software. This forum is not an alternative to Support or Metalink. Customers pay for the support they get through Oracle Support and the service that is available there.
    Customers with Oracle Database Support contracts have support for SQL Developer.
    Regards
    Sue

  • Known performance issue bugs and patches for R12.1.3

    Hi Team,
    We have upgraded oracle application from 12.1.1 to 12.1.3.
    I wanted to apply the known performance issue bugs and patches for R12.1.3.
    Please let me know for any details.
    Thanks,

    Are u currently facing any performance issues on 1213?
    Tuning All Layers Of E-Business Suite – Performance Topics
    http://www.oracle.com/technetwork/apps-tech/collab2011-tuning-ebusiness-421966.pdf
    • Start with Best Practices : (note: 1121043.1)
    • SQL Tuning
    – Trace files
    – SQLT output (note: 215187.1)
    – Trace Analyzer (note: 224270.1)
    – AWR Report (note: 748642.1)
    – AWR SQL Report (awrsqrpt.sql)
    – 11g SQL Monitoring
    – SQL Tuning Advisor
    • PL/SQL Tuning
    – Product logs
    – PL/SQL Profiler (note: 808005.1)
    • Reports Tracing
    – note: 111311.1
    • Database Tuning
    – AWR Report (note: 748642.1)
    – ADDM report (note: 250655.1)
    – Automated Session History (ASH) Report
    – LTOM output (note: 352363.1)
    • Forms Tuning
    • Forms Tracing (note: 373548.1)
    • FRD Log (note: 445166.1)
    – Generic note: 438652.1
    • Middletier Tuning
    – JVM Logs
    – JVM Sizing (note: 362851.1)
    – JDBC Tuning (note: 278868.1)
    • OS
    – OSWatcher (note: 301137.1)

  • Do we have a fix for the justification bug in cfdocument for CF8?

    Do we have a fix for the justification bug in cfdocument for CF8?

    For IDocs it is [ABAP->Data Transfers|ABAP Connectivity;.
    The rest...not sure. Maybe there as well, or XI? Other suggestions?
    Thomas

  • Predictive is always bug and hang for iOS 8.3 system

    predictive is always bug and hang for my iOS 8.3 version

    I'm not seeing any issues with it at all.
    Try a reset: Simultaneously hold down the Home and On buttons until the device shuts down. Ignore the off slider if it appears. Once shut down is complete, if it doesn't restart on it own, turn the device back on using the On button. In some cases it also helps to double click the Home button and close all apps BEFORE doing the reset.

  • Bug in conditional for loop with an empty array

    There appears to be a bug in the for loop with a conditional terminal.
    If an empty array is wired to an auto-indexed array input tunnel, an output array tunnel has one element instead of zero.
    The array constant on the left is empty.
    Top loop without the conditional terminal produces an empty array.
    The bottom loop with a never true conditional terminal produces an array with one element
    Using LabVIEW version 8.5
    Message Edited by TrevMrgn on 05-05-2009 02:01 PM
    Solved!
    Go to Solution.
    Attachments:
    For loop bug.png ‏3 KB

    Creating the example from scratch, I do not see the error.
    Neither do I.
    If I add one or more elements to the array (constant or control), then delete them all (using 'Delete Element') the bottom array has one element.
    Nup. Still empty.
    If I empty the array (using 'Empty Array') both are empty.
    Yep.
    Also if I create an empty array using 'initialise array' with zero elements, I get one element.
    Nup. Still empty.
    'Show constant folding' does not appear to change the behaviour, but including a random operation in the loop does.
    Agreed that constant folding doesn't cause any odd behaviour. Introducing a random operation (adding two constants) in the loop doesn't either.
    I've tried all your methods here Trevor, but I can't replicate this behaviour in 8.5.1 under WinXP SP3. Sorry!
     Maybe somebody else will be able to help, or find a useable workaround.
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • DST iCal bug (at least for Sony Ericsson mobiles)

    The recent Daylight Savings changes caused a baffling bug to show itself. I keep my phone's calendar (Sony Ericsson K610i) synchronised with my iCal calendar. This includes my timetable for the academic term, with about 13 weekly recurring events.
    As the term starts in September, they straddle the change in daylight savings, so when the change occurred, all these recurring events appeared an hour earlier on my phone than in iCal.
    I thought this was a time zone issue, but no amount of fiddling with time zone and DST settings on the phone resolved this. Eventually, I realised they were recurring, and moved the first occurrence of each event after the DST change in iCal, selecting "Update All Future Events", then moved them back. Suddenly on synching, they're correct (though only after the DST change — a well-known limitation).
    This meets the definition of a bug in my mind, and should be resolved automatically by iCal/iSync. I hope that Apple will do something about this, as I couldn't find any explanation of this at all.

    This has always been the case, for all Sony Ericsson phones, and neither Apple nor Sony Ericsson seem willing to fix it through years of different handsets and updated versions of iSync.
    Basically, all you have to do when the clocks change, is change the Daylight Savings setting in the phone accordingly, and re-sync.
    Everything will then be fine right up until any events after the next clocks change - so you're good for 6 months anyway!
    I've also fiddled with all the internal options within the iSync (not accessible through the interface), and nothing works satisfactorily there either. It's possible to disable time zone support completely, but then you have to just change the time on the phone, instead of the Daylight Savings setting, so it's no easier than just re-syncing.

  • [SOLVED] Kernel bug fix, works for me!

    Having been hit by the kernel bug that interferes with internet access & having to downgrade the kernel to escape the bug.  I am happy to say that after reading a bug report on the subject here:
    http://bugzilla.kernel.org/show_bug.cgi?id=11721
    Courtesy of a link posted by Misfit138, I found deep down in the report dialogue that the following command as root, worked for the poster of the bug:
    echo 0 > /proc/sys/net/ipv4/tcp_timestamps
    So I did a yaourt -Syu & found amongst other packages a minor kernel update, which did not solve my internet problems, but after su, & then entering the above command in the Terminal my internet works as it should!
    If this solution works for you, then add the following to your /etc/sysctl.conf:
    #Temporary workaround for tcp issue with 2.6.27
    net.ipv4.tcp_timestamps = 0
    Thanks again Misfit138
    I hope this solution works for all of the other bug bitten members of the Arch (& Linux) community!
    Last edited by handy (2008-10-21 05:19:03)

    THANX !!!  Works like normal again
    I saw that bug report too, just didnt know how to try it out, thanx so much for the helpful explanation.
    Regards,
    rabid0
    Last edited by RabidWolf (2008-10-21 20:26:23)

  • How do I submit a bug to microsoft for TEE

    I'm not sure but I think I may have found a bug in TEE on Linux.  The
    question on stackoverflow was answered but I've just run into the same problem when trying to merge our trunk to my branch.  In short, the root of the problem is that was a directory named
    Directory.  Over the course of time, our naming conventions changed and this directory became named
    directory (the case change).  Interestingly, two files (a *.cpp and *.h) somehow were still associated with the first directory name though the directory named was changed and preserved the new case.  The problems should be apparent for Linux
    users.
    Now, as the link I provided mentions, I did try to fix this by using the tf rename command, but after the command was executed to rename the first file, I could do nothing more using TEE because of this error:
    java.io.FileNotFoundException: /home/andy/devel/project/directory/code.cpp (No such file or directory).  Ok, I just moved on.  A coworker executed the very same command from a Visual Studio Command Prompt and it worked and he was
    able to check in the named files.  "Great," I thought, I'll merge with main and continue.  I did so using the
    tf merge -recursive <source_branch> <dest_branch> and promptly ran into the same problem when trying to do
    tf status and any other tf command. 
    It seems that there might be a bug in how metadata is handled in this case when using TEE in Linux.  How can I submit this to Microsoft?

    http://www.apple.com/feedback/itunesapp.html
    https://discussions.apple.com/thread/4553482 - "Many albums' artwork doesn't display in my Library.  However once I pull up the info window for one track, and return to the album list, the artwork magically appears."
    "...some album covers were missing in album view. Apple says this is a rare bug, but one it has solved and will fix in a minor update soon." - http://allthingsd.com/20121204/itunes-gets-an-upgrade-without-missing-a-beat/

  • Binary file save - bug in lv8 for MAC ?

    Hi,
    Using LV8 on Mac OSX, I found a bug concerning binary file saving (attached file).
    Write an array of double in a binary file. Read it back.
    If you used little endian,ok. If you used Big-endian, result is wrong (but no error).
    Could a mac user replicate ?
    Boris Matrot
    Attachments:
    bin_file_save_lv8_mac.vi ‏14 KB

    Just as an additional data point, everything works fine under Windows.
    (As a workaround, have you tried flattening the data for writing? I don't have a MAC, so I cannot test.)
    Message Edited by altenbach on 01-19-2006 12:41 PM
    LabVIEW Champion . Do more with less code and in less time .

Maybe you are looking for

  • How to Binding the MainPage's variable in XAML

    public sealed partial class MainPage : Page public double StatusbarOpacity { get; set; }//Slider's value binding public MainPage() this.InitializeComponent(); <Slider Value="{Binding StatusbarOpacity}" Maximum="100" Background="DarkOrange" BorderBrus

  • Simple nib file question

    I believe that all the examples I've seen of nib/xib files have been connections to the corresponding controller or view files, or to the app delegate and the main window, Please correct me if I'm wrong, I might just be tired and missing an important

  • How to configure workflow in 11i

    How to configure workflow in 11i 11i EBS, Linux-Oracle DB-10.2.0.4

  • Get a word document at background

    Hi all, We have a requirement here that we need to get a word document at background. Basically to archive the result layout of a smartform but in a word document. Since the client need to change it. And since it is an BSP application, we need to do

  • How to do File IO in a servlet

              Please copy replies to my email address if you don't mind.... :-)           I'm trying to read and write files from my servlet, but I keep getting exceptions. Do I have to set some permissions somewhere?           Thanks,           Sam Grif