Strange behavior on updating...

Ok,
just a disclaimer.... I'm new to Workshop, total time I've been using it is about
two weeks...
I'm working with WLS 8.1 on Win2k. Some strange things happen during the day
while redeploying/updating the app. I have a simple pageflow that is retreiving
a list of data from my db and displaying it in a grid. The flow will work sometimes,
then if I update/repdeply from Workshop, it will fail.
If I restart or sometimes just change the jpf file, then redeploy it might work.
But if I'm just changin a jsp or css file... the error occurs.
Can I expect to just "update/repdeploy" all day while working in Workshop....
Or am I missing a step or two?
thanks,
John

Josh Eckels <[email protected]> wrote:
After you've run the JSP and the Start button is enabled in the .portal
file, do you get a dialog asking if you'd like to re-run the JSP, or
can you run the .portal file directly?I can run it directly. I tried to experiment more systematically today but was
only able to experience the problem immediately after starting workshop. Moreover,
it is not necessary
to actually run the JSP. It suffices to double-click it. That is: I start workshop,
double-click
the .portal file, start is disabled, I double-click a .jsp file, start is now
enabled, I immediately
double-click the .portal file, start is now enabled. Since the work-around is
so simple and quick, the problem doesn't bother me anymore :-).
This sounds like it's probably a deployment problem, [...]
If you see that dialog again, you may be able to get more specific
information about the current state of deployment in the WebLogic Server
console, or by starting without debugging and checking for an error message in the browser.I started to monitor closely what happens in the console during my build, deployment,
and start activities. I think you are right that when I experience unintended
effects in
workshop it is typically due to problems with deployments.
The question then remains what, in turn, causes these problems (incorrect deployment
by me
or by the system). By looking closer at the documentation and what actually happens
when
building, deploying and running applications, I can see that I have been (and
still is) a little
bit confused about exactly what is done under certain circumstances.
For instance, smart debugging only means that the current file is checked for
changes when
starting the debugger. Thus, if other files are updated, but not the current one,
the application
is apparently not rebuilt/redeployed. However, if the current file is changed,
there is a new
build and deployment, but based on the (short) time taken to perform this, it
does not look
like a total build (which takes much longer). Also, by looking in the console
during the
deployment, one can see that not all files are begin updated, as opposed to the
situation
when one performs a full build of the project or application. So, what happens
if both the current file and also other files are changed.
QUESTION: Are the changes on the other files taken into account, or ignored?
Another thing that might have caused confusion for me is that the application
is redployed automatically after a build, even if there were build errors. If
smart debugging afterwards entails that only part of the deployment is updated
then it is not clear to me that the result is sound. My conclusion is that a total
build should be done in this situation. In this connection I also wonder about
the following questions (that I have also posed in feedback to the online help
documentation):
QUESTION: is there any way to disable automatic deployment after a build?
QUESTION: is there any way to modify the behaviour so that the automatic deployment
only happens if there are no build errors? This would be nice, because deployment
takes quite long
time, and if it is known that the deployment is no good, it would be nice to avoind
it.
QUESTION: Is there any way to have only all changed files rebuild or redeployed,
instead of all (i.e. a generalization of smart-debugging to all changed files,
not just the current file).
QUESTION: you mention in your previous post that one might forget to build+deploy
after a clean. I did some experiments and also concluded that one must do this.
But what is the utility of the clean command then? Why not just do a redeploy
instead of clean+build+deploy?
Thanks for all the help!
M.

