Problems with layout manager

hello,
In the code below, no matter how much i incerase the size of
the top_pane object i can never get the scroll panel to move down
visually. I would like the scroll panel to be centerd on the
right side. I was trying to do this by adding a panel at the top
and bottom both 100 in height and then put the scroll panel
between them with a height of 400..this is not working :)
any suggestions or help appreciated,
jd
the code...
import javax.swing.JTree;
import java.net.URL;
import java.io.IOException;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import java.util.Vector;
import javax.swing.tree.*;
import javax.swing.event.*;
public class jd_back2{
     //Globals
      JPanel main_pane = new JPanel();
      JPanel command_panel = new JPanel();
      JPanel tree_pane = new JPanel();
      JPanel bottom_pane = new JPanel();
      JPanel scroller_pane = new JPanel();
      JPanel top_pane = new JPanel();
      JButton add = new JButton("Add");
      JButton remove = new JButton("Remove");
      JScrollPane picked_scroller = new JScrollPane(tree_pane);
      JFileChooser chooser = new JFileChooser();
      DefaultMutableTreeNode root_node = new DefaultMutableTreeNode("Files and Dirs to Backup");
      DefaultTreeModel treeModel = new DefaultTreeModel(root_node);
      JTree tree = new JTree(treeModel);
      String what;     
     public Component makeContent(){
          main_pane.setLayout(new BorderLayout());
          add.addMouseListener(new command_listner());
          remove.addMouseListener(new command_listner());
          makeTree();
          makeSelector();
          command_panel.add(add);
          command_panel.add(remove);
          picked_scroller.setPreferredSize(new java.awt.Dimension(200,300));
          picked_scroller.setVerticalScrollBarPolicy(javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          picked_scroller.getViewport().setBackground(new java.awt.Color(255, 255, 255));
          picked_scroller.setBackground(new java.awt.Color(255, 255, 255));
          tree_pane.setBackground(new java.awt.Color(255, 255, 255));
          top_pane.setSize(new java.awt.Dimension(800,300));
          top_pane.setBackground(new java.awt.Color(255, 255, 255));
          tree_pane.add(tree); // tree_pane is added to picked_scroller above
          scroller_pane.add(picked_scroller);
          main_pane.add(top_pane, BorderLayout.NORTH);
          main_pane.add(scroller_pane, BorderLayout.EAST);
          main_pane.add(command_panel, BorderLayout.WEST);
          return main_pane;          
     public  void makeSelector(){
               chooser.setFileSelectionMode(2);
               chooser.setMultiSelectionEnabled(true);
               //chooser.setControlButtonsAreShown(false);
     public void makeTree(){
          tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);          
          tree.addTreeSelectionListener(new TreeSelectionListener() {
               public void valueChanged(TreeSelectionEvent e){
                    what = tree.getSelectionPath().toString();
                    System.out.println(what);
     public class command_listner extends MouseAdapter{
         public void mouseClicked(java.awt.event.MouseEvent evt){
              Object source = evt.getSource();
              if(source == add){
                   int returnVal = chooser.showOpenDialog(main_pane);
                   if (returnVal == JFileChooser.APPROVE_OPTION) {
                        File[] file = chooser.getSelectedFiles();
              if(source == remove){
                   System.out.println("Remove Clicked");
     public static void main(String[] args) {
        try {
            UIManager.setLookAndFeel(
                UIManager.getCrossPlatformLookAndFeelClassName());
        } catch (Exception e) {}
        JFrame frame = new JFrame("SwingApplication");
        jd_back2 app = new jd_back2(); // this concerns me
        Component contents = app.makeContent();
        frame.getContentPane().add(contents, BorderLayout.CENTER);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setSize(new java.awt.Dimension(800,600));
        frame.setLocation(100,50);
        frame.setVisible(true);
}

Use TableLayout manger it will make your life easier, atleast it has made mine life lot easier.
I have changed your code to use Tablelayout manager. You need TableLayout.jar to run it. It is available from http://java.sun.com/products/jfc/tsc/articles/tablelayout/
import java.awt.BorderLayout;
import java.awt.Component;
import java.awt.event.MouseAdapter;
import javax.swing.JButton;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JTree;
import javax.swing.UIManager;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.DefaultTreeModel;
import javax.swing.tree.TreeSelectionModel;
import layout.TableLayout;
public class jd_back2 {
     //Globals           
     JPanel main_pane = new JPanel();
     JPanel command_panel = new JPanel();
     JPanel tree_pane = new JPanel();
     JPanel bottom_pane = new JPanel();
     JPanel scroller_pane = new JPanel();
     JPanel top_pane = new JPanel();
     JButton add = new JButton("Add");
     JButton remove = new JButton("Remove");
     JScrollPane picked_scroller = new JScrollPane(tree_pane);
     JFileChooser chooser = new JFileChooser();
     DefaultMutableTreeNode root_node =
          new DefaultMutableTreeNode("Files and Dirs to Backup");
     DefaultTreeModel treeModel = new DefaultTreeModel(root_node);
     JTree tree = new JTree(treeModel);
     String what;
     public Component makeContent() {
          add.addMouseListener(new command_listner());
          remove.addMouseListener(new command_listner());
          makeTree();
          makeSelector();
          command_panel.add(add);
          command_panel.add(remove);
          picked_scroller.setPreferredSize(new java.awt.Dimension(200, 300));
          picked_scroller.setVerticalScrollBarPolicy(
               javax.swing.JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
          picked_scroller.getViewport().setBackground(
               new java.awt.Color(255, 255, 255));
          picked_scroller.setBackground(new java.awt.Color(255, 255, 255));
          tree_pane.setBackground(new java.awt.Color(255, 255, 255));
          top_pane.setSize(new java.awt.Dimension(800, 300));
          top_pane.setBackground(new java.awt.Color(255, 255, 255));
          tree_pane.add(tree);
          // tree_pane is added to picked_scroller above          
          scroller_pane.add(picked_scroller);
          double[][] size = {{450,TableLayout.FILL},{125,TableLayout.FILL,50}};
          TableLayout layout = new TableLayout(size);
          main_pane.setLayout(layout);
          main_pane.add(scroller_pane, "1,1");
          main_pane.add(command_panel, "0,0");
          return main_pane;
     public void makeSelector() {
          chooser.setFileSelectionMode(2);
          chooser.setMultiSelectionEnabled(true);
          //chooser.setControlButtonsAreShown(false);     
     public void makeTree() {
          tree.getSelectionModel().setSelectionMode(
               TreeSelectionModel.SINGLE_TREE_SELECTION);
          tree.addTreeSelectionListener(new TreeSelectionListener() {
               public void valueChanged(TreeSelectionEvent e) {
                    what = tree.getSelectionPath().toString();
                    System.out.println(what);
     public class command_listner extends MouseAdapter {
          public void mouseClicked(java.awt.event.MouseEvent evt) {
               Object source = evt.getSource();
               if (source == add) {
                    int returnVal = chooser.showOpenDialog(main_pane);
                    if (returnVal == JFileChooser.APPROVE_OPTION) {
               if (source == remove) {
                    System.out.println("Remove Clicked");
     public static void main(String[] args) {
          try {
               UIManager.setLookAndFeel(
                    UIManager.getCrossPlatformLookAndFeelClassName());
          } catch (Exception e) {
          JFrame frame = new JFrame("SwingApplication");
          jd_back2 app = new jd_back2();
          // this concerns me       
          Component contents = app.makeContent();
          frame.getContentPane().add(contents, BorderLayout.CENTER);
          frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
          frame.pack();
          frame.setSize(new java.awt.Dimension(800, 600));
          frame.setLocation(100, 50);
          frame.setVisible(true);
}

Similar Messages

  • Does anyone know how to win a fight with layout manager?

    I am using the form designer in netBeans to design my page, which has a jPanel on the left and a number of controls on the right.
    My problem is that when I eventually get it to look half right at design time, it looks different at run time. The fonts are different, the combo boxes are a different height and some of my text boxes are 4 times as wide. http://RPSeaman.googlepages.com/layout.GIF shows both the design-time view and the run-time view. How can I win my fight with layout manager?

    I'd like to do an experiment where you take say 20 pairs of students of java, with each pair matched in terms of prior programming and java experience, general knowledge, etc... and set one of each pair to learn Swing using netbeans and its layout generator with the other pair learning to code Swing by hand. Then 6 months later compare their abilities. I'll bet that the code by hand group will blow the other group out of the water in terms of understanding and ability.
    Just my 2 Sheckel's worth.

  • Problem with layout and changing content

    Hi, I`m new to Swing and I have a problem with layout.
    I want to make a menu using JButtons so that depending on which button you click you`ll get different content in the window. And first of all I don`t know how to center the buttons.
    I have a JFrame called GameWindow that has a JPanel field called content. My idea was to create a JPanel with buttons and then using ActionListeners change the JPanel held in 'content'.
    Here`s the code:
    public class GameWindow extends JFrame{     
         private static final long serialVersionUID = 1L;
         private JPanel content;
         private Player player;
         public GameWindow(){          
              super("Dawn Crystal");
              Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
              setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
              setSize((int)screenSize.getWidth(), (int)screenSize.getHeight());
              setExtendedState(MAXIMIZED_BOTH);
         public void mainMenu(){
              content = new MainMenu(this);
              Dimension dim = content.getSize();
              setLayout(null);                    
              Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();
              int x = (int)((screen.getWidth() - dim.getWidth()) / 2);
              int y = (int)((screen.getHeight() - dim.getHeight()) / 2);
              int dimX = (int)dim.getWidth();
              int dimY = (int)dim.getHeight();          
              content.setBounds(x, y, 120, 120);          
              getContentPane().add(content);          
              setVisible(true);
         public void adventureScreen(){
              //so far empty
         public void createNewPlayer(){
              content.setVisible(false);
              content = new NewPlayerCreationWindow();
              getContentPane().add(content);          
              content.setVisible(true);
              //setVisible(true);
         public void setPlayer(Player p){ player=p; }
    public class MainMenu extends JPanel{     
         private static final long serialVersionUID = 1L;     
         private JPanel mainMenuButtons;
         private JButton newGame;
         private JButton loadGame;
         private JButton options;
         private JButton exit;
         public MainMenu(GameWindow par){
              mainMenuButtons = new JPanel();     
              //create buttons
              newGame = new JButton("NEW GAME");
              loadGame = new JButton("LOAD GAME");
              options = new JButton("OPTIONS");
              exit = new JButton("EXIT");
              //create action listeners
              newGame.addActionListener(new NewGameListener());
              exit.addActionListener(new ExitListener(par));     
              //add buttons to panel
              mainMenuButtons.setLayout( new GridLayout(4,1));
              mainMenuButtons.add(newGame);
              mainMenuButtons.add(loadGame);
              mainMenuButtons.add(options);
              mainMenuButtons.add(exit);     
              add(mainMenuButtons);          
    }When it displays the buttons are at the top of the frame rather than in the center - I thought that was how the default layout would behave. So that`s my first question - how to center it.
    Secondly I have NewPlayerCreationWindow written but when I call createNewPlayer() I get an empty frame - what am I doing wrong?
    Finally I`d like to ask how can I make the frame appear as maximized when the application is started? The setExtendedState(MAXIMIZED_BOTH); doesn`t help actually because the window`s height is too big and a part of window is hidden under the system bar. I want to have it maximized regardless of screen resolution.

    Use a [url http://java.sun.com/docs/books/tutorial/uiswing/layout/visual.html]Card Layout.

  • Logon problem with oracle management server

    I have problem with Oracle Management Server when I connect to the OMS message comes
    The exception (java.lang.NullPointerException) occurred.
    if any body have any idea pls tell us

    Hi,
    Oracle has changed the Enterprise Manager from version 1.5 to 2.0 .
    With the new Oracle8i dataase server another service has been added.
    If you want to user the OEM you have to install The Managment Server.
    The Managment server has its own user and privileges and is recommended when using OEM.

  • Problem with discovering Managed Servers

    Hi,
    I got problem with discovering managed servers, when I restart only administration
    server while managed servers are running. During restart of admin server everything
    seems to be ok (the directive: Starting discovery of managed server... appears
    on the screen).
    However when I start admin console through http, I cannot monitor performance,
    browse logs etc. I can only shutdown managed server and I can see in a server
    tag that particular managed servers are running.
    I'm looking forward for any clues
    Michal

    Sorry,
    i cannot stop those managed server - in Control tab I have active only option
    to start those server but they are running. In logging tab when I want to browse
    the log the message that probably this server is not running appear. However in
    the tab when all servers are listened there is a message that they are running
    "Michal" <[email protected]> wrote:
    >
    Hi,
    I got problem with discovering managed servers, when I restart only administration
    server while managed servers are running. During restart of admin server
    everything
    seems to be ok (the directive: Starting discovery of managed server...
    appears
    on the screen).
    However when I start admin console through http, I cannot monitor performance,
    browse logs etc. I can only shutdown managed server and I can see in
    a server
    tag that particular managed servers are running.
    I'm looking forward for any clues
    Michal

  • I have a problem with session manager session files because of the invalid json storage data submited by firefox

    Hi, i have problem with session manager's session files. The problem is: the submitted storage data from firefox which is put between "storage":{ and its matching closing brace } But in some of my session files there is non equal { and } under storage's braces. I need to get storage data but in my case it is very hard to do. My question is there any char put before or after { and } like /{ or \{ to avoid confusion? If there is not such thing, i think there could be different solution but i am not sure: i look couple of my session files; after "storage":{...} there is ,_"formDataSaved" so i can get storage data in this example ... by looking between "storage":{ and ,"_formDataSaved" easily. Is there every time ,"_formDataSaved" after "storage":{ ?  Thank you.

    Well, it seems waiting is not my strong suit..! I renamed a javascript file called recovery to sessionstore. This file was in the folder sessionstore-backups I had copied from mozilla 3 days ago, when my tabs were still in place. I replaced the sessionstore in mozilla's default folder with the renamed file and then started mozilla. And the tabs reappeared as they were 3 days ago!
    So there goes the tab problem. But again when I started mozilla the window saying "a script has stopped responding" appeared, this time the script being: chrome//browser/contenttabbrowser.xml2542
    If someone knows how to fix this and make firefox launch normally, please reply! Thank you

  • Problem with layout smartform

    Hello all,
    I have a problem with the layout of smartform.
    My smartform is composed of a window (main).
    Within the main window, there is a loop where they are
    printed a series of tables which are associated with a frame.
    When the smartform printed on the next page, it is incapable to
    to manage the frames in their entirety.
    Thanks.

    Hi,
    my smartform is composed as follows:
    Page 1
      Main
         Loop
            Table 1
            Table 2
            Table n
    Each table consists of a frame.
    The problem is that when the smartform go to the next page, I can not handle frames.
    Part of frame is displayed on the first page, the other party to the second page.
    I tried to put the flag protection page on the tables, but the frame has not been successful.
    I hope someone help me.
    Regards,
    Maurizio.

  • Problem with Connection Manager. Can't change connection string / Server name

    p.MsoNormal, li.MsoNormal, div.MsoNormal
    {margin-top:0cm;margin-right:0cm;margin-bottom:10.0pt;margin-left:0cm;line-height:115%;font-size:11.0pt;font-family:'Calibri','sans-serif';}
    .MsoChpDefault
    {font-size:10.0pt;}
    .MsoPapDefault
    {line-height:115%;}
    @page Section1
    {size:612.0pt 792.0pt;margin:72.0pt 72.0pt 72.0pt 72.0pt;}
    div.Section1
    {page:Section1;}
    Hi,
    I have copied a number of SSID packages from a live server to my test server and am trying to get them up and running but I have a problem with the connection. The only thing that is different is the server name. I decided to keep the same connection in the connection manager as it is referenced in a dtsConfig file. I changed the dtsConfig file to reference the new servername [Data Source= new test server name]. I also check my paths and they are pointing to the correct config locations etc.
    I found this post which was similar to my problem but I still get problems with the connection
    http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1319961&SiteID=1
    I updated the connection by changing the server name in the actual connection. I did this from the data flow tab in the Connection Managers sections (MS Visual Studio). Right clicked - Edit - changed the name of the server name to my test server and selected the database. Test connection was fine, and saved this.
    Once I saved this, the connection string changed to my current test server in the properties of the connection. However when I run the package I get the following error:
    Error: 0xC0202009 at ReportsImport, Connection manager "myconnectionstring": SSIS Error Code DTS_E_OLEDBERROR.  An OLE DB error has occurred. Error code: 0x80004005.
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Login timeout expired".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.".
    An OLE DB record is available.  Source: "Microsoft SQL Native Client"  Hresult: 0x80004005  Description: "Named Pipes Provider: Could not open a connection to SQL Server [53]. ".
    Error: 0xC020801C at Myprocess import from file, BuyAtReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionstring" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    Error: 0xC0047017 at Myprocess import from file, DTS.Pipeline: component "ReportsImport" (79) failed validation and returned error code 0xC020801C.
    Error: 0xC004700C at Myprocess import from file, DTS.Pipeline: One or more component failed validation.
    Error: 0xC0024107 at Myprocess import from file: There were errors during task validation.
    So even if I change the existing connection properties and save and Build my package again, my connection properties (connectionstring, servername etc) all revert back to its original data source when I re-open the package. Simply it does not seem to be saving the connection properties i put in.
    What am I doing wrong or how can I change the existing connection manager to look at the new server. The database is  the same and I have full admin privilege on the server.
    I don't want to recreate my packages as there are alot and they are not simple.
    After changing the connection properties, saving and reloading I get a connection error. But this is because it is not retaining the new connection manger setting i entered.
    Incidentally - I created a new SSID to perform a simple connection and write to the the server and it was OK so there is no problem with actually seeing the my test server.
    Thanks in advance

    Yes, the package is in visual studio and I have executed it. There are no errors but in the output i have the error message about my connection. My dtsConfig file is added to the project in the 'Package Configuration Organizer' and path and files are correct. This is the output error:
    Error: 0xC020801C at xx import from file, xxReportsImport [79]: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER.  The AcquireConnection method call to the connection manager "myconnectionname" failed with error code 0xC0202009.  There may be error messages posted before this with more information on why the AcquireConnection method call failed.
    I will try and run it using dtexec.exe. if I have two config files do i use
    dtsexec.exe /f <packagename> /conf <configfile> /conf <secondconfigfile>

  • ITunes 10.6 Mac Problem with Subscriptions Management

    I have my MacBook updated to the latest everything, including iTunes 10.6.
    I have noticed a problem with iTunes, in that I can log in to the store with my AppleId and buy apps, music, books, magazines movies etc and everything works fine.
    However some apps have an auto-renewing subscription and I have a problem here. I log in with my AppleId, go to manage account and am then presented with an endless loop of password requests.
    There doesn't seem to be any way to get to the subscriptions to turn them off.
    Does anyone have any helpful tips?
    thanx

    I just tried this also on my iPad and it doesn't work there either. Although I can get into the account settings, when I try and change a subscription I get a big black rectangle in the middle of the screen and the iPad hangs until the screen login thing kicks in and I have to enter my pincode again.
    Maybe this is something to do with my AppleId, I can't actually believe this is a fundamental problem, although maybe  I am optimistic.

  • Big Problem With Solution Manager EHP1 ?

    Dear all,
    I have already installed SAP Solution Manager EHP1, after the installation sucessfuly. I check the function: Project Administration ( T code : Solar_Project_Admin), then select New project button.
    The program inform that:
    "Runtime Errors: Message Type Unknow
    What happened:
    Error in ABAP Application program
    The current ABAP program "SAPLSPROJECT_SYSTEM_LANDSCAPE" had to be terminated because
    it has come across a statement that unfortunately cannot be excuted.
    etc
    Do you know about this problem, what is the errors ?
    Thanks all.

    Dear all.
    With Solution Manager EHP1
    SAP Basis: SAPKB7001-SAPKB70016, SAPKB70101-SAPKB70102
    SAP ABA: SAPKA7001-SAPK70016, SAPKA70101-SAPKA70102
    Detail log as below:
    Runtime Errors         MESSAGE_TYPE_UNKNOWN
    Date and Time          28.04.2009 16:47:15
    Short text
    Message type " " is unknown.
    What happened?
    Error in the ABAP Application Program
    The current ABAP program "SAPLSPROJECT_SYSTEM_LANDSCAPE" had to be terminated
    because it has
    come across a statement that unfortunately cannot be executed.
    What can you do?
    Note down which actions and inputs caused the error.
    To process the problem further, contact you SAP system
    administrator.
    Using Transaction ST22 for ABAP Dump Analysis, you can look
    at and manage termination messages, and you can also
    keep them for a long time.
    Error analysis
    Only message types A, E, I, W, S, and X are allowed.
    How to correct the error
    Probably the only way to eliminate the error is to correct the program.
    If the error occures in a non-modified SAP program, you may be able to
    find an interim solution in an SAP Note.
    If you have access to SAP Notes, carry out a search with the following
    keywords:
    "MESSAGE_TYPE_UNKNOWN" " "
    "SAPLSPROJECT_SYSTEM_LANDSCAPE" or "LSPROJECT_SYSTEM_LANDSCAPEU28"
    "SPROJECT_SYSL_CHECK_CENTRAL_SY"
    If you cannot solve the problem yourself and want to send an error
    notification to SAP, include the following information:
    1. The description of the current problem (short dump)
    To save the description, choose "System->List->Save->Local File
    (Unconverted)".
    2. Corresponding system log
    Display the system log by calling transaction SM21.
    Restrict the time interval to 10 minutes before and five minutes
    after the short dump. Then choose "System->List->Save->Local File
    (Unconverted)".
    3. If the problem occurs in a problem of your own or a modified SAP
    program: The source code of the program
    In the editor, choose "Utilities->More
    Utilities->Upload/Download->Download".
    4. Details about the conditions under which the error occurred or which
    actions and input led to the error.
    Information on where terminated
    Termination occurred in the ABAP program "SAPLSPROJECT_SYSTEM_LANDSCAPE" - in
    "SPROJECT_SYSL_CHECK_CENTRAL_SY".
    The main program was "SAPLS_IMG_TOOL_5 ".
    In the source code you have the termination point in line 29
    of the (Include) program "LSPROJECT_SYSTEM_LANDSCAPEU28".

  • Problem with Path Managed property in alternate zones - also we have identified problem with Product catalog in alt zones

    Hi All,
    I'll start "one step back". Note we have resolved this issue but it is worth mentioning:
    Yesterday we set up the product catalog. We were having a lot of inexplicable problems with it initially. After much troubleshooting, we found that it was because we were browsing the SharePoint site via the "Internet Zone" rather than the "Default
    Zone" when we "Connected" our site to the product catalog. Issues experienced:
    1) "Catalog Item URL Format" displayed error "Properties <Managed Property> specified by the shared catalog could not be found in the search schema" when attempting to connect to the catalog, despite that managed property being
    configured correctly. The catalog would connect despite the error, and the navigation worked fine.
    2) The search Result Source for the catalog would not return any results. Configuring the query and selecting "Advanced Mode" would show SPSiteURL:http://externalURL.domain.com. Changing SPSiteURL manually to
    http://InternalURL resulted in results being returned as expected.
    After much troubleshooting, we found that if were browsing SharePoint using the default zone (http://InternalURL) when we connected the Product Catalog, the result source then worked properly (internally and externally).
    Ok, so now onto our current problem:
    The Product Catalog appeared to be working properly (internally and externally) after figuring out that we needed to connect it from the Default Zone. However, we have found a remaining glitch, which doesn't appear to be Product-Catalog-specific. Consider
    the following scenario:
    1) We click a category in our Product Catalog, such as Electronics
    2) A list of our electronic devices are presented via the "Category" display page
    3) If we click on a specific item, a different URL is returned internally vs externally. We only get the friendly managed navigation URL when browsing via the Default zone. And of course totally different pages load based on which URL you get.
    Internal (when browsing via Default zone):
    http://InternalURL/catalog/PRODUCT-CATEGORY/PRODUCT-NAME
    External (when browsing via Internet zone):
    http://ExternalURL.domain.com/catalog/Lists/Products/DispForm.aspx?ID=1
    We have reviewed the display template, and the "Path" managed property is simply being used to render the link. Furthermore, we have configured the Content Search web part's "Property Mappings" to show the "Path" MP, and it
    displays the same (wrong) result externally.
    This tells us that the Path MP is not correctly rendering "Friendly URLs" when using managed navigation.
    Any help/ideas?
    Our environment:
    SharePoint Version: 15.0.4667.1000
    Default Zone: http://InternalURL
    Internet Zone: http://ExternalURL.domain.com
    We are NOT using host named site collections
    We ARE crawling the Default zone URL in our content source
    Thanks,
    Tommy

    Hi,
    We have now also observed the same issue with a Managed Property of type “Hyperlink/Picture”. The picture returns the wrong URL externally.
    This post describes the same issue, however the poster found that setting UseAAMMapping=True doesn’t work in 2013:
    http://sharepoint.stackexchange.com/questions/104806/set-the-useaammapping-property-of-a-managedproperty-object-map-an-url-of-a-h
    We checked, and our Picture MP had UseAAMMapping=False. We set it to True, did a full crawl, and see no change in behavior. Path already had UseAAMMapping=True.
    More info:
    http://macslui.blogspot.com/2013/02/sharepoint-2010-problem-in-image-result.html
    https://camerondwyer.wordpress.com/2014/08/04/beware-sharepoint-2013-search-results-and-the-listurl-property/#comment-2606
    Thanks,
    Tommy

  • Problems with Transport Management System

    Hi All,
    i seem to be having some issues with my Transport Management System, we have a two system landscape DEV & PRD, the operating system is windows 2003 server. i am trying to access the usr/sap/trans on the transport host (DEV) from the PRD system, i have put patches on the DEV server, but i can't access these patches from the PRD server. I have also tried to release a test transport, but the queues are not being updated. the systems are in the same Domain and the same transport group. on the PRD server i have specified the following value for the DIR_TRANS =
    DEVSERVER\sapmnt\trans. i have checked the files and they are shared, what could be the cause of this?

    Can you please check the access of global TRANS directory from your PRD server. Login to your PRD server, goto transaction STMS --> Overview --> Systems. Select your developement system and goto SAP System --> Check --> Transport Directory. If it can access the global directory the tick marks will come otherwise there is some problem with the directory access.
    Regards,
    Abhishek Jain

  • Problem with stoping managed server

    I have wls 10.3.5 on solaris10 64bit, created the domain mytest_cluster with AdminServer and two managed servers in one cluster: ms1 and m2.
    All are on the same server.
    For ms1 I can start and stop with no problem.
    For ms2 I can start, but I cannot stop it without killin it from OS.
    The log for the stop as :
    >
    Stopping Weblogic Server...
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    This Exception occurred at Mon Dec 05 15:44:53 GMT 2011.
    java.lang.NullPointerException
    at weblogic.management.scripting.WLSTHelper.loadUsernameAndPasswordFromBootProperties(WLSTHelper.java:293)
    at weblogic.management.scripting.WLSTHelper.loadUsernameAndPasswordFromBootProperties(WLSTHelper.java:281)
    at weblogic.management.scripting.WLSTHelper.getUsernameAndPassword(WLSTHelper.java:270)
    at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:158)
    at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:61)
    at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:147)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at org.python.pycode._pyx4.connect$1(<iostream>:16)
    at org.python.pycode._pyx4.call_function(<iostream>)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.pycode._pyx15.f$0(/oraclebase/product/Middleware11.1.1/user_projects/domains/mytest_cluster/shutdown.py:6)
    at org.python.pycode._pyx15.call_function(/oraclebase/product/Middleware11.1.1/user_projects/domains/mytest_cluster/shutdown.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyCode.call(Unknown Source)
    at org.python.core.Py.runCode(Unknown Source)
    at org.python.util.PythonInterpreter.execfile(Unknown Source)
    at weblogic.management.scripting.WLST.main(WLST.java:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at weblogic.WLST.main(WLST.java:29)
    Problem invoking WLST - Traceback (innermost last):
    File "/oraclebase/product/Middleware11.1.1/user_projects/domains/mytest_cluster/shutdown.py", line 6, in ?
    File "<iostream>", line 22, in connect
    File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing connect : Error connecting to the server
    Use dumpStack() to view the full stacktrace
    Done
    Stopping Derby Server...
    >
    The error is kind og generic, How I can troubleshoot this?
    Note that I can start it and all the components are on the same server.
    Thanks
    Edited by: gadba on Dec 5, 2011 11:04 AM

    Has anyone had the similar problem?
    There is another problem with the MS2. I created boot.properties and seems it does not affect because the start still asks for the username and the password.
    I have done the same with MS1 without the problem.

  • WS2012 Standard R2 with Essentials sudden problem with Server Manager, Essential Dashboard and other services

    Hi all,
    I have a problem with my Windows Server 2012 R2 with Essential installed. When I try to run Server Manager the server manager window doesn't appear and the same thing applies for starting the essentials dashboard. This leads to that some of the features doesn't
    work properly like remote web access, client backup and so on. When I check the Services a lot of services haven't even started. Trying to manually start for example Windows Server Essentials Management Services gives me following error message: 
    "Windows could not start the Windows Server Essentials Management Services on Local Computer. Error 1068: The dependency service or group failed to start"
    What can be wrong here? I haven't done anything to the server that could start these problems. This started all of a sudden. 
    Thank you all in advance for any help.
    EDIT:
    I rebooted my server in safe mode and I tried to run SFC /Scannow which stops at 84% and gives me following message:
    "Windows Resource Protection could not perform the requested operation."
    I also tried to run "DISM.exe /Online /Cleanup-Image /RestoreHealth". This did not help either. It completes the operation but nothing changes. The problem is still there.
    I thought that my server backups were OK and that this problem would be gone by restoring the C: drive with backup image. The problem is that all my good backups was rewritten with new backups that could not take backup of the C: drive for some reason. Now
    I need to solve this problem without reinstalling the whole operating system.
    EDIT:
    I have also completed the chkdsk C: /r command and now the SFC /Scannow command can be completed, with notification that some files could not be fixed. I have attached the sfcdetail.txt file which points out that
    "tsgclean.exe" cannot be repaired. What has that file to do with my WS2012 problems...
    2015-01-04 03:12:54, Info                  CSI    00000477 [SR] Cannot repair member file [l:24{12}]"tsgclean.exe" of Microsoft-Windows-TSProxy-EdgeAdapter,
    Version = 6.3.9600.16384, pA = PROCESSOR_ARCHITECTURE_AMD64 (9), Culture neutral, VersionScope = 1 nonSxS, PublicKeyToken = {l:8 b:31bf3856ad364e35}, Type neutral, TypeName neutral, PublicKey neutral in the store, hash mismatch

    Hi,
    Did you remember any operation which you had done before this issue occurred? For examples, install any update,
    install any third-party application or any other? Just a confirmation, thanks for your understanding.
    For those problematic services, please open services’ Properties and navigate to
    Dependencies tab, then check if all system components which this service depends on run as normal.
    In addition, please open Event Viewer and check if find relevant events. Meanwhile, please follow the path:
    %programdata%\Microsoft\Windows Server\Logs and check Dashboard log file if find more clues.
    By the way, when you run
    sfc /scannow command completely, did you open Server Manager or Dashboard again? Any difference?
    If any update, please feel free to let me know.
    Hope this helps.
    Best regards,
    Justin Gu
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected].
    Hello Justin,
    Regarding the third-party applications:
    I have not installed any third-party application that could cause this problem. All my third-party applications that are installed on the WS2012 R2 are confirmed working well with the operative system and are installed at the time when I hadn't these problems.
    I cannot say anything about windows update because that is something that I update once in a week after checking that no user is reporting any issues. I have learned my leason with windows update when I had Surface Pro 2, that was a dissaster.
    Regarding the Windows Updates:
    Anyway, I tried to remove all the windows updates before as well (not the security updates) down to 5th December which is the time when I know that my server worked well. Only two updates could not be removed (KB3012199 and KB2989647). I don't
    know if these two updates can cause any problem?
    Regarding the problematic services:
    For example: Checking the properties for "Windows Server Essentials Management Service" -> It is dependable on
    "1. Active Directory Domain Services" and "2. Windows Server Essentials Provider Registry Service".
    No 1 is running but not no 2. If I try to start no 2 service it will give me the same message as before:
    "Windows could not start the Windows Server Essentials Management Services on Local Computer. Error 1068: The dependency service or group failed to start"
    Regarding the Logs:
    I have uploaded Dashboard log files which are created after 5th December to my dropbox account: Link
    Regarding the SFC command:
    Of course, when the SFC command was completed but with error that it could not repair
    tsgclean.exe I tried to start the essentials dashboard and WS2012 server manager with no luck.
    What about the error message? I looked up that file in the explorer and it is located in folder "C:\Windows\WinSxS\amd64_microsoft-windows-tsproxy-edgeadapter_31bf3856ad364e35_6.3.9600.16384_none_2ec8d374a0ac5606"
    Why can't it be repaired and what kind of file is that?
    Best regards

  • Problems with Enterprise Manager Oracle 10gR2

    Hi,
    The installation of 10gR2 on Windows 2000 seems to work.
    I only have a problem with web enterprise manager.
    I can connect to the database correctly and I can manage the database (creating tables, users and so on).
    The only problem is in the first page (home) of the database, accessing with the web enterprise manager.
    In fact I get this "error: java.lang.Exception: IOException in sending Request :: Connection refused", but I however access the db.
    I verified the DBSNMP user and it's active.
    Did someone get the same error?
    Excuse if I'm repeating a previous post, but I received answers about linux environment only (I have Windows 2000 server, instead).
    thanks a lot,
    Francesco

    We have in fact seen the same error. In our case, it appeared after the network guys moved the Oracle server from one domain to another. (This is not an action that I highly recommend, by the way.)
    I used emca to delete the Enterprise Manager agent and recreate it. For a single instance server not in a cluster or on a grid, the commands look like this:
    emca -deconfig dbcontrol db
    emca -config dbcontrol db
    That worked just fine. However, we started getting an "account locked" error when the Enterprise Manager started. And the result is the same as you described. The account is not locked by any means. If you ignore what you see on the screen about an error, you can go on and administer the database just fine. It's just when you get back to the home screen, it tells you that your account is locked and you are not in touch with the instance.
    I can make the error go away for awhile by stopping and starting the agent with
    emctl stop dbconsole
    emctl start dbconsole
    But the error comes back in a little while.
    We don't consider it a show stopper, since the database performs normally. It's just one of those things you wish it would not do.

Maybe you are looking for