I need help on a native project (JNA)

Dear users,
I have a program that starts up a notepad, and I want it to be contained inside a java application.
Like: Code to Host a Third Party Application in our Process Window (e.g. Google Chrome, Internet Explorer 8) - CodeProject
Everything runs fine, but finally the SetParent does not work at all, but it return a pointer (showing me that it is success)
The SetParent() does not set the parent, but everything seems to be fine.
The windows supports the following functions to handle windows:
Content not found...
The following is done:
CreateProcessA() called to start notepad (and I used it because java does not allow me to retrieve process id).
WaitForInputIdle() used to wait for the window to become visible, and to retrieve its handle.
GetTopWindow(null), GetWindowThreadProcessId(w, pid), GetWindow(w, 2); is used to find the window of the given process id. (If I close the notepad before these are executed the system does not find a window for that process id, so it works as well)
Finally the SetParent() is used to set the parent
From the microsoft msdn:
"If the function succeeds, the return value is a handle to the previous parent window."
And it does return a pointer!
Result:
The notepad window does not hosted :(
Here are the files I use:
--- APPLICATION -------------------
package com.smith;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import com.smith.Kernel32.ProcessInformation;
import com.smith.Kernel32.StartupInfoA;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
public class Main implements Runnable {
public static void main(String[] args) {
Main main = new Main();
SwingUtilities.invokeLater(main);
public Pointer getWindowOf(int pid) {
Pointer w = User32.INSTANCE.GetTopWindow(null);
IntByReference iptr = new IntByReference();
while (w != null) {
User32.INSTANCE.GetWindowThreadProcessId(w, iptr);
if (iptr.getValue() == pid) {
return w;
w = User32.INSTANCE.GetWindow(w, 2);
return null;
private String host(String prog, Component heavy) {
ProcessInformation pi = this.runAndWait(prog);
heavy.setPreferredSize(new Dimension(600, 500));
Pointer handle = Native.getComponentPointer(heavy);
Pointer procWnd = this.getWindowOf(pi.dwProcessId);
Pointer last = User32.INSTANCE.SetParent(procWnd, handle);
if (last == null) {
throw new IllegalArgumentException("Can not set parent: " + Kernel32.INSTANCE.GetLastError());
return "Started: " + pi.dwProcessId + " (window: " + procWnd + ") -> Java parent: " + handle;
@Override
public void run() {
JFrame frame = new JFrame("Hosting Window");
frame.setPreferredSize(new Dimension(500, 600));
JLabel label = new JLabel("Alma");
frame.setLayout(new BorderLayout());
frame.add(label, BorderLayout.NORTH);
Component heavy = new Canvas();
frame.add(heavy, BorderLayout.CENTER);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
try {
String ret = this.host("c:\\Windows\\notepad.exe", heavy);
label.setText(ret);
} catch (IllegalArgumentException ia) {
label.setText(ia.getMessage());
private ProcessInformation runAndWait(String program) {
ProcessInformation processInformation = new ProcessInformation();
StartupInfoA startupInfo = new StartupInfoA();
startupInfo.cb = Platform.is64Bit() ? 104 : 68;
boolean ok = Kernel32.INSTANCE.CreateProcessA(program, null, null, null, true, 0x00000020, null, null, startupInfo, processInformation);
if (ok) {
User32.INSTANCE.WaitForInputIdle(processInformation.hProcess, -1);
} else {
throw new IllegalArgumentException("Executing '" + program + "' failed: " + Kernel32.INSTANCE.GetLastError());
return processInformation;
package com.smith;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
public interface Kernel32 extends Library {
public class ProcessInformation extends Structure {
public Pointer hProcess;
public Pointer hThread;
public int dwProcessId;
public int dwThreadId;
public class StartupInfoA extends Structure {
public int cb;
public String lpReserved;
public String lpDesktop;
public String lpTitle;
public int dwX;
public int dwY;
public int dwXSize;
public int dwYSize;
public int dwXCountChars;
public int dwYCountChars;
public int dwFillAttribute;
public int dwFlags;
public short wShowWindow;
public short cbReserved2;
public Pointer lpReserved2;
public Pointer hStdInput;
public Pointer hStdOutput;
public Pointer hStdError;
Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class);
boolean CreateProcessA(String lpApplicationName, String lpCommandLine, Pointer lpProcessAttributes, Pointer lpThreadAttributes, boolean bInheritHandles,
long dwCreationFlags, Pointer lpEnvironment, String lpCurrentDirectory, StartupInfoA lpStartupInfo, ProcessInformation lpProcessInformation);
int GetLastError();
package com.smith;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
public interface User32 extends Library {
User32 INSTANCE = (User32) Native.loadLibrary("user32", User32.class);
Pointer GetTopWindow(Pointer wnd);
Pointer GetWindow(Pointer wnd, int cmd);
int GetWindowThreadProcessId(Pointer wnd, IntByReference ptr);
Pointer SetParent(Pointer hWndChild, Pointer hWndNewParent);
int WaitForInputIdle(Pointer process, int timeout);
Thnx,
Tamas

Dear users,
I have a program that starts up a notepad, and I want it to be contained inside a java application.
Like: Code to Host a Third Party Application in our Process Window (e.g. Google Chrome, Internet Explorer 8) - CodeProject
Everything runs fine, but finally the SetParent does not work at all, but it return a pointer (showing me that it is success)
The SetParent() does not set the parent, but everything seems to be fine.
The windows supports the following functions to handle windows:
Content not found...
The following is done:
CreateProcessA() called to start notepad (and I used it because java does not allow me to retrieve process id).
WaitForInputIdle() used to wait for the window to become visible, and to retrieve its handle.
GetTopWindow(null), GetWindowThreadProcessId(w, pid), GetWindow(w, 2); is used to find the window of the given process id. (If I close the notepad before these are executed the system does not find a window for that process id, so it works as well)
Finally the SetParent() is used to set the parent
From the microsoft msdn:
"If the function succeeds, the return value is a handle to the previous parent window."
And it does return a pointer!
Result:
The notepad window does not hosted :(
Here are the files I use:
--- APPLICATION -------------------
package com.smith;
import java.awt.BorderLayout;
import java.awt.Canvas;
import java.awt.Component;
import java.awt.Dimension;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.SwingUtilities;
import com.smith.Kernel32.ProcessInformation;
import com.smith.Kernel32.StartupInfoA;
import com.sun.jna.Native;
import com.sun.jna.Platform;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
public class Main implements Runnable {
public static void main(String[] args) {
Main main = new Main();
SwingUtilities.invokeLater(main);
public Pointer getWindowOf(int pid) {
Pointer w = User32.INSTANCE.GetTopWindow(null);
IntByReference iptr = new IntByReference();
while (w != null) {
User32.INSTANCE.GetWindowThreadProcessId(w, iptr);
if (iptr.getValue() == pid) {
return w;
w = User32.INSTANCE.GetWindow(w, 2);
return null;
private String host(String prog, Component heavy) {
ProcessInformation pi = this.runAndWait(prog);
heavy.setPreferredSize(new Dimension(600, 500));
Pointer handle = Native.getComponentPointer(heavy);
Pointer procWnd = this.getWindowOf(pi.dwProcessId);
Pointer last = User32.INSTANCE.SetParent(procWnd, handle);
if (last == null) {
throw new IllegalArgumentException("Can not set parent: " + Kernel32.INSTANCE.GetLastError());
return "Started: " + pi.dwProcessId + " (window: " + procWnd + ") -> Java parent: " + handle;
@Override
public void run() {
JFrame frame = new JFrame("Hosting Window");
frame.setPreferredSize(new Dimension(500, 600));
JLabel label = new JLabel("Alma");
frame.setLayout(new BorderLayout());
frame.add(label, BorderLayout.NORTH);
Component heavy = new Canvas();
frame.add(heavy, BorderLayout.CENTER);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.pack();
frame.setVisible(true);
try {
String ret = this.host("c:\\Windows\\notepad.exe", heavy);
label.setText(ret);
} catch (IllegalArgumentException ia) {
label.setText(ia.getMessage());
private ProcessInformation runAndWait(String program) {
ProcessInformation processInformation = new ProcessInformation();
StartupInfoA startupInfo = new StartupInfoA();
startupInfo.cb = Platform.is64Bit() ? 104 : 68;
boolean ok = Kernel32.INSTANCE.CreateProcessA(program, null, null, null, true, 0x00000020, null, null, startupInfo, processInformation);
if (ok) {
User32.INSTANCE.WaitForInputIdle(processInformation.hProcess, -1);
} else {
throw new IllegalArgumentException("Executing '" + program + "' failed: " + Kernel32.INSTANCE.GetLastError());
return processInformation;
package com.smith;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.Structure;
public interface Kernel32 extends Library {
public class ProcessInformation extends Structure {
public Pointer hProcess;
public Pointer hThread;
public int dwProcessId;
public int dwThreadId;
public class StartupInfoA extends Structure {
public int cb;
public String lpReserved;
public String lpDesktop;
public String lpTitle;
public int dwX;
public int dwY;
public int dwXSize;
public int dwYSize;
public int dwXCountChars;
public int dwYCountChars;
public int dwFillAttribute;
public int dwFlags;
public short wShowWindow;
public short cbReserved2;
public Pointer lpReserved2;
public Pointer hStdInput;
public Pointer hStdOutput;
public Pointer hStdError;
Kernel32 INSTANCE = (Kernel32) Native.loadLibrary("kernel32", Kernel32.class);
boolean CreateProcessA(String lpApplicationName, String lpCommandLine, Pointer lpProcessAttributes, Pointer lpThreadAttributes, boolean bInheritHandles,
long dwCreationFlags, Pointer lpEnvironment, String lpCurrentDirectory, StartupInfoA lpStartupInfo, ProcessInformation lpProcessInformation);
int GetLastError();
package com.smith;
import com.sun.jna.Library;
import com.sun.jna.Native;
import com.sun.jna.Pointer;
import com.sun.jna.ptr.IntByReference;
public interface User32 extends Library {
User32 INSTANCE = (User32) Native.loadLibrary("user32", User32.class);
Pointer GetTopWindow(Pointer wnd);
Pointer GetWindow(Pointer wnd, int cmd);
int GetWindowThreadProcessId(Pointer wnd, IntByReference ptr);
Pointer SetParent(Pointer hWndChild, Pointer hWndNewParent);
int WaitForInputIdle(Pointer process, int timeout);
Thnx,
Tamas

Similar Messages

  • Need help with lost iMovie project.

    I was creating an iMovie project for school and needed to save it on a USB, so I clicked on 'Export Movie' from the 'Share' options menu in iMovie. I chose the type I wanted it saved in (viewing for computers) and then a smaller screen in iMovie popped up saying it was exporting the movie, or something like that. It took about a good 30 minutes and my project was a 7 minute movie with film clips, music, transitions, ect. I exported this project to my USB but when it finished it wasn't on there and when I finally found it on the Mac somewhere, I went to drag it into my USB but it said it was full. I then dragged the project onto my desktop and tried to open it to see if it worked. When I did the iMovie icon jumped once and stopped. I clicked on iMovie and it was still there in the projects screen. I then decided to close iMovie and open the project again from my desktop to see if it would play like a normal movie but once I clicked it the iMovie icon jumped again, opened but my project that I was trying to open was not there anymore and wouldn't open from my desktop file. I cannot open it at all and view it, it has been lost from my iMovie. Is there a way that I can get it back? Really need some help with this.

    What version of iMovie are you using?
    Matt

  • Need help transfering a fcp project from one Mac to another

    I have two students who need to work on projects on the same computer at the same time-deadlines-and need to move one project AND all the files to another Mac. When we open this file it asks to reconnect everything and it's taking forever to match everything up correctly. Is there any way to scoop up all the files needed in one file as there is in IMovie so that all needed files are associated with the project and move together? Please help if you can, I have a fast external drive to put the files on.

    Or make an exact copy of the media files from one drive to another and make sure that the drive names and directory structure are identical. fcp will not be able to tell the difference and the files should not need any reconnecting.

  • I need help with my hangman project

    I'm working on a project where we are developing a text based version of the game hangman. For every project we add a new piece to the game. Well for my project i have to test for a loser and winner for the game and take away a piece of the game when the user guesses incorrectly. these are the instrcutions given by my professor:
    This semester we will develop a text based version of the Game Hangman. In each project we will add a new a piece to the game. In project 4 you will declare the 'figure', 'disp', and 'soln' arrays to be attributes of the class P4. However do not create the space for the arrays until main (declaration and creation on separate lines). If the user enters an incorrect guess, remove a piece of the figure, starting with the right leg (looking at the figure on the screen, the backslash is the right leg) and following this order: the left leg (forward slash), the right arm (the dash or minus sign), the left arm (the dash or minus sign), the body (vertical bar), and finally the head (capital O).
    Not only will you need to check for a winner, but now you will also check to see if all the parts of the figure have been removed, checking to see if the user has lost. If the user has lost, print an error message and end the program. You are required to complete the following operations using for loops:
    intializing appropriate (possible) variables, testing to see if the user has guessed the correct solution, testing to see if the user has guessed a correct letter in the solution, and determining / removing the next appropriate part of the figure. All other parts of the program will work as before.
    Declare figure, disp, and soln arrays as attributes of the class
    Creation of the arrays will remain inside of main
    Delete figure parts
    Check for loss (all parts removed)
    Implement for loops
    Init of appropriate arrays
    Test for winner
    Test if guess is part of the solution
    Removal of correct position from figure
    Output must be
    C:\jdk1.3.1\bin>java P3
    |
    |
    O
    -|-
    Enter a letter: t
    |
    |
    O
    -|-
    t _ _ t
    Enter a letter: a
    |
    |
    O
    -|-
    t _ _ t
    Enter a letter: e
    |
    |
    O
    -|-
    t e _ t
    Enter a letter: l
    |
    |
    O
    -|-
    t e _ t
    Enter a letter: s
    |
    |
    O
    -|-
    t e s t
    YOU WIN!
    C:\jdk1.3.1\bin>java P3
    Pete Dobbins
    Period 5, 7, & 8
    |
    |
    O
    -|-
    Enter a letter: a
    |
    |
    O
    -|-
    Enter a letter: b
    |
    |
    O
    -|-
    Enter a letter: c
    |
    |
    O
    -|
    Enter a letter: d
    |
    |
    O
    |
    Enter a letter: e
    |
    |
    O
    |
    _ e _ _
    Enter a letter: f
    |
    |
    O
    _ e _ _
    Enter a letter: g
    |
    |
    _ e _ _
    YOU LOSE!
    Well i have worked on this and come up with this so far and am having great dificulty as to i am struggling with this class. the beginning is just what i was suppose to comment out. We are suppose to jave for loops for anything that can be put into a for loop also.
    /* Anita Desai
    Period 5
    P4 description:
    1.Declare figure, disp, and soln arrays as attributes of the class
    2.Creation of the arrays will remain inside of main
    3.Delete figure parts
    4.Check for loss (all parts removed)
    5.Implement for loops
    A.Init of appropriate arrays
    B.Test for winner
    C.Test if guess is part of the solution
    D.Removal of correct position from figure
    //bringing the java Input / Output package
    import java.io.*;
    //declaring the program's class name
    class P4
    //declaring arrays as attributes of the class
    public static char figure[];
    public static char disp[];
    public static char soln[];
    // declaring the main method within the class P4
    public static void main(String[] args)
    //print out name and period
    System.out.println("Anita Desai");
    System.out.println("Period 5");
    //creating the arrays
    figure = new char[6];
    soln = new char[4];
    disp = new char[4];
    figure[0] = 'O';
    figure[1] = '-';
    figure[2] = '|';
    figure[3] = '-';
    figure[4] = '<';
    figure[5] = '>';
    soln[0] = 't';
    soln[1] = 'e';
    soln[2] = 's';
    soln[3] = 't';
    //for loop for disp variables
    int i;
    for(i=0;i<4;i++)
    disp='_';
    //Using a while loop to control program flow
    while(true)
    //drawing the board again!
    System.out.println("-----------");
    System.out.println(" |");
    System.out.println(" |");
    System.out.println(" " + figure[0]);
    System.out.println(" " + figure[1] + figure[2] + figure[3]);
    System.out.println(" " + figure[4] + " " + figure[5]);
    System.out.println("\n " + disp[0] + " " + disp[1] + " " + disp[2] + " " + disp[3]);
    //getting input
    System.out.print("Enter a letter: ");
    //declaring a string variable
    String data = " ";
    // call the readString method
    data = readString();
    //retrieves the character at position zero
    char temp;
    temp=data.charAt(0);
    int h;
    for(h=0;h<4;h++)
    if(temp==soln[h])
    disp[h]=soln[h];
    return;
    if(disp[h]==soln[h])
    System.out.println("You Win");
    else
    for(h=0;h<6;h++)
    if(temp!=soln[h])
    figure[h] = ' ';
    return;
    if(disp[h]!=soln[h])
    System.out.println("You Lose");
    ///Test if statements to replace user input with soln if correct
    int j;
    for(j=0;j<4;j++)
    if(temp==soln[j])
    disp[j]=soln[j];
    //declared the readString method, we specified that it would
    //be returning a string
    public static String readString()
    //make connection to the command line
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    //declaring a string variable
    String s = " ";
    //try to do something that might cause an error
    try
    //reading in a line from the user
    s = br.readLine();
    catch(IOException ex)
    //if the error occurs, we will handle it in a special way
    //give back to the place that called us
    //the string we read in
    return s;
    If anyone cann please help me i would greatly appreciate it. I have an exam coming up on wednesday also so i really need to understand this material and see where my mistakes are. If anyoone knows how to delete the parts of the hangman figure one by one each time user guessesincorrectly i would appreciate it greatly. Any other help in solving this program would be great help. thanks.

    Hi thanks for responding. Well to answer some of your questions. The professors instructions are the first 2 paragraphs of my post up until the ende of the output which is You lose!. I have to have the same output as the professor stated which is testing for a winner and loser. Yes the program under the output is what i have written so far. This is the 3rd project and in each we add a little piece to the game. I have no errors when i run the program my problem is when it runs it just prints the hangman figure, disp and then asks user ot enter a letter. Well once i enter a letter it just prints that letter to the screen and the prgram ends.
    As far as the removal of the parts. the solution is TEST. When the user enters a letter lets say Tthen the figure should display again with the disp and filled in solution with T. Then ask for a letter again till user has won and TEST has been guessed correctly. Well then we have to test for a loser. So lets the user enters a R, well then the right leg of the hangman figure should be blank indicating a D the other leg will be blank until the parts are removed and then You lose will be printed to the screen.
    For the program i am suppose to use a FOR LOOPto test for a winner, to remove the parts one at a time, and to see if the parts have been removed if the user guesses incorrectly.
    so as u can see in what i have come up with so far i have done this to test for a winner and loser:
    //declaring a string variable
    String data = " ";
    // call the readString method
    data = readString();
    //retrieves the character at position zero
    char temp;
    temp=data.charAt(0);
    int h;
    for(h=0;h<4;h++)
    if(temp==soln[h])
    disp[h]=soln[h];
    return;
    if(disp[h]==soln[h])
    System.out.println("You Win");
    else
    for(h=0;h<6;h++)
    if(temp!=soln[h])
    figure[h] = ' ';
    return;
    if(disp[h]!=soln[h])
    System.out.println("You Lose");
    Obviously i have not writtern the for loops to do what is been asked to have the proper output. the first for loop i am trying to say if the user input is equal to the soln thencontinue till all 4 disp are guessed correctly and if all the disp=soln then the scrren prints you win.
    then for the incorrect guesses i figured if the user input does not equal the soln then to leave a blank for the right leg and so on so i have a blank space for the figure as stated
    :for(h=0;h<6;h++)
    if(temp!=soln[h])
    figure[h] = ' ';
    well this doesnt work and im not getting the output i wanted and am very confused about what to do. I tried reading my book and have been trying to figure this out all night but i am unable to. I'm going to try for another hr then head to bed lol its 4am. thanks for your help. Sorry about posting in two different message boards. I wont' do it again. thanks again, anita

  • Need Help ASAP with MS Project Professional 2013 - 60-day Trial Download

    I followed all steps to download the 60-day trial of MS Project Professional 2013, and it doesn't work.
    Once I get to the download manager and download what I think is the trial application, the file comes in as: ProjectProfessional_x86_en-us.img. I tried to launch the program once downloading was completed while Download Manager was open, and it
    asks for "choose program you want to use to open this file". The file is specified as disc image file (saved on my file - downloads). An icon didn't successfully download to my deskstop.
    Where can I download the actual 60-day Trial Application? I've tried link below and started steps from that point and wasn't successful as it just accepted file as .img and wouldn't save onto my computer.
    Has anyone encountered the downloaded trial file as an .img file?
    How can I prevent my computer from reading the file as a disc image file in my downloads?
    What is the correct extension file of the trial application?
    Will product key from original attempted trial download work when attempting 2nd download?
    When downloaded successfully, should the file be full data application not just .img file that originally was received on 1st and 2nd attempts at downloading trial?
    Thanks for your help!
    Loren

    Helga --
    Do not despair, my friend, for there is a way to install the trial software without burning a CD.  I use a tool called 7-Zip that can extract the files in an IMG or ISO file easily.  It extracts the files and folders into a folder of your choice. 
    You can download the 7-Zip software for free at:
    http://www.7-zip.org/
    And no, I do not work for this company.  I simply user their tool and like it because it allows me to install software without needing to burn a CD or DVD of the software.  And by the way, I downloaded the same trial IMG file that you did and
    7-zip was able to extract the files.  From that point, I could install the trial version of Project 2013, as needed.  Hope this helps.
    Dale A. Howard [MVP]
    VP of Educational Services
    msProjectExperts
    http://www.msprojectexperts.com
    http://www.projectserverexperts.com
    "We write the books on Project Server"

  • Im a Uni student&need help:JAVA Final Year Project: Undo Manager Problem

    Hey all,
    Im writing a Final Year Project and have minimal experience writing in JAVA.
    It is an information visualisation assignment which involves reproducing code/text in a reduced format. Sort of to do with Line oriented statistics.
    http://www.cc.gatech.edu/aristotle/Tools/tarantula/continuous.gif
    This image will give you an idea of what im talking about.
    Anyway, i need to know if its possible to get information about individual undos/edits from an undomanager.
    Basically i need to be able to say, for example,
    there are 12 undos
    undo 12 occurs at line X
    undo 11 occurs at line Y
    etc etc
    I need to be able to get this information without actually invoking the Undo last edit call.
    Im bringing the Java undomanager tutorial home but from what ive read it seems like impossible?
    Any and all help appreciated.
    Regards,
    P

    When I was at uni I had to implement that for the text area of an IDE. All I did was rip off the code from the Notepad.java that comes with the SDK.

  • Need Help in Portal Application Project

    I am developing a Portal Application Project where i need to use AJAX to show database values in the main JSP.
    Now while doing an AJAX call (the open method) i need to pass a server pages' URL.
    I have a second jsp file in my application(pagelet/second.jsp) which will do all the database functions and writes the values to stream.
    Now i am confused how to call this second jsp from my first jsp.
    Please help !!!
    SAP WAS 7.0

    I have a second jsp file in my application(pagelet/second.jsp) which will do all the database functions and writes the values to stream.
    May I ask why you are using a JSP page for this? The answer written back will include some standard SAP Portal HTML code that you don't need in the AJAX response (like: <html>...)
    I'm using portal components as AJAX "receiver" and not JSP pages, simply because it gives me greater control over the response::
        <component name="Ajax">
          <component-config>
            <property name="ClassName" value="xyz.Ajax"/>
          </component-config>
          <component-profile/>
        </component>
    And in the Java class:
    public class Ajax extends AbstractPortalComponent {
        public void doContent(IPortalComponentRequest request, IPortalComponentResponse response)  {         
    br,
    Tobias

  • Need help in understanding native VLAN or PVID concent

    Hi: I am fairly new to VLANs. I can't seem to understand how native VLAN or PVID concept works. I found descriptions for native VLAN. But what I donot understand is the following scenario:
    Letz say a port is a member of VLANs 1 and 2. The PVID for the port is 1. A normal PC is attached to this port. If an untagged frame arrives on this port from the PC attached, based on native VLAN definition, the frame will be assigned to VLAN 1. But what if the source wanted this untagged frame to go to a server in VLAN 2 since the port is a member of both VLAN 1 and 2?
    Thanks in Advance.
    Ravi

    leonvd79: thanks for your response. I was thinking a port to which a user is attached (access port) can be member of multiple VLANs if it needs to communicate with entities in multiple VLANs. Could you please clarify.
    So in a network where there are two servers, server2 in VLAN 2 and server3 in VLAN 3. So I will make PVID=2 for access port server2 is attached and PVID=3 for access port to which server3 is attached.
    I have user2 who will need to talk to only server2. So I make the PVID for the access port to which user2 is attached as 2. If I have user23 who needs to communicate with both server2 and server3, what will be the PVID for the port to which user23 is attached: 2 or 3?
    Thanks
    Ravi

  • I need help migrating an existing project from Flash Professional CS6 to Flash Builder 4.6.

    I have followed tutorials...instructions on the web...all I get are unsolvable errors.
    I have a large Air application that compiles fine and works in Flash. However I would like to take advantage of the as3xls api which does not work in Flash Professional (for no reason in particular the internet just tells me it won't work because Flash Professional cannot access some part of the Flex framework).
    So I want to make my project work in Flash Builder. However, when I attempt to reference my document class, flash builder gives me an error telling me the package path com.andrewbefus.ModelMapper no longer works. It does this no matter how I select the folder to reference my document class. If I change the path to nothing...Flash Builder is happy with my document class and unhappy with every other class I have made.
    Then I decided to make a new Flash Builder ActionScript file and simply replace the ModelMapper.as document class that Flash Builder created with my completed ModelMapper.as. After some messing around with paths and directories, I got Flash Builder to be happy with my program structure but then all hell broke loose on almost every single Class outside the Flash Builder framework. One by one I attempted to tell Flash Builder where to go to get my components, fl.motion classes, and my custom classes but Flash Builder refused to recognise them unless I reference the folder containing the files, and then proceeded to tell me that the project path of every single class needed to be changed. I imagine if I spend the rest of my day mucking around with this something else will come up.
    I went looking for a tutorial explaining how to migrate a Flash Professional project over to Flash Builder. The closest thing I could come up with told me to just select my fla. file by going Project<Flash Professional<Create project using Fla file... which worked great except refused to compile my project as a desktop application for no sane reason - giving no option to select my project when I attempted to create a new Run Configuration.
    One frustration after another....

    I've also followed all the instructions here:
    http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    Still no luck...
    L.

  • I need help finding a good project management/ scheduling software

    hi...
    i am a supervisor for a multimedia studio and i am
    looking for a software that is compatable and runs smooth with mac osX to track production artists schedules, track multipule projects in real time, record data info for each project (with a micro and macro view), generate reports, and any other function that would help a manager: track, monitor, retreive info, display info, schedule and report. Main goal is to increase productivity and report acurate production data with in a tight clear organized schedule.
    thank you!
    mac book   Mac OS X (10.4.6)  

    Here’s some possibilities:
    OmniPlan
    http://www.omnigroup.com/applications/omniplan/
    FastTrack Schedule
    http://www.aecsoftware.com/products/fasttrack/
    ConceptDraw Project
    http://www.leadingproject.com/en/products/project/main.php
    Project Desktop
    http://www.webintellisys.com/project/desktop.html
    TasksPro
    http://www.taskspro.com/
    Task Master
    http://www.taskmasterpm.com/
    Xtime Project
    http://www.app4mac.com/xtimeproject.html
     Cheers, Tom

  • Need help putting movie into project!!

    I have a .wmv format video and I need to put it in iDVD to burn onto dvd, but it won't let it on there and it won't show up in the media tab. Please help me!! Is there some way I can put it on there or is there some way to convert the video so it works with iDVD??

    I use Flip4Mac to open and edit .wmv files in QT, iMovie or iDVD.
    http://www.flip4mac.com/wmv.htm
    Best-
    Mike

  • Need help on fingerprint recognition project

    Hi, I'm actually workin' on a fingerprint image recognition project including database search (this project is dedicated for enterprise use: Employee log files, hours worked,etc...) and I have to concieve the recognition function ,( I've already wrote finger Palettes matching function using MatLab, but I don't know if can be of any use in Java)...
    So if there's anyway someone can help me or guide me PLEAZE PLEAZE let me know because I'm so late in my project!
    The main class of my source code is an Employee with typical fields(salary, name, position...) and functions(calculate_wage,...), the main field I work on is FingerID (has to be of image Type, or serialized image ).... so my database is made of Employees and the search has to be done through the FingerID match.

    Comparing two images is not the way to go. Fingerprints have their
    characteristics in their 'bifurcations' and 'eyes' (study your own fingerprint
    for some nice examples). The locations of those, relative to each other
    are a very efficient metric for fingerprint recognition.
    Colorization (in case of a dead, chopped off finger) can be very useful too.
    'bifurcation': where one line splits up in two lines;
    'eye': where lines form a circle like shape.
    kind regards,
    Jos

  • Need help for a school project

    I am new to Oracle/Sql and the last part of my project requires that I use a Stored Procedure to access info from an AUTHORS table. I have followed the guidelines in the assignment but for some reason the Stored procedure is not working. If someone could help I would REALLY appreciate it. Thanks.
    public void fillSet(string key)
    if (connect())
    cmd.CommandText = "SELECT TO_CHAR(SALES.ORD_DATE), SALES.QTY, SALES.TITLE_ID, TITLES.TITLE, TITLES. PRICE FROM SALES, TITLES WHERE SALES.TITLE_ID = TITLES.TITLE_ID AND SALES.STOR_ID = :key";
    parm = new OracleParameter("key", key);
    cmd.Parameters.Add(parm);
    reader = cmd.ExecuteReader();
    while (reader.Read())
    ORDER_DATE = (string)reader.GetString(0);
    QUANTITY = (int)reader.GetDecimal(1);
    TITLE_ID = (string)reader.GetString(2);
    TITLE = (string)reader.GetString(3);
    PRICE = (double)reader.GetDouble(4);
    TOTAL = QUANTITY * PRICE;
    AUTHORS = loadStoredProcedure(TITLE_ID);
    loadDataSet();
    reader.Dispose();
    cmd.Dispose();
    oracleConn.Close();
    return;
    else return;
    public string loadStoredProcedure(string match)
    string cmdStr2 = "ALLAUTHORSFORTITLE";
    op1 = new OracleParameter();
    op1.Direction = ParameterDirection.Input;
    op1.Value = (object)match;
    op2 = new OracleParameter();
    op2.Direction = ParameterDirection.Output;
    op2.Size = 100;
    cmd2 = new OracleCommand();
    cmd2.CommandText = cmdStr2;
    cmd2.Parameters.Add(op1);
    cmd2.Parameters.Add(op2);
    cmd2.CommandType = CommandType.StoredProcedure;
    int code = cmd2.ExecuteNonQuery();  //error here
    String buildit = (string)op2.Value;
    oracleConn.Close();
    return buildit;
    }

    Hi,
    In cases with the same problems do you have, it's recommended to post a break point before the call of the store procedure. And then test the store procedure with this values separately. If you do this you can find out where the problem is.
    Also, is best if you put the output of the console log to see what it's the problem.
    Regards,

  • Need help Staffing a Portal Project

    Can anyone tell me how many people are needed to staff a sun Portal implementation project. We are estimating 2 fulltime developers for a 6 month duration.
    The client wants the follwing features: Personalization, Online forums/collaboration, Portlets and custom navigation.
    Do we need more that 2 developers. Can anyone tell me anything about the Sun Portal server. Is it configurable like BEA , Vignette and websphere. I do not see too many out of the box features listed for the Sun Portal server.
    What is the level of difficulty? Does Sun Portal server just provide a bunch of API's or does it have configurable out of the box solutions.
    Thanks

    It really depends on the "right people" and their experience...
    Based on your project description it could take two-four weeks
    for two people (UI Template Designer and Portal Architect)
    who are Sun ONE portal experts or up to 6 months for a
    developer team with no KnowHow in portal applications
    and integration solutions...
    SunONE portal is in many ways simpler than some other
    portals, but there are less free "out the box" extensions
    available. However some SunONE partners and integrators
    are offering free "start up packages" with most wanted
    portal extensions like Forums, Chats, FileManager, ProductCatalog or Shopping Cart...
    PS: If you are interested to learn more, you can drop me a mail.
    Cheers,
    Alex :-)

  • Need help with saving my project

    When I try to export and save my project, iMovie answers that I need more storage space to go on and that I need to end and restart the program. What can I do to save my project? There is lots of work in it. Thank you.

    If iMovie is only preventing you from sharing/exporting your movie, your project itself should still be OK.
    If you have everything on your internal drive it is probably getting too full (you can check with finder).   You need to free up some space or get an external hard drive.  An external drive is almost essential if you are going to do a lot of video work since file are so large.
    Geoff.

Maybe you are looking for

  • How can I disable iMessage for some of my contacts?

    I have unlimited text, but limited data on my iPhone 5s. I only want to receive/send iMessages to a select few on my contacts list who have iPads and then use SMS for my iPhone friends. I tried disabling my phone number as a receive/sender, but it on

  • Syncing my iCal calendars in iTunes - Not working after installing Leopard

    * I have tried researching this as much as possible before posting this, so I apologize if a solution has already been posted for this issue! After recently installing Leopard, I have noticed that when I try to sync my iCal calendars to my (5th gener

  • SAP Business Systems Analyst w/L&D business function experience $90-120/hr!

    Our prominent Orange County client is aggressively seeking a SAP Business Systems Analyst! This is a contract position and is located at their Irvine office. This company is privately held and extremely stable. They have built upon a solid foundation

  • Verify Disk doesn't work

    Can't verify disk, and consequently can't repair......system freezes up and I have to do a hard shut down. Suggestions?

  • G5 ALS Won't Boot Past Grey Screen...Bad Logic Board?

    Hi all- I did a quick search, and found various answers, but none specific to my situation, so below, please find my tale of woe, and I appreciate in advance any advice you folks could provide: I have a G5, 2.0GHz, 20" iMac (upgraded to Leopard) that