Determine size of component at runtime

I'm trying to build a Paginagion component of a fixed size. Meaning the size of the pagination is fixed, however based on the content the number of pages may vary. Further more it should not be defined how much is displayed on a single page.
The idea is to use text as input and push as much as can be displayed on the page. Factors that have an influence here is font and formatting.
To determine the page that should be shown I have to figure out the amount of text that can be displayed. To do so I need to know the size of the component containing the text (think Label). The size of the label however is only determined after it is layouted. So here is what I could do:
    @Override
    public void start(Stage primaryStage) {
        Label lbl = new Label("uitroweigudfgf jkfhgklfsjghslkghs kflgskjgh");
        System.out.println(lbl.getWidth()+","+lbl.getHeight());
        lbl.widthProperty().addListener(new ChangeListener<Number>(){
            @Override
            public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) {
                System.out.println(lbl.getWidth()+","+lbl.getHeight());
        lbl.heightProperty().addListener(new ChangeListener<Number>(){
            @Override
            public void changed(ObservableValue<? extends Number> ov, Number t, Number t1) {
                System.out.println(lbl.getWidth()+","+lbl.getHeight());
        StackPane root = new StackPane();
        root.getChildren().add(lbl);
        Scene scene = new Scene(root, 300, 250);
        primaryStage.setTitle("Hello World!");
        primaryStage.setScene(scene);
        primaryStage.show();
After the third change I have the dimensions of the label. With this method I would have to push the whole text into labels to figure out how much can be displayed.
Is there any better method to do this?

Have not tried that yet, but will hopefully come around to it. I tried to us a size change listener on the label using this base implementation of a ChangeListener:
package javafxtest.label;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
public class SizeChangeListener implements ChangeListener<Number>{
    private volatile int sizeChangeCounter = 0;
    @Override
    public final void changed(ObservableValue<? extends Number> observable, Number oldValue, Number newValue) {
System.out.println("New value: "+newValue+", counter="+sizeChangeCounter);
        if (sizeChangeCounter < 1) { // one change for height one for width
System.out.println("Increase counter");
            sizeChangeCounter++;
        } else {
            sizeChangeCounter++;
            executeOnSizeChange();
    protected void executeOnSizeChange() {
        while (!stopCriteriumReached()) {
            System.out.println("Execute on after a sizeChange");
    private boolean flag = true;
    protected boolean stopCriteriumReached() {
        flag = !flag;
        return flag;
And here is the application for testing:
package javafxtest.label;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.Label;
import javafx.scene.layout.StackPane;
import javafx.stage.Stage;
public class LabelGrowingSizeChangeTest extends Application {
    @Override
    public void start(Stage primaryStage) {
        Label lbl = new Label(" ");
        MySizeChangeListener changeListener = new MySizeChangeListener(lbl, 250);
        lbl.widthProperty().addListener(changeListener);
        lbl.heightProperty().addListener(changeListener);
        StackPane root = new StackPane();
        root.getChildren().add(lbl);
        Scene scene = new Scene(root, 300, 250);
        primaryStage.setTitle("Hello World!");
        primaryStage.setScene(scene);
        primaryStage.show();
    public static void main(String[] args) {
        launch(args);
    private static class MySizeChangeListener extends SizeChangeListener {
        private final Label label;
        private final double width;
        public MySizeChangeListener(Label label, double width) {
            this.label = label;
            this.width = width;
        @Override
        protected void executeOnSizeChange() {
            while (!stopCriteriumReached()) {
System.out.println("Add text");
                label.textProperty().concat(" blah");
                //label.setText(label.getText()+" blah");
The curious thing is that I get the println from line 48, but the label does not get updated. Has anyone an idea why that is?

Similar Messages

  • Add Component during runtime in swing

    I want to create applet which add any component at runtime.
    I have done this but there is one bug.
    When i add the components, they are not display in applet window.
    But as soon as i change the size of the or minimize or maximize the applet window
    it will display the components.
    Reply as soon as possible.
    Thanks

    ALWAYS execute the following if you add or remove components from an already visible container:
    container.revalidate();
    container.repaint();

  • Error in CK11n - The system could not determine a cost component split for

    Hi All,
    When i run CK11n i have following error:
    The system could not determine a cost component split for the internal activity with activity type 502000 of cost center 10100.
    Procedure
    Check the master data for activity type 502000 of cost center 10100. It is possible that no activity price calculation has been carried out for the cost center.
    could any one give me solution
    Thanking you.

    Well, did you run activity price calculation for the relevant cost center(s)?
    The CCS you're using for product costing (either your COGM split, or the auxillary) has been marked as a "primary" cost component split.  It wants to break secondary costs down into their cost components, and assign those components to components in its own structure.
    Wihout a planned CCS for the activity, this isn't possible.  (This is normally calculated by KSPI during planning.)
    Either calculate an activity CCS is KSPI, assuming that all the prerequisites are in place for that, or uncheck the "primary cost component split" indicator in your costing variant configuration.

  • Determine when a component comes into view in a scrollpane

    So I have an application called FlickrBackup (http://sunkencity.org/flickrbackup). The main page of the GUI goes out to flickr (a photosharing site) and downloads a list of all your photos. It then creates little square panels that have the photos thumbnails on them and allows you to select them. Currently, the GUI goes out and downloads ALL the thumbnails and loads them all into the GUI. I would like to change it to only go out an download the thumbnail IF that panel/photo is visible in the scrollpane. The reason for this is because some users have upwards of 3000+ photos, so many of them are running into memory issues. If they don't even scrolldown to look at them, why should I load them?
    So here is what I have:
    A JPanel with a ScrollPane we'll call the ImageContainer
    I add many PhotoDisplayPanels to the image container. Most of them are outside the visible viewports view (something like 20 fit on the screen). These panels just use a JLabel to display the photo.
    I have tried adding a HierarchyListener to the PhotoDisplayPanel, but the event(any HierarchyEvent, not just showing/displayable) is only fired once and that is when the component is added to the ImageContainer and is shown for the first time.
    Does anyone know if there is a way to get notified when a component becomes visible in a scrollpanes view?
    I'm also confused by the terminology used in the javadocs for isShowing and the HierarchyEvents. isShowing says:
    "Determines whether this component is showing on screen. This means that the component must be visible, and it must be in a container that is visible and showing."
    Does the first 'visible' mean setVisible(true)? Or does it mean I can see it with my own two eyes? It seems once you add a component to a panel, it is by default in a visible state unless you specifically setVisible(false).
    Any help you can give would be great!
    Thanks!
    Andrew

    your player is in the middle of the screen, i just
    dont have a picture for that yetWell, nothing happens, even using the arrow keys. Sorry, but I'm giving up.

  • How i can set size of editor at runtime?

    dear all,
    How i can set size of editor at runtime?
    The size of editor is good when I run form on windowX but so small on web . why? have any body call tell me how i can do?
    thank for advance

    Hi there,
    You can use the builtin EDIT_TEXTITEM.
    You can pass x-pos, y-pos, width and height as parameters to that.
    Hope this helps

  • Determine size of pdf from spool

    All,
    does anyone know how to determine size of pdf from spool.
    i'm using RSPO_RETURN_ABAP_SPOOLJOB to get pdf file, but i want to know its size.
    any idea?

    Assume the PDF data is in internal table gt_messg_att.
    MOVE p_spoolno TO lv_spoolno.
    * CONVERT THE SPOOL TO PDF
      CALL FUNCTION 'CONVERT_OTFSPOOLJOB_2_PDF'
        EXPORTING
          src_spoolid                    = lv_spoolno
          no_dialog                      = lc_no_dialog
    *     DST_DEVICE                     =
    *     PDF_DESTINATION                =
       IMPORTING
         pdf_bytecount                  = lv_bytecount
    *     PDF_SPOOLID                    =
    *     OTF_PAGECOUNT                  =
    *     BTC_JOBNAME                    =
    *     BTC_JOBCOUNT                   =
       TABLES
         pdf                            = gt_pdf_output
       EXCEPTIONS
         err_no_otf_spooljob            = 1
         err_no_spooljob                = 2
         err_no_permission              = 3
         err_conv_not_possible          = 4
         err_bad_dstdevice              = 5
         user_cancelled                 = 6
         err_spoolerror                 = 7
         err_temseerror                 = 8
         err_btcjob_open_failed         = 9
         err_btcjob_submit_failed       = 10
         err_btcjob_close_failed        = 11
         OTHERS                         = 12
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ELSE.
    * Transfer the 132-long strings to 255-long strings
        LOOP AT gt_pdf_output INTO wa_pdf_output.
          TRANSLATE wa_pdf_output USING ' ~'.
          CONCATENATE v_buffer wa_pdf_output INTO v_buffer.
          MODIFY gt_pdf_output FROM wa_pdf_output.
          CLEAR wa_pdf_output.
        ENDLOOP.
    * TO CONVERT THE DATA INTO PDF FORMAT ELSE THE PDF FILE
    * WON'T OPEN & REPORT WOULD GIVE A MESSAGE THAT
    * THE FILE IS DAMAGED & COULD NOT BE OPENED
        TRANSLATE v_buffer USING '~ '.
        CLEAR : wa_messg_att,
                gt_messg_att.
        DO.
          wa_messg_att = v_buffer.
          APPEND wa_messg_att TO gt_messg_att.
          SHIFT v_buffer LEFT BY 255 PLACES.
          IF v_buffer IS INITIAL.
            EXIT.
          ENDIF.
          CLEAR wa_messg_att.
        ENDDO.
      ENDIF.
    * Get size of attachment
      DESCRIBE TABLE gt_messg_att LINES lv_cnt.
      READ TABLE gt_messg_att INTO wa_messg_att INDEX lv_cnt.
      lwa_doc_data-doc_size =  ( lv_cnt - 1 ) * 255 + STRLEN( wa_messg_att ).

  • Determine if current component is being pulled in by paragraph reference?

    Is there a way to determine at the component level if the current component is currently being imported into a paragraph reference component? A simple example would look like this in the component's jsp:
    if (/* Being Referenced */) {
         out.write("This component is pulled in by a paragraph reference");
    } else {
         out.write("This component is the original");
    I thought i'd be able to tell by using resource.getParent(), but that returns the original component's parent.
    I know i could compare the page path with the component's resource path if they were on different pages, but that wouldn't work out if the reference component and original component were on the same page.

    Sure, this is what we're doing (i'm sure there must be a better way) -
    Our pages will serve many users across different areas and roles. The authors wanted the ability to create one master page that will display certain components to only a certain area or role. For example, one text box should only be displayed to "south" users and another only to "west" users. To accomplish this we added tagging for each component and when a component loads on a page it does a check to display if the user has the same tags it has been tagged with. Looks something like this in the component jsp -
    <% if (componentAreaTag == userAreaTag) { %>
         <h1>Component Is Displayed</h1>
    <% } %>
    The problem with this is that a reference component also needs to be tagged independently of the component it is referencing. So right now it processes the reference component's tags to see if the user can access the component and then checks the referenced component before displaying. Ends up processing something like this -
    <% if (referenceComponentTag == userTag) { %> //From reference component
         <% if (componentTag == userTag) { %> //From component being referenced
              <h1>Component Is Displayed</h1>
         <% } %>
    <% } %>
    We need it not to care about the original component's tag when coming in through a reference component.

  • Batch determination for a component material of a production order.

    I created a new production order type in SAP and I created a new production order from the new order type. When Iu2019m doing batch determination for a component material Iu2019m getting the error u201CBatch determination for 000000000002003610 without selection datau201D. I have to click [Selection criteria] and manually assign the selection criteria for the batch class.
    This is working properly for existing production orders and system automatically picking up the selection criteria.
    Is there any place in configuration to assign new production order type to batch selection criteria or how can I overcome this.

    Hi,
    Will you share steps you have completed so far for doing for Batch Determination?
    It will help us to find the missing part..
    - Check all the Batch Characteristic values are maintain in the Batches.If values are missing then also Determination will not take place.
    - Check whether you have maintain Sort rule to Batch Determination strategy or not
    Regards,
    Dhaval

  • Resizing Flexbook Component at Runtime

    I downloaded the Flexbook component online and have been
    messing around with it for a few days but still can't find out how
    to get this thing to resize during runtime. I did get it set up to
    size when Initializing the component by using the following code
    attached to this message. This is using embeded assets for the
    book. You can see my method I have been trying by looking at the
    resizeBook function. The resize does work but after a few resizes
    then things get slow or errors appear. So if someone that has done
    this can give me a few pointers on where I need to look or if
    anyone has any suggestions I would love to here it.

    quote:
    Originally posted by:
    JeffHouser
    Without drilling down to your code; this is conceptually how
    I'd approach it:
    1) Create a new component that extends Flexbook
    2) Overwrite the height and width properties to trigger an
    invalidatePropertes / invalidateSize invalidateDispayList . Also
    add variables (usually private) named "_heightChanged" or
    "_WidthChanged"
    3) in the commitProperties / measure / updateDisplayList
    check the "changed" variables and perform actions to do the
    resizing. You'll have to do some digging in the FlexBook code to
    figure it out what needs changing.
    The digging in the Flexbook code to see what needs to be
    changed is the issue I am having. I have been working on a new
    resize function which seems to be getting closer but still has
    weird results where the book appears to have shrunk when you
    rollover certain areas but there is residual images of the larger
    version showing.

  • Determining size of objects

    hi , is there any way we can determine the size of objects in java ,like we have sizeof() in C. because till now I have only found functions in runtime class to determie the mem. as total OR max. OR free

    In Java 1.5 is the Instrumentation package which can provide something like Object sizes. Never used it myself, though.

  • About Dialog - width of dialog should be determined by one component

    I have the following problem. I want to design an about dialog. The top shows an image that has a fixed size. In the center I want to show some text.
    +---------------+
    |image          |
    +---------------+
    |text text text |
    |text text      |
    +---------------+
    |      OK button|
    +---------------+The problem is: I want the dialog to adjust its size according to the width of the image. The text should wrap to fit to this size. The dialog should grow in height but not in width. If I use a JLabel with HTML content the outcome is this, i.e. the width of the dialog is determined by the text component:
    +------------------------+
    |image                   |
    +------------------------+
    |text text text text text|
    +------------------------+
    |               OK button|
    +------------------------+If I use a JTextArea and switch it to line-wrapping mode, then call pack(), the image und the text area lie above each other. After increasing the height of the dialog the picture meets my expectations. But I want the layout manager to do this work.
    I have tried different layout managers with many combinations of constraints (especially GridBagLayout). I cannot get it working.
    Could you give me hand? After all, it seems so simple ...
    Thanks,
    Bernhard

    My inclination would be something like:
    dialog.setPreferredSize( new Dimension(  image.getWidth(), dialog.getPreferredSize().height ) );The code for getting the image width may vary a little depending on what type of image object you are using, but the basic idea is there. In this way, you are specifying the width, but not the height. Hope this helps!

  • How to determine the target system during runtime of a Generic DS?

    Hi Experts, good afternoon.
    I am coding a Generic Extractor using Function Module. I have to select the field TIMESTAMP on table ROOSPRMSC. To do so, I need the value of RLOGSYS that is the BW system that is calling the Extractor.
    Do anybody knows how to determine via ABAP the RLOGSYS (Remote Logical System) during the runtime of the Generic DataSource Function Module?
    The table ROOSPRMSC keep the TIMESTAMPs values of the last delta upload for each DataSource and for each BW target system. As I have 2 BW's loading data from the same SAP ECC system, I need to know, during runtime of my Generic DataSource, the actual system that is requesting the delta. That's the reason why I need to know the BW's logical system name that is "runnig" the delta InfoPackage.
    Plese, help!!!
    Thanks in advance!
    Leandro Vani

    Leandro,
    The calling program of your FM should have a local variable I_RLOGSYS which is populated with the BW server ID.
    If you don't know how to access a variable in a program that is in call stack using field symbols, search SDN.
    I haven't tested this, so you may have to explore a little.
    Good luck.

  • Km component portal runtime error

    hi 
    i am creating a simple km application to create a folder using km api when i run the application it is displaying runtime error  in the portal
    any help on this here is the trace .
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
    Component : kmportalappproject.kmportalcomp
         at com.sap.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:283)
         at com.sap.portal.prt.component.PortalComponentContextFactory.createPortalComponentContext(PortalComponentContextFactory.java:196)
         at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:82)
         at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:55)
         at com.sap.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:382)
         at com.sapportals.portal.pb.PageBuilder.createIviewProfile(PageBuilder.java:446)
         at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:395)
         at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:235)
         at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:637)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
         at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:814)
         at com.sap.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:536)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
         at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
         at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.navigation.workAreaiView.doOnNodeReady(workAreaiView.java:420)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
         at com.sapportals.portal.navigation.workAreaiView.handleEvent(workAreaiView.java:511)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
         at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
         at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:179)
         at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:414)
         at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:235)
         at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:637)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
         at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:814)
         at com.sap.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:536)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
         at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
         at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:543)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:203)
         at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:122)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:144)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
         at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
         at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:212)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:77)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
         at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
         at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:37)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    Caused by: com.sap.portal.prt.broker.PortalComponentNotFoundException: getPortalComponent failed
         at com.sap.portal.prt.broker.PortalAppBroker.getPortalComponent(PortalAppBroker.java:365)
         at com.sap.portal.prt.component.PortalComponentContext.getPortalComponentApp(PortalComponentContext.java:115)
         at com.sap.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:268)
         ... 84 more

    hi 
    i am creating a simple km application to create a folder using km api when i run the application it is displaying runtime error  in the portal
    any help on this here is the trace .
    [EXCEPTION]
    #1#com.sapportals.portal.prt.component.PortalComponentException: Error in init method
    Component : kmportalappproject.kmportalcomp
         at com.sap.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:283)
         at com.sap.portal.prt.component.PortalComponentContextFactory.createPortalComponentContext(PortalComponentContextFactory.java:196)
         at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:82)
         at com.sap.portal.prt.component.PortalComponentContextFactory.getPortalComponentContext(PortalComponentContextFactory.java:55)
         at com.sap.portal.prt.component.PortalComponentRequest.getComponentContext(PortalComponentRequest.java:382)
         at com.sapportals.portal.pb.PageBuilder.createIviewProfile(PageBuilder.java:446)
         at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:395)
         at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:235)
         at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:637)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
         at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:814)
         at com.sap.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:536)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
         at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
         at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.navigation.workAreaiView.doOnNodeReady(workAreaiView.java:420)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
         at com.sapportals.portal.navigation.workAreaiView.handleEvent(workAreaiView.java:511)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
         at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
         at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sapportals.portal.pb.PageBuilder.createAndAddEmbeddediView(PageBuilder.java:179)
         at com.sapportals.portal.pb.PageBuilder.createiView(PageBuilder.java:414)
         at com.sapportals.portal.pb.PageBuilder.createAndAddiViews(PageBuilder.java:235)
         at com.sapportals.portal.pb.PageBuilder.doOnNodeReady(PageBuilder.java:637)
         at com.sapportals.portal.prt.component.AbstractPortalComponent.handleEvent(AbstractPortalComponent.java:380)
         at com.sapportals.portal.pb.PageBuilder.handleEvent(PageBuilder.java:814)
         at com.sap.portal.prt.component.CachablePortalComponent.handleEvent(CachablePortalComponent.java:536)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher$1.service(RequestDispatcherFactory.java:168)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.portal.prt.core.RequestDispatcherFactory$PortalComponentRequestDispatcher.handleEvent(RequestDispatcherFactory.java:158)
         at com.sap.portal.prt.pom.ComponentNode.handleEvent(ComponentNode.java:244)
         at com.sap.portal.prt.pom.PortalNode.fireEventOnNode(PortalNode.java:366)
         at com.sapportals.portal.prt.pom.AbstractNode.addChildNode(AbstractNode.java:340)
         at com.sap.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:543)
         at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:203)
         at com.sap.portal.prt.dispatcher.DispatcherServlet.service(DispatcherServlet.java:122)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:140)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:37)
         at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:144)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.runServlet(FilterChainImpl.java:162)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:81)
         at com.sap.portal.http.EnrichNavRequestFilter.doFilter(EnrichNavRequestFilter.java:49)
         at com.sap.engine.services.servlets_jsp.server.runtime.FilterChainImpl.doFilter(FilterChainImpl.java:73)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:441)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:291)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:396)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:385)
         at com.sap.engine.services.servlets_jsp.filters.DSRWebContainerFilter.process(DSRWebContainerFilter.java:48)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:76)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:212)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:77)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.MemoryStatisticFilter.process(MemoryStatisticFilter.java:43)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.filters.DSRHttpFilter.process(DSRHttpFilter.java:42)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:78)
         at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:447)
         at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.process(Processor.java:250)
         at com.sap.engine.services.httpserver.server.rcm.RequestProcessorThread.run(RequestProcessorThread.java:37)
         at com.sap.engine.core.thread.execution.Executable.run(Executable.java:109)
         at com.sap.engine.core.thread.execution.CentralExecutor$SingleThread.run(CentralExecutor.java:314)
    Caused by: com.sap.portal.prt.broker.PortalComponentNotFoundException: getPortalComponent failed
         at com.sap.portal.prt.broker.PortalAppBroker.getPortalComponent(PortalAppBroker.java:365)
         at com.sap.portal.prt.component.PortalComponentContext.getPortalComponentApp(PortalComponentContext.java:115)
         at com.sap.portal.prt.component.PortalComponentContext.init(PortalComponentContext.java:268)
         ... 84 more

  • Error in Component Monitoring(Runtime Workbench)

    Hi,
    I am getting an error in component monitoring section of runtime workbench. I got a note(851711), where it says 'CompilingException' error can be corrected by applying SP14. But I am still getting same error after applying SP14 and redeploying XI ADAPTER FRAMEWORK CORE 3.0 (SAPXIAFC.sca), XI TOOLS 3.0 (SAPXITOOL.sca) and XI ADAPTER FRAMEWORK 3.0 (SAPXIAF.sca). Please advice how to correct this error.
    Error Message:
    com.sap.engine.services.servlets_jsp.server.jsp.exceptions.CompilingException: Error while executing the compilation process: D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:27: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier) import com.sapportals.htmlb.enum.TableCellStyle;                            ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:947: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier)     compTable.setColumnType(com.sapportals.htmlb.enum.TableColumnType.IMAGELINK,  1);                                                                  ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/apps/sap.com/com.sap.xi.rwb/servlet_jsp/rwb/work/jsp_component_monitoring1138903402125.java:948: as of release 1.5, 'enum' is a keyword, and may not be used as an identifier (try -source 1.4 or lower to use 'enum' as an identifier) compTable.getColumn(1).setCellHAlignment(-1, com.sapportals.htmlb.enum.CellHAlign.CENTER);                                                                                ^ 3 errors .
    Thanks,
    Ask.

    Hi,
    it can be for some system configured on http destination or the sld system configured for this server.
    take a look at tx sxmb_adm for the http destination to discover witch destination is been used. then, on sm59, find the server that is been called for this http destination and check on that server if this user is ok there.
    to check sld, go to tx sld_apicust discover witch is the sld system configured for this server. After log on to sld system and check the user.
    Maybe the user is ok on the destination system, so, check the password on sm59 (if the problem is with an http dest) or sld_apicust (if the problem is the connection to sld).
    regards.
    roberti

  • Changing the MXML of a component at runTime

    Hi there,
    I need, depending on runTime conditions, to update the surface of a Flex window with a combination of controls.
    For example I may need to layout this line
    THIS IS STATIC TEXT #COMBOBOX# THIS IS ANOTHER STATIC TEXT #CHEKBOX#
    Or this line :
    #EDITBOX# STATIC TEXT HERE
    A priori I can't tell the set of combination I may encounter, so I need to be able to dynamically construct the UI.
    If changing the MXML of a component is possible, then I can ofcourse solve this pbm since the solution will only have to deal with string operation.
    Please help.
    Thanks in advance.

    Hi,
    Check View States.
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf63611-7ff1.html

