Ava/lang/IllegalArgumentException: Missing protocol separator--pls help

hi guys
i have encounter this error in my coding.i 'm a novice in j2me programming, so pls help me .thanks
Uncaught exception java/lang/IllegalArgumentException: Missing protocol separator.
i think the error is somewhere in that code.
try{
SocketConnection sc = (SocketConnection) Connector.open("socket://localhost:5678",Connector.READ_WRITE);
   String uri = "file:c:/commands.txt";
   System.out.println("r");
              InputConnection conn = (InputConnection)Connector.open( uri,Connector.READ );
    int ch;
  InputStream in = sc.openInputStream();
OutputStream out=sc.openOutputStream();
  while( ( ch = in.read() ) != -1 ){
                System.out.print( (char) ch );
out.close();
  in.close();
  sc.close();
catch(ConnectionNotFoundException e ){}
catch(IOException ioe){}i would really appreciate it if someone would advise me on it.thanks

Change the "file:c:/..." to "file://c:/..."

Similar Messages

  • Help for MediaException:Missing protocol separator

    Hi all,
    I am trying to record voice in the mobile phone and save it to a file using MMAPI functions.
    I tried out the sample demo, "MMAPIExample" given in the NetBeans 5.0 Beta 2 with Mobility Pack 5.0 Beta 2.
    I selected Simple Player->Audio Capture from default device->menu
    ->Start Recording from the emulator, after entering the record locater with "file:recording.wav", the screen will appear with the following text,
    "MMA demos wants to record an image or audio clip. Is it ok to record?". Whenever I press the button for "Yes", the emulator is hang, it didn't go ahead to start recording.
    I decided to write a MIDLET to solely test on the audio capture function with the following code:
    try {
    // Create a Player that captures live audio.
    Player p = Manager.createPlayer("capture://audio");
    p.realize();
    // Get the RecordControl, set the record stream,
    // start the Player and record for 5 seconds.
    RecordControl rc = (RecordControl)p.getControl("RecordControl");
    rc.setRecordLocation("file:voicerecording.wav");
    rc.startRecord();
    p.start();
    Thread.currentThread().sleep(5000);
    rc.commit();
    p.close();
    } catch (IOException ioe) {
    } catch (MediaException me) {
    System.out.println(me.getMessage());
    } catch (InterruptedException ie) { }
    The same situation occured as described earlier on. This time I was able to find out that a Media Exception was raised with the reason of missing protocol separator.
    I am very new to writing J2ME program and I have no idea what is protocol separator.
    Can anyone help me out with this problem?
    Million thanks,
    Siying

    Hi all,
    I am trying to record voice in the mobile phone and save it to a file using MMAPI functions.
    ->Start Recording from the emulator, after entering the record locater with "file:recording.wav", the screen will appear with the following text,
    "MMA demos wants to record an image or audio clip. Is it ok to record?". Whenever I press the button for "Yes", the emulator is hang, it didn't go ahead to start recording. and also it shows Warning: To avoid potential deadlock, operations that may block, such as networking, should be performed in a different thread than the
    commandAction() handler. i have written the following code for recording and i also want to play that recorded one :
    try {
         Player p = Manager.createPlayer("capture://audio");
              p.realize();
    RecordControl rc = (RecordControl)p.getControl("RecordControl");     rc.setRecordLocation("file:///c/WTK22/appdb/DefaultColorPhone/filesystem/root1/audio.wav");
         rc.startRecord();
         p.start();
         try {
         Thread.currentThread().sleep(5000);
         } catch (InterruptedException ie) {}
         //stopRecorder();
         } catch (IOException ioe) {
         ioe.printStackTrace();
         } catch (MediaException me) {
         me.printStackTrace();
    I am very new to writing J2ME program and I have no idea what is protocol separator.
    Can anyone help me out with this problem?
    i very thankful to them.
    my mail id:[email protected]
    byeeeeeee.

  • Ava.lang.IllegalArgumentException: No bean specified

    config
    <form-beans>
    <form-bean name="FileUpload" type="roseindia.net.StrutsUploadForm"/>
    </form-beans>
    <action-mappings>
         <action path="/FileUpload" type="roseindia.net.StrutsUploadAction" name="FileUpload" scope="session" validate="true" input="/pages/FileUpload.jsp">
    <forward name="success" path="/pages/uploadsuccess.jsp"/>
         </action>
         <action path="/popsup" type="roseindia.net.StrutsUploadAction" name="FileUpload" scope="session" validate="true" parameter="parameter" input="/pages/uploadsuccess.jsp">
    <forward name="success" path="/pages/uploadsuccess.jsp"/>
         </action>
    </action-mappings>
    my first jsp is <B>FileUpload.jsp<B> like this
    <html:form action="/FileUpload" method="post" enctype="multipart/form-data">
    <html:file property="theFile"/>
    <html:submit>Upload File</html:submit>
    </html:form>
    after clicking the Upload file button, the <B>uploadSuccess.jsp<B> looks like this
    <html:form action="/popsup?parameter="show" method="post">
    <html:select property="valueObj.id">
         <html:optionsCollection property="objectList" value="id" label="fullName" name="FileUpload"/>
    </html:select>
    <html:submit/>
    </html:form>
    The correspondin form beans are
    public class StrutsUploadForm extends ActionForm
    { //assume all the methods are publlic
    FormFile theFile;
    ArrayList objectList;
    valueObject valueObj;
    FormFile getTheFile() {
    return theFile;
    void setTheFile(FormFile theFile) {
    this.theFile = theFile;
    void setValueObj(valueObject valueObj){
         this.valueObj = valueObj;          
    valueObject getValueObj(){
         return this.valueObj;
    void setObjectList(ArrayList objectList){
         this.objectList = objectList;
    ArrayList getObjectList(){
         return this.objectList;
    my value Object is
    public class valueObject
    String id;
    String firstName;
    String lastName;
    String fullName;
    valueObject(String id,String firstName,String lastName){
         this.id = id;
         this.firstName = firstName;
         this.lastName = lastName;
    void setId(String id){
         this.id=id;
    String getId(){
         return this.id;
    void setFirstName(String firstName){
         this.firstName = firstName;
    String getFirstName(){
         return firstName;
    void setLastName(String lastName){
         this.lastName = lastName;
    String getLastName(){
         return lastName;
    getFullName(){
         return firstName+lastName;
    and my action class is
    public class StrutsUploadAction extends Action
    public ActionForward execute(..){
    StrutsUploadForm myForm = (StrutsUploadForm)form;
    if(!"show".equals(request.getParameter("parameter"))){
    valueObject v1 = new valueObject("3","Babu","Prasad");
         myForm.setValueObj(v1);
         ArrayList valueList = new ArrayList();
         valueList.add(new valueObject("1","vijay","ks"));
         valueList.add(new valueObject("2","Ram","Kumar"));
         valueList.add(v1);
         valueList.add(new valueObject("4","Raju","sundaram"));
         valueList.add(new valueObject("5","Kamal","Batch"));
         valueList.add(new valueObject("6","Ragu","varan"));
         myForm.setObjectList(valueList);
    }else{
         System.out.println("myFORM OBJECTS "+myForm.getValueObj().getId());
    return mapping.findForward("success");
    But i try to select one of the value form the combo box and submit the uploadsuccess.jsp ,i am getting the following error
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: BeanUtils.populate
         org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
         org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    root cause
    java.lang.IllegalArgumentException: No bean specified
         org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:837)
         org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
         org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
         org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
         org.apache.struts.action.RequestProcessor.processPopulate(RequestProcessor.java:821)
         org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:254)
         org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
         org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

    Could you give us the code of your JSP where you think things might go wrong ?

  • Oracle Pkg missing?? Pls Help!!

    I have installed oracle on my pc(win2000 os) with version below:
         Personal Oracle8i Release 8.1.7.0.0 - Production
         With the Partitioning option
         JServer Release 8.1.7.0.0 - Production
    Here is few lines from file TNSNAMES.ORA
    TNSNAMES.ORA Configuration File:E:\oracle\ora81\NETWORK\ADMIN\tnsnames.ora     
    Generated by Oracle Enterprise Manager V2                         
    Date..........: Sat May 11 17:22:02 CDT 2002                         
    LINK2HR2 =                                             
    (DESCRIPTION =                                        
    (ADDRESS_LIST =                                        
    (ADDRESS = (PROTOCOL = TCP)(HOST = pria)(PORT = 1521))               
    (CONNECT_DATA = (SERVICE_NAME = link2hr2))                         
    I have installed VisualAge for Java 4.0 with JDK 1.2.2 that is offered for free by IBM.
    I did the following sqlj setup in VAJ workbench:
    1. workbench--->Tools--->SQLJ--->Properties
    Perform online semantics checking is checked
    JDBC Driver:     oracle.jdbc.driver.OracleDriver
    Default URL:     jdbc:oracle:thin:@pria:1521:link2hr2
    User:          hrdb     
    Password:     ????????
    2. Window--->Options--->Resources. I have the following in Workspace classpath I typed the following:
    "E:\oracle\ora81\jdbc\lib\classes12.zip;" w/o quotes.
    3. I have many Projects in my workspace along with "Java class libraries", "SQLJ Runtime Libraries".
    My Problem is:
    When I try to load and register JDBC driver with statement below:
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    I get compile error saying "Type named oracle.jdbc.driver.OracleDriver is not defined."
    My questions are:
    Do I need to have any "oracle" Projects in my workspace. If so Where do I get it from??.
    I think I am missing some oracle classes.
    P L E A S E H E L P !!

    Try a Class.forName("oracle.jdbc.driver.OracleDriver");

  • "Exception in thread "main" java.lang.NumberFormatException"error..pls help

    Hi,
    I'm trying to run a program I've written but keeping getting this error:
    Exception in thread "main" java.lang.NumberFormatException: empty String
    at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:994)
    at java.lang.Double.parseDouble(Double.java:482)
    at data.newLineToRead(data.java:21)
    at data.data(data.java:34)
    at train.main(train.java:86)
    I'm not quite sure where I'm going wrong.I've included the data class and train class.Could someone pls help me.
    Thanks a lot.
    Data Class:
    import java.io.*;
    import java.util.*;
    public class data{
            private static parameter par;
            private static double[][] x=new double[par.n()][par.D()];
            public static double[] t=new double[par.n()];
            public static void newLineToRead(String LineToRead,int n){
            int d=0;
            String stringToRead=new String();
                    for(int i=0;i<=LineToRead.length();i++){
                            StringTokenizer str = new StringTokenizer (stringToRead,"/t");
                            String[] strtemp = new String[str.countTokens()];
                                    while (str.hasMoreTokens()){
                                    x[n][d++] = Double.parseDouble(str.nextToken());
                                    d++;
                                    System.out.println(x[n][d++]);
                            stringToRead=new String();
                    t[n]=Double.parseDouble(stringToRead);
                    x[n][par.d()]=1.0;
            public static void data() throws IOException{
            DataInputStream in=null;
                    try{
                            in=new DataInputStream(new FileInputStream(par.f()));
                            for(int n=0;n<par.n();n++){
                            String LineToRead=in.readLine();
                                    if(LineToRead.length()==0){
                                            System.out.println("Remove empty lines");
                                    else{
                                            newLineToRead(LineToRead,n);
                    }finally{if(in!=null){in.close();}}
            public static double x(int n,int d){return x[n][d];}
            public static double t(int n){return t[n];}
    }Train Class
    import java.io.*;
    import java.util.*;
    public class train{
             private static parameter       par;
             private static data            dat;
             private static model           mod;
             private static response        resp;
             private static void error(String msg){
                    System.out.println(msg);
                    System.exit(1);
             private static void check(){
                if(par.f().length()==0)
                    error("No filename of input vectors!");
                if(par.n()==0)
                    error("No number of input vectors!");
                if(par.d()==0)
                    error("No number of input variables!");
                if(par.d()>par.D())
                    error("Dimension is larger than 100!");
              private static void usage(){
                System.out.println("Non-default parameters==========================");
                System.out.println("-f filename of input vectors");
                System.out.println("-n number of input vectors");
                System.out.println("-d number of input variables");
                System.out.println("Default parameters==========================");
                System.out.println("-R regularisation constant (must be positive and the default value is 0.0)");
                System.out.println("-S epsilon criterion for stopping a learning process (default value is 0.001)");
                System.out.println("-C maximum learning cycle (default value is 10000)");
                      public static void main(String[] argv){
                            if(argv.length==0){
                                    System.out.println("Command line is <Java [-cp path] train parameters>");
                                    usage();
                                    System.exit(1);
                            if(argv.length==1 && argv[0].equals("help")==true){
                                    usage();
                                    System.exit(1);
                            par.nin(0); par.din(0); par.Rin(0.0); par.Cin(10000); par.Sin(0.001);
    for(int i=0;i<argv.length;i++){
                                            if(argv.equals("-f")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.fin(argv[i+1]);
    i++;
    else if(argv[i].equals("-d")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.din(Integer.parseInt(argv[i+1]));
    i++;
    else if(argv[i].equals("-n")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.nin(Integer.parseInt(argv[i+1]));
    i++;
    else if(argv[i].equals("-S")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.Sin(Integer.parseInt(argv[i+1]));
    i++;
    else if(argv[i].equals("-C")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.Cin(Integer.parseInt(argv[i+1]));
    i++;
    else if(argv[i].equals("-R")==true){
    if((i+1)==argv.length)
    error("miss the para");
    par.Rin(Double.parseDouble(argv[i+1]));
    i++;
    else error("Unkown token");
    check();
    try {
    dat.data();
    }catch(IOException e) { System.err.println(e.toString()); }
    try {
    mod.model();
    }catch(IOException e) { System.err.println(e.toString()); }
    try {
    resp.record();
    }catch(IOException e){ System.err.println(e.toString()); }

    String stringToRead=new String();
                    for(int i=0;i<=LineToRead.length();i++){
                            StringTokenizer str = new StringTokenizer (stringToRead,"/t");
                            String[] strtemp = new String[str.countTokens()];
                                    while (str.hasMoreTokens()){
                                    x[n][d++] = Double.parseDouble(str.nextToken());
                                    d++;
                                    System.out.println(x[n][d++]);
                            stringToRead=new String();
                    t[n]=Double.parseDouble(stringToRead);
                    x[n][par.d()]=1.0;
            }Not sure exactly what you are trying to do above but...
    You are setting your String to an empty String with "new String()" and then parsing that empty String. Eventually, you are trying to parse a double from that empty String:
    t[n]=Double.parseDouble(stringToRead);Also, I cannot think of a reason to ever use "new String()" when you could just use:
    String myString = "";

  • Help diagnosing java.lang.IllegalArgumentException

    Hello,
    I have an Eclipse RCP desktop app that I have been working on for the past few months, without incident. In the process of upgrading to the standard com.sleepycat.je version "4.0.92" plugin in Eclipse 3.5, I am getting the exception below. When I try to back up to the older version, it does not matter, the exception below will not go away. The class in question is in the application's codebase, and I see the .class in the bin tree.
    I am using the DPL assistant (latest update from this site).
    In addition, this is not a web app, but rather a desktop app. I have checked the runtime classpath to confirm that the class is indeed there. When I access the same code from a unit test project inside the same workspace, I do not see this exception.
    I am happy to attach/upload anything that would provide any information needed to help me diagnose this problem.
    My class declaration is below the exception.
    java.lang.IllegalArgumentException: Class could not be loaded or is not an entity class: com.patholase.core.entity.Patient
         at com.sleepycat.persist.impl.Store.checkEntityClass(Store.java:1391)
         at com.sleepycat.persist.impl.Store.getPrimaryIndex(Store.java:316)
         at com.sleepycat.persist.EntityStore.getPrimaryIndex(EntityStore.java:308)
         at com.patholase.core.entity.mgr.PatientManager.<init>(PatientManager.java:59)
         at com.patholase.core.entity.mgr.PatientManager.<clinit>(PatientManager.java:27)
         at com.patholase.g3.system.SystemInitializer.initDataStore(SystemInitializer.java:78)
         at com.patholase.g3.system.SystemInitializer.init(SystemInitializer.java:42)
         at com.patholase.g3.product.Application.start(Application.java:25)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:367)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
         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 org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:611)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
    ======= class
    package com.acme.core.entity;
    import static com.sleepycat.persist.model.Relationship.ONE_TO_MANY;
    import static com.sleepycat.persist.model.Relationship.MANY_TO_ONE;
    import static com.sleepycat.persist.model.DeleteAction.NULLIFY;
    import com.sleepycat.persist.model.Entity;
    import com.sleepycat.persist.model.PrimaryKey;
    import com.sleepycat.persist.model.SecondaryKey;
    import java.util.Date;
    import java.util.Set;
    import java.util.HashSet;
    @Entity public class Patient implements java.io.Serializable {
         public static final long serialVersionUID = 1L;
    @PrimaryKey(sequence="ID")
    public long id;
         public String firstName;
         public String lastName;
         public Date DOB;
         public String internalPracticeId;// internal to practice
         // for tree view
         public Object parent;
         public Patient(){
         public Patient(String firstName, String lastName)
         this.firstName = firstName;
         this.lastName = lastName;
         public String getFirstName() {
              return firstName;
         public void setFirstName(String firstName) {
              this.firstName = firstName;
         public String getLastName() {
              return lastName;
         public void setLastName(String lastName) {
              this.lastName = lastName;
         public long getId() {
              return id;
         public void setId(long id) {
              this.id = id;
         public Date getDOB() {
              return DOB;
         public void setDOB(Date dob) {
              DOB = dob;
         public Object getParent() {
              return parent;
         public void setParent(Object parent) {
              this.parent = parent;
         public String getInternalPracticeId() {
              return internalPracticeId;
         public void setInternalPracticeId(String internalPracticeId) {
              this.internalPracticeId = internalPracticeId;
         public String nameTreeString(){
              return " [" + this.internalPracticeId + "] " + lastName + ", "+ firstName;
         public String toString()
         return "[PatientData: id=" + id + " lastName=" + lastName +
                        " firstName=" + firstName + " DOB= " + DOB + ']';
    }

    I think you have interpreted the exception message correctly, but just to be sure, such an exception means that the Patient class cannot be found when getPrimaryIndex() is called. That means that either the class does not have the @Entity annotation, or that there is a classloader/classpath issue. Your code shows that @Entity is there, so it must be a classpath issue.
    Since it seems to have happened around the upgrade, presumably it did something unexpected to your classpath settings. When you say that you have checked your runtime classpath, do you mean your project's build path/library variables? Would printing the program's classpath from within JAVA by displaying the java.class.path system variable give a hint? Perhaps checking to see if you have the expected JE version (system.out.println(com.sleepycat.je.JEVersion.CURRENT_VERSION)) would help debug. The JE version shouldn't be an issue, but if your code sees an unexpected JE version, it might tell you something.
    There is always the last option of creating a new Eclipse workspace and creating a new project, which points at this code. I did that once when an Eclipse project stopped working for unknown reasons (not with this sort of problem) as a debugging step.

  • HELP:  JBO-29000: java.lang.IllegalArgumentException

    em.createQuery("update Planroleinfo o set o.planroleinfo=:planrole where o.planroleinfoid=:planroleid").setParameter("planroleid",planroleid).setParameter("planrole", planrole).executeUpdate();
    Error:
    1.JBO-29000: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
    2.java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
    Help me.

    Did you run out of memory assigned to the VM?
    Maybe you should look at increasing it using the -Xmx option.
    -SteveA

  • Order by missing pls help

    Hi,
    first one is old query ,I re write this query as second query with using WITH clause,Both are returning same rows but Oder is missing,
    Java developers need same order.Could you pls help to get same order for second query as 1st query .And i tried Order by clause for second query all possibilities but i did't get same order as 1st.
    *1st query*
    SELECT   a.test_session_id, c.roster_domain_name, a.sem
      FROM   test_session_detail a, test_session b, test_detail c
    WHERE   a.test_session_id = b.test_session_id
             AND c.test_detail_id = a.test_detail_id
             AND EXISTS
                   (SELECT   td.test_detail_id
                      FROM   test_detail td
                     WHERE       domain_map_id IS NOT NULL
                             AND c.test_detail_id = td.test_detail_id
                             AND domain_map_id IN ('303', '306', '305', '304'))
             AND b.test_session_id IN ('4047','4086','4087','4165','4167','4169')
    AND domain_group_id NOT IN
                      (SELECT   domain_group_id
                         FROM   test_session_detail a, test_session b
                        WHERE       a.test_session_id = b.test_session_id
                                AND a.domain_group_id IS NOT NULL
                                AND b.test_session_status_id = 4
                                AND a.test_session_status_id <> 3
                                AND b.test_session_id IN
                                         ('4047','4086','4087','4165','4167','4169'))     
    sample output of 1st query
    TEST_SESSION_ID     ROSTER_DOMAIN_NAME     SEM
    4047     AR - Integers and Fractions     2
    4047     AR - Integers and Fractions     2
    4047     AR - Decimal Numbers     1
    4047     AR - Decimal Numbers     1
    4047     AR - Percent     1
    4047     AR - Percent     1.52
    4047     AR - Estim, Ordering, Numb. Sense     11.34
    4047     AR - Estim, Ordering, Numb. Sense     11.34
    4047     AR - Word Problems     0.401
    4047     AR - Word Problems     1
    4086     AR - Integers and Fractions     1.5
    4086     AR - Decimal Numbers     1.342
    4086     AR - Percent     1
    4086     AR - Estim, Ordering, Numb. Sense     11.34
    4086     AR - Word Problems     2second query
    WITH exist_1 AS
                   (SELECT   td.test_detail_id
                      FROM   test_detail td
                     WHERE       domain_map_id IS NOT NULL
                   AND domain_map_id IN ('303', '306', '305', '304')),
    domain_group AS
                      (SELECT   domain_group_id
                         FROM   test_session_detail a, test_session b
                        WHERE       a.test_session_id = b.test_session_id
                                AND a.domain_group_id IS NOT NULL
                                AND b.test_session_status_id = 4
                                AND a.test_session_status_id <> 3
                                AND b.test_session_id IN
                                         ('4047','4086','4087','4165','4167','4169'))
    SELECT   a.test_session_id, c.roster_domain_name, a.sem
      FROM   test_session_detail a, test_session b, test_detail c,exist_1 ex, domain_group dg
    WHERE   a.test_session_id = b.test_session_id
             AND c.test_detail_id = a.test_detail_id
             AND dg.domain_group_id(+) =A.DOMAIN_GROUP_ID
             AND dg.domain_group_id IS NULL
             AND ex.test_detail_id = c.test_detail_id
             AND b.test_session_id IN ('4047','4086','4087','4165','4167','4169')                                    
    sample output of second query
    TEST_SESSION_ID     ROSTER_DOMAIN_NAME     SEM
    4086     AR - Word Problems     2
    4086     AR - Estim, Ordering, Numb. Sense     11.34
    4086     AR - Percent     1
    4086     AR - Decimal Numbers     1.342
    4086     AR - Integers and Fractions     1.5
    4047     AR - Word Problems     0.401
    4047     AR - Estim, Ordering, Numb. Sense     11.34
    4047     AR - Percent     1.52
    4047     AR - Decimal Numbers     1
    4047     AR - Integers and Fractions     2
    4047     AR - Word Problems     1
    4047     AR - Estim, Ordering, Numb. Sense     11.34
    4047     AR - Percent     1
    4047     AR - Decimal Numbers     1
    4047     AR - Integers and Fractions     2

    Hi,
    user575115 wrote:
    Hi,
    Even if i give order by a.test_session_id in both queries not ordering properly in second query as 1st query.When you say
    ORDER BY  a.test_session_id    DESCin your main query, then you can be sure that all the rows where a.test_session_id=4086 will be together, before any rows with a.test_session_id=4047. But if you have 5 rows where a.test_session_id=4086, there is no telling what order those 5 rows will be in, and it will not necessarily be the same every time you run the exact same query with the exact same data. You can ORDER BY additional columns or expressions, even columns or expressions that are not in the SELECT clause.
    For example, if you say:ORDER BY  a.test_session_id    DESC
    ,         a.test_detail_idthen you can be sure the rows where a.test_session_id=4086 will be together, before any rows with a.test_session_id=4047, as before, but you can also be sure that the rows where a.test_session_id=4086 will be in order by a.test_detail_id. If that is not unique, keep adding more columns.
    If the ORDER BY clause includes the primary key (or any unique key) from each table, then you can be sure that the results will always be in the same order.

  • HELP:"java.lang.IllegalArgumentException"!!!!!!!!

    Good morning,
    I'm new in java and i'm trying to develop a graphic interface for an agent that i use in the platform Madkit...In brief i manage to see my interface however I have always this message:
    Agent launch exception:java.lang.IllegalArgumentException: adding a window to a container
    adding a window to a container
    java.lang.IllegalArgumentException: adding a window to a container
         at java.awt.Container.addImpl(Container.java:616)
         at java.awt.Container.add(Container.java:518)
         at madkit.platform.desktop.DesktopBooter.makeExternalWindow(DesktopBooter.java:198)
         at madkit.platform.desktop.DesktopAgent.addAgent(DesktopAgent.java:173)
         at madkit.platform.desktop.DesktopBooter.setupGUI(DesktopBooter.java:168)
         at madkit.kernel.Kernel.launchAgent(Kernel.java:260)
         at madkit.kernel.AbstractAgent.launchAgent(AbstractAgent.java:440)
         at madkit.platform.desktop.DesktopAgent.launchAgent(DesktopAgent.java:148)
         at madkit.platform.desktop.JavaAgentNode.execute(JavaAgentNode.java:63)
         at treetools.GenericTree.mousePressed(GenericTree.java:103)
         at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:218)
         at java.awt.Component.processMouseEvent(Component.java:5131)
         at java.awt.Component.processEvent(Component.java:4931)
         at java.awt.Container.processEvent(Container.java:1566)
         at java.awt.Component.dispatchEventImpl(Component.java:3639)
         at java.awt.Container.dispatchEventImpl(Container.java:1623)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3162)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
         at java.awt.Container.dispatchEventImpl(Container.java:1609)
         at java.awt.Window.dispatchEventImpl(Window.java:1590)
         at java.awt.Component.dispatchEvent(Component.java:3480)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)

    i forgot to thank u for answering me
    here there is a simple example of a code which generate the same problem i told u about ....i hope that this gonna be some helpful for u to understand with me the problem:
    import madkit.kernel.*;
    import madkit.lib.messages.StringMessage;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class BosssGUI extends JFrame {
    Bosss ar;
    JPanel jPanel1 = new JPanel();
    JPanel jPanel2 = new JPanel();
    JPanel jPanel3 = new JPanel();
    JButton jButton1 = new JButton();
    JButton jButton2 = new JButton();
    JLabel jLabel1 = new JLabel();
    BorderLayout borderLayout1 = new BorderLayout();
    BorderLayout borderLayout2 = new BorderLayout();
    BorderLayout borderLayout3 = new BorderLayout();
    public BosssGUI(Bosss _ar) {
         ar = _ar;
         enableEvents(AWTEvent.WINDOW_EVENT_MASK);
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    pack();
    /*public void actionPerformed(ActionEvent e) {
              String s = e.getActionCommand();
              if (s.equals ("Valider")) ar.sendValider();
    private void jbInit() throws Exception {
         jPanel1.setLayout(borderLayout1);
    jPanel2.setBackground(Color.lightGray);
    jPanel2.setLayout(borderLayout2);
    jPanel3.setBackground(Color.lightGray);
    jPanel3.setLayout(borderLayout3);
    jButton1.setText("Valider");
    jButton2.setMaximumSize(new Dimension(69, 25));
    jButton2.setMinimumSize(new Dimension(69, 25));
    jButton2.setText("Annuler");
    jLabel1.setFont(new java.awt.Font("DialogInput", 1, 16));
    jLabel1.setForeground(Color.white);
    jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
    jLabel1.setText("Agent Boss");
    borderLayout3.setHgap(6);
    this.getContentPane().add(jPanel1, BorderLayout.CENTER);
    jPanel1.add(jPanel2, BorderLayout.CENTER);
    jPanel2.add(jLabel1, BorderLayout.NORTH);
    jPanel1.add(jPanel3, BorderLayout.SOUTH);
    jPanel3.add(jButton2, BorderLayout.CENTER);
    jPanel3.add(jButton1, BorderLayout.WEST);
    /*protected void processWindowEvent(WindowEvent e) {
    if (e.getID() == WindowEvent.WINDOW_CLOSING) {
    cancel();
    super.processWindowEvent(e);
    /*void sendValider() {
         this.broadcastMessage("Zone1","Agent_Responsable",new StringMessage("Valider"));
    void sendAnnuler() {
         this.broadcastMessage("Zone1","Agent_Responsable",new StringMessage("Annuler"));

  • My video camera button where i can record my own video is missing.pls help!

    On camera button.the video recording is missing.pls help where is it now?

    i just selected files and imported them on to my external hard drive ( few months ago) 7 deleted trash (lack of space)
    A few month ago and lack of space? Then it is unlikely, that data recovery software will be able to restore your movies from  areas on your hard drive, that have not yet been overwritten by new data. It's been too long ago.
    Do you have a Time Machine backup of your iPhoto library? Restoring from the backup would be the safest option.
    when i had time yesterday to go through my drive, i wanted to play some old videos and i realized the video is blank, shows how many minutes long ( 0:45) etc but when i play it its BLACK  blank no audio, no video
    Please clarify. Which export option did you use exactly, if you can remember after the long time? And what was the format of the movies? How did you take them?
    It looks like the videos had been exported as video, in spite of your export setting "jpeg", but the resource fork in the file were missing. This can be caused by moving them to a different drive. If the resource fork is just a link, this can be broken, if a QuickTime movie is moved to a different drive. I have not much hope, but try with one of videos, if it will play, if you move it back to your system drive. If the original movie is still somewhere on your internal drive, that could work.

  • Need help with error java.lang.IllegalArgumentException: timestamp on bar b

    My company uses Java based applications for real time streaming stock market information and I have come across 2 users that are generating the same error:
    Bar.addBar failed adding com.abwg.bar.BasicBar 20071210-08:27:00.000 104.34 104.35 104.25 104.25 950 to com.abwg.bar.BasicBar 20071210-09:30:00.000 104.11 104.38 104.11 104.38 436 :java.lang.IllegalArgumentException: timestamp on bar being combined older than original bar
    I have had no luck trying to determine what the cause of this error is, however both users experience very laggy performance shortly after launching the application. I have not been able to duplicate the problem, and the developers have not been able to provide any response or possible causes yet.
    I'd be very appreciative if anyone could help me make some sense of what this error type might mean. It's got something to do with the computer that the application is being run on. One user is on a Mac 10.3 using J2SE 1.4.2_12 and the other is on Win XP using Java 1.6_3

    Thank you Frank and Carole for your response. The stated issue/error is resolved. It had to do with the upgrade somehow which lead to multiple certs for the same agent. Anyway, I had to delete ADS and all attached Agents,  re-create ADS, re-create all Agents and re-register with the new ADS. I then manually re-registered the Directory Server instances on both the Primary and Secondary Servers with the new ADS. Voila, the DSCC Web console no longer prompts for server credentials.
    But importing the Wild card cert issue still remains. I added the issuing CA chain to the ldap instance CA store and I see the certs listed. But when I try to import the P12 cert/key combo, I get an error which says something like: "The certificate is already in the database". But it is not, verified using certutil.
    Yes internal CA or Self-signed Certs are fine. If I add the internal CA and Root CA to the cert store on my LDAP clients, then I am fine. No SSL errors. But want to avoid using such as we do have quite a few clients which would be connecting to the store. Hence want to use our  enterprise wild card Cert. I am not sure if it is an issue importing a wild card pkcs12 format.
    As mentioned above I did add the CA chain (which issued the wild card) to the actual instance, not the ADS. I can try that. But are you sure we need to add the Root CA to Tomcat ks.
    And while we are at it, the Self-signed certs generated using the Console is only valid for 2 years. Is it possible to change the term ?
    Thanks again.

  • Urgent,pls help! java.lang.NullPointerException

    Dear all,
      I'm doing a web dynpro app for creating the physical inventory doc for WM ( warehse mgmt ).. I haf a input field,storage type which is the be key in by the user.
    When i testing my application,if i type in any 3 digits number tat doesn't belongs to a storage type in R/3,the application seems working fine,it will return me a error msg saying tat the stoage type that i typed in doenst exists in the R/3 system. but if i enter an excat storage type,( for example,002 ) into the intput field,i will get an error msg saying java.lang.NullPointerException . Any gurus haf any idea what is happening? pls help,many thanks.

    Hi Joan,
                   Can u send the stack trace & code line , where u r getting NPE??
    regards
    Sumit

  • My iphone 4 missing idont know  ime number pls help me

    sir i want your help my iphone missing i dontknow ime and serial number pls help me

    Help you what?
    You should be able to find your own serial number.  it will not help you find the iphone.
    iPhone: Locating the serial number, IMEI, ICCID, or MEID

  • Just bought iPad mini 2 last week and FaceTime is missing under settings. Even under restrictions , facetime can't be found. I already reset everything but it's still the same, no facetime. Pls help me

    Just bought iPad mini 2 last week. FaceTime is missing under settings. i can't even find it under restrictions. I have reset it but it's still the same, no facetime. Pls help me...

    FaceTime is not  available on devices purchased or used in certain countries, including Saudi Arabia and the United Arab Emirates. This is by government decree. The FaceTime app can't be downloaded or installed on these iPads.
     Cheers, Tom

  • Minimise,maximise close icons and task .bar are missing.pls help.

    my home page is google.but when i open firefox i dont see it.i cannot see maximise minimise andclose icons too. pls help.

    thanks a lot . hitting f11 solved my problem. now may i know how should i make my google home page?pls help.
    veena

Maybe you are looking for