Object Inheritance problem between projects

Hi,
I have two projects lets say project1 and project2. From project1 I instanciate processes of project2 as subflows. In addition I have one bpm object in project1 (lets say object1) that inherits from a bpm object in proyect2 (lets say object2). So project1 depends on project2 to make this inheritance happen. When I call the subflow I pass the object1 and as inherits from object2 there is no problem (input argument). For the output argument I have to cast from object2 to object1. And here is where I have a classcastexception. If all the processes are in the same project it works fine and there is no exception. But when splitting in two projects it fails. Seems that it is something related to the folder structure in the catalog that should be the same for both projects and that is the reason why it does not work, but as one project depends to the other I can not put the same folder structure in both catalogs because in the dependant project it is duplicated.
Has anybody can give me an idea on how to solve this?
Thank you very much in advance
Kind regards

Nobody can help me with this issue?,any help is much appreciated, the excpetion I get is:
An operation exception occurred while running an automatic item. Details: An instance in Process '/Prueba#Default-1.0' could not be notified. Caused by: Process execution engine execution error. Caused by: The method 'CIL_otherProjectOtherProjectIn' from class 'Novartis.Prueba.Default_1_0.Instance' could not be successfully executed. Caused by: Cannot convert an object with type xobject.BaseModule.BaseObject to class xobject.DependantModule.DependantObject fuego.papi.exception.CannotStoreNotificationException: An instance in Process '/Prueba#Default-1.0' could not be notified. at fuego.server.AbstractProcessBean.receiveNotification(AbstractProcessBean.java:2791) at fuego.server.iec.LocalIPCHandler.sendNotification(LocalIPCHandler.java:79) at fuego.server.execution.microactivity.DefaultSendNotificationExecutionHandler.sendNotification(DefaultSendNotificationExecutionHandler.java:103) at fuego.server.execution.microactivity.EndMicroActivity.execute(EndMicroActivity.java:69) at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57) at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:470) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:551) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:62) at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42) at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:251) at fuego.server.execution.ToDoItem.run(ToDoItem.java:536) at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:775) at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:755) at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:142) at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:134) at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:450) at fuego.component.ExecutionThread.work(ExecutionThread.java:839) at fuego.component.ExecutionThread.run(ExecutionThread.java:408) Caused by: fuego.papi.impl.EngineExecutionException: Process execution engine execution error. at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:202) at fuego.server.execution.EngineExecution.executeWithoutComponentImmediate(EngineExecution.java:95) at fuego.server.AbstractProcessBean.receiveNotification(AbstractProcessBean.java:2757) ... 21 more Caused by: fuego.lang.ComponentExecutionException: The method 'CIL_otherProjectOtherProjectIn' from class 'Novartis.Prueba.Default_1_0.Instance' could not be successfully executed. at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:519) at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:273) at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:219) at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1277) at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.runCil(ComponentExecutionMicroActivity.java:126) at fuego.server.execution.microactivity.ComponentExecutionMicroActivity.execute(ComponentExecutionMicroActivity.java:84) at fuego.server.execution.microactivity.MicroActivityEngineExecutionHandler.executeActivity(MicroActivityEngineExecutionHandler.java:57) at fuego.server.execution.ImmediateActivity.execute(ImmediateActivity.java:42) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:304) at fuego.transaction.TransactionAction.startNestedTransaction(TransactionAction.java:527) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:548) at fuego.transaction.TransactionAction.start(TransactionAction.java:212) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:123) at fuego.server.execution.DefaultEngineExecution.executeWithoutComponentImmediate(DefaultEngineExecution.java:199) ... 23 more Caused by: java.lang.ClassCastException: Cannot convert an object with type xobject.BaseModule.BaseObject to class xobject.DependantModule.DependantObject at fuego.util.Conversion.cast(Conversion.java:99) at Novartis.Prueba.Default_1_0.Instance.CIL_otherProjectOtherProjectIn(Instance.xcdl:1) at Novartis.Prueba.Default_1_0.Instance.CIL_otherProjectOtherProjectIn(Instance.xcdl) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:512) ... 36 more
The strange thing is that if all the processes are in the same project everything works fine but once I split in two projects it raises the exception.
Thank you very much