Maybe you are looking for

  • Not able to access the multi-source universe in WebI

    Hi I am not able to access the multi-source universe in WebI, getting below error message. [Data Federator Driver] Unexpected exception: com.crystaldecisions.thirdparty.org.omg.CORBA.UNKNOWN: null | [Data Federator Driver] Failed to connect to any of

  • Help with place a gif file

    Hi All: I placeed the picture http://www.cooldtp.cn/bbs/files/image004_202.gif into my document in Indesign CS3, but I found that the font color on the current page became darker after I placed it, how to resolve this? Thanks in advance.

  • Spring bean creation fails when statefull ejb created in other component

    Hi All, We have two components A and B. A creates stateful ejb as well calls B. B inturn loads the beans using spring. While component B is trying to create the beans the following error is coming: Error creating bean with name 'dataSource' defined i

  • Having problems when aligning footer div and content div close together, in the browsers they are wi

    My problem is when I paste text or paste anything in div tag. I have a container that contains everything. I have a content div that contains content. I also have a footer. When I align the footer at the end to content div which is in the container,

  • Why I can't create ConText index?

    Hi everyone. I install Oracle9i(v9.0.1.1) in my computer. I create a table, insert a xml document into it, but I can't create ConText index on it. How can I solve this problem ? Thank you. SQL> create table xtest(doc sys.xmltype); SQL> insert into xt