Strange behavior retrieving bean from ComponentSession

Hi,
I can not access my bean in the component session in the doProcessAfterInput()...
First my iView displays a JSP...in this JSP the bean will be set in the session by this:
<jsp:useBean id="jspdynpagetestbean" scope="session" class="JSPDynPageTestBean" />
I retrieve my bean in the iView this way:
IPortalComponentRequest req = (IPortalComponentRequest)this.getRequest();
try
    if (obj != null)
    tbean = (JSPDynPageTestBean)obj;
} catch(Exception e)
    ((IPortalComponentResponse)this.getResponse()).write(e.toString());
...I accessing the bean like above in the doProcessBeforeOutput() and in the doProcessAfterInput()...the difference is, that in the doProcessBeforeOutput() it works...but not in the doProcessAfterInput...
I do not understand this....any ideas ?
Thanks
Oliver

Try the following for scope = session:
//HTTPServlet:
//Get a value:    
Object value = request.getSession().getValue(String key);
//Put/set a value:    
request.getSession().putValue(String key, Object value);
//Portal:
//Get a value:    
Object value = componentRequest.getComponentSession().getValue(String key);
//Put/set a value:    
componentRequest.getComponentSession().putValue(String key, Object value);
Brian

Similar Messages

  • Strange behavior with images from iPhone

    I'm wondering if anyone else has seen this behavior or can replicate.
    Take some pictures using an iPhone 3Gs (can't tell if it happens with other models).
    Bring the images into iPhoto and then drag them out to regular folders.
    Choose Cmd/Ctrl-D to place.
    The image, which is in Portrait orientation, comes into CS5 strangely.
    The frame does not hug the correct orientation of the image. Instead it follows a landscape orientation as if the image was rotated 90 degrees.
    When you let go from dragging the frame, the image appears vertical within the lanscape frame.
    The only way to get the frame any way close to the vertical orientation is to hold the Shift key.
    I have also noticed that these images are added to a video editing program rotated into a landscape mode.

    There's no such thing as a vertical or horizontal image with iPhones or any phone that sports and accelerometer. It's just a tag they add to images that is inconsistently supported. All photos are landscape, just some are tagged to indicate they are portrait. It's like when I was growing up I always thought my dad was Superman only to later find out he was just a drunk wearing a cape.
    If you want to just pull the images directly off the phone or just a generally nice thing for your iPhone/Pod/Pad you can get PhoneDisk. Costs nothing and works great other than my minor user interface complaint that they take advantage of the menubar's menuextras area that is supposed to be Apple only and hardware only at that. Human Interface Guidelines aside, it is a really nice utility.
    http://www.macroplant.com/phonedisk/

  • Strange behavior after waking from sleep

    I recently got a Mac Pro 3.33GHz 6-core and put an OWC 60G SSD in as the boot drive. It worked great for the first month or so, but now it's acting strange. Before, when waking from sleep, my computer would immediately come on and be ready to use. Now when I wake it up, it takes a good 20 seconds for me to be able to use. (It's a very long time compared to my computer being awake before I could turn on the monitor.)
    When waking, moving the mouse makes a stuttering motion and its not useable at all until my computer is done with whatever its doing. And, my external firewire drive always crashes like I didn't properly eject it. It never used to do this.
    I've tried waking my computer without the drive on but it still acts the same. I haven't changed or installed anything since it has been doing this. Does anybody know what's going on? Thanks

    Yes that is something I was thinking about mentioning which is called zapping the pram. It will reset some of your settings back to there defaults but no big deal and it does eat up your battery on your logic board so only do it when needed.
    It may get rid of the problem.
    as cscscs said.
    while restarting, hold down option, command, P and R all together, which is supposed to do some kind of restore to hardware (I think)
    Before you hit the power switch hold down the command option p and r keys then hit the power button and hold it down until you here the computer chime twice then let go.
    I found apples instructions here.
    Resetting PRAM and NVRAM
    http://support.apple.com/kb/ht1379
    1. Shut down the computer.
    2. Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    3. Turn on the computer.
    4. Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    5. Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    6. Release the keys.
    the other bit he said about holding the boot button with everything unplugged I have not heard before but I would do it then zap the pram and see if your good to go.

  • Unix2dos strange behavior - deletes data from file

    Hello,
      I have a rather strange problem with converter unix2dos, meaning:
    In a PL/SQL procedure i write a file under unix SO since my database is on AIX. The end-users need the file in windows format so after writing the file i run the converter unix2dos for the file just written.
    The problem i am facing is that after the convertion from the result file are missing the last two lines (with data) - these lines are in the file written in aix format.
    Have you ever faced this kind of problem? Any ideas?
    Thank you and have a nice day,
    Oana

    unix2dos is nothing to do with SQL or PL/SQL.  It's a unix utility, tried and tested, and I've never had a problem with it.  Typically it's not needed as people transfer files using FTP in ASCII mode which automatically converts the text files as it transfers them.  We've only used unix2dos for file transfer between unix and windows servers where the files are extremely large and we need quick transfers so we're not using FTP, but are rather using rsync, which doesn't convert the files, so we unix2dos them first, then let rsync do it's thing to just send the differences over the network.
    Never had a problem with unix2dos.
    You need to show us your code if you think it's relevant to the issue, but as long as you're writing out your data and closing the file correctly so that the buffers are emptied and file handles released, then there shouldn't be any issue, certainly not anything that's Oracle's issue.

  • Strange Behavior when Switching from/to Library

    Some annoying behavior has presented itself in my copy of iTunes. It didn't used to work this way but now when I've made a selection in my Library (say an band or a particular album), click play, then switch to some other source (say the Music Store), then switch back...my entire Library is shown...not the selection I had just made.
    So instead of being in Genre (All), Artist (Galaxie 500), Album (All), for example, iTunes switches me back to Genre (All), Artist (All), Album (All).
    This is really annoying and only started happening a month or two ago.
    Any ideas?

    Thank you for the swift replies.
    After Bill asked about the ID Query, I decided to try a few things that I had already gone over just to double check. I was suspspicious that timing was the source of the error. Using a timed while loop, I set the wait time to 10 seconds and got results. As it turns out, 5 seconds is not long enough, but 8 seconds is a sufficient wait time for the program to work. With the problem solved, I am still mystified as to why waiting 8 seconds is required.
    I think that the oscilloscope must be given sufficient time to display the signal on-screen before the Start Aquistion or Get Waveform functions are used. With this logic in mind, the breakpoints were acting as a sort of wait, allowing the signal to be displayed before continuing through the program.
    In response to Jeff, I am indeed using an external direct trigger. The hardware is sound, but apparently, my coding could use some work.
    I have attached the modified code. I am certain that there is a more elegant solution to the timing than simply slapping a timed while loop on the code. Any suggestions?

  • Strange behavior after waking from sleep, lion

    Not sure how to describe my problem... When I come back to my Mac to resume working after the screensaver has been activated for some time (say 10 minutes or longer), the screen is frozen.... Well, not exactly. As I move my mouse around to wake it, it leaves a "pixelated" trail... Almost like an etch-a-sketch. When I locate my login icon, I then click it and the password window is revealed.
    Note: it takes 10 times longer to wake from sleep than it did with Leopard. The system also feels generally much less snappy and responsive. I booted from an external drive today and ran Disk utility to verify and repair (it found tons of issues) but with no improvement. Also note, I performed  "clean install from scratch" this time.
    Someone please help!!!!!

    Hello Mike,
    I wonder if it's a variation of this...
    Resolution
    Move the mouse or trackpad cursor over the center area of the login window so you can see the user icons. Click on the icon of the user that you would like to login as, type in the user's password, and press Return.
    If the login window is configured to show only the name and password fields, type in the user's name and password into the fields, and press Return (even if you cannot see the rest of the login window).
    Additional Information
    This issue will not occur if the display is not sleeping when the account is logged out. Use the steps below to confirm that the account is not configured to log out automatically while the display is sleeping:
    Open System Preferences > Security & Privacy > General.  Click the padlock to unlock the preference pane and enter your admin password. Click the Advanced button at the bottom, then see if the option "Log out after N minutes of inactivity" (where N is the number of minutes) is enabled.
    Open System Preferences > Energy Saver and configure Display Sleep to occur after the account is logged out, by dragging the slider to a number of minutes that is greater than N was set to in the previous step.
    Important: If automatic log out is not needed, disable "Log out after Nminutes of inactivity" in System Preferences > Security & Privacy > General. This will also prevent the issue.
    http://support.apple.com/kb/TS4135?viewlocale=en_US

  • Strange behavior scrolling LongListSelector - WP8

    I have an app where I save the user's contacts in a local Database, then bind this contacts in a LongListSelector.
    The app has a button that,, when clicked, update the local database (make it
    identical to the devide).
    When there is changes, the LongListSelector has a strange behavior after return from search to the list (view): when I scroll fast or after some time scrolling, a blank space appears in the middle of the list. Then I found out that, apparently, the list
    is cutting some items...
    This behavior happens only when I have a long list, like 50 items or more..
    I bind the items on LongListSelector this way:
    XAML:
    <Grid x:Name="ContentPanelContatos" Grid.Row="1" Margin="0" VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
    <Grid x:Name="gridContatos" Grid.Row="1" Margin="12,2,12,0" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" >
    <Grid.RowDefinitions>
    <RowDefinition Height="Auto"/>
    <RowDefinition Height="*"/>
    </Grid.RowDefinitions>
    <Grid Grid.Row="0" Margin="0,0,0,12" >
    <TextBox x:Name="tbxSearch" VerticalAlignment="Top" HorizontalAlignment="Stretch" Visibility="Collapsed" TextChanged="TbxSearch_TextChanged" LostFocus="TbxSearch_LostFocus" Style="{StaticResource TextBoxStyle}" />
    </Grid>
    <phone:LongListSelector Grid.Row="1" x:Name="llsContacts" ItemsSource="{Binding}" SelectionChanged="llsContacts_SelectionChanged" >
    <phone:LongListSelector.ItemTemplate>
    <DataTemplate>
    <ListBoxItem local:TiltEffect.IsTiltEnabled="true">
    <Grid Margin="0,0,0,10" >
    <TextBlock Text="{Binding NAME, Mode=TwoWay}" FontFamily="Segoe WP" FontSize="28" Margin="77,0,0,0" />
    <TextBlock Text="{Binding Path=NUMBER, Mode=TwoWay}" FontFamily="Segoe WP Light" FontSize="17" Margin="77,33,0,0"/>
    </Grid>
    </ListBoxItem>
    </DataTemplate>
    </phone:LongListSelector.ItemTemplate>
    </phone:LongListSelector>
    </Grid>
    <!-- more 2 grids with contents -->
    </Grid>
    I was binding the items using ObservableCollection and I was having this problem.. Then I tried to erase the list and bind it again (after the search) this way:
    if (llsContacts.ItemsSource != null)
    llsContacts.ItemsSource.Clear();
    llsContacts.DataContext = daoRd.GetData();
    But I'm still with this problem...
    Does anybody can tell me what is happening?
    Am I doing something wrong?
    Reading this article:
    Frame rate counters in Windows Phone, I noticed that when this problem happens, some of the numbers that are on the side of the screen when debugging, stops changing...
    They stops like this:
    User Interface Thread FPS: 000
    Texture Memory Usage: 007181
    Surface Counter: 050
    Intermediate Texture Counter: 002
    Does this numbers means something?

    have you dumped the contents of what is returned from daoRD.GetData()?   Could be one of the items in the collection has blank strings?   Also I noticed you clear the ItemsSource before setting the DataContext.  That is probably
    not necessary if you are setting the DataContext immediately after that.
    Bret Bentzinger (MSFT) @awehellyeah

  • Strange behavior switching from JSF to JSP2

    I am learning JSF and was trying to implement a small exercise on EL (with JSF page and JSP2). i found a strange behavior and completely clueless of the reason behind it. Please find my code below and scenario
    MY JSP file
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <f:view>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD><TITLE>Accessing Bean Properties</TITLE>
    <LINK REL="STYLESHEET"
          HREF="./css/styles.css"
          TYPE="text/css">
    </HEAD>
    <BODY>
    <TABLE BORDER=5 ALIGN="CENTER">
      <TR><TH class="TITLE">Accessing Bean Properties: JSP2_1 result</TH></TR>
    </TABLE>
    <% System.out.println("Accessing Bean Properties: JSP2_1 result"); %>
    <OL>
      <LI>${favColors.col[0]}
      <LI>${favColors.col[1]}
      <LI>${favColors.col[2]}
      <LI>${favColors.col[3]}
      <LI>First Name ${favColors.firstName}
      <LI>Second Name ${favColors.middleName}
      <LI>ThirdName Name ${favColors.lastName}
    </OL>
    <BR><BR><BR>
    <TABLE BORDER=5 ALIGN="CENTER">
      <TR><TH class="TITLE">Accessing Bean Properties</TH></TR>
    </TABLE>
    <% System.out.println("Accessing Bean Properties"); %>
    <UL>
    <LI><h:outputText
             value="#{favColors.col[0]}"/>
    <LI><h:outputText
             value="#{favColors.col[1]}"/>
    <LI><h:outputText
             value="#{favColors.col[2]}"/>
    <LI><h:outputText
             value="#{favColors.col[3]}"/>
    <LI>First Name = <h:outputText
             value="#{favColors.firstName}"/>
    <LI>Second Name = <h:outputText
             value="#{favColors.middleName}"/>
    <LI>last Name = <h:outputText
             value="#{favColors.lastName}"/>
    </UL>
    <BR><BR><BR>
    <TABLE BORDER=5 ALIGN="CENTER">
      <TR><TH class="TITLE">Accessing Bean Properties: JSP2_2</TH></TR>
    </TABLE>
    <% System.out.println("Accessing Bean Properties: JSP2_2"); %>
    <OL>
      <LI>${favColors.col[0]}
      <LI>${favColors.col[1]}
      <LI>${favColors.col[2]}
      <LI>${favColors.col[3]}
      <LI>First Name ${favColors.firstName}
      <LI>Second Name ${favColors.middleName}
      <LI>ThirdName Name ${favColors.lastName}
      </OL>
    <BR><BR><BR>
    <TABLE BORDER=5 ALIGN="CENTER">
      <TR><TH class="TITLE">Accessing Bean Properties: JSP from and submit</TH></TR>
    </TABLE>
    <% System.out.println("Accessing Bean Properties: JSP from and submit");%>
    <h:form>
       Color 1
      <h:inputText value="#{favColors.col[0]}"/>
      <BR>
       Color 2
      <h:inputText value="#{favColors.col[1]}"/>
      <BR>
       Color 3
      <h:inputText value="#{favColors.col[2]}"/>
      <BR>
       Color 4
      <h:inputText value="#{favColors.col[3]}"/>
      <LI>First Name = <h:inputText
             value="#{favColors.firstName}"/>
    <LI>Second Name = <h:inputText
             value="#{favColors.middleName}"/>
    <LI>last Name = <h:inputText
             value="#{favColors.lastName}"/>
      <BR>
    <% System.out.println("Process"); %>
      <h:commandButton value="Process"
      action="#{favColors.processColors}"/>
      </h:form>
    <P>
    Taken from
    <A HREF="http://www.coreservlets.com/JSF-Tutorial/">
    the coreservlets.com JSF 1.x and JSF 2.0 tutorials</A>.
    </BODY></HTML>
    </f:view>
    The above JSP file is giving the below output on IE
    Accessing Bean Properties: JSP2_1 result
    First Name
    Second Name
    ThirdName Name
    Accessing Bean Properties
    red
    green
    white
    black
    First Name = Tarun
    Second Name = kumar
    last Name =
    Accessing Bean Properties: JSP2_2
    red
    green
    white
    black
    First Name Tarun
    Second Name kumar
    ThirdName Name
    Why is there a difference in output between Accessing Bean Properties: JSP2_1 & Accessing Bean Properties: JSP2_2 when the code written is the same. My Controller bean class below
    package task2;
    public class FavortiteColors {
      String[] col;
      public void setCol(String[] col) {
      this.col = col;
      public String[] getCol(){
      System.out.println("in getCOl");
      String[] col = new String[4];
      col[0] = "red";
      col[1] = "green";
      col[2] = "white";
      col[3] = "black";
      return col;
      public String processColors(){
      System.out.println("in processcol");
      return "pass";
      private String firstName = "Tarun";
      private String lastName ;
      private String middleName ;
      public String getMiddleName() {
      System.out.println("in getMiddleName");
      return "kumar";
      public void setMiddleName(String middleName) {
      System.out.println("setMiddleName");
      this.middleName = middleName;
      public String getFirstName() {
    System.out.println("getFirstName");
      return firstName;
      public void setFirstName(String firstName) {
      System.out.println("setFirstName");
      this.firstName = firstName;
      public String getLastName() {
      System.out.println("getLastName");
      return lastName;
      public void setLastName(String lastName) {
      System.out.println("setLastName");
      this.lastName = lastName;

    FYI, If you don't want to use a prefix mapping, you can use JSFTemplating. It supports the Facelets syntax for composition / insert / define / include, etc. However, it doesn't rely on the DEFAULT_SUFFIX to find pages.
    However, even though JSFT (and Faclets) have the ability to limit their scope to a subset of your application and/or behave well with other ViewHandlers. That doesn't mean the Tiles ViewHandler will... it might, I just don't know anything about it.
    Good luck!
    Ken

  • Strange Behavior from iTunes 7.2

    Running itunes - 7.2Recently had my itunes library “corrupted” or non functional.
    Spent a long, long time rebuilding the library (see below) and noticed some strange behavior that has me terrified that itunes is corrupted and I am going to loose all the hard work, etc..
    1. I have about 100 GB of music in various formats (apple protected/itunes store, mp3 (128 to 320), apple lossless, wav) and when I tried to rebuild the library by clicking on add to library it only added about 65 GB of the 100 GB. I had to go through and figure out what was missing and manually choose the specific folder when I added it.
    Major pain and very time consuming.
    So it is not adding songs correctly, but through way too much effort able to work around this.
    2. About ½ of the itunes store tunes I purchased are no longer apple protected format. Somehow they were converted to mp3 at 192kbs. Some of the songs play fine others are now not as crisp and make a poping sound or skip. How could this happen? Are these files corrupted? Will I loose them?
    3. At the top center of itunes the information bar, where the read out is for what song is playing and how much time has elapsed in the song, is not working. When I click on a song it starts playing but the elapsed time bar and counter never move, and when the next song starts playing the information never changes. It is stuck on what ever song you initiate play with by clicking on it and the information stays frozen.
    4. itunes randomly stops playing at the end of a song….If listening to an album it is usually after three or four songs and when listening to a play list it is usually after one song.
    I am afraid itunes is corrupted and will not function correctly and I am going to loose the hard work I put in trying to recover from the last crash.
    Any suggestions??
    Can’t wait for time machine. I hope it works as advertised. If so I could just go back in time to the last time iTunes worked correctly and go from there.

    First of all I hope that you have a good b/u of all your tunes - either on ext HD or on DVD. Don't forget to b/u the iTunes Library and .xml files at the same time.
    Have you tried to reinstall iTunes? Drag the app to the trash and remove the iTunesX.pkg from HD>Library>Receipts>iTunesX.pkg. Using a fresh .dmg of iTunes 7.2 reinstall.
    Have you repaired permissions with Disk Utility?
    Is your Quicktime up to date? At least version v7.1.5.
    MJ

  • Strange behavior from a PB G4 (Part 2)

    On to my next issue. Often when I'm typing the insertion point will jump to someplace other than where it should be or just disappear all together. I'm not doing anything to cause it to do this. I've been being really carefull to not to do anything wrong. I'ts often enough to be a real nuisance. It happened 7 times during my first post (Strange behavior from a PB G4) and 3 times during this one. Please help. Thanks.

    Igor_G5 wrote:
    ... I thought about putting in a larger drive but when I looked up instructions for it i was surprized at how difficult it was.
    Did you use the iFixit website? It has excellent pictures and instructions that are easy to follow.
    Replacing any hard disk drive will be challenging for a paraplegic, but with someone's help it can be done fairly inexpensively. There are many tiny fasteners that require tiny tools. Use an egg carton to store them, separated by their location in the PowerBook.
    Earlier PowerBooks are easier to work on than later ones.
    I still use a PowerBook G4 on occasion, mostly for importing video for editing in iMovie. I upgraded its original 60 GB HD to a much larger one. If you were to do this you would need to locate the PowerBook's original System Install DVD to install and subsequently update OS X and all its original programs.
    If you ensure at least a few gigabytes free space, I think most of your problems will be fixed. When free disk space gets down to a few hundred megabytes or less, performance will suffer dramatically. You don't want it to ever get anywhere near that low. Strange things start to happen.
    Keep the number of icons on the Desktop to a minimum also. That makes a difference, for reasons that I do not fully understand.

  • Strange behavior from a TextInput

    Hello there. I have a strange behavior from a TextInput
    component and i want a little help. I have created a movieclip
    within. Inside is just a simple textinput component. When i'm
    dragging the clip from the library to the stage a test the movie
    everything is ok. When i', attaching the movie dynamicaly to the
    stage and try to click within the textinput i' m not getting the
    bar cursor, an d i cannot write within the textinput !!! Why this
    happends? Any ideas?
    I'm working in Flash 8.

    I think it could be the version problem. It is working in
    Flash 8.

  • Can't retrieve bean value from jsp!

    Here's the chain of events for my web app:
    JSP form (get info from user) -> forwarding jsp (uses bean to save info submitted to form)-> servlet (retrieves info from DB) -> JSP (presents DB info to user by populating values in text fields from original form)
    Right now, I can access all the values submitted to the first JSP from my servlet. However, after my servlet retrieves the info from a db and stores it in a bean and forwards the request (using requestdispatcher) to the 2nd JSP, I can't get the values from the bean from the 2nd jsp. I was able to use the bean to store the information submitted to the original JSP, however.
    Here's some relevant code:
    FROM FORWARDING JSP (which saves user-submitted info in bean)
    <jsp:useBean id="fxFormBean" class="fxmatcher.FxFormBean" scope="request"/>
    <jsp:setProperty name="fxFormBean" property="*" />
    <jsp:forward page="/FxMatcher" />
    FROM LAST JSP (which should populate form fields)
    header stuff:
    <jsp:useBean id="fxFormBean" class="fxmatcher.FxFormBean" scope="session"/>
    info retrieval:
    <INPUT TYPE="text" NAME="fx_key" value="<%= fxFormBean.getFx_key() %>">
    I wrote this JSP based on the example given here: http://www.jsptut.com/Editing.jsp, but I'm not getting the value from the bean. The result JSP just has value="".
    I'm pretty sure that my servlet is saving the info to bean correctly, but here's the code anyways:
    //retrieves info from DB
    FxFormBean fx = (FxFormBean) request.getAttribute("fxFormBean");
    fx.setFx_key (traderKey);
    fx.setAa_block(agent_block);
    fx.setAddition_to (additional_to);
    log("trader key: [" + fx.getFx_key() + "]"); //debugging code
    My debugging code did print out the correct info, so I don't think there's anything wrong with the bean or the servlet.
    I would appreciate any help. Thank you very much.

    The first JSP puts the bean in the request, the servlet retrieves the bean from the request and updates it but in the second JSP you set the scope to session:
    <jsp:useBean id="fxFormBean" class="fxmatcher.FxFormBean" scope="session"/>
    So the second JSP is looking in the wrong place for your bean. Change the scope in the second JSP to request:
    <jsp:useBean id="fxFormBean" class="fxmatcher.FxFormBean" scope="request"/>

  • Strange behavior  in entity bean : get Timestamp

    Hello:
    I'm working with SUNONE 7 AppServer , over SunOS 5.9
    I've a strange behavior with entity's get methods which return Timestamp value.
    For example, I've got
    Timestamp date;
    If I do
    entity.setF(date) , ( date is a Timestamp with value "12/12/2005 12:30:00" )
    all works right, and in database is wrote right ( "12/12/2005 12:30:00" )
    But , if I do
    date = entity.getF()
    the, date variable has the value "12/12/2005 00:00:00"
    So, in get method is lost the time value of a Timestamp data
    Could be a code bug in my source , but if I use Jboss AS over Windows XP , all work right ( set and get methods ). The database is the same one ( Oracle 9i )

    Well, I found the solution.
    The problem was the ojdbc14.jar driver, which made wrong schema files.
    Exactly, with the bad ojdbc14.jar, generated this entry
    <_type>91</_type>
    when the right one for date types ( Timestamp ) is
    <_type>93</_type>
    I dont know why the new ojdbc14.jar works fine, but I paste its size
    good ojdbc14.jar : 1181679 bytes

  • Can anyone Reproduce This screencast? Strange behavior from Mac

    https://drive.google.com/file/d/0B5LXJD4aR7maZng4cnl6Z2UxS28/edit?usp=sharing
    1.  Open finder and click go
    2.  go to /var
    3.  click on var alias and go to at file
    After you open the /var/at folder there is a file called at.deny
    4.  Click on the file called at.deny and open with other application
    You can only open it with Imessage, applemail or text edit.  Notice in the screen cast that it automatically sends the at.deny file to any address that I type in I message. 
    5.  You can also click on chron.deny and you can send that file automatically in Imessage or applemail.  IS THIS NORMAL.
    I AM PRETTY MUCH A NOVICE, BUT THIS MAC HAS SOME STRANGE BEHAVIORS.  COULD THIS BE WHAT THEY CALL A BACKDOOR????APPLE JUST SCRATCHES THEIR HEAD??????]

    This is a file that is located at /var/db/caches/opendirectory/cache_mbr
    Does any other mac users have this type of file

  • Strange behavior: action method not called when button submitted

    Hello,
    My JSF app is diplaying a strange behavior: when the submit button is pressed the action method of my managed bean is not called.
    Here is my managed bean:
    package arcoiris;
    import java.util.ArrayList;
    import java.util.List;
    import javax.faces.model.SelectItem;
    public class SearchManagedBean {
        //Collected from search form
        private String keyword;
        private String country;
        private int[] postcode;
        private boolean commentExists;
        private int rating;
        private boolean websiteExists;
        //Used to populate form
        private List<SelectItem> availableCountries;
        private List<SelectItem> availablePostcodes;
        private List<SelectItem> availableRatings;
        //Retrieved from ejb tier
        private List<EstablishmentLocal> retrievedEstablishments;
        //Service locator
        private arcoiris.ServiceLocator serviceLocator;
        //Constructor
        public SearchManagedBean() {
            System.out.println("within constructor SearchManagedBean");
            System.out.println("rating "+this.rating);
        //Getters and setters
        public String getKeyword() {
            return keyword;
        public void setKeyword(String keyword) {
            this.keyword = keyword;
        public String getCountry() {
            return country;
        public void setCountry(String country) {
            this.country = country;
        public boolean isCommentExists() {
            return commentExists;
        public void setCommentExists(boolean commentExists) {
            this.commentExists = commentExists;
        public int getRating() {
            return rating;
        public void setRating(int rating) {
            this.rating = rating;
        public boolean isWebsiteExists() {
            return websiteExists;
        public void setWebsiteExists(boolean websiteExists) {
            this.websiteExists = websiteExists;
        public List<SelectItem> getAvailableCountries() {
            List<SelectItem> countries = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue("2");
            si_1.setLabel("ecuador");
            si_2.setValue("1");
            si_2.setLabel("colombia");
            si_3.setValue("3");
            si_3.setLabel("peru");
            countries.add(si_1);
            countries.add(si_2);
            countries.add(si_3);
            return countries;
        public void setAvailableCountries(List<SelectItem> countries) {
            this.availableCountries = availableCountries;
        public List<SelectItem> getAvailablePostcodes() {
            List<SelectItem> postcodes = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue(75001);
            si_1.setLabel("75001");
            si_2.setValue(75002);
            si_2.setLabel("75002");
            si_3.setValue(75003);
            si_3.setLabel("75003");
            postcodes.add(si_1);
            postcodes.add(si_2);
            postcodes.add(si_3);
            return postcodes;
        public void setAvailablePostcodes(List<SelectItem> availablePostcodes) {
            this.availablePostcodes = availablePostcodes;
        public List<SelectItem> getAvailableRatings() {
            List<SelectItem> ratings = new ArrayList<SelectItem>();
            SelectItem si_1 = new SelectItem();
            SelectItem si_2 = new SelectItem();
            SelectItem si_3 = new SelectItem();
            si_1.setValue(1);
            si_1.setLabel("1");
            si_2.setValue(2);
            si_2.setLabel("2");
            si_3.setValue(3);
            si_3.setLabel("3");
            ratings.add(si_1);
            ratings.add(si_2);
            ratings.add(si_3);
            return ratings;
        public void setAvailableRatings(List<SelectItem> availableRatings) {
            this.availableRatings = availableRatings;
        public int[] getPostcode() {
            return postcode;
        public void setPostcode(int[] postcode) {
            this.postcode = postcode;
        public List<EstablishmentLocal> getRetrievedEstablishments() {
            return retrievedEstablishments;
        public void setRetrievedEstablishments(List<EstablishmentLocal> retrievedEstablishments) {
            this.retrievedEstablishments = retrievedEstablishments;
        //Business methods
        public String performSearch(){
            System.out.println("performSearchManagedBean begin");
            SearchRequestDTO searchRequestDto = new SearchRequestDTO(this.keyword,this.country,this.postcode,this.commentExists,this.rating, this.websiteExists);
            SearchSessionLocal searchSession = lookupSearchSessionBean();
            List<EstablishmentLocal> retrievedEstablishments = searchSession.performSearch(searchRequestDto);
            this.setRetrievedEstablishments(retrievedEstablishments);
            System.out.println("performSearchManagedBean end");
            return "success";
        private arcoiris.ServiceLocator getServiceLocator() {
            if (serviceLocator == null) {
                serviceLocator = new arcoiris.ServiceLocator();
            return serviceLocator;
        private arcoiris.SearchSessionLocal lookupSearchSessionBean() {
            try {
                return ((arcoiris.SearchSessionLocalHome) getServiceLocator().getLocalHome("java:comp/env/ejb/SearchSessionBean")).create();
            } catch(javax.naming.NamingException ne) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ne);
                throw new RuntimeException(ne);
            } catch(javax.ejb.CreateException ce) {
                java.util.logging.Logger.getLogger(getClass().getName()).log(java.util.logging.Level.SEVERE,"exception caught" ,ce);
                throw new RuntimeException(ce);
    }Here is my jsp page:
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
    <%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
             <html>
                 <head>
                     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
                     <META HTTP-EQUIV="pragma" CONTENT="no-cache">
                     <title>JSP Page</title>
                 </head>
                 <body>
                     <f:view>
                         <h:panelGroup id="body">
                             <h:form id="searchForm">
                                 <h:panelGrid columns="2">
                                     <h:outputText id="keywordLabel" value="enter keyword"/>   
                                     <h:inputText id="keywordField" value="#{SearchManagedBean.keyword}"/>
                                     <h:outputText id="countryLabel" value="choose country"/>   
                                     <h:selectOneListbox id="countryField" value="#{SearchManagedBean.country}">
                                         <f:selectItems id="availableCountries" value="#{SearchManagedBean.availableCountries}"/>
                                     </h:selectOneListbox>
                                     <h:outputText id="postcodeLabel" value="choose postcode(s)"/>   
                                     <h:selectManyListbox id="postcodeField" value="#{SearchManagedBean.postcode}">
                                         <f:selectItems id="availablePostcodes" value="#{SearchManagedBean.availablePostcodes}"/>
                                     </h:selectManyListbox>
                                     <h:outputText id="commentExistsLabel" value="with comment"/>
                                     <h:selectBooleanCheckbox id="commentExistsField" value="#{SearchManagedBean.commentExists}" />
                                     <h:outputText id="ratingLabel" value="rating"/>
                                     <h:selectOneListbox id="ratingField" value="#{SearchManagedBean.rating}">
                                         <f:selectItems id="availableRatings" value="#{SearchManagedBean.availableRatings}"/>
                                     </h:selectOneListbox>
                                     <h:outputText id="websiteExistsLabel" value="with website"/>
                                     <h:selectBooleanCheckbox id="websiteExistsField" value="#{SearchManagedBean.websiteExists}" />
                                     <h:commandButton value="search" action="#{SearchManagedBean.performSearch}"/>
                                 </h:panelGrid>
                             </h:form>
                         </h:panelGroup>
                     </f:view>
                 </body>
             </html>
         here is my faces config file:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE faces-config PUBLIC
      "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
      "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    <faces-config>
        <managed-bean>
            <managed-bean-name>SearchManagedBean</managed-bean-name>
            <managed-bean-class>arcoiris.SearchManagedBean</managed-bean-class>
            <managed-bean-scope>request</managed-bean-scope>
        </managed-bean>
        <navigation-rule>
           <description></description>
            <from-view-id>/welcomeJSF.jsp</from-view-id>
            <navigation-case>
            <from-outcome>success</from-outcome>
            <to-view-id>index.jsp</to-view-id>
            </navigation-case>
        </navigation-rule>
    </faces-config>The problem occurs when the field ratingField is left blank (which amounts to it being set at 0 since it is an int).
    Can anyone help please?
    Thanks in advance,
    Julien.

    Hello,
    Thanks for the suggestion. I added the tag and it now says:
    java.lang.IllegalArgumentException
    I got that from the log:
    2006-08-17 15:29:16,859 DEBUG [com.sun.faces.el.ValueBindingImpl] setValue Evaluation threw exception:
    java.lang.IllegalArgumentException
         at sun.reflect.GeneratedMethodAccessor118.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.sun.faces.el.PropertyResolverImpl.setValue(PropertyResolverImpl.java:178)
         at com.sun.faces.el.impl.ArraySuffix.setValue(ArraySuffix.java:192)
         at com.sun.faces.el.impl.ComplexValue.setValue(ComplexValue.java:171)
         at com.sun.faces.el.ValueBindingImpl.setValue(ValueBindingImpl.java:234)
         at javax.faces.component.UIInput.updateModel(UIInput.java:544)
         at javax.faces.component.UIInput.processUpdates(UIInput.java:442)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIForm.processUpdates(UIForm.java:196)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIComponentBase.processUpdates(UIComponentBase.java:935)
         at javax.faces.component.UIViewRoot.processUpdates(UIViewRoot.java:363)
         at com.sun.faces.lifecycle.UpdateModelValuesPhase.execute(UpdateModelValuesPhase.java:81)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
         at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
         at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
         at java.lang.Thread.run(Thread.java:595)
    2006-08-17 15:29:16,875 DEBUG [com.sun.faces.context.FacesContextImpl] Adding Message[sourceId=searchForm:ratingField,summary=java.lang.IllegalArgumentException)Do you see where the problem comes from??
    Julien.

Maybe you are looking for