Help urgently needed with Java RMI task.

Hello All. Please I need help urgently with this task. I cant seem to be able to do this. Here is the task:
There are m squares with side lengths a1, a2, ..., am and a rectangle with the height and width equal to h and w respectively. Find a subset of the squares, which must be placed within the rectangle in such a way that they do not overlap, and cover the maximum area of a rectangle.*
Please all help me solve this task using Java RMI. I would be very grateful for your help. Thanks in advance.

Here is my client.java.
import compute.;*
import java.lang.Math.;*
import java.lang.Long;
*public class Hypothesis implements Task {*
private long start;
private long end;
private int number;
private int count;
public Hypothesis(long start, long end, int number,int
*count) {*
this.start = start;
this.end = end;
this.number = number;
this.count = count;
*public Object execute() {*
return findSolution();
*public String findSolution() {*
long i,j,k,l,m=1,i_max,j_max,k_max,l_max,l_start;
System.out.println(start);
System.out.println(end);
System.out.println(number);
System.out.println(count);
for(m=start+number;m<end;m+=count)
i_max=(long)java.lang.Math.pow((double)(min(p5(m)-3)),0.2d)+1;
for(i=i_max;i>0;i--)
j_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-2)),0.2d)+1;
if (j_max>i) j_max=i;
for(j=j_max;j>0;j--)
k_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-p5(j)-1)),0.2d)+1;
if (k_max>j) k_max=j;
for(k=k_max;k>0;k--)
l_max=(long)java.lang.Math.pow((double)(min(p5(m)-p5(i)-p5(j)-p5k))),0.2d)+1;
if (l_max>k) l_max=k;
if (l_max>2) l_start=l_max-2;
else l_start=1;
for(l=l_max;l>l_start-1;l--)
if(p5(i)+p5(j)+p5(k)+p5(l)==p5(m))
Long[] solution=new Long[5];
solution[0]=i;
solution[1]=j;
solution[2]=k;
solution[3]=l;
solution[4]=m;
*return "" solution[0]"^5+"*
solution[1]"^5+"*
solution[2]"^5+"*
solution[3]"^5="*
solution[4]"^5";*
return null;
*private long p5(long n){*
return nn*n*n*n;*
*private long min(long n){*
return n>0?n:0;
I just can't seem to get the whole thing work correctly on the server side. I need it to run from 1 client on atleast 3 servers. Please any explanations will be appreciated.

Similar Messages

  • Help urgently needed with xml reading

    hi, i have a 3gig xml file which i am surprised it is so large as i have even shortened all of the names,
    it contains 2000 elements which have a filename and an array, each element has an array of size 6000, and each element in this array has an array of shorts, say 100 of them, and also a filename.
    i ahve used stax writing to be able to write such a large file without having memory problems.
    i then had to program a stax reader to be able to read it all in without building the whole tree but with some large cases i am now getting out of memory again, it seems to eb from the read so maybe the code eve though it doesnt have to hold the tree in memory, it has to hold the file in memory, the code for reading is shown here:
    package utilities;
    import Categorise.Collection;
    import Categorise.Comparison;
    import Categorise.TestCollection;
    import java.io.IOException;
    import javax.xml.parsers.*;
    import org.xml.sax.SAXException;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.Attributes;
    import java.io.File;
    import java.util.ArrayList;
    import java.util.List;
    import measures.Protocol;
    * @author dthomas
    public class XMLParser extends DefaultHandler
        static Collection collection = new Collection();
        List<Short> cList;
        List<Comparison> comparisonList;
        File trainFileName;
        File testFileName;
        TestCollection tc;
        List<TestCollection> testCollectionList;
        List<File> testFileNameList = new ArrayList<File>();
        List<File> trainFileNameList = new ArrayList<File>();
        boolean allTrainsAdded = false;
        Protocol protocol;
        List<File> trainingDirList;
        File testingDir;
        int counter = 0;
        /** Creates a new instance of XMLParser */
        public XMLParser() {
        public static Collection read( File aFile )
            long startTime = System.currentTimeMillis();
            System.out.println( "Reading XML..." );
            SAXParserFactory spf = SAXParserFactory.newInstance();
            SAXParser sp;
            try {
                sp = spf.newSAXParser();
                sp.parse( aFile, new XMLParser() );
            } catch (IOException ex) {
                ex.printStackTrace();
            } catch (SAXException ex) {
                ex.printStackTrace();
            } catch (ParserConfigurationException ex) {
                ex.printStackTrace();
            long endTime = System.currentTimeMillis();
            long totalTime = ( endTime - startTime ) / 1000;
            System.out.println( "Done..."  + totalTime + " seconds" );
            return collection;
        public void startElement(String uri,String localName,String qName, Attributes attributes)
            if( qName.equals( "RE" ) )
                testCollectionList = new ArrayList<TestCollection>();
            else if( qName.equals( "p") )
                boolean isConcatenated = new Boolean( attributes.getValue( "c" ) );
                boolean isStatic = new Boolean( attributes.getValue( "s" ) );
                protocol = new Protocol( isConcatenated, isStatic );
            else if( qName.equals( "trdl" ) )
                trainingDirList = new ArrayList<File>();
            else if( qName.equals( "trd" ) )
                File trainDir = new File( attributes.getValue( "fn" ) );
                trainingDirList.add( trainDir );
            else if( qName.equals( "td" ) )
                testingDir = new File( attributes.getValue( "fn" ) );
            else if( qName.equals( "TC" ) )
                counter++;
                System.out.println( counter );
                comparisonList = new ArrayList<Comparison>();
                testFileName = new File( attributes.getValue( "tfn" ) );
                testFileNameList.add( testFileName );
                tc = new TestCollection( );
                tc.setTestFileName( testFileName );
            else if ( qName.equals( "r" ) )
             String order = attributes.getValue( "o" );
                String type = attributes.getValue( "t" );
                String value = attributes.getValue( "v" );
                cList.add( Short.parseShort( order ), new Short( value ) );
            else if( qName.equals( "c" ) )
                cList = new ArrayList<Short>();
                trainFileName = new File( attributes.getValue( "trfn" ) );
                if( !allTrainsAdded )
                    trainFileNameList.add( trainFileName );
        public void characters(char []ch,int start,int length)
            String str=new String(ch,start,length);
            System.out.print(str);
        public void endElement(String uri,String localName,String qName)
            if (qName.equals( "c") )
                allTrainsAdded = true;
                short[ ] cCounts = new short[ cList.size() ];      
                for( int i = 0; i < cCounts.length; i++ )
                    cCounts[ i ] = cList.get( i );
                Comparison c = new Comparison( trainFileName, tc );
                c.setcCounts( cCounts );
                this.comparisonList.add( c );
            else if( qName.equals( "TC" ) )
                Comparison[ ] comparisons = new Comparison[ comparisonList.size() ];
                comparisonList.toArray( comparisons );           
                tc.setComparisons( comparisons );
                testCollectionList.add( tc );
            else if( qName.equals( "RE" ) )
                TestCollection[ ] testCollections = new TestCollection[ testCollectionList.size() ];
                testCollectionList.toArray( testCollections );
                collection.setTestCollections( testCollections );
                File[ ] testFileNames = new File[ testFileNameList.size() ];
                testFileNameList.toArray( testFileNames );
                collection.setTestingFiles( testFileNames );
                File[ ] trainingFileNames = new File[ trainFileNameList.size() ];
                trainFileNameList.toArray( trainingFileNames );
                collection.setTrainingFiles( trainingFileNames );
                collection.setProtocol( protocol );
                File[ ] trainingDirs = new File[ trainingDirList.size() ];
                trainingDirList.toArray( trainingDirs );           
                collection.setTrainingDirs( trainingDirs );
                collection.setTestingDir( testingDir );
    }any help would be greatly greatly appreciated
    thanks
    Danny =)
    ps with the amount of data contained, should the xml file be this large? and does ayone know the size difference of holding a filename as a File rather than a string and then creating the file when it is needed?

    yes i do need them but i could store them as strings instead if you think that would help? if it never runs out of memory i dot see how i was able to hold all of this information in memory before, as it was all written to file.
    thanks

  • Help urgently needed with edit to tape / print to video error

    I have tried to edit to tape and print to video a sequence (0my whole project, worked for way too many nights to let go... so frustrated and sad right now because it doesn't work.
    The project is saved on an extern harddisk, my harddrive on teh pc is too full (not big enough).
    My camera and FCP connects but all the time I get an error that 'the tape may be locked' . AND I HAVE TRIED WITH DIFFERENT TAPES, none of them were locked!
    I am not really sure how to set the camera in this VTR mode... I have tried in the settings to set it in webcam mode... and I have tried without... and I dont have a button or setting called VTR, only a *PLAY' option or a 'FILMØ option....
    My A/V settings are FireWire PAL and DA PAL 48khz ... however have no ide what that means or if these should be changed...?
    I checked from apple but cannot find my DV cam on the list... hmm, does that mean I cannot do edit to tape recordings???
    My Dv cams informations:
    NV-GS140 by Panasonic, Model 0x80330B, 0x804580114B5DD1
    I checked the system settings and was able to the FireWire/NV-GS140 Unit
    I have a MacBook1,1 / Intel Core Duo/ 2 GHz
    OS 10.4.11
    I use the version FCP 2
    Please help me out, I am really without any good suggestions how to proceed!

    You're going to have to use a dvd authoring program. Burning the seq to a dvd qill just create a qt movie on a dvd data disc. It won't create a dvd video disc that plays in a dvd player.
    Export from fcp a QT movie, current settings, self-contained. Use Anamorphicizer (http://mac.softpedia.com/get/Video/Anamorphicizer.shtml) to make imovie recognise it as 16:9. Then import that file to idvd.
    Or you can drop your 16:9 sequence into a new 4:3 sequence to letterbox it, then you can do the export as above but skip the anamorphicizer step.
    It's better to use compressor on the original 16:9 sequence and then use dvdsp to author, but if you've never used dvdsp it's a big program to get your head round.
    The export can be done in two ways;
    1. Export from fcp using 'export using compressor'.
    2. Export a QT ref/self-contained movie and import that into compressor.
    3. Export a QT movie and import it direct into DVDSP.
    The second option will take longer initially (if you use the self-contained option) but will then allow compressor to work in the background, the first option will tie up fcp for the duration of the encode.
    Once in compressor use one of the 16:9 dvd presets, depending on the duration of the movie and the quality you want. Don't try to adjust the settings. If your movie is 31 mins just use the shortest option (i think it's 60min) and make sure you select the m2v video and ac3 audio options. If you just select the mpeg 2 video you'll only get video, as you've discovered.
    Open dvdsp and create your opening menu and a video track, import the movie file, add it to the video track, and then add the audio to the track as well. Then add any chapter submenus you may want.

  • Help Urgently Needed With Border

    Hi
    Please can anyone help me?
    I have designed a site and I am trying to put a border around
    the whole of the table (not individual cells).
    Is this possible to do?
    Thank you very much, Louisa

    Erp...
    <table style="border: 3px solid gray;" ...>
    </table>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Malcolm N_" <[email protected]> wrote in message
    news:[email protected]..
    > On Fri, 3 Aug 2007 15:31:14 +0000 (UTC), "LoobieLouLou"
    > <[email protected]> wrote:
    >
    >>Hi
    >>Please can anyone help me?
    >>I have designed a site and I am trying to put a
    border around the whole of
    >>the table (not individual cells).
    >>Is this possible to do?
    >>Thank you very much, Louisa
    >
    >
    > give the table a css class
    > <table class="table1">
    >
    > and control it with this
    > .table {
    > border: 3px solid gray;
    > }
    >
    >
    > or just quick and dirty
    >
    > <table style="border: 3px solid gray; </table>
    > --
    >
    > ~Malcolm N....
    > ~

  • New @ RMI need help with  java.rmi.UnmarshalException: error unmarshalling

    Hi @ all out there,
    I'm new with Java RMI and have to write a EventSystem for an college project where clients can subscribe to a topic and get notified when someone publishes a message to the subscribed topic.
    At server-side I have a class called EventSystem that provides methods for subscribing and unsubscribing from topics, and also for posting messages (for publishers).
    To subscribe i thought that the client must specify the topic and also itself ( means that a client calls in this way: obj.subscribe("mytopic", this).
    The EventSystem handles a list of all clients, and whenever a new message is posted it goes trough all clients and invokes the handleMessage(String msg) method that all Clients have to provide.
    On my local machine without RMi this concept works just great.
    I now tried to get it working using RMI , but I get the following Exception when starting the client (the server starts fine) :
    Looking up for rmiregistry at 138.232.248.22:1099
    Subscriber exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
            java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:336)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
            at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
            at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
            at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
            at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
            at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
            at $Proxy0.subscribe(Unknown Source)
            at SubscriberImpl.main(SubscriberImpl.java:48)
    Caused by: java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
            java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:293)
            at sun.rmi.transport.Transport$1.run(Transport.java:159)
            at java.security.AccessController.doPrivileged(Native Method)
            at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
            at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
            at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
            at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
            at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
            at java.lang.Thread.run(Thread.java:619)
    Caused by: java.io.InvalidClassException: SubscriberImpl; SubscriberImpl; class invalid for deserialization
            at java.io.ObjectStreamClass.checkDeserialize(ObjectStreamClass.java:713)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1733)
            at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329)
            at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351)
            at sun.rmi.server.UnicastRef.unmarshalValue(UnicastRef.java:306)
            at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:290)
            ... 9 more
    Caused by: java.io.InvalidClassException: SubscriberImpl; class invalid for deserialization
            at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:587)
            at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1583)
            at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496)
            at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732)
            ... 13 moreI googled now for 2 hours but can't resolve the problem alone. As far as I can understand I have to serialize Objects that I want to send to the server, right?
    So how can i do this? I've never used serialization till now.
    any ideas how to solve this problem?
    greets from italy and sorry for my very weak english
    bd_italy

    A class has been modified after deployment. Stop the Registry, clean, recompile, and redeploy.

  • Help needed with java

    Hello everyone
    I'm a Student and new to java and I have been given a question which I have to go through. I have come across a problem with one of the questions and am stuck, so I was wondering if you guys could help me out.
    here is my code so far:
    A Class that maintains Information about a book
    This might form part of a larger application such
    as a library system, for example.
    @author (your name)
    *@version (a version number or a date)*
    public class Book
    // instance variables or fields
    private String author;
    private String title;
    Set the author and title when the book object is constructed
    public Book(String bookAuthor, String bookTitle)
    author = bookAuthor;
    title = bookTitle;
    Return The name of the author.
    public String getAuthor()
    return author;
    Return The name of the title.
    public String getTitle()
    return title;
    and below are the questions that I need to complete. they just want me to add codes to my current one, but the problem is I don't know where to put them and how I should word them, if that makes sense.
    Add a further instance variable/field pages to the Book class to store the number of pages in the book.
    This should be of type int and should be set to 0 in the Constructor.
    Add a second Constructor with signature
    public Book(String bookAuthor, String bookTitle, int noPages) so it has a third parameter passed to it as well as the author and title;
    this parameter is used - obviously?? - to initialise the number of pages.
    Note: This is easiest done by making a copy of the existing Constructor and adding the parameter.
    Add a getPages() accessor method that returns the number of pages in the book.
    Add a method printDetails() to your Book class. This should print out the Author title and number of pages to the Terminal Window. It is your choice as to how the data is formatted, perhaps all on one line, perhaps on three, and with or without explanatory text. For instance you could print out in the format:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:226
    Add a further instance variable/field refNumber() to your Book class. This stores the Library's reference number. It should be of type String and be initialised to the empty String "" in the constructor, as its initial value is not passed in as a parameter. Instead a public mutator method with the signature:
    public void setRefNumber(String ref) should be created. The body of this method should assign the value of the method parameter ref to the refNumber.
    Add a corresponding getRefNumber() accessor method to your class so you can check that the mutator works correctly
    Modify your printDetails() method to include printing the reference number of the book.
    However the method should print the reference number only if it has been set - that is the refNumber has a non-zero length.
    If it has not been set, print "ZZZ" instead.
    Hint Use a conditional statement whose test calls the length() method of the refNumber String and gives a result like:
    Title: Jane Eyre, Author: Charlotte Bronte, Pages:226, RefNo: CB479 or, if the reference number is not set:
    Title: Robinson Crusoe, Author: Daniel Defoe, Pages:347, RefNo: ZZZ
    Modify your setRefNumber() method so that it sets the refNumber field only if the parameter is a string of at least three characters. If it is less than three, then print an error message (which must contain the word error) and leave the field unchanged
    Add a further integer variable/field borrowed to the Book class, to keep a count of the number of times a book has been borrowed. It should (obviously??) be set to 0 in the constructor.
    Add a mutator method borrow() to the class. This should increment (add 1 to) the value of borrowed each time it is called.
    Include an accessor method getBorrowed() that returns the value of borrowed
    Modify Print Details so that it includes the value of the borrowed field along with some explanatory text
    PS. sorry it looks so messey

    1. In the future, please use a more meaningful subject. "Help needed with java" contains no information. The very fact that you're posting here tells us you need help with Java. The point of the subject is to give the forum an idea of what kind of problem you're having, so that individuals can decide if they're interested and qualified to help.
    2. You need to ask a specific question. If you have no idea where to start, then start here: [http://home.earthlink.net/~patricia_shanahan/beginner.html]
    3. When you post code, use code tags. Copy the code from the original source in your editor (NOT from an earlier post here, where it will already have lost all formatting), paste it in here, highlight it, and click the CODE button.

  • Help urgently needed please ! My Iphone 4 is on silent vibration mode, received a call and has frozen with the Iphone unusable and yet vibrating. I have tried switching off, connecting to power, connecting to laptop and removing SIM card ???

    Help urgently needed please ! My Iphone 4 is on silent vibration mode, received a call and has frozen with the Iphone unusable and yet vibrating. I have tried switching off, connecting to power, connecting to laptop and removing SIM card ???

    Problem solved... just saw the answer in another thread... https://discussions.apple.com/message/13110222#13110222

  • Help urgently needed, I have installed Logic Pro 9, since then my Final Cut Pro X keep freezing. Anyone what is wrong and how to solve it? I desperately need help on this. Thanks

    Help urgently needed, I have installed Logic Pro 9, since then my Final Cut Pro X keep freezing. Anyone what is wrong and how to solve it? I desperately need help on this. Apple support says I have to pay £85 for to help me. Thanks

    Just a word of advice. Never ever use the word "urgent" on this forum

  • SQL help: Selecting tickets with no open tasks

    Hi Gurus,
    I'm new to SQL. I need your help in a script where I need to fetch the tickets with no open tasks.
    Say, following is the Task table
    Table: Task
    | ticketid | taskid | taskstatus |
    | 1 | 1 | O |
    | 1 | 2 | O |
    | 1 | 3 | O |
    | 2 | 4 | C |
    | 2 | 5 | C |
    | 3 | 6 | C |
    | 3 | 7 | O |
    The query should return the ticketid(s) with all its taskstatus = 'C'.
    Any help would be highly appreciated.
    Thanks

    Hi Surya,
    Here's an Oracle style example (Sorry, I just can't do that ansi stuff)
    SQL> with ticket as (select 1 ticketid, 'C' reason from dual union all
                    select 2 ticketid, 'O' reason from dual union all
                    select 3 ticketid, 'O' reason from dual union all
                    select 4 ticketid, 'C' reason from dual)
    ,taskstatus as (select 1 taskstatusid, 'O' taskstatus from dual union all
                    select 2 taskstatusid, 'C' taskstatus from dual union all
                    select 3 taskstatusid, 'P' taskstatus from dual union all
                    select 4 taskstatusid, 'F' taskstatus from dual union all
                    select 5 taskstatusid, 'O' taskstatus from dual union all
                    select 6 taskstatusid, 'C' taskstatus from dual union all
                    select 7 taskstatusid, 'P' taskstatus from dual union all
                    select 8 taskstatusid, 'F' taskstatus from dual)
          ,task as (select 1 ticketid,  1 taskid, 2 taskstatusid from dual union all
                    select 1 ticketid,  2 taskid, 3 taskstatusid from dual union all
                    select 1 ticketid,  3 taskid, 4 taskstatusid from dual union all
                    select 1 ticketid,  4 taskid, 4 taskstatusid from dual union all
                    select 2 ticketid,  5 taskid, 1 taskstatusid from dual union all
                    select 2 ticketid,  6 taskid, 1 taskstatusid from dual union all
                    select 2 ticketid,  7 taskid, 1 taskstatusid from dual union all
                    select 3 ticketid,  8 taskid, 2 taskstatusid from dual union all
                    select 3 ticketid,  9 taskid, 2 taskstatusid from dual union all
                    select 3 ticketid, 10 taskid, 6 taskstatusid from dual union all
                    select 4 ticketid, 11 taskid, 2 taskstatusid from dual union all
                    select 4 ticketid, 12 taskid, 6 taskstatusid from dual union all
                    select 4 ticketid, 13 taskid, 4 taskstatusid from dual union all
                    select 4 ticketid, 14 taskid, 8 taskstatusid from dual)
    select a.ticketid, c.taskstatus
      from  task a, ticket b, taskstatus c
    where a.ticketid = b.ticketid
       and c.taskstatusid = a.taskstatusid
       and (c.taskstatus = 'C' or c.taskstatus = 'F')
       and b.reason = 'C'     
       and not exists (select null
                         from task a1, taskstatus c1
                        where a1.ticketid = a.ticketid
                          and c1.taskstatusid = a1.taskstatusid
                          and (c1.taskstatus = 'O' or c1.taskstatus = 'P'))
    order by 1,2
      TICKETID T
             4 C
             4 C
             4 F
             4 F
    4 rows selected.Please note, how I made test data, that way is much more helpful than your tables
    Regards
    Peter

  • Weblogic 7.0 Porting .... Help Urgently needed

    Hi Guys,
    Any help on this highly appreciable as we are struck up with our Weblogic 7.0
    Porting
    I have the following scenario
    Servlet makes a call to Session Bean which has transcations managed by container.
    Session bean 1 executes SQL Queries Session Bean 1 invokes methods on Session
    Bean 2 in another Weblogic Instance to get value object.
    Session Bean 1 after updating the database as well after intracting with another
    Weblogic Instance returns a Java Object to Servlet.
    In weblogic 6.1 SP2 everything works well.
    While porting the application to weblogic 7.0 SP1 , the operation by Session Bean
    1 is all done. But before returning the vaules to Servlet the container most probably
    throws a Remote Exception. If I catch the Remote Exception and do nothing. I am
    getting the desired result.
    My Question is why should I be getting a Remote Exception from the other weblogic
    instance.
    The remote Exception seems to be a JTA Exception on other weblogic instance. I
    am using Oracle Thin Driver for Oracle 8.1.7 with TXDatasource.
    The trace of Remote Exception is as follows (Please scroll below for another exception
    as well) *************************************************************************************
    [2002/04/22 11:14:07:406] [DEBUG] [com.hns.iag.dbsp.servlets.DSPServlet] Remote
    exception while deleting java.rmi.RemoteException: Exception while commiting Tx
    : 3:efdbedc9111bd8d6; nested exception is: javax.transaction.SystemException:
    Timeout during commit processing
    Start server side stack trace: java.rmi.RemoteException: Exception while commiting
    Tx : 3:efdbedc9111bd8d6; nes ted exception is: javax.transaction.SystemException:
    Timeout during commit processing javax.transaction.SystemException: Timeout during
    commit processing at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
    rverTransactionImpl.java:265) at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
    sactionImpl.java:208) at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:2
    78) at com.hns.iag.dbsp.ejb.user.DBSPUserManagerBean_ymjd1a_EOImpl.deleteDBS PUser(DBSPUserManagerBean_ymjd1a_EOImpl.java:812)
    at com.hns.iag.dbsp.ejb.user.DBSPUserManagerBean_ymjd1a_EOImpl_WLSkel.in voke(Unknown
    Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:15
    9) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR ef.java:262)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR ef.java:229)
    at com.hns.iag.dbsp.ejb.user.DBSPUserManagerBean_ymjd1a_EOImpl_WLStub.de leteDBSPUser(Unknown
    Source) at com.hns.iag.dbsp.servlets.DSPServlet.doDeleteUser(DSPServlet.java:114
    9) at com.hns.iag.dbsp.servlets.DSPServlet.service(DSPServlet.java:131) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run (ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm pl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio n.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic eManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe rvletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm pl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    End server side stack trace
    At the same time the trace on another weblogic instance hosting Session Bean 2
    is as follows It continues after specified time ..... *************************************************************************************
    <Apr 21, 2002 9:20:26 PM IST> <Error> <JTA> <110200> <User [guest] is not authorized
    to invoke startCommit on a transaction branch.> <Apr 21, 2002 9:20:56 PM IST>
    <Error> <JTA> <110200> <User [guest] is not author ized to invoke startCommit
    on a transaction branch.> <Apr 21, 2002 9:20:58 PM IST> <Error> <JTA> <110201>
    <User [guest] is not author ized to invoke startRollback on a transaction branch.>
    <Apr 21, 2002 9:21:07 PM IST> <Error> <JTA> <110201> <User [guest] is not author
    ized to invoke startRollback on a transaction branch.>
    Thanks in advance,
    Kumar

    Do you ever set the DD's Transaction Types properly?
    Does it set the JNDI propteries (SECURITY_PRINCIPAL,SECURITY_CREDENTIALS)
    while it lookups up the second Session EJB context?
    "Kumar" <[email protected]> wrote:
    >
    Hi Guys,
    Any help on this highly appreciable as we are struck up with our Weblogic
    7.0
    Porting
    I have the following scenario
    Servlet makes a call to Session Bean which has transcations managed by
    container.
    Session bean 1 executes SQL Queries Session Bean 1 invokes methods on
    Session
    Bean 2 in another Weblogic Instance to get value object.
    Session Bean 1 after updating the database as well after intracting with
    another
    Weblogic Instance returns a Java Object to Servlet.
    In weblogic 6.1 SP2 everything works well.
    While porting the application to weblogic 7.0 SP1 , the operation by
    Session Bean
    1 is all done. But before returning the vaules to Servlet the container
    most probably
    throws a Remote Exception. If I catch the Remote Exception and do nothing.
    I am
    getting the desired result.
    My Question is why should I be getting a Remote Exception from the other
    weblogic
    instance.
    The remote Exception seems to be a JTA Exception on other weblogic instance.
    I
    am using Oracle Thin Driver for Oracle 8.1.7 with TXDatasource.
    The trace of Remote Exception is as follows (Please scroll below for
    another exception
    as well) *************************************************************************************
    [2002/04/22 11:14:07:406] [DEBUG] [com.hns.iag.dbsp.servlets.DSPServlet]
    Remote
    exception while deleting java.rmi.RemoteException: Exception while commiting
    Tx
    : 3:efdbedc9111bd8d6; nested exception is: javax.transaction.SystemException:
    Timeout during commit processing
    Start server side stack trace: java.rmi.RemoteException: Exception while
    commiting
    Tx : 3:efdbedc9111bd8d6; nes ted exception is: javax.transaction.SystemException:
    Timeout during commit processing javax.transaction.SystemException: Timeout
    during
    commit processing at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(Se
    rverTransactionImpl.java:265) at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTran
    sactionImpl.java:208) at weblogic.ejb20.internal.BaseEJBObject.postInvoke(BaseEJBObject.java:2
    78) at com.hns.iag.dbsp.ejb.user.DBSPUserManagerBean_ymjd1a_EOImpl.deleteDBS
    PUser(DBSPUserManagerBean_ymjd1a_EOImpl.java:812)
    at com.hns.iag.dbsp.ejb.user.DBSPUserManagerBean_ymjd1a_EOImpl_WLSkel.in
    voke(Unknown
    Source) at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:15
    9) at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:262)
    at weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteR
    ef.java:229)
    at com.hns.iag.dbsp.ejb.user.DBSPUserManagerBean_ymjd1a_EOImpl_WLStub.de
    leteDBSPUser(Unknown
    Source) at com.hns.iag.dbsp.servlets.DSPServlet.doDeleteUser(DSPServlet.java:114
    9) at com.hns.iag.dbsp.servlets.DSPServlet.service(DSPServlet.java:131)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run
    (ServletStubImpl.java:1058)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:401)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubIm
    pl.java:306)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationActio
    n.run(WebAppServletContext.java:5412)
    at weblogic.security.service.SecurityServiceManager.runAs(SecurityServic
    eManager.java:744)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppSe
    rvletContext.java:3086)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestIm
    pl.java:2544)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153) at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    End server side stack trace
    At the same time the trace on another weblogic instance hosting Session
    Bean 2
    is as follows It continues after specified time ..... *************************************************************************************
    <Apr 21, 2002 9:20:26 PM IST> <Error> <JTA> <110200> <User [guest] is
    not authorized
    to invoke startCommit on a transaction branch.> <Apr 21, 2002 9:20:56
    PM IST>
    <Error> <JTA> <110200> <User [guest] is not author ized to invoke startCommit
    on a transaction branch.> <Apr 21, 2002 9:20:58 PM IST> <Error> <JTA>
    <110201>
    <User [guest] is not author ized to invoke startRollback on a transaction
    branch.>
    <Apr 21, 2002 9:21:07 PM IST> <Error> <JTA> <110201> <User [guest] is
    not author
    ized to invoke startRollback on a transaction branch.>
    Thanks in advance,
    Kumar

  • Please help, I am having java.rmi.UnmarshalException.

    First I would like to show you the interface code i want to implement, following is the code.
    package bis.opencontrol.opcconnector;
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    import javax.swing.tree.*;
    public interface ReceiveNodeInterface extends Remote
    DefaultMutableTreeNode getRootNode(String x) throws RemoteException;
    The server class which implements this interface is as follows...
    package bis.opencontrol.opcconnector;
    public class RMIServiceToSendNodesHierarchy extends java.rmi.server.UnicastRemoteObject implements ReceiveNodeInterface
    public DefaultMutableTreeNode getRootNode(String x) throws RemoteException
    System.out.println(x);
    return(TimerToGetNodesHierarchy.getRootNode());
    public RMIServiceToSendNodesHierarchy() throws RemoteException
    try
    thisAddress= (InetAddress.getLocalHost()).toString();
    catch(Exception e)
    throw new RemoteException("can't get inet address.");
    thisPort = 1099;
    System.out.println("Starting RMI service at address = "+thisAddress+" and PortNo = "+thisPort);
    System.getProperties().setProperty("java.security.policy", "wideopen.policy");
    if(System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    try
    registry = LocateRegistry.createRegistry(thisPort);
    registry.rebind("RMIServiceToSendNodesHierarchy", this);
    The client class which will send request to server is as follows...
    package tagbrowser;
    public class TagBrowser extends javax.swing.JFrame
    ReceiveNodeInterface rmiServer;
    public TagBrowser() throws MalformedURLException
    getRootNodeIntoTree();
    void getRootNodeIntoTree() throws MalformedURLException
    String text = "Please, send us the root node.";
    try
    registry = LocateRegistry.getRegistry(serverAddress, 1099);
    String[] list = registry.list();
                   if( list == null )
                        throw new RemoteException( "list == null" );
    else
    for (int k=0; k < list.length; k++)
    System.out.println("registry" + k + ": " + list[k].toString());
    System.getProperties().setProperty("java.security.policy", "wideopen.policy");
    if(System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    rmiServer = (ReceiveNodeInterface)(registry.lookup("RMIServiceToSendNodesHierarchy"));
    rootNode = rmiServer.getRootNode(text);
    catch(RemoteException e){
    e.printStackTrace();
    catch(NotBoundException e){
    e.printStackTrace();
    Well, when I run this rmi client application I get this following error...
    registry0: RMIServiceToSendNodesHierarchy
    java.rmi.UnmarshalException: error unmarshalling return; nested exception is:
    java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    at tagbrowser.TagBrowser.getRootNodeIntoTree(TagBrowser.java:126)
    at tagbrowser.TagBrowser.<init>(TagBrowser.java:39)
    at tagbrowser.Main.main(Main.java:19)
    Caused by: java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
    at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
    ... 4 more
    BUILD SUCCESSFUL (total time: 1 second)

    System.out.println("Starting RMI service at address = "+thisAddress+" and PortNo = "+thisPort);That's not true unless you call super(1099) inside this constructor. So at this point you are printing misleading information.
    System.getProperties().setProperty("java.security.policy", "wideopen.policy");
    if(System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    }You normally don't need a security manager in an RMI server. You can delete all this.
    package tagbrowser;I would expect to see either import bis.opencontrol.opcconnector.* or import bis.opencontrol.opcconnector.ReceiveNodeInterface here. So there is clearly something wrong with your project structure. I suspect you have copied ReceiveNodeInterface from the server package to the client. That isn't valid. The remote interface is the same at both client and server.
    I am having java.rmi.UnmarshalExceptionWell, actually you are having java.lang.ClassNotFoundException: bis.opencontrol.opcconnector.ReceiveNodeInterface
    at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
    due to the error described above. This also implies that bis.opencontrol.opcconnector.ReceiveNodeInterface needs to be available to the client via its classpath, i.e. usually via the same JAR that the client classes are in.

  • HELP urgently needed: My Sandberg FireWire for Laptop will not start on my T60

    Let me start with information on my T60:
    OS information: Microsoft Windows XP
    OS version: 5.10.2600   Service Pack 2
    Processor: x86 Family 6 Model 14 Stepping 8
    Memory: 3.135.856 kb
    BIOS version: 2.09  (79ETC9WW)
    Machine type-Model: 1951A47
    I have just got a new Sandberg FireWire for Laptop, a PC Card with 3 6-pins connectiont. After inserting the card in the PC Card slot, the Windows Device Manager tells me that there are problems with the card. Looking at the 1394 Card Properties the status says:
    "This device cannot start. (Code 10) - Click Troubleshoot to start the troubleshooter for this device."
    The troubleshooter did not solve my problem. I have tried disconnecting, re-connection, shut down Windows and start again etc.
    At Sandberg Help Desk they tell me that I have two slots in my laptop, one with a 16 bits bus and another with a 32 bits slots, and I should use the latter. It seems that I can use the lower slide only in my laptop and I cannot push the card into the upper slide. There is not enough room for it.
    Here is what I found on Lenovo's support site on my type & model:
     PC Card
    Conforms to the PC Card Standard 95
    Type II slot
    Both the 16-bit Release 2.1 card standard and the 32-bit CardBus card are supported.
    Have a look at these screen captures.
    What should I do to solve my urgent problem!? 
    Message Edited by pbl_ibm on 10-09-2008 05:10 AM
    Message Edited by pbl_ibm on 10-09-2008 07:27 AM
    Message Edited by pbl_ibm on 10-09-2008 07:45 AM
    Message Edited by pbl_ibm on 10-09-2008 07:45 AM

    garytr23 wrote:
    Sounds to me like a driver configuration problem.  Maybe something bad happened during driver install.  I would recommend uninstalling the device from device manager by right clicking on it and hitting uninstall.  Reboot the computer.  Have a go at it again.  Also, test your pcmcia port functionality by finding and plugging in a different card.  See if that works.  It might need repair.
    Message Edited by garytr23 on 10-09-2008 09:41 AM
    The status right now is:
    The PC Card reader works on my T60
    If I use a Firewire PC Card it will not start - as described above (on T60)
    The PC Card work properly on my T61P - and I succeeded importing a video file from a digital camera using the Fireswire PC Card.
    So what does a wise man do in this situation??
    Please help me as I urgently need to know how to solve this serious issue!! 
    Have you got an idea? Can I import the video in another way??
    Message Edited by perbuch on 10-12-2008 07:55 AM

  • Please help to upload with java servlet

    I want to install a java servlet uploader on my web site and i try to do it many times but i can't beacuse i dont know what are the essentials that should be found on the server to install java servlet in right way ..
    so please help me to do this .. and tell me what i need to upload files correctly with java servlet .
    any help will be appreciated ..
    thank you !

    Hello newton ..
    I only want to know what are the requirments that let me use the java servlet on linux system .. because i want use an uploader using java servlet ..
    thank u newton ..
    any help will be appreciated

  • HELP urgently needed-software update question

    Hi.
    Just installed (20/10/12) latest updates for OSX10.7 Including printer update, Java update (removal) and osx bundle update. Upon restart, the computer won't recognise my password. It wasn't a misstype, I've tried it several times. Not quite sure what's going on. All was fine until I did the update. Any possibility I've been hacked and what's the chance my computer now has key logging on it (worried about going into admin account to check any probs).  Worried this is to do with Java somehow. I'm really security conscious (have now changed all passwords for all accounts and am accessing this from parents computer which is Java free)
    Please help, I'm moving house at the moment and really need my macbook operational!
    Yours desperately
    Kaz

    It just means that you have the latest available updates installed. If any new update is released for your phone's product code, it will automatically show on Ovi Suite if you are connected to the internet.
    If you find my post helpful please click the green star on the left under the avatar. Thanks.

Maybe you are looking for

  • Cover Flow does not update in full-screen mode

    Following an upgrade to iTunes 10.5 (141) and Lion (10.7.2) - I've noticed that Cover Flow no longer updates to the current song in full-screen mode. It will return to, and remain frozen at the first song of the playlist until manually updated or I r

  • How can I get a custom ringtone onto my phone?

    Phone type: Samsung Reality Note: No texting plan; 25 MB Data Package, as required Hi everyone! I got the Samsung Reality, and -sadly- the Data Package that is requiired to go with it. I don't have any texting plan, but I want to use a custom rington

  • Can't sync iPad or iPhone - new iTunes library wants to erase contents!

    Hi, I have an iPhone, iPad & iPod touch & all are synced using my iMac. I have the latest version of iTunes and for some reason, I am unable to sync my devices because I'm getting a pop up window that says that the devices are synced with another iTu

  • Incoming Email not showing up in business context

    Hi, We route incoming emails through ERMS to a service org. Then through the inbox, we select email and click on 'interact' button to create a service ticket manually. We notice that email does not show in the business context during the interaction

  • Default time in Date time field

    Hi, I have a date-time field. I want to default the time when a user selects the date. Currently when a user selects the date its takes the current system time. i would like it to take the time as 11:00. Can you please help me on this. Regards, Boris