Menus, Tabs and Tree Views I need some help

heya,
I am quite new here! I was searching desperately on a solution on how to fix my code. I need to do a menu in Java and bellow two boxes, one in which I will display a static tree structure (on the left side of the window) and one where I have some tabs (on the irght side of the window).
Now, today I was playing around with the tree structure view and also trying to use modules in my code for a more easy debugging and understanding later on and I managed to screw up the functionality for good :D.
Please some help, where am I going wrong and what is missing in my application.
Here are my 4 files:
______File ModulMeniu____________
package modules;
import javax.swing.AbstractAction;
import javax.swing.Action;
import javax.swing.BorderFactory;
import javax.swing.border.Border;
import javax.swing.JTabbedPane;
import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JToolBar;
import javax.swing.JButton;
import javax.swing.ImageIcon;
import javax.swing.JMenuItem;
import javax.swing.JCheckBoxMenuItem;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JFrame;
import javax.swing.JTextArea;
import javax.swing.JScrollPane;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.JEditorPane;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JScrollPane;
import javax.swing.JSplitPane;
import javax.swing.UIManager;
import javax.swing.JTree;
import javax.swing.tree.DefaultMutableTreeNode;
import javax.swing.tree.TreeSelectionModel;
import javax.swing.event.TreeSelectionEvent;
import javax.swing.event.TreeSelectionListener;
import java.awt.*;
import java.awt.event.*;
import java.awt.BorderLayout;
import java.awt.Container;
import java.awt.Dimension;
import java.awt.Dimension;
import java.awt.GridLayout;
import java.net.URL;
import java.io.IOException;
public class ModulMeniu extends JPanel {
protected Action loadConfigurationAction, saveConfigurationAction, stopAction, continueAction, exitAction, newFilterAction, allFiltersSentAction;
protected Action currentFilterAction, allComputersAction, probesAction, deleteAction, resetAction, hideComputersAction, backgroundAction;
protected Action computerAction, filterAction, searchFilterByNameAction, searchPackageByPositionAction, deleteFilterAndRuleAction ;
public ModulMeniu() {
//Creates the actions shared by the toolbar and menu.
loadConfigurationAction = new LoadConfigurationAction("Load Configuration",
"This allows to load a previous configuration.",
new Integer(KeyEvent.VK_L));
saveConfigurationAction = new SaveConfigurationAction("Save Configuration",
"This allows to save the current configuration.",
new Integer(KeyEvent.VK_S));
stopAction = new StopAction( "Stop",
"This stops the Client.",
new Integer(KeyEvent.VK_T));
continueAction = new ContinueAction( "Continue",
"This continues the traffic observing where we left on.",
new Integer(KeyEvent.VK_C));
exitAction = new ExitAction( "Exit",
"This exits the Application.",
new Integer(KeyEvent.VK_E));
newFilterAction = new NewFilterAction( "New Filter",
"This creates a new filter.",
new Integer(KeyEvent.VK_N));
          allFiltersSentAction = new AllFiltersSentAction( "All Filters Sent",
"This displays all the filters sent.",
new Integer(KeyEvent.VK_A));
currentFilterAction = new CurrentFilterAction( "Current Filter",
"This displays the current filter.",
new Integer(KeyEvent.VK_C));
allComputersAction = new AllComputersAction( "All Computers",
"This displays all the computers in the network.",
new Integer(KeyEvent.VK_L));
probesAction = new ProbesAction( "Probes",
"This displays all the probes in the network.",
new Integer(KeyEvent.VK_P));
deleteAction = new DeleteAction( "Delete",
"This deletes the filter.",
new Integer(KeyEvent.VK_D));
resetAction = new ResetAction( "Reset",
"This resets the client.",
new Integer(KeyEvent.VK_R));
hideComputersAction = new HideComputersAction( "Hide Computers",
"This hides given computers.",
new Integer(KeyEvent.VK_H));
backgroundAction = new BackgroundAction( "Background",
"This sets the background color.",
new Integer(KeyEvent.VK_B));
computerAction = new ComputerAction( "Computer",
"This sets the computer color.",
new Integer(KeyEvent.VK_C));
filterAction = new FilterAction( "Filter",
"This sets the filter color.",
new Integer(KeyEvent.VK_F));
searchFilterByNameAction = new SearchFilterByNameAction( "Search Filter By Name",
"This searches a filter by its name.",
new Integer(KeyEvent.VK_F));
deleteFilterAndRuleAction = new DeleteFilterAndRuleAction( "Delete Filter And Rule",
"This deletes a filter or a rule.",
new Integer(KeyEvent.VK_D));
public JMenuBar createMenuBar() {
JMenuItem menuItem = null;
JMenuBar menuBar;
//Create the menu bar.
menuBar = new JMenuBar();
//Create the first menu.
JMenu fileMenu = new JMenu("File");
JMenu setMenu = new JMenu("Set");
JMenu viewMenu = new JMenu("View");
JMenu optionsMenu = new JMenu("Options");
JMenu colorsMenu = new JMenu("Colors");
JMenu searchMenu = new JMenu("Search");
JMenu deleteMenu = new JMenu("Delete");
Action[] actions1 = {loadConfigurationAction, saveConfigurationAction, stopAction, continueAction, exitAction};
for (int i = 0; i < actions1.length; i++) {
menuItem = new JMenuItem(actions1);
fileMenu.add(menuItem);
Action[] actions2 = {newFilterAction};
menuItem = new JMenuItem(actions2[0]);
setMenu.add(menuItem);
Action[] actions3 = {allFiltersSentAction, currentFilterAction, allComputersAction, probesAction};
for (int j = 0; j < actions3.length; j++) {
menuItem = new JMenuItem(actions3[j]);
viewMenu.add(menuItem);
Action[] actions4 = {deleteAction, resetAction, hideComputersAction};
for (int i = 0; i < actions4.length; i++) {
menuItem = new JMenuItem(actions4[i]);
optionsMenu.add(menuItem);
Action[] actions5 = {backgroundAction, computerAction, filterAction};
for (int i = 0; i < actions5.length; i++) {
menuItem = new JMenuItem(actions5[i]);
colorsMenu.add(menuItem);
Action[] actions6 = {searchFilterByNameAction};
menuItem = new JMenuItem(actions6[0]);
searchMenu.add(menuItem);
Action[] actions7 = {deleteFilterAndRuleAction};
menuItem = new JMenuItem(actions7[0]);
deleteMenu.add(menuItem);
//Set up the menu bar.
menuBar.add(fileMenu);
menuBar.add(setMenu);
menuBar.add(viewMenu);
menuBar.add(optionsMenu);
menuBar.add(colorsMenu);
menuBar.add(searchMenu);
menuBar.add(deleteMenu);
return menuBar;
public class LoadConfigurationAction extends AbstractAction {
public LoadConfigurationAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class SaveConfigurationAction extends AbstractAction {
public SaveConfigurationAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class StopAction extends AbstractAction {
public StopAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class ContinueAction extends AbstractAction {
public ContinueAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class ExitAction extends AbstractAction {
public ExitAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class NewFilterAction extends AbstractAction {
public NewFilterAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class AllFiltersSentAction extends AbstractAction {
public AllFiltersSentAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class CurrentFilterAction extends AbstractAction {
public CurrentFilterAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class AllComputersAction extends AbstractAction {
public AllComputersAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class ProbesAction extends AbstractAction {
public ProbesAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class DeleteAction extends AbstractAction {
public DeleteAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class ResetAction extends AbstractAction {
public ResetAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class HideComputersAction extends AbstractAction {
public HideComputersAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class BackgroundAction extends AbstractAction {
public BackgroundAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class ComputerAction extends AbstractAction {
public ComputerAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class FilterAction extends AbstractAction {
public FilterAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class SearchFilterByNameAction extends AbstractAction {
public SearchFilterByNameAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
public class DeleteFilterAndRuleAction extends AbstractAction {
public DeleteFilterAndRuleAction(String text,String desc, Integer mnemonic) {
super(text);
putValue(SHORT_DESCRIPTION, desc);
putValue(MNEMONIC_KEY, mnemonic);
public void actionPerformed(ActionEvent e) {
___FIle ModulTabbedArea________
//pls consider I have all the imports of the first file
public class ModulTabbedArea extends JPanel{
     public JTabbedPane tabbedPane;
     public ModulTabbedArea(){
     public JTabbedPane createTabbedArea(){
Border paneEdge = BorderFactory.createEmptyBorder(0,10,10,10);
JPanel IP = new JPanel();
IP.setBorder(paneEdge);
IP.setLayout(new BoxLayout(IP,BoxLayout.Y_AXIS));
JPanel TCP = new JPanel();
TCP.setBorder(paneEdge);
TCP.setLayout(new BoxLayout(TCP,BoxLayout.Y_AXIS));
JPanel UDP = new JPanel();
UDP.setBorder(paneEdge);
UDP.setLayout(new BoxLayout(UDP,BoxLayout.Y_AXIS));
JPanel ICMP = new JPanel();
ICMP.setBorder(paneEdge);
ICMP.setLayout(new BoxLayout(ICMP,BoxLayout.Y_AXIS));
JPanel ARP = new JPanel();
ARP.setBorder(paneEdge);
ARP.setLayout(new BoxLayout(ARP,BoxLayout.Y_AXIS));
JPanel RARP = new JPanel();
RARP.setBorder(paneEdge);
RARP.setLayout(new BoxLayout(RARP,BoxLayout.Y_AXIS));
JPanel UNKNOWN = new JPanel();
UNKNOWN.setBorder(paneEdge);
UNKNOWN.setLayout(new BoxLayout(UNKNOWN,BoxLayout.Y_AXIS));
JTabbedPane tabbedPane = new JTabbedPane();
tabbedPane.addTab("IP", null, IP, null);
tabbedPane.addTab("TCP", null, TCP, null);
tabbedPane.addTab("UDP", null, UDP, null);
tabbedPane.addTab("ICMP", null, ICMP, null);
tabbedPane.addTab("ARP", null, ARP, null);
tabbedPane.addTab("RARP", null, RARP, null);
tabbedPane.addTab("UNKNOWN", null, UNKNOWN, null);
return(tabbedPane);
___File ModulTree____
//all the imports and the import of the package above
public class ModulTree extends JPanel implements TreeSelectionListener {
public JTree tree;
private boolean DEBUG = false;
public ModulTree() {
//Create the nodes.
DefaultMutableTreeNode top =new DefaultMutableTreeNode("Computers:");
createNodes(top);
//Create a tree that allows one selection at a time.
tree = new JTree(top);
tree.getSelectionModel().setSelectionMode (TreeSelectionModel.SINGLE_TREE_SELECTION);
//Listen for when the selection changes.
tree.addTreeSelectionListener(this);
/** Required by TreeSelectionListener interface. */
public void valueChanged(TreeSelectionEvent e) {
DefaultMutableTreeNode node = (DefaultMutableTreeNode)
tree.getLastSelectedPathComponent();
if (node == null) return;
Object nodeInfo = node.getUserObject();
if (node.isLeaf()) {
IPInfo ipAndName = (IPInfo)nodeInfo;
if (DEBUG){           
if (ipAndName.name==""){
     System.out.println(ipAndName.ip+ ": \n ");
else {
System.out.print(ipAndName.ip + ipAndName.name + ": \n ");
if (DEBUG) {
System.out.println(nodeInfo.toString());
private class IPInfo {
public String ip;
public String name;
public IPInfo(String adresaIP, String numeleComputerului) {
ip=adresaIP;
name=numeleComputerului;
public String toString() {
return ip + name;
private void createNodes(DefaultMutableTreeNode top) {
DefaultMutableTreeNode category = null;
DefaultMutableTreeNode ipAndName = null;
category = new DefaultMutableTreeNode("Computers in the Network");
top.add(category);
ipAndName = new DefaultMutableTreeNode(new IPInfo
("216.27.61.137",
"Artemis"));
category.add(ipAndName);
ipAndName = new DefaultMutableTreeNode(new IPInfo
("216.32.61.132",
"Venus"));
category.add(ipAndName);
ipAndName = new DefaultMutableTreeNode(new IPInfo
("216.132.61.11",
"Zeus"));
category.add(ipAndName);
category = new DefaultMutableTreeNode("Probes in the Network");
top.add(category);
ipAndName = new DefaultMutableTreeNode(new IPInfo
("10.11.11.1",
"Probe1"));
category.add(ipAndName);
ipAndName = new DefaultMutableTreeNode(new IPInfo
("10.11.1.1",
"Probe2"));
category.add(ipAndName);
__File ModulMain___
//all the imports and imports also modules.*
public class ModulMain extends JFrame{
     public ModulMain(){
private static void createAndShowGUI() {
//Create and set up the window.
JFrame frame = new JFrame("Sistem grafic de monitorizare a unei retele");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
//Create/set menu bar and content pane.
ModulMeniu menu = new ModulMeniu();
frame.setJMenuBar(menu.createMenuBar());
//Create the scroll pane and add the tree to it.
JScrollPane treeView = new JScrollPane(tree);
JSplitPane splitPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT);
splitPane.setLeftComponent(treeView);
splitPane.setRightComponent(tabbedPane);
Dimension minimumSize = new Dimension(100, 50);
tabbedPane.setMinimumSize(minimumSize);
treeView.setMinimumSize(minimumSize);
splitPane.setDividerLocation(100); //XXX: ignored in some releases
//of Swing. bug 4101306
//workaround for bug 4101306:
//treeView.setPreferredSize(new Dimension(100, 100));
splitPane.setPreferredSize(new Dimension(500, 300));
//Add the split pane to this panel.
add(splitPane);
menu.setOpaque(true); //content panes must be opaque
frame.setContentPane(menu);
//Display the window.
frame.pack();
frame.setVisible(true);
public static void main(String[] args) {
javax.swing.SwingUtilities.invokeLater(new Runnable() {
public void run() {
createAndShowGUI();
This is it guys! The code is not hard, just long and I need to deliver this project and I just dunno what to do to it to make it work :(. I appreciate any help I can get :p.
THANK YOU for your time!
Cristina

hey friend,
i don't have solution to your problem but i am facing the same problem in my project, i need to fetch filenames from folder and show it in a tree view. if you have any solution then please refer me with code..!1
thanx in advance..

Similar Messages

  • ITextSharp PDF library and VB Controls. Need some help ...

    Hi there everybody.
    Mainly for those who are into pdf and in particular iTextSharp library.
    In this example I have a very simple Label control on Form, with text in it.
    I want to build a very simple pdf test file with just one A4 page, and draw Label's Rectangle and Text exactly as I see on Form. Should be a simple task, as I've always read iTextSharp to be quite powerful library. In fact it's not as simple as it seems.
    Here is the code I use for my test :
    Dim fullPdfFileName As String = Application.StartupPath & "\" & "test.pdf"
    'The FileStream
    Dim FS As New System.IO.FileStream(fullPdfFileName, IO.FileMode.Create)
    'The Document
    Dim DOC As New iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 0, 0, 0, 0)
    'The PdfWriter
    Dim PdfW As iTextSharp.text.pdf.PdfWriter = iTextSharp.text.pdf.PdfWriter.GetInstance(DOC, FS)
    DOC.Open()
    'The PdfContentByte
    Dim PdfCB As iTextSharp.text.pdf.PdfContentByte = PdfW.DirectContent
    'Set Stroke properties
    With PdfCB
    .SetRGBColorStroke(255, 0, 0) 'RED
    .SetLineWidth(1)
    End With
    'Draw the Label Rectangle
    Dim X As Integer = GetDotsFromPixels(100)
    Dim Y As Integer = GetDotsFromPixels(100)
    Dim W As Integer = GetDotsFromPixels(lbl_test.Width)
    Dim H As Integer = GetDotsFromPixels(lbl_test.Height)
    PdfCB.Rectangle(X, Y, W, H)
    PdfCB.Stroke()
    'Draw the Label's Text
    Dim BS As iTextSharp.text.pdf.BaseFont = _
    iTextSharp.text.pdf.BaseFont.CreateFont(iTextSharp.text.pdf.BaseFont.HELVETICA, _
    iTextSharp.text.pdf.BaseFont.CP1252, False)
    With PdfCB
    .BeginText()
    .SetFontAndSize(BS, lbl_test.Font.Size)
    .SetTextMatrix(X, Y)
    .ShowText(lbl_test.Text)
    .EndText()
    End With
    DOC.Close()
    FS.Close()
    And this is the very simple GetDotsFromPixels Function that makes 100 Pixels of the Label as one Inch on pdf file and paper, and it works for me :
    Private Function GetDotsFromPixels(ByVal pPixels As Integer) As Integer
    Return Convert.ToInt32(72 / 100 * pPixels)
    End Function
    The output is a pdf file with a red rectangle that is exactly 3 Inches in width and 1 Inch in height, while the Label
    lbl_test is 300x100.
    The problem is the way iTextSharp draws strings and uses Fonts.
    The string is printed in black and in the lower-left corner of the rectangle.
    The Font of the Label is Arial - Bold and top-left aligned, but there's no Arial or many else windows fonts named in BaseFont standard Fonts...
    I need to be able to print out the exact string shown in the label, with its original Font, Size, Color and Position.
    I know X Y coordinates are different with pdf page, and Y = 0 is at the bottom of the page, but if I add rectangle's height to string Y coordinate, then the string would be printed above the rectangle and not inside of it, and I would have to "calculate
    string's height" too...
    Another thing about the Font. iTextSharp's BaseFont seems to lack in properties : where are styles, colors, etc... ?
    Maybe there are others Objects and Methods in the library allowing to do what I want...
    Thanks to everyone able to help.

    Ok, no problem.
    Anyway, I've found myself a possible solution, without any use of the BaseFont.
    It's based on the following Classes/Methods :
    iTextSharp.text.Font
    iTextSharp.text.FontFactory.GetFont()
    iTextSharp.text.pdf.ColumnText
    iTextSharp.text.pdf.ColumnText.SetSimpleColumn()
    I post here the complete code :
    Dim fullPdfFileName As String = Application.StartupPath & "\" & "test.pdf"
    'The FileStream
    Dim FS As New System.IO.FileStream(fullPdfFileName, IO.FileMode.Create)
    'The Document
    Dim DOC As New iTextSharp.text.Document(iTextSharp.text.PageSize.A4, 0, 0, 0, 0)
    'The PdfWriter
    Dim PdfW As iTextSharp.text.pdf.PdfWriter = iTextSharp.text.pdf.PdfWriter.GetInstance(DOC, FS)
    DOC.Open()
    'The PdfContentByte
    Dim PdfCB As iTextSharp.text.pdf.PdfContentByte = PdfW.DirectContent
    'Set Stroke properties
    With PdfCB
    .SetRGBColorStroke(255, 0, 0) 'RED
    .SetLineWidth(1)
    End With
    'Draw the Label Rectangle
    Dim X As Integer = GetDotsFromPixels(200)
    Dim Y As Integer = GetDotsFromPixels(100)
    Dim W As Integer = GetDotsFromPixels(lbl_test.Width)
    Dim H As Integer = GetDotsFromPixels(lbl_test.Height)
    PdfCB.Rectangle(X, Y, W, H)
    PdfCB.Stroke()
    'Draw the Label's Text
    Dim F As iTextSharp.text.Font = iTextSharp.text.FontFactory.GetFont(lbl_test.Font.Name, _
    lbl_test.Font.Size)
    Dim CT As New iTextSharp.text.pdf.ColumnText(PdfCB)
    CT.SetSimpleColumn(New iTextSharp.text.Phrase(lbl_test.Text, F), _
    GetDotsFromPixels(200), _
    GetDotsFromPixels(100), _
    GetDotsFromPixels(200 + lbl_test.Width), _
    GetDotsFromPixels(100 + lbl_test.Height), _
    GetDotsFromPixels(Convert.ToInt32(F.Size) + 5), _
    iTextSharp.text.Element.ALIGN_LEFT)
    CT.Go()
    DOC.Close()
    FS.Close()
    I think this is one of the best ways to put some text with desired font and position.
    Thanks for attention.

  • 10.4.11 server and MySQL - almost there need some help - socket issue

    After having problems with launching the mysql server on the built-in mysql (4.x) on my 10.4 server, I installed 5.1.31 from MySQLCom and followed the install instructions. I attempt to start the server with mysqld_safe as documented.
    This appears to actually launches the process, and the error log doesnt show any errors, and it shows up as mysqld in Activity Monitor, but I can't connect to it via mysql client - I keep getting "Can't connect to local MySQL server through socket /var/mysql/mysql.sock".
    Any suggestions would be very welcome...

    Hi,
    We sorted the problem, one issue was that we did not have the hostname set to the FQDN that was needed for the home folder mounts, this stopped the proper traversal of the /Network/Servers symbolic link. And the other issue is that on our 10.5 afp servers we needed to have the 'Open Directory Server' option set for LDAP Mappings in Directory Utility to be able to see all users in the 10.4 OD.
    J

  • Need some help understanding the way materialized views are applied through

    Hi, I need some help understanding the way materialized views are applied through adpatch.
    In patch 1, we have a mv with build mode immediate. When applying it PTS hang due to pool performance of mv refresh.
    So we provide patch 2, with that mv build mode deferred, hoping it'll go through. But patch 2 hang too on the same mv.
    How does this work? Is that because mv already exists in the database with build immediate, patch 2 will force it to refresh first before changing build mode? How to get over this?
    Thanks,
    Wei

    Hi Hussein,
    Thank you for the response.
    Application release is 11.5.10.
    Patch 1 is MSC11510: 8639586 ASCP ENGINE RUP#38 PATCH FOR 11.5.10 BRANCH
    Patch 2 is MSC11510: 9001833 APCC MSC_PHUB_CUSTOMERS_MV WORKER IS STUCK ON "DB FILE SEQUENTIAL READ" 12 HOURS
    The MV is APPS.MSC_PHUB_CUSTOMERS_MV
    This happens at customer environment but not reproducable in our internal environment, as our testing data is much smaller.
    Taking closer look in the logs, I saw actually when applying both patch 1 and patch 2, MV doesn't exist in the database. So seems my previous assumption is wrong. Still, strange that patch 2 contains only one file which is the MV.xdf, it took 7 hours and finally got killed.
    -- patch 1 log
    Materialized View Name is MSC_PHUB_CUSTOMERS_MV
    Materialized View does not exist in the target database
    Executing create Statement
    Create Statement is
    CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
    STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
    TABLESPACE "APPS_TS_SUMMARY"
    BUILD IMMEDIATE
    USING INDEX
    REFRESH FORCE ON DEMAND
    WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS select distinct
    from
    dual
    AD Worker error:
    The above program failed. See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Tue Feb 02 2010 10:01:46
    Manager says to quit.
    -- patch 2 log
    Materialized View Name is MSC_PHUB_CUSTOMERS_MV
    Materialized View does not exist in the target database
    Executing create Statement
    Create Statement is
    CREATE MATERIALIZED VIEW "APPS"."MSC_PHUB_CUSTOMERS_MV"
    ORGANIZATION HEAP PCTFREE 10 PCTUSED 40 INITRANS 10 MAXTRANS 255 LOGGING
    STORAGE(INITIAL 4096 NEXT 131072 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 4 FREELIST GROUPS 4 BUFFER_POOL DEFAULT)
    TABLESPACE "APPS_TS_SUMMARY"
    BUILD DEFERRED
    USING INDEX
    REFRESH COMPLETE ON DEMAND
    WITH ROWID USING DEFAULT LOCAL ROLLBACK SEGMENT
    DISABLE QUERY REWRITE
    AS select distinct
    from dual
    Start time for statement above is Tue Feb 02 10:05:06 GMT 2010
    Exception occured ORA-00028: your session has been killed
    ORA-00028: your session has been killed
    ORA-06512: at "APPS.AD_MV", line 116
    ORA-06512: at "APPS.AD_MV", line 258
    ORA-06512: at line 1
    java.sql.SQLException: ORA-00028: your session has been killed
    ORA-00028: your session has been killed
    ORA-06512: at "APPS.AD_MV", line 116
    ORA-06512: at "APPS.AD_MV", line 258
    ORA-06512: at line 1
    Exception occured :No more data to read from socket
    AD Run Java Command is complete.
    Copyright (c) 2002 Oracle Corporation
    Redwood Shores, California, USA
    AD Java
    Version 11.5.0
    NOTE: You may not use this utility for custom development
    unless you have written permission from Oracle Corporation.
    AD Worker error:
    The above program failed. See the error messages listed
    above, if any, or see the log and output files for the program.
    Time when worker failed: Tue Feb 02 2010 19:51:27
    Start time for statement above is Tue Feb 02 12:44:52 GMT 2010
    End time for statement above is Tue Feb 02 19:51:29 GMT 2010
    Thanks,
    Wei

  • Stupidly partition hdd on window7 in IMAC A1311, and now I can not use the IMAC...... Need some help

    Just bought a used IMAC A1311 core 2 duo, and there are something called Bootcamp and Window7 on it, and i log in to Window7 and stupidly partition hdd on it, and i think it has formatted everything. now the window7 is error and I do hold (alt) key when I start up the machines , it show only the window7 hdd  and i don't see any Recoery HDD........what should i do? Really need some helps right now.........

    There are several models that use A1311. So I don't know exactly what model you have. If you received installer discs with the computer, then you will need to boot from Disc 1, erase the drive, and install Snow Leopard. Some models in the A1311 line can use Internet Recovery:
    Install Mavericks, Lion/Mountain Lion Using Internet Recovery
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Internet Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND-OPTION- R keys until a globe appears on the screen. Wait patiently - 15-20 minutes - until the Recovery main menu appears.
    Partition and Format the hard drive:
    Select Disk Utility from the main menu and click on the Continue button.
    After DU loads select your newly installed hard drive (this is the entry with the mfgr.'s ID and size) from the left side list. Click on the Partition tab in the DU main window.
    Under the Volume Scheme heading set the number of partitions from the drop down menu to one. Click on the Options button, set the partition scheme to GUID then click on the OK button. Set the format type to Mac OS Extended (Journaled.) Click on the Partition button and wait until the process has completed. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion. Mavericks: Select Reinstall Lion/Mountain Lion, Mavericks and click on the Install button. Be sure to select the correct drive to use if you have more than one.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    This should restore the version of OS X originally pre-installed on the computer.

  • Need some help: my itunes won't sync with my iphone anymore. Both softwares are up to date and I've reinstalled itunes. After I reinstall, it syncs. But then when I reboot my computer, it no longer syncs anymore and I have to keep reinstalling itunes. Tho

    Need some help: my itunes won't sync with my iphone anymore. Both softwares are up to date and I've reinstalled itunes. After I reinstall, it syncs. But then when I reboot my computer, it no longer syncs anymore and I have to keep reinstalling itunes. Thoughts???

    thought that it was possible to have the same iTunes library on any machine that was authorised, a kind of cloud-iTunes I guess. 
    That would convenient, but sadly it is not the case. Sorry!
    Either way your welcome and best of luck!
    B-rock

  • Need some help in saving video message from viber to my Iphone. I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery"

    Need some help in saving video message from viber to my Iphone 5S with new ios 8's program . I disabled the thing that would save photos and videos automatically then, there comes a video I want to save. After loading and watching it, I press the "save to gallery" thing but it doesn't save in gallery. I tried all, restarting my phone, rebooting then turning on the save automatically thing and when I watch it again, it still wouldn't save.

    Probably a good question to ask Viber or look at their support site.

  • Hi! I got movies on my external hard drive that are AVI kind and won't play on my macbook pro? need some help please!!

    Hi! I got Movies on my external hard drive that are AVI kind and won't play on my macbook pro? When I start playing the movie a message pops up and says "a required codec is not available". I tried flip4mac, xvid, divx already and still not playing my video. need some help please!! thanks.

    Although vlc mentioned above is a much more powerful and better player you could try installing Perian if you insist on using the quicktime player.  It may supply the codec it needs.
    Not sure why you wouldn't be able to play straight avi files though in quicktime.

  • I need some help resizing my images on PS6. I am using a mac and have been trying to resize with same resolution and constaining proportions but for some reaseon the smaller resized image appears pizelated.

    I need some help resizing my images on PS6. I am using a mac and have been trying to resize with same resolution and constaining proportions but for some reaseon the smaller resized image appears pizelated. Heres an image of before and after. The first image I use is a JPG 72dpi 1500px x1500px and I want to downsize it to 600x600px same res, but it keeps pixelating, this has never happened before. Any suggestions, thoughts?
    thanks!

    I wouldn't say pixelated; more like blurry.
    Like ConnectedCreative said, what steps are you using? Are you using "bicubic sharper" when resizing down?

  • My iphone 4 has switch of itself, and cant switch on its blankout , i need some help to solve this matter, My iphone 4 has switch of itself, and cant switch on its blankout , i need some help to solve this matter

    i need some help! my i phone has switch off totally blank as if there is no baterry, i cant wsitch on anymore, i live in Africa whereby there is no any  apple offises arroung, i want to find a solution thats why i am asking for the help

    Plug in iPhone with Wall Charger for 10 minutes, it may turn on itself. If not, keep on Wall Charger and Reset, hold both Home and Power buttons until the iPhone begins to restart. This usually takes less than 20 seconds of holding both buttons.

  • I'm new to itunes and need some help. Can anyone tell me if it is possible to download an album which has explicit content without actually downloading the explicit songs?

    I'm new to itunes and need some help.  Can anyone tell me if it is possible to download an album which has explicit songs without actually downloading the songs that are explicit?

    See if there's a non-explicit version and download that?  Just download the individual songs you want, and not the others?
    Honestly, your phrasing doesn't make sense.  You're asking how to download an album without downloading its tracks? 

  • Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ok i have indesign CS6 and all files are stored on a 10.7.5 MAC server.  This just started happening.  When I open a file indesigns is creating a textfile in the same folder?  I need some help on this.

    Ask in the ID forum and be much more specific about your configuration. there could be any number of reasons why manifests, temp files or restore files are created.
    Mylenium

  • HT1222 I need some help.... I Have the iPhone 4S and downloaded the new software (6.0) and everything seems great so far except when I try to open a link in safari from a different app (messages, Facebook, ext..) it glitches and won't load. Any advice?

    I need some help.... I Have the iPhone 4S and downloaded the new software (6.0) and everything seems great so far except when I try to open a link in safari from a different app (ie..messages, Facebook, ect..) it glitches and won't load. The blue loading bar will just jump back and forth and the page will not load properly if at all....

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • Need some help! My iPhone 4 cannot play music through it's built in speaker, only with headphones. I also cannot adjust volume, it only shows "ringer". I really do not know when it starts. I already clean the jack and dock,reset it. Update it to IOS 7.1.1

    Need some help! My iPhone 4 cannot play music through it's built in speaker, only with headphones. I also cannot adjust volume, it only shows "ringer". I really do not know when it starts. I already clean the jack and dock,reset it and still cannot be fixed. I updated it to IOS 7.1.1 recently only, does it have connection with the inconvenience I am experiencing right now? What should I do? Thanks!

    Hi Melomane1024,
    If you are still having issues with your iPhone’s speaker, you may want to look at the steps in this article -
    iPhone: No sound or distorted sound from speaker
    http://support.apple.com/kb/TS5180
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • TS2634 Please People I need some help.My iPod is disabled and when I connect it to iTunes it says: Itunes could not connect to the ipod because it is locked with a passcode...

    Please People I need some help.My iPod is disabled and when I connect it to iTunes it says: Itunes could not connect to the ipod because it is locked with a passcode...how can I do it?

    Place the iPod in Recovery mode and then restore.

Maybe you are looking for

  • Landing Page for DTN Node

    Hi, This has been bugging me and I hope you can help.  In the Detailed navigation there is the node twistie and just to the right is the node description.  If you select the twistie the node expands.  If you move just to the right of the twistie and

  • Going HD 24fps to standard DVD NTSC

    Hey everyone, I've been working with HD projects for a couple years, but I now have to bring them to DVD NTSC format to ship out to potential employers. I mainly work in the following format: 1280x720 HD (Square Pixels) 24 fps Progressive (No Fields)

  • For those who have the GoogleAd issue

    Well I the problem of ads not showing up for a few weeks now and miraculously i republished my pages today and now all the ads work! it seems that the servers are in working order. just letting people know who i know were really frustrated

  • Where can I download support documentation for Adobe CS2 programs?

    Adobe makes it ridiculously hard for people who still have CS2 to find or download support documentation for CS2 programs from their site! I need to download support documentation for Illustrator and Photoshop CS2. Where? Or is it just not available

  • Photoshop CS5 Crashes on select Type tool

    I've been using PS 12.0 for a year without incident. Recently I installed Superstition beta and started experiencing crashes both in 13beta and 12. I can consistently reproduce a crash in CS5, Win7 SP1, x64, by opening an existing PSD and then switch