Similar Messages

  • Strange behavior in updating and standbying

    Hi,
    In the last 4 weeks I've been facing some strange behavior from my iPhone 4. First, sometimes when I pick it up its screen is already on (dimmed) and showing the lock screen (with some elements missing though). Secondly, and more annoying yet, when I try to update the apps via app store the initial process occurs normally but after loading the first app it begins installing it and keeps in it forever. I have to soft reset the phone. After that, the app (that kept installing) seems ok. So, I repeat the process of update from the beginning (app after app).
    I've already tried to hard reset the device without any luck with any of the problems. Any suggestions about what is going on?
    Thanks
    Adriano

    Hi,
    I'm not clear on the distinction you're making for type of access.
    Well, to be honest, now that I've re-read that this morning I'm not completely sure what I had in mind either. I think I was thinking about using the collection in what I believe the documentation calls "slices". However, given the other information you've posted it doesn't seem like that would be a feasible alternative in any case.
    I understand what you mean about varray and nested-table with the upper-bound limit for the varray's... I've not actually compared the two for performance so my idea that there may be a difference could be completely incorrect. Beyond that, creating code that only works in batches (or slices) may be less performant than what you currently have.
    I hope I've not detracted from the thread and maybe someone else with more experience will have an "ah ha!" sort of observation.
    Regards,
    Mark

  • HTTP Handler strange behavior when updating HR data

    Hi there,
    Brief summary: Executing a function module from inside a HTTP Handler gives a different result than executing the function module direcly through SE37. The user defined for the SICF service calling the Handler is the same as the one we use for SE37.
    Details:
    We have created an HTTP Handler implementing the interface IF_HTTP_EXTENSION.
    We have also defined a new service through SICF that access the previous Handler.
    We have a web application accessing SAP through that HTTP Handler.
    Within our HTTP Handler (within the IF_HTTP_EXTENSION~HANDLE_REQUEST method), we are calling a custom function module that perform different actions depending on the parameters received.
    The solution works really well but we have identified an issue for some actions: when we execute some background updates (like calling HR_INFOTYPE_OPERATION) and the transaction returns an error, the HTTP Handler suddenly stops and the HTTP call returns an error.
    The strange thing is that executing the function module directly (without calling the HTTP handler from the web) captures the error and continues the execution of the function module.
    It seems that when the function module gets called from the Handler, there is some screen or user parameters that affect the result of the transaction, and we cannot find the way to capture that error and let the Handler to continue.
    Any idea, suggestion, alternative solution would be much appreciated
    Best regards,
    Miguel

    Hi Olivier, thanks for your reply, nice to see you are still out there
    You raise a good point. We are reusing an "old" web app that was connecting to SAP through the DCOM connector. The RFC (the function module I mentioned on my first post) cannot be modified as it handles tons of different web calls, so we decided to call that RFC from the Handler.
    It may not be the best solution, but the web app has been modified to call the different handlers (for the different environments) and still hope to find a work around our current problem.
    Other than that, it works really well and performance is amazing
    Thanks again,
    Miguel

  • Strange behavior of WindowsIntune / Win8.1 : Repetitively launch C:\Program Files\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe

    Hi,
    After moving from Win8 to Win8.1 (using WindowsStore update),
    I observed sometimes that some command prompt Windows (ugly black MSDOS Windows) opens / closes Repetitively in my desktop.
    At a moment where the computer was really busy, I was abble to see the title of this black window :
    It was : C:\Program Files\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe
    Can someone tell me how to prevent this strange behavior ?
    Thanks in advance.
    AC Soft.

    I have also openned a case at WindowsIntune support, and up to now, they replyed me this :
    We have been able to reproduce this issue ourselves. We are currently working with our engineers to identify if there is a way to prevent these command prompts from launching.
    So, while waiting, I Tried your solution.
    On the Win8.1 computer that had the problem, i found an AccoundID value, with { }, and all letters in Uppercase, as described in your solution. So, the problem for me is not that AccountID is not populated...
    When I looked at another Win8.1 computer that had not the problem, i found an AccountID value
    without { }, and with all letters
    in lowercase.
    So I looked at a Win7 Virtual machine that was enroled into intune too, and that obviously didn't had the problem, and I found there an AccountID value without { }, and with all letters in lowercase, same as on the working computer.
    So on the computer that had the problem, I removed the { }, put all letters in lowercase, then run
    %ProgramFiles%\Microsoft\OnlineManagement\Updates\Bin\omupdclt.exe /agentupdatenow
    I rebooted the computer, and now, I wait to see if the problem is solved...
    I will tell you what happened in some days...
    AC Soft.
    That process will not fix this issue.  We have a fix coming in an upcoming service release.  
    Thanks,
    Jon L. - MSFT - This posting is provided "AS IS" with no warranties and confers no rights.

  • Strange behavior of db update in debugging and no debugging execution mode

    Hi Experts,
    I am finding a strange behavior of certain Z update function (to update equipment install base) : The update happens perfectly if I go into debug mode and do a F6 on the function call. But if I executed it completed without going in debug mode, that update does not happen!
    I checked the function and found that it does have COMMIT WORK AND WAIT which gets triggered every time I call this function.
    Also does compiling the code with some changes and executing in cycles have any affect on the behavior of code? Do I need to do a /nse38 every time, before I do executing? I am not sure this is in any way related to the problem.
    Will appreciate your helpful responses on this.
    Best regards,
    Vishnu T

    Withing the Z function, it is the calls to SAP standard functions that are doing the update. Here is the function body
    FUNCTION Z_B_BAPI_EQMT_INSTALLHR.
    *"*"Local interface:
    *"       IMPORTING
    *"             VALUE(EQUIPMENT) LIKE  BAPI_EQUI-EQUIPMENT
    *"             VALUE(SUPEREQUI) LIKE  BAPI_EQHR-SUPEREQUI
    *"             VALUE(POSEQUI) LIKE  BAPI_EQHR-POSEQUI OPTIONAL
    *"             VALUE(DATE) LIKE  SY-DATUM DEFAULT SY-DATUM
    *"             VALUE(TIME) LIKE  SY-UZEIT DEFAULT SY-UZEIT
    *"             VALUE(COMMIT) LIKE  VBMOD-VBMODE DEFAULT SPACE
    *"       EXPORTING
    *"             VALUE(EQUIMASTER) LIKE  BAPI_EQUI STRUCTURE  BAPI_EQUI
    *"             VALUE(EQUITIME) LIKE  BAPI_EQUZ STRUCTURE  BAPI_EQUZ
    *"             VALUE(EQUITEXT) LIKE  BAPI_EQKT STRUCTURE  BAPI_EQKT
    *"             VALUE(EQUILOCATION) LIKE  BAPI_ILOA
    *"                             STRUCTURE  BAPI_ILOA
    *"             VALUE(EQUISALES) LIKE  BAPI_EQSD STRUCTURE  BAPI_EQSD
    *"             VALUE(EQUIHIERARCHY) LIKE  BAPI_EQHR
    *"                             STRUCTURE  BAPI_EQHR
    *"             VALUE(RETURN) LIKE  BAPIRETURN STRUCTURE  BAPIRETURN
      CLEAR: EQUIMASTER, EQUITIME, EQUITEXT, EQUILOCATION.
      CLEAR: EQUISALES, EQUIHIERARCHY, RETURN.
    * Object key must not be initial.
      IF EQUIPMENT IS INITIAL.
        CALL FUNCTION 'MESSAGE_SET_AND_CONVERT'
             EXPORTING
                  MSG_CLASS  = 'IS'
                  MSG_TYPE   = 'E'
                  MSG_NUMBER = '498'
                  MSG_PARM1  = 'EQUIPMENT'
             IMPORTING
                  RETURN     = RETURN.
        EXIT.
      ENDIF.
    * Superior equipment must not be initial.
      IF SUPEREQUI IS INITIAL.
        CALL FUNCTION 'MESSAGE_SET_AND_CONVERT'
             EXPORTING
                  MSG_CLASS  = 'IS'
                  MSG_TYPE   = 'E'
                  MSG_NUMBER = '498'
                  MSG_PARM1  = 'EQUIPMENT'
             IMPORTING
                  RETURN     = RETURN.
        EXIT.
      ENDIF.
    * Specified equipment number must exist.
      PERFORM EQUIPMENT_CHECK_VEQUI                             "P9CK056992
        USING                                                   "P9CK056992
          EQUIPMENT "->equipment number                         "P9CK056992
          'X'       "->record must exist (will be read)         "P9CK056992
          'X'       "->record must be locked                    "P9CK056992
          NEW_VEQUI "<-before image read                        "P9CK056992
          I_CODE.   "<-error code                               "P9CK056992
      IF I_CODE <> 0.
        CALL FUNCTION 'MESSAGE_CONVERT'
             EXPORTING
                  SY_SUBRC = 4
             IMPORTING
                  RETURN   = RETURN
             EXCEPTIONS
                  OTHERS   = 1.
        EXIT.
      ENDIF.
    * Superior equipment must exist.
      PERFORM EQUIPMENT_CHECK_VEQUI                             "P9CK056992
        USING                                                   "P9CK056992
          SUPEREQUI "->superior technical object number         "P9CK056992
          'X'       "->object must exist (will be read)         "P9CK056992
          SPACE     "->object will not be locked                "P9CK056992
          OLD_VEQUI "<-object data read                         "P9CK056992
          I_CODE.   "<-error code                               "P9CK056992
      IF I_CODE <> 0.
        CALL FUNCTION 'MESSAGE_CONVERT'
             EXPORTING
                  SY_SUBRC = 4
             IMPORTING
                  RETURN   = RETURN
             EXCEPTIONS
                  OTHERS   = 1.
        EXIT.
      ENDIF.
    * Install equipment
      CALL FUNCTION 'EQUIPMENT_INSTALL'
           EXPORTING
                READ_SOBJ   = ' '
                READ_ROBJ   = ' '
                LOCK_SOBJ   = ' '                               "P9CK056992
                POSEQUI     = POSEQUI
                I_DATE      = DATE
                I_TIME      = TIME
                EXEC_MEAS   = 'X'                               "P9CK159924
           CHANGING
                S_EQUI      = NEW_VEQUI
                R_EQUI      = OLD_VEQUI
           EXCEPTIONS
                ERR_INSTALL = 1
                OTHERS      = 2.
      I_CODE = SY-SUBRC.
    * Fill return structure.
      CALL FUNCTION 'MESSAGE_CONVERT'
           EXPORTING
                SY_SUBRC = I_CODE
           IMPORTING
                RETURN   = RETURN
           EXCEPTIONS
                OTHERS   = 1.
      IF RETURN-TYPE <> 'S'.                                    "P9CK056992
        PERFORM EQUIPMENT_UNLOCK USING EQUIPMENT.               "P9CK056992
        EXIT.                                                   "P9CK056992
      ENDIF.                                                    "P9CK056992
    * Copy local view structure to export structures.
      PERFORM MOVE_VIEW_TO_EQUIPMENT USING NEW_VEQUI EQUIMASTER EQUITIME
                                           EQUITEXT EQUILOCATION EQUISALES
                                           EQUIHIERARCHY.
      CALL FUNCTION 'CHECK_COMMIT'
           EXPORTING
                COMMIT_MODE              = COMMIT
           EXCEPTIONS
                ERR_COMMIT_WORK_AND_WAIT = 1
                OTHERS                   = 2.
    ENDFUNCTION.
    The COMMIT parameter is passed with value 'S' which is an indication to CHECK_COMMIT to do COMMIT WORK AND WAIT. And I am always passing an S and as I said that the update in fact does happen if I do a F6 on the CALL to the above function.

  • Strange behavior of select for update

    I observed a strange behavior of "select .. for update" statement in binary xml table. Here is the piece of code:
    create table xmltab of XMLType XMLTYPE store as binary xml;
    Table created.
    insert into xmltab values('<x><y>y1</y><z>z1</z></x>');
    1 row created.
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' ;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    The following query doesn't return any row!!
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' for update;
    no rows selected
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='b1' for update;
    OBJECT_VALUE
    <x>
      <y>b1</y>
      <z>z1</z>
    </x>
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/z')='z1' for update;
    OBJECT_VALUE
    <x>
      <y>b1</y>
      <z>z1</z>
    </x>
    The following one returns correct result !!
    select x.object_value, extractValue(x.object_value,'/x/y'), extractValue(x.object_value,'/x/z')
    from xmltab x
    where extractValue(x.object_value,'/x/y')='b1' and
    extractValue(x.object_value,'/x/z')='z1' ;
    OBJECT_VALUE
    EXTRACTVALUE(X.OBJECT_VALUE,'/x/y')
    EXTRACTVALUE(X.OBJECT_VALUE,'/x/z')
    <x>
      <y>b1</y>
      <z>z1</z>
    </x>
    b1
    c1
    I get expected result for all the cases if the table is created in the following way
    create table xmltab of XMLType;
    Can anyone tell me why does select for update behaves in this strange way for binary xml table?

    Sorry for copy paste problem. b1 should be replaced with y1 and c1 with z1.
    Here is the correct code.
    create table xmltab of XMLType XMLTYPE store as binary xml;
    Table created.
    insert into xmltab values('<x><y>y1</y><z>z1</z></x>');
    1 row created.
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' ;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    The following query doesn't return any row!!
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' for update;
    no rows selected
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' for update;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/z')='z1' for update;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    The following one returns correct result !!
    select x.object_value, extractValue(x.object_value,'/x/y'), extractValue(x.object_value,'/x/z')
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' ;
    OBJECT_VALUE
    EXTRACTVALUE(X.OBJECT_VALUE,'/x/y')
    EXTRACTVALUE(X.OBJECT_VALUE,'/x/z')
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    y1
    z1
    I get expected result for all the cases if the table is created in the following way
    create table xmltab of XMLType;
    Can anyone tell me why does select for update behaves in this strange way for binary xml table?

  • Strange behavior of textareas in BPEL Worklist (10.1.2)

    I have a very strange behavior with linebreaks in all my <textarea>s in the BPEL-Worklist-jsps: (they work fine as <INPUT>s
    Example:
    Default-text:
    line1
    I update the textarea to:
    line1
    line2
    -> hit update
    line1
    *** (second line is completly missing)
    -> hitting update again (no change in text)
    line2line1
    *** (all on one line with the new line in front)
    As Value I use:
    <%=PayloadFormGenerator.selectNodeValue(payload, "/ns0:task/ns0:payload/ns1:abstract", form.getNamespaceMap(),"string", context.getLocale())%>
    and as mentioned: It works fine for <INPUT>.
    What do I do wrong? Is this a bug?
    Daniel
    Message was edited by:
    user552073

    Had the same problem, could not get it to be consistent. I would say this is a bug, but decided to edit payloads via the database in the end...

  • 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 in iMovie 08

    I recently purchased a MacPro, installed Leopard and moved all my files, applications, and settings from my MacBook Pro notebook by way of a Time Machine backup. Everything went without a hitch except for iMovie 08. When I open it it appears to start up but the application window never opens and almost all the menu items are grayed out. I can quit the application and start it again, but still get the same strange behavior. I have repaired permissions, verified my disk, deleted preferences and reinstalled iLife, then updated in software update, all with no effect. However iMovie 08 runs just fine on my MacBook Pro which should be identical to my Mac Pro. What gives? Ironic since a primary reason for purchasing this computer was for its enhance performance capabilities

    1) load and install the update for iM08, vers 7.1.
    2) then, in System Preferences/Monitor/Color Profile choose 'any other' than the actual one (e.g. AdobeRGB).. launch iM08.. now, set the Color Profile to your wanted one..

  • Strange Behavior in modifying the values in VO

    I have a VO based on EO from a custom table. The query is something like:
    select EO.x, EO.y, (EO.x*EO.y) xy from EO
    I have displayed the values from this VO on to a table in OAF page. All the columns are messageTextInput but the third column (xy) is read-only. I have written a fireAction to execute when x or y values are changed to update the xy value accordingly.
    Code in CO:
    if ("ValueChange".equals(pageContext.getParameter(EVENT_PARAM)))
    OAApplicationModule am = pageContext.getApplicationModule(webBean);
    am.invokeMethod("UpdateXY");
    pageContext.forwardImmediately(<Same Page>, null,
    OAWebBeanConstants.KEEP_MENU_CONTEXT,
    null, null, true,
    OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
    Code in AM:
    public void UpdateXY()
    xxVOImpl vo = getxxVO1();
    Row r = vo.first();
    while (vo.hasNext())
    r = vo.next();
    Object X = r.getAttribute("X");
    String X_string = X.toString();
    float X_value = Float.parseFloat(X_string);
    Object Y = r.getAttribute("Y");
    String Y_string = Y.toString();
    float Y_value = Float.parseFloat(Y_string);
    Float XY = new Float(X_value*Y_value);
    r.setAttribute("XY",(Object)XY);
    The problem is as follows. During the first time I try to update a value, the control goes through the logic and returns to the page but the XY value is not updated. But if i change a second value and tab out, the codes works and displays both the updated values of XY. From then on, the code is working fine.
    I'm also not updating the first row and so I didnt perform any logic in AM for the first row.
    Please help me out in finding out the reason for this strange behavior.

    This nature is fine, basically initially your EO x and y columns are null and unless you do a commit, these values don't go in db. The third column will take x and Y coumns values from db and multiply and will get null.
    To solve this issue, you get the values from VO columns x and y in PPR and and put x*y in the third column of Vo, IN THAT ROW.or you can directly get hold of the bean which hold the value of x*y and use setValue after getting x*y.
    ---Mukul

  • Strange behavior with Firefox

    Hi Team,
    I am using HTMLDB V2.0 and Firefox V1.5.0.1. I used wizard to create a report/form application. However, when I press a button to update the form all the buttons line up in a vertical row and I then have to press the same button again.
    My application is 30412 at htmldb.oracle.com. The problem is occurring at page 4. Go to page 3 (2nd tab) and select any record. You will be directed to page 4. Then when you press any button (cancel, create, delete, apply changes) on page 4, page 4 is refreshed and the buttons strangely line up in a vertical column. I then have to press the same button again before the update occurs.
    I have the same report/form setup on pages 1 and 2 and it is working fine on those pages.
    This strange behavior is not occurring in IE. I also notice that the font size is bigger in IE .
    I would appreciate any help you might offer.
    I really enjoy working with HTMLDB.
    Thanks, Andy

    Sorry about that. I removed all the authorization schemes from the application. I also changed the authentication scheme to HTMLDB. Let me know if I need to do something more for you to get access.
    Thanks for looking at it.
    I think it may have something to do with the "button, alternative 3" template from theme 3 that I am using. When I switch to the "button" template from theme 3 then the strange behavior goes away in Firefox.
    Andy

  • Strange behavior with Bindings??

    Hello to all JavaFX 2 Binding experts,
    I have a strange behavior with Bindings in JavaFX 2.2 (Java 1.7 update 21). Please have a look at the following source code:
    package test;
    import javafx.application.Application;
    import javafx.beans.binding.BooleanBinding;
    import javafx.beans.property.SimpleBooleanProperty;
    import javafx.beans.value.ChangeListener;
    import javafx.beans.value.ObservableValue;
    import javafx.fxml.FXML;
    import javafx.fxml.FXMLLoader;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.scene.control.Label;
    import javafx.scene.control.RadioButton;
    import javafx.stage.Stage;
    public class BindingVsProperty extends Application
        @FXML
        private RadioButton opt11;
        @FXML
        private RadioButton opt12;
        @FXML
        private RadioButton opt21;
        @FXML
        private RadioButton opt22;
        @FXML
        private Label lbl11And21;
      @Override
        public void start(Stage arg0) throws Exception
            FXMLLoader l_loader = new FXMLLoader();
            l_loader.setLocation(BindingVsProperty.class.getResource("BindingVsproperty.fxml"));
            l_loader.setController(this);
            l_loader.load();
            Scene l_scene = new Scene((Parent)l_loader.getRoot());
            arg0.setScene(l_scene);
            useBinding1();
            //useBinding2();
            //useBinding3();
            arg0.show();
        private void useBinding1() // NOT WORKING - ChangeListener.changed(..) is not called
            BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
            l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
                @Override
                public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
                    System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
        private void useBinding2() // OK - ChangeListener.changed(..) is called
            BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
            lbl11And21.visibleProperty().bind(l_andOpt11Opt21);
            l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
                @Override
                public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
                    System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
        private void useBinding3() // NOT WORKING - ChangeListener.changed(..) is not called
            BooleanBinding l_andOpt11Opt21 = opt11.selectedProperty().and(opt21.selectedProperty());
            new SimpleBooleanProperty(false).bind(l_andOpt11Opt21);
            l_andOpt11Opt21.addListener(new ChangeListener<Boolean>()
                @Override
                public void changed(ObservableValue<? extends Boolean> arg0, Boolean arg1, Boolean arg2)
                    System.out.println("Opt 1.1 AND Opt 2.1 changed to: " + arg2);
        public static void main(String[] args)
            launch(args);
    <?xml version="1.0" encoding="UTF-8"?>
    <?import java.lang.*?>
    <?import java.util.*?>
    <?import javafx.scene.control.*?>
    <?import javafx.scene.layout.*?>
    <?import javafx.scene.paint.*?>
    <BorderPane id="BorderPane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefWidth="371.0" xmlns:fx="http://javafx.com/fxml">
      <center>
        <AnchorPane prefHeight="200.0" prefWidth="200.0">
          <children>
            <Label id="lblAnd" fx:id="lbl11And21" layoutX="82.0" layoutY="121.0" text="Group1 Opt1 AND Group2 Opt1 is true" textFill="#41cc00" visible="false" />
            <RadioButton fx:id="opt21" layoutX="216.0" layoutY="24.0" mnemonicParsing="false" text="Group 2 - Opt 1">
              <toggleGroup>
                <ToggleGroup fx:id="group2" />
              </toggleGroup>
            </RadioButton>
            <RadioButton fx:id="opt22" layoutX="216.0" layoutY="67.0" mnemonicParsing="false" text="Group 2 - Opt 2" toggleGroup="$group2" />
            <RadioButton fx:id="opt11" layoutX="29.0" layoutY="24.0" mnemonicParsing="false" text="Group 1 - Opt 1">
              <toggleGroup>
                <ToggleGroup fx:id="group1" />
              </toggleGroup>
            </RadioButton>
            <RadioButton fx:id="opt12" layoutX="29.0" layoutY="67.0" mnemonicParsing="false" text="Group 1- Opt 2" toggleGroup="$group1" />
          </children>
        </AnchorPane>
      </center>
    </BorderPane>
    What I need for my application is the use case in useBinding1(), i.e., a BooleanBinding where several listeners are attached to. The problem is that I never get a callback in the ChangeListener if one of the RadioButton.selectedProperty() is changed.
    Now I tried what happens if I use the same BooleanBinding for another binding to a property plus the listener, now the listener gets callbacks as expected! (see useBinding2() )
    Than I thought may be Bindings must be bound in order to trigger listeners and tried useBinding3() where I bind the BooleanBinding to a new BooleanProperty, in this case the listener doesn't get callback anymore...
    And now I'm very frustrated and hope that anyone out there can help me to understand this strange behavior.
    Thanks a lot!
    WhiteAntelope

    All these work just fine for me: the listeners are all called as expected. Note that the listener is only invoked when the value of the binding actually changes, which doesn't happen every time a radio button is pressed. (For example, if both buttons are unselected, the binding is false. If one button is selected, the binding remains false and the listener is not invoked. When the second button is selected, the binding becomes true, and the listener is invoked.)

  • Strange behavior of Content area

    Hello everybody,
    I'm working with Portal 3.0.8. I've installed czech language on it.
    What did I do is:
    1) I made new look for my navigation bar (new image and basic items). And it worked fine. I worked in English!
    2) Change language to Czech.
    3) Show my content area and there were old items on navigation bar. But style was new. If I navigate to any sub-folder, the look is OK. In the root folder I can't change anything. I can add new items only, though it is possible to see them only when I work in English.
    Does anybody know the reason of this strange behavior and what I should do? Thanks for your help!
    Petra :-)
    P.S.: You can use this email address: [email protected]

    Sorry for copy paste problem. b1 should be replaced with y1 and c1 with z1.
    Here is the correct code.
    create table xmltab of XMLType XMLTYPE store as binary xml;
    Table created.
    insert into xmltab values('<x><y>y1</y><z>z1</z></x>');
    1 row created.
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' ;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    The following query doesn't return any row!!
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' for update;
    no rows selected
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' for update;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    select x.object_value
    from xmltab x
    where extractValue(x.object_value,'/x/z')='z1' for update;
    OBJECT_VALUE
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    The following one returns correct result !!
    select x.object_value, extractValue(x.object_value,'/x/y'), extractValue(x.object_value,'/x/z')
    from xmltab x
    where extractValue(x.object_value,'/x/y')='y1' and
    extractValue(x.object_value,'/x/z')='z1' ;
    OBJECT_VALUE
    EXTRACTVALUE(X.OBJECT_VALUE,'/x/y')
    EXTRACTVALUE(X.OBJECT_VALUE,'/x/z')
    <x>
      <y>y1</y>
      <z>z1</z>
    </x>
    y1
    z1
    I get expected result for all the cases if the table is created in the following way
    create table xmltab of XMLType;
    Can anyone tell me why does select for update behaves in this strange way for binary xml table?

  • Strange behavior of Windows Azure Compute Emulator (SDK 2.3)

    Today, after an update of the Azure SDK from 2.2 to 2.3, I noticed that only one of the two instances of my web role is started in
    the Azure Compute Emulator, the output of the Start-AzureEmulator is this:
    VERBOSE: Starting Emulator...
    VERBOSE: Role is running at http://127.0.0.1:81/
    Role is running at tcp://127.0.0.1:3389/
    Role is running at tcp://127.0.0.1:3389/
    VERBOSE: Started
    and only one instance is started in the Azure Compute Emulator.
    But in the past was something similar to this one:
    VERBOSE: Starting Emulator...
    VERBOSE: Role is running at http://127.0.0.1:81/
    http://127.0.0.1:82/
    Role is running at tcp://127.0.0.1:3389/
    Role is running at tcp://127.0.0.1:338/
    VERBOSE: Started
    and two instances were started.
    I already found this thread:
    http://stackoverflow.com/questions/13946634/strange-behavior-of-windows-azure-compute-emulator-sdk-1-8-with-multiple-role
    but it was not useful in my case (Microsoft.WindowsAzure.Common.WorkArounds.BindToAllIpsWorkAroundEnabled is False).
    Thanks in advance for any help.
    OS: Windows 8.1
    Azure SDK: 2.3
    Azure Compute Emulator: 2.3.0.0

    Hi,
    As far as I know, powershell didn't have a parameter to start azure emulator with full express, please try to use Command-line to test, refer to
    http://msdn.microsoft.com/en-us/library/gg433130.aspx for more details, if this didn't give you help, please feel free to let me know.
    Best Regards,
    Jambor
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • JDEV Team: Strange behavior in TOMCAT using DATATAGS (VERY CRITICAL)

    I am encountering some strange behavior when I deploy my application to TOMCAT.
    If I run in JDeveloper (webtogo) everything works fine but the behavior changes completely in TOMCAT.
    Let me try and explain my situation here.
    I have 3 jsps :
    1.iss_listApps.jsp which is used to browse all the available records, allows the user to navigate to a specific record and edit or delete.
    2. app_edit.jsp which is used to edit/delete a specific row passed from iss_listApps.jsp.
    3. app_edit_post.jsp which is used to save the changes.
    Note that I use an anchor ">Edit</a> to pass a row from the browser page to the edit page.
    For your convenience I have listed all the source files below.
    Now here are my problems:
    Problem 1. If I run it in JDeveloper, I am able to browse the records and go to a specific record to edit and delete by clicking on the "Edit" anchor provided in the browser page.
    I can also go to the edit page and backout out of it by not saving the changes. In that case I am back in my browser page and I can again click on the "Edit" anchor to a specific record.
    However if I am in TOMCAT, I am able to browse and go to a specific record so long as I make changes to it and save it. If for any reason, I do not save a record and I go back to my browser
    page then any subsequent calls to to edit a specific record goes to the same OLD RECORD that I did not save.
    I fail to understand why? Maybe the "webtogo" server automatically refreshes when I click on the "back tab". If so, how do I automatically refresh a jsp page when I click on the "back tab" in TOMCAT.
    I would sincerely appreciate any help on this.
    Problem 2. I have an include jsp tag in my browser page. defined as
    <jsp:include page="Message.jsp" flush="true">
    <jsp:param name="colspan" value="2"/>
    </jsp:include>.
    This section of the code is currently commented out because if I uncomment it then it runs ok in JDeveloper but in Tomcat it causes the browser page to always navigate to the first record if I want to edit a specific record.
    I would sincerely appreciate any answer on this.
    Here are my source files:
    1. iss_ListApps.jsp (browser page). Please see how the anchor is formed. It causes no problems
    in JDeveloper.
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <HTML>
    <base target="contentsframe">
    <head>
    </head>
    <body>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="NewBC4J.NewBC4JModule" configname="NewBC4J.NewBC4JModule.NewBC4JModuleLocal" username="issue" password="issue"/>
    <jbo:RollBack appid="NewBC4J.NewBC4JModule" />
    <jbo:DataSource id="app_vo" appid="NewBC4J.NewBC4JModule" viewobject="ApplicationsView" ></jbo:DataSource>
    <jbo:RefreshDataSource datasource="app_vo" />
    <table width="100%" bgcolor="tan" border="0" align="center" cellpadding="3" cellspacing="0">
    <%--
    <jsp:include page="Message.jsp" flush="true">
    <jsp:param name="colspan" value="2"/>
    </jsp:include> --%>
    <form name="list" target="body" action="app_edit.jsp" method="post">
    <tr><th colspan="4">List of Valid Applications</th></tr>
    <tr>
    <th> </th>
    <th align="left"><u>Code</u></th>
    <th align="left"><u>Name</u></th>
    <th align="left"><u>Description</u></th>
    </tr>
    <tr>
    <jbo:RowsetIterate datasource="app_vo">
    <td>
    <a href="app_edit.jsp?RowKeyValue=<jbo:ShowValue datasource="app_vo" dataitem="RowKey"/>">Edit</a>
    </td>
    <td>
    <jbo:ShowValue datasource="app_vo" dataitem="Code" />
    </td>
    <td>
    <jbo:ShowValue datasource="app_vo" dataitem="Name" />
    </td>
    <td>
    <jbo:ShowValue datasource="app_vo" dataitem="A ppDesc" />
    </td>
    </tr>
    </jbo:RowsetIterate>
    </form>
    </table>
    <table width="100%" bgcolor="skyblue" align="center" cellpadding="10" cellspacing="0" >
    <tr>
    <form NAME="AddForm" action="app_add.jsp">
    <td>
    <input type = "submit" name="submit" value="Add" align="center" >
    </td>
    </form>
    </tr>
    </table>
    </body>
    <jbo:ReleasePageResources releasemode="Stateful" appid="NewBC4J.NewBC4JModule" />
    </html>
    2. Second Source File: app_edit.jsp (Allows editing of a record)
    <%@ page contentType="text/html;charset=WINDOWS-1252"%>
    <HTML>
    <base target="contentsframe">
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <TITLE>
    </TITLE>
    </HEAD>
    <BODY>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="NewBC4J.NewBC4JModule" configname="NewBC4J.NewBC4JModule.NewBC4JModuleLocal" />
    <jbo:DataSource id="app_vo" appid="NewBC4J.NewBC4JModule" viewobject="ApplicationsView" />
    <jbo:Row id="myrow" datasource="app_vo" rowkeyparam="RowKeyValue" action="Find">
    <jbo:SetAttribute dataitem="*"/>
    </jbo:Row>
    <table width="100%" bgcolor="skyblue" border="0" align="center">
    <tr>
    <td>
    <table width="100%" bgcolor="tan" border="0" align="center" cellpadding="3" cellspacing="0">
    <form NAME="iForm" action="app_edit_post.jsp">
    <tr>
    <th colspan="2">
    "Edit/Delete Applications"
    </th>
    </tr>
    <jsp:include page="Message.jsp" flush="true">
    <jsp:param name="colspan" value="2"/>
    </jsp:include>
    <tr>
    <td align="right"><b><font color="red"> Name:</font></b></td>
    <td> <jbo:InputText datasource="app_vo" dataitem="Name" cols="50" />
    </td>
    </tr>
    <tr>
    <td align="Right"><b><font color="red"> Description: </font></b></td>
    <td> <jbo:InputTextArea datasource="app_vo" dataitem="AppDesc" cols="50" rows="5" />
    </td>
    </tr>
    </table>
    <!-- Create a table for the save and Delete Buttons -->
    <table width="100%" bgcolor="skyblue" align="center" cellpadding="10" cellspacing="0" >
    <tr>
    <input name="RowKeyValue" type="hidden" value="<jbo:ShowValue datasource="app_vo" dataitem="RowKey"/>" />
    <td>
    <input type = "submit" name="submit" value="Save">
    </td>
    </form>
    <form NAME="DelForm" action="app_del_post.jsp">
    <input name="RowKeyVal" type="hidden" value="<jbo:ShowValue datasource="app_vo" dataitem="RowKey"/>" />
    <td>
    <input type = "submit" name="submit" value="Delete">
    </td>
    </form>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </BODY>
    </HTML>
    <jbo:ReleasePageResources releasemode="Stateful" />
    3. Third source file app_edit_post.jsp (ALlows saving the changes made to a specific record)
    <%@ page contentType="text/html;charset=ISO-8859-1"%>
    <HTML>
    <BODY>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <jbo:ApplicationModule id="NewBC4J.NewBC4JModule" configname="NewBC4J.NewBC4JModule.NewBC4JModuleLocal" />
    <jbo:DataSource id="app_vo" appid="NewBC4J.NewBC4JModule" viewobject="ApplicationsView" ></jbo:DataSource>
    <%
    try
    %>
    <jbo:Row id="row3" datasource="app_vo" rowkeyparam="RowKeyValue" action="Update" >
    <jbo:SetAttribute dataitem="*" />
    </jbo:Row>
    <jbo:Commit appid="NewBC4J.NewBC4JModule" />
    <p><font face="Arial, Helvetica, sans-serif"><b><font color="006699">Application Successfully Updated</b></font></font> </p>
    <%
    catch(Exception exc)
    out.println("<pre> ");
    exc.printStackTrace(new java.io.PrintWriter(out));
    out.println("</pre>");
    %>
    <br>
    <br>
    <form action="app_ListApps.jsp" method="post"><input type="submit" value="Click to Continue"></form
    <jbo:ReleasePageResources releasemode="Stateful" />
    </BODY>
    </HTML>
    null

    I would not expect the 'back' button to automatically refresh the page. This button basically traverses the history of pages. Since Tomcat is caching your pages, you can try to control it's interaction with the browser by:
    1. Adding cache control pragmas to the returned content so it doesn't get cached.(look at www.w3c.org at the HTTP spec)
    2. dont rely on the back button, place a link on your pages to go back to the list page.
    3. change your cache control settings in your browser to check for a new page every time a url is visited.

Maybe you are looking for

  • Using a Collection of beans to store a result set help.

    Does anyone have any sample code on the subject? This is something I wrote up, but I wanted feedback, and also an example of how to retreive data out of the array of beans in jsp package beanpersonal; import beandatabase.DBConnection; import java.sql

  • Mapping tool creates new columns one at a time

    Hi All, I'm using Kodo 3.2.2 with MySql 4.1. I have a fairly large table (over 2million rows) representing one persistent class. I need to add several new fields to the object, which will require a refresh mapping on the database to add new columns f

  • SQL Loader error while loading a date field

    Hi, I am getting the below error while I am trying to load a table with a date field using SQL Loader Record 1: Rejected - Error on table RPT_HOST_USAGE, column USAGE_TIMESTAMP. ORA-01861: literal does not match format string My input file is as belo

  • Newbie Q: What do movie clips need to allow Actionscript?

    Hello. Thanks for taking time out for this question. Basically, I started an exercise in a book and it asked me to add code to a movieclip. I created a basic circle, converted it to a movie clip and tried to press F9 for actionscript, but Flash told

  • HT1338 OS X Update

    I have a 1st generation MacbookPro, Intel Processor, running Mac OS X 10.4.11.  What operating system can I upgrade to on this computer? Brian