Similar Messages

  • Strange object inheritance problem

    Hi everyone,
    I'm getting the error "clone has protected access in java.lang.Object" in the following code:
    try {
    return constructor.newInstance(new Object[] {
    (Animation)left.clone(), //here
    (Animation)right.clone(), //here
    (Animation)deadLeft.clone(), //here
    (Animation)deadRight.clone() // and here
    This doesn't make sense to me, because I thought everything was a subclass of object, and would thus be able to use protected methods. Am I missing something? Thanks in advance.

    class Parent {
      protected void foo() {}
    class Child extends Parent {
      void bar() {
        Parent p = new Parent();
        p.foo(); // illegal
        super.foo(); // ok
        this.foo(); // ok
        foo(); // ok, same as this.foo();
    }It's a common misunderstanding. The gory details are laid out in JLS 6.6.2 -- Details on protected access
    http://java.sun.com/docs/books/jls/third_edition/html/names.html#6.6.2

  • Dependency between projects for presentations, BPM objects and external res

    Hi,
    I am trying to create a common project for all our exceptions, presentations and external resources...
    I have updated the properties of the project1 for dependeny on project2(exceptions project)
    but I am not able to see the user exception BPM Objects in the depended project to use...
    Project 1 is having all code that needs to call the BPM objects, presentations and external resources on the Project 2
    but these objects and presentations etc., are not visible to the project1.
    please advice if I need to do anything in relation to configs apart from making the Project 1 properties to dependency --> check box ticked and selecting the Project 2.
    thanks
    Satya

    When you use the project dependency feature, you do not see the BPM Objects in the Catalog. You see them (shown in blue) when you add variables in the process that refer to BPM Objects from the master project. You see them when you create a new attribute in your BPM object that is an BPM Object in the master project. You see them when you use them in logic inside your methods.
    Dan

  • Why does formatting get lost when copy and pasting slides between projects?

    I'm beginning to copy and paste several slides from a project that was created in Captivate 6. I've opened the project in 7.0.1 and saved it. Next, I've copy and pasted about 20-30 slides from the old project into my new template. In the process, many slides have lost "bold" and "bullets". It's worth noting that many slides have remained correct. I also find myself having to reset slide templates and toggle off quiz buttons that I've already toggled off in old project.
    This isn't part of the same problem, but related. When I copy slides from the new template I mentioned into the old one (in hopes that Advanced Actions would transfer correctly), I've noticed that none of the item names have transferred over with the copy and paste. Instead of seeing the button name I've created, it changes to "shape, text_caption, etc", the default.
    I'm hoping the copy pasting between projects becomes more efficient, I'm finding myself burning unneccessary time doing more QA and microscopic investigation, although I suppose more QA isn't always a bad thing.
    System is the following:
    OSX 10.8.5
    Captivate 7.0.1
    Safari 6.0.5
    Blood Type: oops, wrong forum.

    When copy/pasting between different versions that has always been a problem, especially with question slides. There seem always to be changes that make such a transfer difficult. Did you try to open the CP6 project first in CP7 and see what worked? And do you use exactly the same theme (object styles, master slides, skin editor)?
    Copy/paste slides, objects with advanced actions: bit same problem, works best if done between CP7 projects. The problem that each object needs to have a unique ID (name) is what causes the renaming to generic names.
    Lilybiri

  • Communication problem between NetBeans and Tomcat

    hi!
    i got a quite mysterious problem. here is what happens:
    - i start NetBeans 5.5.1 (the first time)
    - i want to debug my JSF-Project, the Debugger starts
    - After a few seconds the debugger waits for tomcat (it sais: "Waiting for Tomcat...") and tomcat starts
    - Again after a few seconds the tomcat-debugger-output sais "Tomcat startet in 3333 ms".
    okay.
    when i enter http://localhost:8084/ in my browser i get the tomcat homepage, so the server has definitely started! But nothing happens in NetBeans and nothing happens with my project....
    In the lower-right corner i see this blue working-bar that sais "deploying project" but nothing happens. The Project-Debugger-Output still sais "Waiting for Tomcat..." but nothing happens...
    And after something around 3 minutes (i guess it's a timeout) i get the error "Starting of Tomcat failed." But is HAS started, i can login to the Administration-Area in my browser!
    so i guess there is a communication problem between netbeans an tomcat. Netbeans waits for a message from tomcat but tomcat doesn't send it..or netbeans doesn't understand it.
    But the story goes on:
    When i press the debug-button a second time it takes only a few seconds till i get the message: "Tomcat server port 8084 already in use". OF COURSE! Because Tomcat has already startet and can't be stoped by NetBeans.
    i'm trying to solve this problem for 4 days now, so i would be very happy if anyone has an idea where to start/continue the search...
    thanks,
    flo.
    some system-info:
    - windows vista business 32-bit
    - no firewall is running
    - AntiVir Personal Edition IS running
    - Yahoo Widgets Engine IS running
    - no other software is running
    and finally the tomcat-log:
    Using CATALINA_BASE: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base
    Using CATALINA_HOME: C:\Program Files\NetBeans\enterprise3\apache-tomcat-5.5.17
    Using CATALINA_TMPDIR: C:\Users\Administrator\.netbeans\5.5.1\apache-tomcat-5.5.17_base\temp
    Using JRE_HOME: C:\Program Files\Java\jdk1.5.0_12
    Listening for transport dt_shmem at address: tomcat_shared_memory_id
    21.09.2007 18:27:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
    INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_12\bin;.;C:\Windows\system32;C:\Windows;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\ThinkPad\ConnectUtilities;C:\Program Files\Common Files\Teleca Shared;C:\Program Files\Common Files\Adobe\AGL;C:\Program Files\MySQL\MySQL Server 5.0\bin;C:\Program Files\cvsnt;
    21.09.2007 18:27:50 org.apache.coyote.http11.Http11BaseProtocol init
    INFO: Initializing Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:50 org.apache.catalina.startup.Catalina load
    INFO: Initialization processed in 1862 ms
    21.09.2007 18:27:50 org.apache.catalina.core.StandardService start
    INFO: Starting service Catalina
    21.09.2007 18:27:50 org.apache.catalina.core.StandardEngine start
    INFO: Starting Servlet Engine: Apache Tomcat/5.5.17
    21.09.2007 18:27:50 org.apache.catalina.core.StandardHost start
    INFO: XML validation disabled
    21.09.2007 18:27:53 org.apache.coyote.http11.Http11BaseProtocol start
    INFO: Starting Coyote HTTP/1.1 on http-8084
    21.09.2007 18:27:54 org.apache.jk.common.ChannelSocket init
    INFO: JK: ajp13 listening on /0.0.0.0:8009
    21.09.2007 18:27:54 org.apache.jk.server.JkMain start
    INFO: Jk running ID=0 time=0/31 config=null
    21.09.2007 18:27:54 org.apache.catalina.storeconfig.StoreLoader load
    INFO: Find registry server-registry.xml at classpath resource
    21.09.2007 18:27:54 org.apache.catalina.startup.Catalina start
    INFO: Server startup in 3626 ms

    As i wrote before, the same problem occured for me. I have found a solution which is : Go to tools menu and then select options . In the proxy info, select No Proxy.
    I hope this help you

  • Getting objects to move between PCs

    After CS 150, I find myself back in the world of Java. I recently learned a neat language called Processing (a.k.a. Proce55ing), and I am one of the coders (and am way rusty to be of much use at this point) for a really cool project.
    I'm wondering if I can nag you with some questions on java.net.*. I need to get some objects passed around between 3 PCs. I need to know about latency issues. Basically, we've got Java doing OpenGL graphics on 6 projectors powered by 3 computers. Imagine each PC having a really wide screen... when a autonomous creature gets to the edge of one PC, it needs to continue its thang on the next PC... move fluidly.
    I've checked out some Java.net.* sample code on sun's site. Specifically their KnockKnock Server. However, its multithread support is for interacting with clients on a one-on-one basis... not like a chat-room style environment. So, I don't even have any sample code for a ultra-basic Java Chat Room.... nor do I know how to pass anything but a string to the server, or to the client.
    There are ways to use my limited knowledge to do what I want to do... just pass a string, and have the server store that into a variable which is accessible by every server thread. Then, create a loop in main that keeps searching through that array of strings to pass them off to the PC... the string would have the coordinate information of the autonomous creature, and create a new one of that object with those Vec3f point. However, latency is a key issue, and it would be easiest if I could just pass an object to the server (in this case: a SimpleVehicle) along with an intended target computer, and then that computer would get that vehicle to add to its array of SimpleVehicles. The important thing is speed, so it might be best to have every computer have a client<->server connection with each other... I get utterly baffled reading the Java Docs. But, I seem to understand code when I see it (I can only reverse engineer). I especially understand the KnockKnock Server and MultiClient code on the Sun's Java Networking Tutorial.
    Any pointers to which methods I need to learn (I already realize I'm going to need to downcast the SimpleVehicle object back into a SimpleVehicle after it gets sent). Thanks a million.

    Ok, try this.
    The simplistic application sends colored balls between instances of itself which can be on any machine on your network.
    As a ball reaches the left side of the window it is in, it gets sent to the machine on it's left (if any), likewise if it reaches the right side of the window it gets sent to the machine on it's right. If there is no machine on the side the ball is trying to go, it rebounds within the window it is in.
    So, a simple test is to run three instances on the same machine, one is regarded as one the left on as on the right and one as in the middle
    To start the one on the left:
    java Ziniman1 8000 -right localhost:8001
    To start the one in the middle:
    java Ziniman1 8001 -left localhost:8000 -right localhost:8002
    To start the one on the right:
    java Ziniman1 8002 -left localhost:8001
    Note: You need to start these pretty quickly one after the other or the socket creation will time out. I'll leave that to you to fix ;)
    Once the apps are running, move them so they are next to each other, left to right (the port numbers used as the server port are in the JFrame title).
    To get create a ball, just click on one of the white panels, use the radio buttons at the bottom to change size/color/direction of the new balls.
    Once you've got the hang of the thing, try moving some instances to other machnes.
    Enjoy!
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import java.util.*;
    public class Ziniman1
         static final String LEFT= "Left";
         static final String RIGHT= "Right";
         static class Ball
              implements Serializable
              public int x= -1;
              public int y;
              public int size= 10;
              private Color mColor;
              public Ball(Color color) { mColor= color; }
              public Ball(Color color, int y) { mColor= color; this.y= y; }
              public Color getColor() { return mColor; }
              public String toString() { return "(" +x +"," +y +") x " +size; }
         static interface DirectionalListener
              public void left(Ball ball);
              public void right(Ball ball);
         static class Directional
              private DirectionalListener mListener= null;
              public final void setListener(DirectionalListener listener) {
                   mListener= listener;
              protected final void fireLeft(Ball ball)
                   if (mListener != null)
                        mListener.left(ball);
              protected final void fireRight(Ball ball)
                   if (mListener != null)
                        mListener.right(ball);
         static class Server
              extends Directional
              public Server(final int port)
                   new Thread() {
                        public void run() {
                             try {
                                  ServerSocket listenSocket= new ServerSocket(port);
                                  System.err.println("Server listening on port " +port);
                                  while (true)
                                       connect(listenSocket.accept());
                             catch (Exception e) {
                                  e.printStackTrace();
                   }.start();
              private synchronized void connect(final Socket socket)
                   Thread thread= new Thread() {
                        public void run() {
                             try {
                                  ObjectInputStream is=
                                       new ObjectInputStream(socket.getInputStream());
                                  while (true) {
                                       String side= (String) is.readObject();
                                       Ball ball= (Ball) is.readObject();
                                       if (side.equals(RIGHT))
                                            fireLeft(ball);
                                       else
                                            fireRight(ball);
                             catch (Exception e) {
                                  e.printStackTrace();
                   thread.setDaemon(true);
                   thread.start();
         static class Client
              private ObjectOutputStream mOs;
              private String mSide;
              public Client(String host, int port, String side)
                   throws Exception
                   mSide= side;
                   Socket socket= new Socket(host, port);
                   mOs= new ObjectOutputStream(socket.getOutputStream());
                   System.err.println(
                        mSide +" client connected to " +host +":" +port);
              private void send(Ball ball)
                   try {
                        mOs.writeObject(mSide);
                        mOs.writeObject(ball);
                   catch (Exception e) {
                        e.printStackTrace();
         static abstract class BallPanel
              extends JPanel
              public void paint(Graphics g)
                   g.setColor(Color.WHITE);
                   g.fillRect(0, 0, getSize().width, getSize().height);
                   Iterator balls= getBalls();
                   while (balls.hasNext()) {
                        Ball ball= (Ball) balls.next();
                        g.setColor(ball.getColor());
                        g.fillOval(ball.x, ball.y, ball.size, ball.size);
              public Dimension getPreferredSize() {
                   return new Dimension(300, 240);
              public abstract Iterator getBalls();
         static class Gui
              extends Directional
              private Runnable mUpdater= new Runnable() {
                   public void run() { mBallPanel.repaint(); }
              private ArrayList mLeft= new ArrayList();
              private ArrayList mRight= new ArrayList();
              private ArrayList mBalls= new ArrayList();
              private BallPanel mBallPanel= new BallPanel() {
                   public Iterator getBalls() {
                        return mBalls.iterator();
              public Gui(String title)
                   final JRadioButton red= new JRadioButton("Red");
                   final JRadioButton green= new JRadioButton("Green");
                   final JRadioButton blue= new JRadioButton("Blue");
                   ButtonGroup group= new ButtonGroup();
                   group.add(red);
                   group.add(blue);
                   group.add(green);
                   final JRadioButton large= new JRadioButton("Large");
                   final JRadioButton small= new JRadioButton("Small");
                   group= new ButtonGroup();
                   group.add(large);
                   group.add(small);
                   final JRadioButton left= new JRadioButton("Left");
                   final JRadioButton right= new JRadioButton("Right");
                   group= new ButtonGroup();
                   group.add(left);
                   group.add(right);
                   red.setSelected(true);
                   small.setSelected(true);
                   right.setSelected(true);
                   mBallPanel.addMouseListener(new MouseAdapter() {
                        public void mousePressed(MouseEvent e) {
                             Ball ball= new Ball(
                                  red.isSelected() ? Color. RED :
                                  blue.isSelected() ? Color.BLUE : Color.GREEN);
                             ball.x= e.getX();
                             ball.y= e.getY();
                             ball.size= large.isSelected() ? 20 : 10;
                             if (left.isSelected())
                                  left(ball);
                             else
                                  right(ball);
                   JPanel panel= new JPanel(new FlowLayout(FlowLayout.LEFT, 4, 4));
                   panel.add(red);
                   panel.add(blue);
                   panel.add(green);
                   panel.add(large);
                   panel.add(small);
                   panel.add(left);
                   panel.add(right);
                   JFrame frame= new JFrame(title);
                   frame.getContentPane().add(mBallPanel, BorderLayout.CENTER);
                   frame.getContentPane().add(panel, BorderLayout.SOUTH);
                   frame.pack();
                   frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                   frame.setVisible(true);
              public synchronized void move(int delta)
                   Iterator left= mLeft.iterator();
                   while (left.hasNext()) {
                        Ball ball= (Ball) left.next();
                        ball.x -= delta;
                        if (ball.x <= 0) {
                             left.remove();
                             mBalls.remove(ball);
                             fireLeft(ball);
                   Iterator right= mRight.iterator();
                   while (right.hasNext()) {
                        Ball ball= (Ball) right.next();
                        ball.x += delta;
                        if (ball.x >= (mBallPanel.getSize().width -ball.size)) {
                             right.remove();
                             mBalls.remove(ball);
                             fireRight(ball);
                   SwingUtilities.invokeLater(mUpdater);
              public synchronized void left(Ball ball)
                   mLeft.add(ball);
                   mBalls.add(ball);
                   if (ball.x < 0)
                        ball.x= mBallPanel.getSize().width -(ball.size/2);
                   SwingUtilities.invokeLater(mUpdater);
              public synchronized void right(Ball ball)
                   mRight.add(ball);
                   mBalls.add(ball);
                   if (ball.x < 0)
                        ball.x= ball.size/2;
                   SwingUtilities.invokeLater(mUpdater);
         static class Controller
              public Controller(
                   final Gui gui, final Server server,
                   final Client left, final Client right)
                   gui.setListener(new DirectionalListener() {
                        // Ball reached the left
                        public void left(Ball ball)
                             ball.x= -1;
                             if (left == null)
                                  gui.right(ball);
                             else
                                  left.send(ball);
                        // Ball reached the right
                        public void right(Ball ball)
                             ball.x= -1;
                             if (right == null)
                                  gui.left(ball);
                             else
                                  right.send(ball);
                   server.setListener(new DirectionalListener() {
                        // Ball came from the left
                        public void left(Ball ball) {
                             gui.right(ball);
                        // Ball came from the right
                        public void right(Ball ball) {
                             gui.left(ball);
                   Thread thread= new Thread() {
                        public void run() {
                             while (true) {
                                  try { sleep(100); }
                                  catch (InterruptedException e) { }
                                  gui.move(10);
                   thread.setDaemon(true);
                   thread.start();
         private static final String USAGE=
              "Usage: java Ziniman1 " +
              "<server port> [-left <host:port>] [-right <host:port>]";
            public static void main(String[] argv)
              throws Exception
              if (argv.length < 1)
                   barf();
              int leftPort= -1;
              int rightPort= -1;
              String leftHost= "localhost";
              String rightHost= "localhost";
              int serverPort= Integer.parseInt(argv[0]);
              for (int i= 1; i< argv.length; i += 2) {
                   if (argv.equals("-left")) {
                        if (argv.length == i+1)
                             barf();
                        String url= argv[i+1];
                        if (url.indexOf(":") < 0)
                             barf();
                        leftHost= url.substring(0, url.indexOf(":"));
                        leftPort= Integer.parseInt(url.substring(url.indexOf(":")+1));
                   else if (argv[i].equals("-right")) {
                        if (argv.length == i+1)
                             barf();
                        String url= argv[i+1];
                        if (url.indexOf(":") < 0)
                             barf();
                        rightHost= url.substring(0, url.indexOf(":"));
                        rightPort= Integer.parseInt(url.substring(url.indexOf(":")+1));
              new Controller(
                   new Gui("Balls @ " +serverPort),
                   new Server(serverPort),
                   leftPort > 0 ? new Client(leftHost, leftPort, LEFT) : null,
                   rightPort > 0 ? new Client(rightHost, rightPort, RIGHT) : null);
         private static void barf()
              System.err.println(USAGE);
              System.exit(-1);

  • I can no longer drag photos in Aperture (within a project, between projects

    I find that suddenly I cannot drag photos in Aperture.  In other words, I cannot MOVE a photo at all, whether within a project or between projects and albums, &c.  Not only this, but I cannot copy & paste either.  I can still export photos, though.
    I noticed this first a couple of hours ago when attempting to attach a photo into an email using the Mail application.  It wouldn't budge.  I thought it might have been a problem with the Mail program but no, it appears to be in Aperture because I then tried to drag the photo directly from Aperture into the email (which I've been doing for years). 
    I've done a rebuild and all that, yet the problem remains.
    Any suggestions as to what I might do other than export the whole library to Lightroom and start learning all over again?

    Can you confirm:
    - that this is true for many Images?  Try different Images in several Projects.  If possible, try with an Image you had been able to drag-and-drop into Mail in the past.
    - that you can't drag from a Project to an Album.
    - that the Image you can't drag-and-drop has a Preview?  ("Photos➞Update Preview")
    What do you mean us to understand with the "and all that" part of "I've done a rebuild and all that, yet the problem remains"?

  • How do I share a compound clip between projects?...

    Hello everyone,
    I have created a 10 second intro/title graphic clip in Motion and published it to FCPX. I have added this generator sequence to a project's timeline in FCPX. I then added a lower third title set. I have edited my text (font, style, etc) of my lower third text to where I want it. I then created a compound clip of the two parts (title generator and the lower third text element).
    Now that it is dialed in, I need to be able to use it as a template for a series of videos I am working on. I can't seem to find a way to save it and make it availible to drop into other project sequences. I have tried to make a favourite out of the clip, I tried to copy and paste between projects (and into a new event)... nothing works fo rme.
    What am I missing?
    Any help is appreciated, thank you,
    Shea A.J. Comfort

    Hi Andy
    Thank you for the advice.
    I tried your method but there definitely seems to be a fault or glitch in my software.  If I highlight a number of connected clips and audio tracks the program will not copy and paste them into the newly created compound clip in my event library.
    I therefore decided to do it the slow ay and copy each individual item.  This worked fine until I came to the final audio track.  No matter how many times I copy this track Final Cut refuses to do this.  It always comes up with the previous item I copied.  I have retried this and it will copy all the items except one.  As you would expect I have done a fair amount of work on this track in the form of equyalisation, a comnpression filter and numerous keyframes on the level to come out with a mix that I am happy with.  I cannot however move it from the original project.
    I find this totally unacceptable and consider the software to be unfit for purpose as a result.  Unfortunately the apple terms and conditions state that all purchases are final and I have no recourse upon them for the fact that it does not work.
    I cannot see how an update will fix a problem with my software that is not universal to all users.  I believe that I can reinstall it without being charged again but am hesitant to do this for fear of losing the large amount of work that I have put into the project.
    My only hope now is to ring the premium rate number for customer support in the unlikely hope that it can be solved this way.
    Not Happy
    Simon

  • Problems between Xcelsius and WebDynpro for Java

    How should I do to show Xcelsius in WebDynpro for Java?
    How should I transport data between Xcelsius and WebDynpro?
    How should I control WebDynpro with Xcelsius?For example,firing plugs in Xcelsius like in WebDynpro to change one view to another.
    How should I do to execute a Java method in Xcelsius?For example,scheduling a job on clicking a button in Xcelsius.
    Besides these,I also want to know the same problems between other BOE contents and WebDynpro for Java.
    Regards,
    Abe

    Hi Pradeep:
    Well that purely depends on the business application (project) your client is proposing. Following are very few factors which will drive for creating web-based applications:
    VC: it's a UI modeling tool (non-programming) for creating rapid creation of web-based applications.
    WD: its a powered by Java and ABAP with which you can create robust business applications.
    If your client is very choosy about rapid application development, reporting, rich user interface, to reduce TCO then VC is the choice. Or if the project contains typical integration with SAP and non-SAP systems, complex business logic development, integration with WCM systems...etc then WDJ is the option.
    If you’ve some sort of custom development with facilitating the Development Infrastructure (NWDI) then WDJ is the only option I could say.
    We hope with NW CE 7.1.1(referred by Priyanka Singh) tighter integration between these TWO tools may over come the ambiguity of using them.
    Tnx,
    MS

  • Problem in Project progress

    Hi,
    I am facing problem in Project progress report CNE5.
    System is calculated 300 % poc in Adjusted aggregated actual POC & Aggregated actual POC field only after full confirmed the activity (Degree of Processing is showing in report as 100%).
    If I confirmed 50 % then system is showing above value 0% .
    Also while CNE1 system is taking default method as :SAP 0-100, so i changed it into activity by 00006 (Work) then system calculate the Progress but only after full confirmation, but again it is 300%. which should not.
    The configuration settings are as
    1. Progress Version: -
    Progress Version : 100
    Plan Version          : 0
    EV Basis                 : 1 ( Cost Plan)
    POC weighting      : 4 Work, Basic ( Active Project)
    2. Group of Progress version:-
    Controlling Area & 1
    3. Assign Progress Versions to Group Progress Versions:-
    Controlling Area, 100 & 1
    4. Define Statistical Key Figure for Percentage of Completion:-
                                                     Usage               SKF (with unit of measurement= %)
           Controlling area                   1 10
           Controlling area                    2 20
           Controlling area                    3 30
    5. Define Measurement Methods:-
    Measurement method :0000000006 (Work)
    Meas. technique  : E ( Degree of Processing)
    Max POC                : 100
    6. Define Measurement Method as Default Value
    Progress version(100),  Object Type (2:Activity, Internal Processing), Plan/ Actual( 1 &2 :both), Method (00000006 :Work)
    7.Maintain Assignment of Cost Element Group
    Cost element (PS) , Default selection( Yes) & cost element group(PS_PROP)
    I hope above information is sufficient.
    My problem is system is calculating poc only after full confirmation but i want at partial confirmation. Also after full confirmation poc is showing 300% which i want 100%.
    Regards,
    AVI

    Hi Experts,
    I am waiting for your valuable inputs.
    Regards,
    AVI

  • JNDI NIS object access problem

    JNDI NIS object access problem:
    Hi all,
    After long fight, i'm now able to connect to my NIS server on my network. the initial context factory is 'com.sun.jndi.nis.NISCtxFactory' and provider url are given and i obtain namingennumeration of items in the NIS directory.
    purpose of my project:
    using ypcat command we can view the services,passwd,host... objects in unix.
    my project requirement is that i shd open this 'services' object in java (using JNDI probably) and shd access its content.
    i'm able to obtain the object and the type of this object is 'NISCtxServices' defined in 'com.sun.jndi.nis.NISCtxFactory' package, but all the classes and methods except some are not public and so im not able to use almost all the methods in this class 'NISCtxServices' .
    Can any one help me in accessing the information inside this object.
    Thanks in advance! and i'm waiting!

    It's because JFrame does not have a public progessbar variable, only your subclass has that.
    //change this
    JFrame frame = new ProgressBarDemo();
    //to this
    ProgressBarDemo frame = new ProgressBarDemo();

  • Importing Between Projects Takes FOREVERRRR

    All I'm doing is copying a 3-minute clip from one project to another via the copy/paste options. It's been about 15 minutes and all I see is a dialog box that says Importing Files...Preparing. Trying to cancel the import or Force Quit iMovie has no effect. I guess this is the equivalent of a system hang.
    Well, just finished import. It took about 20 minutes for a 3 minute cilp. Why? This makes no sense. iMovie 3 could import a 9-minute clip from another iMovie project in under 3 minutes. Upgrade my ***.

    Note that Copying and Pasting clips from one project to another in iMovie 6 is a very different task than importing a file into iMovie 3. (For the sake of those who never used it, iMovie 3 didn't allow Copying and Pasting clips between projects. We had to import the clip's Media file stored in the Media folder of Project A to Project B.)
    Because of the non-destructive editing features of iMovie 6, iMovie 6 copies the entire Media file of the clip, not just the clip itself. So if a 5-second clip that's part of a 3 minute file is Copied from Project A and Pasted into Project B, the entire file is copied to Project B. That's so the pasted clip inherits all the non-destructive editing features it had in Project A. (In Project B, you can restore the 5-second clip to 3 minutes it was in Project A.)
    So if the 3 minute clip you Copied and Pasted was from a 30 minute file, the entire file was copied with it and it may take some time.
    Importing a file is actually lots faster in iMovie 6 than iMovie 3. I just tested importing a 3 minute Media file from one iMovie 3 project to another. It took 56 seconds. In iMovie 6, importing the same file took just 15 seconds.
    The difference may be that iMovie 6 is smart enough to recognize the file is a DV file, so instead of converting it to DV, it just duplicates the file, which is a lot faster.
    Karl

  • Help with multi-table mapping for one-to-many object inheritance

    Hi,
    I have posted on here before regarding this (Toplink mapping for one-to-many object inheritance but I am still having problems mapping my object model to my schema.
    Object model
    The Person and Organisation objects contain base information and have the primary keys person_id and organisation_id. It is important that there is no duplication of person and organisation records, no matter how many times they are saved in different roles.
    There are two types of licenceholder in the problem domain, and the ILicenceHolder interface defines information and methods that are common to both. The PersonalLicenceHolder object represents one of these types of licenceholder, and is always a person, so this class extends Person and implements ILicenceHolder.
    The additional information and methods that are required by the second type of licenceholder are defined in the interface IPremisesLicenceHolder, which extends ILicenceHolder. Premises licence holders can either be people or organisations, so I have two objects to represent these - PremisesLicenceHolderPerson which implements IPremisesLicenceHolder and extends Person, and PremisesLicenceHolderOrganisation which implements IPremisesLicenceHolder and extends Organisation.
    The model is further complicated by the fact that any single Person may be both a PersonalLicenceHolder and a PremisesLicenceHolderPerson, and may be so several times over. In this case, the same basic Person information needs to be linked to several different sets of licenceholder information. In the same way, any single Organisation may be a PremisesLicenceHolderOrganisation several times over.
    Sorry this is complicated!
    Schema
    I have Person and Organisation tables containing the basic information with the primary keys person_id and organisation_id.
    I have tried to follow Donald Smith's advice and have created a Role table to record the specialised information for the different types of licence holder. I want the foreign keys in this table to be licenceholder_id and licence_id. Licenceholder_id will reference either organisation_id or person_id, and licence_id will reference the primary key of the Licence table to link the licenceholder to the licence. Because I am struggling with the mapping, I have changed licenceholder_id to person_id in an attempt to get it working with the Person object before I try the Organisation.
    Then, when a new licenceholder is added, if the person/organisation is already in the database, a new record is created in the Role table linking the existing person/organisation to the existing licence rather than duplicating the person/organisation information.
    Mapping
    I am trying to use the toplink mapping workbench to map my PremisesLicenceHolderPerson object to my schema. I have mapped all inherited attributes to superclass (Person). The primary table that the attributes are mapped to is Person, and I have used the multi-table info tab to add Roles as an additional table and map the remaining attributes to that.
    I have created the references PERSON_ROLES which maps person.person_id to roles.person_id, ROLES_PERSON which maps roles.person_id to person.person_id and ROLES_LICENCE which maps roles.licence_id to licence.licence_id.
    I think I have put in all the relationships, but I cannot get rid of the error message "The following primary key fields are unmapped: PERSON_ID".
    Please can somebody tell me how to map this properly?
    Thank you.

    I'm not positive about your mappings, but it looks like the Person object should really have a 1:M or M:M mapping to the Licenceholder table. This then means that your object model should be similar, in that Person object could have many Licenses, instead of being LicenceHolders. From the looks of it, you have it set up from the LicenceHolder perspective. What could be done instead if a LicenceHolder could have a 1:1 reference to a person data object, rather than actually be a Person. This would allow the person data to be easily shared among licences.
    LicenceHolder1 has an entry in the LicenceHolder table and Person table. LicenceHolder2 also has entries in these tables, but uses the same entry in the Person table- essentially it is the same person/person_ID. If both are new objects, TopLink would try to insert the same person object into the Person table twice. I'm not sure how you have gotten around or are planning to get around this problem.
    Since you are using inheritance, it means that LicenceHolder needs a writable mapping to the person.person_id field- most commonly done through a direct to field mapping. From the description, it looks like roles.person_id is a foreign key in the multiple table mapping, meaning it would be set based on the value in the person.person_id field, but the person.person_id isn't actually mapped in the object. Check to make sure that the ID attribute LicenceHolder is inheriting from person hasn't been remapped in the LicenceHolder descriptor to a different field.
    Best Regards,
    Chris

  • Externalizable problems between v1.3 and v1.4

    Hej you.
    I have strange problems with the Externalizable objects.
    I Use many Object to Save my file, but wien i try to Externalizable on J1.3 and Denalizable again in J1.4 I got this message:
    E:\Programmer\Java\ProrgamName>Java ProrgamName
    javax.swing.JInternalFrame; Local class not compatible: stream classdesc serialV
    ersionUID=8792953236056021037 local class serialVersionUID=-6387351733537024688
    Can i trap J1.4 ID to use 1.3 ID, so it can use on ALL platforms, not just locally?
    When I Save and load on the same machine it works fine, but not when i moving to another machine with 1.4. Is a another method, or i Need to save all object to AscII instead in this smart method (that are poorly work)? I have surfed around javasoft.com with finding a answear.
    See my early quenstien on (closed):
    http://forum.java.sun.com/thread.jsp?forum=31&thread=273990
    With very regaards By:
    Super Bomba, Denmark
    PS. No Duke Dollars this time. Sorry.

    Hey.
    I found how to work around combatible problems between 1.3 and 1.4. For user, that want to save thier DynamicTree.java (http://java.sun.com/docs/books/tutorial/uiswing/components/example-swing/index.html)
    Use follow code (I using Externalizable):
      protected DefaultMutableTreeNode rootNode=null;
      protected DefaultTreeModel treeModel=null;
      public void writeExternal(ObjectOutput stream) throws IOException
      { stream.writeUTF(rootNode.toString());
        Vector values = new Vector();
        Object root = treeModel.getRoot();
        // Save the root, if its Serializable.
        if(root != null && root instanceof Serializable)
        { values.addElement("root");
          values.addElement(root);
        stream.writeObject(values);
      public void readExternal(ObjectInput stream) throws IOException
      { thisModel.removeAll();
        thisModel.setVisible(false);
        try
        { String title=stream.readUTF();
          rootNode = new DefaultMutableTreeNode(title);
          Vector values = (Vector)stream.readObject();
          int indexCounter = 0;
          int maxCounter = values.size();
          treeModel = new DefaultTreeModel(rootNode);
          if(indexCounter < maxCounter && values.elementAt(indexCounter).equals("root"))
          { TreeNode root = (TreeNode)values.elementAt(++indexCounter);
            treeModel = new DefaultTreeModel(root);
            indexCounter++;
          // kode for setting the tree start here
        catch (ClassNotFoundException e) {}
      }Hope, this is to use :-)
    Hi from
    Super Bomba

  • Inheritance problem first part compiles, but can't get the rest to compile.

    Here is the assignment :Lab #8, Objects, Inheritance and Polymorphism
    Purpose of Lab: Be able to:
    Write a Java program that defines, loads, and uses an array of objects.
    Create objects of classes.
    Understand the notion of polymorphism.
    Write superclasses and subclasses.
    Create objects of superclasses and subclasses.
    Instructions:
    1. Write an Abstract Data Type called Animal. Include two instance variables in this class: a String for name and an integer for age. Write a constructor method that takes two arguments and a second constructor that takes no arguments. Write get and set methods for each of the two instance variables. Write a toString method which displays the values of the instance variables for any object of type Animal. Write a speak method that takes no arguments, returns nothing and displays ?Arg! Arg!? on the monitor.
    2. Write a second class called Duck, a subclass of class Animal. Add an additional instance variable to those inherited from Animal: an integer called feathers (this variable is used to store the number of feathers that a particular Duck object has). Write a constructor that takes three arguments and another constructor that takes no arguments. Provide set and get methods for the feathers instance variable. Override the toString method to display the values of all instance variables belonging to a Duck type of object. Override the speak method to display a value of ?Quack! Quack!?.
    3. Write a third class called Cow, also a subclass of class Animal. Add an additional instance variable to those inherited from Animal: an integer called spots (this variable is used to store the number of spots feathers that a particular Cow object has). Write a constructor that takes three arguments and another constructor that takes no arguments. Override the toString method to display the values of all instance variables belonging to a Cow type of object. Override the speak method to display a value of ?Mooo! Mooo!?.
    4. Finally, enter, compile and execute the Farm class shown below. Make sure that all of your classes (Animal, Duck, Cow and Farm) are in the same folder. Compile all of the classes. Run the Farm program. Answer the questions below. Here is my code so far: public class Animals{
        private String name;
        private int age;
        public Animals()
        public Animals( String nVal, int ageVal)
            name =nVal;
            age = ageVal;
        public void setN(String nVal)
            name = nVal;
        public String getN()
    return name;
    public void setA( int ageVal)
    age = ageVal;
    public int getA()
        return age;
    public String toString()
        return "\nThe name is" + name +", and the age is" + age + ".";
    public class Duck extends Animals
    private int feathers;
    public Duck()
        super();
        public Duck(String nVal, int ageVal)
        super(nVal,ageVal);
        feathers = feathersVal;
        public void setFeathers(int feathersVal)
        feathers= feathersVal;
        public int getFeathers()
            return feathers;
        public String toString()
        return  "\nThe name is" + super.getN() + ", and the age is" + super.getA()
        + "\n The Duck's feathers are" +feathers+ ".";
    public class Cow extends Animals
        private int spots;
        public Cow(int spots)
            super();
            public Cow(String nVal, int spotsVal)
            super(spots);
                spotsColor = spots;
                public void setSpots(int spots)
            spots= spotsColor;
                public int getSpots();
        public String toString()
            return  "\nThe name is" +super.getN()+ ", and the age is" + super.getA()
            + "\n The Duck's feathers are" +feathers+ "\nThe Cow's spots are" +spots+".";
    import javax.swing.JOptionPane.JOption;
    import javax.swing.*;
    public class Farm
        public static void main( String[] args );
        Animals[]farmAnimals = new Animals[4];
                farmAnimals[0] = new Animals("Animals", 3);
                farmAnimals[1] = new Duck("Duck","green,grey feathers");
                farmAnimals[2] = new Cow("Cow", 3, "brown white spots");any help greatly appreciated last assignment of the semester!

    Here is the assignment :Lab #8, Objects, Inheritance and Polymorphism
    Purpose of Lab: Be able to:
    Write a Java program that defines, loads, and uses an array of objects.
    Create objects of classes.
    Understand the notion of polymorphism.
    Write superclasses and subclasses.
    Create objects of superclasses and subclasses.
    Instructions:
    1. Write an Abstract Data Type called Animal. Include two instance variables in this class: a String for name and an integer for age. Write a constructor method that takes two arguments and a second constructor that takes no arguments. Write get and set methods for each of the two instance variables. Write a toString method which displays the values of the instance variables for any object of type Animal. Write a speak method that takes no arguments, returns nothing and displays ?Arg! Arg!? on the monitor.
    2. Write a second class called Duck, a subclass of class Animal. Add an additional instance variable to those inherited from Animal: an integer called feathers (this variable is used to store the number of feathers that a particular Duck object has). Write a constructor that takes three arguments and another constructor that takes no arguments. Provide set and get methods for the feathers instance variable. Override the toString method to display the values of all instance variables belonging to a Duck type of object. Override the speak method to display a value of ?Quack! Quack!?.
    3. Write a third class called Cow, also a subclass of class Animal. Add an additional instance variable to those inherited from Animal: an integer called spots (this variable is used to store the number of spots feathers that a particular Cow object has). Write a constructor that takes three arguments and another constructor that takes no arguments. Override the toString method to display the values of all instance variables belonging to a Cow type of object. Override the speak method to display a value of ?Mooo! Mooo!?.
    4. Finally, enter, compile and execute the Farm class shown below. Make sure that all of your classes (Animal, Duck, Cow and Farm) are in the same folder. Compile all of the classes. Run the Farm program. Answer the questions below. Here is my code so far:
    public class Animals{
    private String name;
    private int age;
    public Animals()
    public Animals( String nVal, int ageVal) }
    name =nVal;
    age = ageVal;
    public void setN(String nVal)
    name = nVal;
    public String getN()
    return name;
    public void setA( int ageVal)
    age = ageVal;
    public int getA()
    return age;
    public String toString()
    return "\nThe name is"+name+ , and the age is" + age + ".";
    {code}{code}
    {code}{code}
    public class Duck extends Animals
    private int feathers;
    public Duck()
    super();
    public Duck(String nVal, int ageVal)
    super(nVal,ageVal);
    feathers = feathersVal;
    public void setFeathers(int feathersVal)
    feathers= feathersVal;
    public int getFeathers()
    return feathers;
    public String toString()
    return "\nThe name is" + super.getN() + ", and the age is" + super.getA()
    + "\n The Duck's feathers are" +feathers+ ".";
    {code}{code}
    {code}{code}
    public class Cow extends Animals
    private int spots;
    public Cow(int spots)
    super();
    public Cow(String nVal, int spotsVal)
    super(spots);
    spotsColor = spots;
    public void setSpots(int spots)
    spots= spotsColor;
    public int getSpots();
    public String toString()
    return "string1" + variable1 + "string2" + variable2;
    {code}{code}
    {code}{code}
    import javax.swing.JOptionPane.JOption;
    import javax.swing.*;
    public class Farm
    public static void main( String[] args ){
    Animals[]farmAnimals = new Animals[4];
    farmAnimals[0] = new Animals("Animals", 3);
    farmAnimals[1] = new Duck("Duck","green,grey feathers");
    farmAnimals[2] = new Cow("Cow", 3, "brown white spots");
    {code}{code}
    In Duck The compile errors are as follows:java1: cannot find symbol symbol class Duck extends Animals with the caret under A in Animals
    java 13 same as above but for feathers = feathersVal; with the caret under f in feathersVal
    java 25 same error caret under s in both supers
    Cow has 1 error in java 20 class,interface,or enum expected caret under S in String
    Farm a parsing error at last brace but when I add another ending brace i get
    java1 cannot find symbol class JOption caret under period between JOptionPane.JOption
    java 9 cannot find symbol caret under A in Animals[]farm etc also under A in new Animals
    java 10 cannot find symbol caret under D in Duck
    java 12 cannot find symbol caret under C in new Cow

Maybe you are looking for

  • My iphone 5 has a black screen and is unresponsive and it also has a broken lock button can anyone help?

    I have an iphone 5 that ive had for two years. i plugged it in for the night to charge, and when i woke up it had a black screen. i tried to wake it up using the home button since my lock button does not work. ive tried to hold the lock and home butt

  • Big iPod Nano Issues

    Well, after my brother got a new iPod for Christmas I kept asking him why he didn't use it, he just said because his computer is very slow and can't be bothered to put it on, so I told him I would set it all up so he only has to sync it. I plugged it

  • Communicate between DAQs

    Hi, This is my project in short I am generation excitation signal using Function generator.. sending this to DAQ analog i/p. The DAQ analog o/p gives these values out to the experiment set up. The DAQs also takes the i/ps and o/ps of the experiment,

  • Sync Mana

    I have just upgarded to version 5 of Mediasource. Unfortunately the sync manager appears to crash with a message from microsoft that the program has called a problem and please report to microsoft. I am running windows xp2 and have a zen touch player

  • SAP Web As Java Hangs after few days using it

    Hi everybody,    I have some applications on an Enterprise Portal running in a Java Web As 6.40. Recently, the following problem has appeared: After a day or two of normal use, the portal starts to reject all the connections that are established to i