Wsa can't compile client in webservices_demos

I'm trying the 10g(1003) web service demo: webservices_demos\basic\stateless.
When I try to compile the web service client using either ant or command line, I got the following exception:
Exception during compile, trying again with shorter command line ||CreateProcess: javac -encoding UTF-8 -classpath .....
Does it work on Windows?
Here is my command line:
java -jar MYPATH/wsa.jar -config client-config.xml
Thanks,
Wei

Hi Weisu99,
Can you tell me if you have succeded to bypass this problem? I am also running into it...
Regards,
Romano

Similar Messages

  • Can't compile client with client.jar

    I am unable to compile a static client using the standard client.jar produced by
    Weblogic. I am trying to do this in a minimal DOS environment as shown below:
    set PATH=d:\jdk1.3.1\bin
    set classpath=.;client.jar
    javac OssNodeWeblogicClient.java
    The compiler gives me the following error:
    client.jar(com/nyiso/oss/ossnode/OssNode.java):2:
    class OssNode is public, should be declared in a file named ossNode.java
    (source unavailable)
    1 error
    I was surprised to find two java files in client.jar (OssNode.java and OssNodeFactory.java).
    These files seem to confuse javac. If I remove these files from client.jar, the
    compilation completes without errors and the client runs without any problems.
    Has anyone seen this problem?

    Naresh,
    Just a quick follow-up. I used the -verbose option with
    javac and saw that when my compile failed, and I saw the same
    error message that you saw, javac was pulling the .java file
    from the jar file and trying to compile it. In the example I
    did that worked, the javac compiler was pulling the .class file
    from the jar file instead.
    Basically the javac compiler will fail trying to compile
    the .java file located in a jar file, probably because it can't
    write the .class file to the same (compressed) location. The
    reason that the javac compiler is trying to recompile the .java
    file, even though the .class file is also in the jar file, is
    that it has determined that the .java file is more up to date.
    So two questions for WebLogic:
    1) Why does WebLogic include the .java files in the jar
    file?
    2) Why doesn't the .java file match with the .class file?
    I'll let you know if/when I hear more. Rob
    "Naresh Bhatia" <[email protected]> wrote:
    >
    I am unable to compile a static client using the standard client.jar
    produced by
    Weblogic. I am trying to do this in a minimal DOS environment as shown
    below:
    set PATH=d:\jdk1.3.1\bin
    set classpath=.;client.jar
    javac OssNodeWeblogicClient.java
    The compiler gives me the following error:
    client.jar(com/nyiso/oss/ossnode/OssNode.java):2:
    class OssNode is public, should be declared in a file named ossNode.java
    (source unavailable)
    1 error
    I was surprised to find two java files in client.jar (OssNode.java and
    OssNodeFactory.java).
    These files seem to confuse javac. If I remove these files from client.jar,
    the
    compilation completes without errors and the client runs without any
    problems.
    Has anyone seen this problem?

  • Is there a working soulseek client for snow leopard ?  doesn't crash, pretty functional ?  can't compile nicotine, wont get a dock icon.

    is there a working soulseek client for snow leopard ?  doesn't crash, pretty functional ?  can't compile nicotine, wont get a dock icon.

    Try
    https://discussions.apple.com/community/mac_os/mac_os_x_technologies#/?tagSet=10 48

  • Error while compile client! Please help

    Hi everybody,
    I am new to J2EE. I hav got application server and client in the same computer.
    While compile client application to test the server part followint error is shown:
    28-Feb-2007 10:36:05 com.sun.corba.ee.spi.logging.LogWrapperBase doLog
    INFO: "IOP00710299: (INTERNAL) Successfully created IIOP listener on the specified host/port: all interfaces/3122"
    Caught an exception:
    java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
    java.rmi.RemoteException: Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    at com.sun.corba.ee.impl.javax.rmi.CORBA.Util.mapSystemException(Util.java:161)
    at javax.rmi.CORBA.Util.mapSystemException(Util.java:67)
    at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:142)
    at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
    at bank._CustomerFacadeRemote_DynamicStub.createAccount(_CustomerFacadeRemote_DynamicStub.java)
    at bankaccountclient.Main.insertInfo(Main.java:55)
    at bankaccountclient.Main.<init>(Main.java:38)
    at bankaccountclient.Main.main(Main.java:78)
    Caused by: java.rmi.RemoteException: Exception thrown from bean; nested exception is: com.sun.jdo.api.persistence.support.JDOFatalInternalException: JDO76519: Failed to identify vendor type for the data store.
    NestedException: java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    at com.sun.enterprise.iiop.POAProtocolMgr.mapException(POAProtocolMgr.java:199)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:853)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:160)
    at $Proxy22.createAccount(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:123)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1569)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:951)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:181)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:721)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:469)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1258)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:409)
    BUILD SUCCESSFUL (total time: 4 seconds)
    Please let me know the solution of the error!
    And also if client and application server is in same mechine which interface must be used to talk client with session bean?
    Please help me!

    1) It looks like you have an error in JDBC configuration.
    The main string is "Class name is wrong or classpath is not set for : oracle.jdbc.pool.OracleDataSource
    Check out JDBC connection pools and resources.
    2) If your beans and client there are at the same JVM you can use local interface, else use remote interface.

  • Migrating MS SQL 2005 to Oracle 9i  (sqlserver_utilities can't compile)

    The package sqlserver_utilities can’t compile. (SQLSERVER_UTILITIES Body Compiled (with errors) )
    I am migrating a MS SQL 2005 database to an Oracle 9i database. I have the following installed:
    •     Oracle 9i Enterprise Edition Release 9.2.0.1.0 –Production with the partitioning, Spatial, Olap, and Oracle data mining options.
    •     Internal to Oracle SQL Developer (client-only) 1.5.0.53.04
    •     JTDS JDBC Driver 11.4.4.53.01 oracle.sqldeveloper.thirdparty.drivers.sqlserver
    •     Java(TM) Platform 1.5.0_06
    The MS SQL 2005 Database consists out of multiple tables, views, stored procedures, functions and triggers. I tried quick migrate only to find that the migration failed.
    For a simple migration test I created a test database in MSQL 2005. This database has a simple table with an identity field and a store procedure that does an insert into the table. I followed all the steps to migrate a sql database and everything seemed to work. In Oracle I can now find the migrated table and stored procedure. I also see that the migration tool has created a sequence to deal with the identity field (in combination with a trigger) . when I try to execute the insert stored procedure in Oracle it fails. When I started looking at the log messages I see:
    INSERT INTO "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL" (SOMEOTHERTABELTEXT, SOMEOTHERTABELCODE, VERYBASICTABLEID) VALUES ('sdfgsdfg', 'sdgfsdfg', '1')
    One error saving changes to table "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL":
    Row 3: ORA-04068: existing state of packages has been discarded
    ORA-04063: has errors
    ORA-04063: package body "DBO_STOREDPROCEDURETEST.SQLSERVER_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1", line 19
    ORA-04088: error during execution of trigger 'DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1'
    ORA-06512: at line 1
    INSERT INTO "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL" (SOMEOTHERTABELTEXT, SOMEOTHERTABELCODE, VERYBASICTABLEID) VALUES ('sadf', 'asfd', '1')
    One error saving changes to table "DBO_STOREDPROCEDURETEST"."SOMEOTHERTABEL":
    Row 3: ORA-04068: existing state of packages has been discarded
    ORA-04063: has errors
    ORA-04063: package body "DBO_STOREDPROCEDURETEST.SQLSERVER_UTILITIES" has errors
    ORA-06508: PL/SQL: could not find program unit being called
    ORA-06512: at "DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1", line 19
    ORA-04088: error during execution of trigger 'DBO_STOREDPROCEDURETEST.SOMEOTHERTABEL_SOMEOTHERTABE_1'
    ORA-06512: at line 1
    I then noticed the sqlserver_utilities package compiled with errors. It seems that DBMS_DB_VERSION.VER_LE_9_2 and REGEXP_INSTR doesn’t exists. (see code beneath)
    -- only for 10g
    IF NOT DBMS_DB_VERSION.VER_LE_9_2 THEN
    IF REGEXP_INSTR(temp_exp,
    '^\{d[[:space:]]*''([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2})''\}$') = 1 THEN -- ISO861 format
    -- e.g. {d '2004-05-23' }
    temp_exp := REGEXP_REPLACE(temp_exp,
    '^\{d[[:space:]]*''([[:digit:]]{4})-([[:digit:]]{2})-([[:digit:]]{2})''\}$',
    '\1-\2-\3');
    format_str := 'YYYY-MM-DD';
    Question 1: How do I solve this problem? (the oracle database must be Oracle 9i)
    Question 2: How can I migrate an MS SQL 2005 DB to oracle 9i ? (with views, triggers, stored procedures )
    Message was edited by:
    user640306

    Hi user640306,
    FUNCTION str_to_date(p_date_expr IN VARCHAR2)
    RETURN DATE
    has the 10g regexp code
    IF format_str IS NOT NULL THEN
    RETURN TO_DATE(temp_exp, format_str);
    ELSE
    RETURN TO_DATE(temp_exp, 'DD-MON-YYYY HH24:MI:SS');
    END IF;
    It defaults to 'DD-MON-YYY HH24:MI:SS' I suggest altering the code to suite how you want string to date to work in your locale.
    FUNCTION str_to_date(p_date_expr IN VARCHAR2)
    RETURN DATE
    IS
    temp_val NUMBER;
    temp_exp VARCHAR2(50);
    format_str VARCHAR2(50) := NULL;
    BEGIN
    IF p_date_expr IS NULL THEN
    RETURN NULL;
    END IF;
    temp_exp := TRIM(p_date_expr);
    -- only for 10g code removed this was trying
    -- to work out the date mask using regular expressions.
    IF format_str IS NOT NULL THEN
    RETURN TO_DATE(temp_exp, format_str);
    ELSE
    --If you use this code insert an appropriate data mask,
    --default is  'DD-MON-YYYY HH24:MI:SS'
    RETURN TO_DATE(temp_exp, 'DD-MON-YYYY HH24:MI:SS');
    END IF;
    EXCEPTION
    WHEN OTHERS THEN
    RETURN NULL;
    END str_to_date;
    -Turloch

  • Compiling Clients on HP Server (2)

    I do not have DisplayProject in my supplier's plans.
    Previous Message:--------------------------------------------
    I am trying to compile a GUI-less application on the server and have
    received the following error many times.
    cpp: "ds.h", line 11: error 4036: Can't open include file 'Xm/Xm.h'.
    I did a find on unix and came back with nothing, which explain the error.
    From what I can tell Xm.h is a Motif header file, which leads me to ask thenext two question...
    1. Since my application has no window classes (btw: client and service
    partition are all on the server),
    why does would Forte need to access Motify?
    2. Is Xm.h a file that comes with Forte, part of the X/Motif package,
    Freeware/Shareware, or HP?
    We are running Forte 3.0.E.0 on a HP K420 (9000/800) on HPUX B.10.20
    Thanks in advance.
    Frank Lam
    Fax Cover Page:

    Just an FYI for everyone.
    Thanks Brad.
    Frank
    ---------------------- Forwarded by on 10/03/97 08:53 AM
    [email protected] on 10/02/97 02:21:21 PM
    To: [email protected]
    cc: (bcc: Frank Lam/Consultant/NAC)
    Subject: Re: Compiling Clients on HP Server (2)
    Frank,
    Alas, even if not a single line of code touches the display project,
    you
    must compile and link with the X Windows header files and libs on a UNIX
    machine, because the ErrMgr wants a console window to log errors to.
    At 10:27 AM 10/2/97 -0400, you wrote:
    >
    >
    >
    >
    >
    I do not have DisplayProject in my supplier's plans.
    Previous Message:--------------------------------------------
    I am trying to compile a GUI-less application on the server and have
    received the following error many times.
    cpp: "ds.h", line 11: error 4036: Can't open include file 'Xm/Xm.h'.
    I did a find on unix and came back with nothing, which explain the error.
    From what I can tell Xm.h is a Motif header file, which leads me to ask
    the
    next two question...
    1. Since my application has no window classes (btw: client and service
    partition are all on the server),
    why does would Forte need to access Motify?
    2. Is Xm.h a file that comes with Forte, part of the X/Motif package,
    Freeware/Shareware, or HP?
    We are running Forte 3.0.E.0 on a HP K420 (9000/800) on HPUX B.10.20
    Thanks in advance.
    Frank Lam
    Fax Cover Page:
    Brad Mayer
    Customer Service and Support
    Forte Software
    [email protected]
    Direct: (510) 869-3466
    Fax: (510) 869-2010
    Fax Cover Page:

  • Compiling Clients on HP Server

    I am trying to compile a GUI-less application on the server and have
    received the following error many times.
    cpp: "ds.h", line 11: error 4036: Can't open include file 'Xm/Xm.h'.
    I did a find on unix and came back with nothing, which explain the error.
    From what I can tell Xm.h is a Motif header file, which leads me to ask thenext two question...
    1. Since my application has no window classes (btw: client and service
    partition are all on the server),
    why does would Forte need to access Motify?
    2. Is Xm.h a file that comes with Forte, part of the X/Motif package,
    Freeware/Shareware, or HP?
    We are running Forte 3.0.E.0 on a HP K420 (9000/800) on HPUX B.10.20
    Thanks in advance.
    Frank Lam

    Just an FYI for everyone.
    Thanks Brad.
    Frank
    ---------------------- Forwarded by on 10/03/97 08:53 AM
    [email protected] on 10/02/97 02:21:21 PM
    To: [email protected]
    cc: (bcc: Frank Lam/Consultant/NAC)
    Subject: Re: Compiling Clients on HP Server (2)
    Frank,
    Alas, even if not a single line of code touches the display project,
    you
    must compile and link with the X Windows header files and libs on a UNIX
    machine, because the ErrMgr wants a console window to log errors to.
    At 10:27 AM 10/2/97 -0400, you wrote:
    >
    >
    >
    >
    >
    I do not have DisplayProject in my supplier's plans.
    Previous Message:--------------------------------------------
    I am trying to compile a GUI-less application on the server and have
    received the following error many times.
    cpp: "ds.h", line 11: error 4036: Can't open include file 'Xm/Xm.h'.
    I did a find on unix and came back with nothing, which explain the error.
    From what I can tell Xm.h is a Motif header file, which leads me to ask
    the
    next two question...
    1. Since my application has no window classes (btw: client and service
    partition are all on the server),
    why does would Forte need to access Motify?
    2. Is Xm.h a file that comes with Forte, part of the X/Motif package,
    Freeware/Shareware, or HP?
    We are running Forte 3.0.E.0 on a HP K420 (9000/800) on HPUX B.10.20
    Thanks in advance.
    Frank Lam
    Fax Cover Page:
    Brad Mayer
    Customer Service and Support
    Forte Software
    [email protected]
    Direct: (510) 869-3466
    Fax: (510) 869-2010
    Fax Cover Page:

  • RE: Compiling Clients on HP Server

    Hello,
    You have to verify, if you drag display projet in a server partition.
    You can have this problem whith suppliers projects.
    When a project A who is a supplier for a project B (A -> B), is in your
    partition server, you retrieve A and B in your partition. And also, all
    the supplier of B ... perhaps some display projects ...
    Example :
    A -> B (B Display)
    A -> C (C in server Partition)
    D -> B
    in partition where you put C, you Have A, C and B, D
    You can see the contain of your server partition whith the ShowApp
    command.
    De : Frank Lam[SMTP:[email protected]]
    Date : jeudi 2 octobre 1997 14:25
    A : [email protected]
    Objet : Compiling Clients on HP Server
    I am trying to compile a GUI-less application on the server and have
    received the following error many times.
    cpp: "ds.h", line 11: error 4036: Can't open include file 'Xm/Xm.h'.
    I did a find on unix and came back with nothing, which explain the error.
    From what I can tell Xm.h is a Motif header file, which leads me to ask the
    next two question...
    1. Since my application has no window classes (btw: client and service
    partition are all on the server),
    why does would Forte need to access Motify?
    2. Is Xm.h a file that comes with Forte, part of the X/Motif package,
    Freeware/Shareware, or HP?
    We are running Forte 3.0.E.0 on a HP K420 (9000/800) on HPUX B.10.20
    Thanks in advance.
    Frank Lam

    Just an FYI for everyone.
    Thanks Brad.
    Frank
    ---------------------- Forwarded by on 10/03/97 08:53 AM
    [email protected] on 10/02/97 02:21:21 PM
    To: [email protected]
    cc: (bcc: Frank Lam/Consultant/NAC)
    Subject: Re: Compiling Clients on HP Server (2)
    Frank,
    Alas, even if not a single line of code touches the display project,
    you
    must compile and link with the X Windows header files and libs on a UNIX
    machine, because the ErrMgr wants a console window to log errors to.
    At 10:27 AM 10/2/97 -0400, you wrote:
    >
    >
    >
    >
    >
    I do not have DisplayProject in my supplier's plans.
    Previous Message:--------------------------------------------
    I am trying to compile a GUI-less application on the server and have
    received the following error many times.
    cpp: "ds.h", line 11: error 4036: Can't open include file 'Xm/Xm.h'.
    I did a find on unix and came back with nothing, which explain the error.
    From what I can tell Xm.h is a Motif header file, which leads me to ask
    the
    next two question...
    1. Since my application has no window classes (btw: client and service
    partition are all on the server),
    why does would Forte need to access Motify?
    2. Is Xm.h a file that comes with Forte, part of the X/Motif package,
    Freeware/Shareware, or HP?
    We are running Forte 3.0.E.0 on a HP K420 (9000/800) on HPUX B.10.20
    Thanks in advance.
    Frank Lam
    Fax Cover Page:
    Brad Mayer
    Customer Service and Support
    Forte Software
    [email protected]
    Direct: (510) 869-3466
    Fax: (510) 869-2010
    Fax Cover Page:

  • Ws compile client generates wrong method signature

    Hi,
    the wscompile - option client - always generates the wrong method signature in the class AdresseIF_Stub:
    --> public de.skkoeln.webservice.web.Adresse_Type[]
    I need the signature public de.skkoeln.webservice.web.Adresse[] due to I can't compile the generated classes. This is the signature of the AdresseIF interface.
    What is my fault ?
    Oliver
    Adresse ist the JavaClass which I expect to get as return value. The webservice was successfully installed

    Oliver, is it only wrong in the stub? Does all of the generated code compile? If it all compiles then there is no error. The reason the _Type was added is because they are other WSDL names that have the same name.  Please read section 4.3.12 of the JAXRPC spec for more detail.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How many emails can I have on my account? Can I have client folders to customize for each client?

    How many emails can I have on my account?
    Can I have client folders for each client to access their own survey/forms?
    Can I customize for each client?
    Do we need multiple subcription accounts for this?

    You need to have one FormsCentral subscription per email.
    At this time FormsCentral doesn't support folders.
    Gen

  • Can't compile.

    Hi,
    I was a VB developer and started to develop using java recently.
    I had to do some modification in a existing java project uses tomcat as the web server. I'm using Jbuilder 9 toas my editor. what I'm doing is open files using jbuilder and do the modification. I did couple of changes in my jsp files and those changes are working fine. Recently I had to do a modification in one of .java file. So I opened the file using Jbuilder and did the modification. then when I tried to compile the file It gave a lot of errors. when i run the site without the change i did to .java file it's working perfectly.
    most of the error like.
    <file name>.package <path> doesnot exist at line <line number>, column<column number>
    but those files exist in relavant folders reffered and i think when i'm compiling the .java file it can't refer those files.
    How can I compile my .java file and make the .class file.
    Thanks in advance.

    hi arijit_datta,
    Here I list down couple of errors I got when trying to compile.
    "LeaveApplication.java": package com.HRM.eLeave.dbhandle does not exist at line 3, column 35
    "LeaveApplication.java": package com.HRM.eLeave.util does not exist at line 11, column 1
    "LeaveApplication.java": cannot resolve symbol: class Environment in class com.HRM.eLeave.leaveApplication.LeaveApplication at line 31, column 72
    "LeaveApplication.java": cannot resolve symbol: class Environment in class com.HRM.eLeave.leaveApplication.LeaveApplication at line 397, column 19

  • Hey one question, if i buy an Ipod in Germany, can i get client support in Mexico?

    if i buy an ipod in germany, can i get client support in mexico?

    https://www.apple.com/legal/warranty/

  • (I can't compile it .I don't know how to write constructor in Initial Class

    All class and main program is OK except the inital class.
    Author Class
    class Author {
    private String authorName;
    private Initials inits;
    private int numTitles = 0;
    // PRE True POST Prompts user for details
    // and RETURNS new Author constructed from details
    public Author(BufferedReader in) {
    System.out.print("\nSurname ==> ");
    authorName = Text.ReadString(in);
    inits = new Initials(in);
    numTitles = 0;
    // PRE TRUE
    // POST RETURNS String representation of Author
    public String toString() {
    String result;
    result = "NAME : " + authorName + " " + inits.toString() + "\n";
    result = result + "Number of titles is " + numTitles;
    return(result);
    // PRE TRUE
    // POST Increments number of titles
    public void incTitles() {
    numTitles++;
    Book Class
    public class Book {
    private String title;
    private Author author;
    // PRE TRUE // POST Prompts user for details
    // and RETURNS new Author constructed from details
    public Book(Author author, BufferedReader in) {
    System.out.print("\nTitle ==> ");
    title = Text.ReadString(in);
    this.author = author;
    author.incTitles();
    // PRE TRUE
    // POST RETURNS String representation of Book
    public String toString() {
    String result;
    result = "TITLE : " + title + "\n";
    result = result + "AUTHOR\n" + author.toString() + "\n";
    return(result);
    *****Initial Class (I can't compile it . I don't know how to write constructor
    class Initials
    {   private char[] inits;
         public Initials(BufferedReader in)
         System.out.print("\nInitails Testing ==> ");
         inits = Text.ReadString(in);
         public String toString()
              String result;
              result="Testing";
              return(result);
    Main program
    public class BookMain {
    static private BufferedReader in = new BufferedReader(new                                    InputStreamReader(System.in));
    public static void main(String[] args) {
    Author authorRec1, authorRec2;
    Book bookRec1, bookRec2;
    System.out.println("\n\n****** First author input");
    authorRec1 = new Author(in);
    System.out.println("\n\n****** First author output\n" + authorRec1.toString());
    System.out.println("\n\n****** Second author input");
    authorRec2 = new Author(in);
    System.out.println("\n\n****** Second author output\n" + authorRec2.toString());
         System.out.println("\n\n****** First book input");
    bookRec1 = new Book(authorRec2, in);
    System.out.println("\n\n****** First book output\n" + bookRec1.toString());
    System.out.println("\n\n****** Second book input");
    bookRec2 = new Book(authorRec2, in);
    System.out.println("\n\n****** Second book output\n" + bookRec2.toString());
    System.out.println("\n\n****** First book output\n" + bookRec1.toString());

    Change this
    class Initials {
    private char[] inits;
    to this
    class Initials {
    private String inits;
    import java.io.*;
    public class BookTest {
      static private BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      public static void main(String[] args) {
        Author authorRec1, authorRec2;
        Book bookRec1, bookRec2;
        System.out.println("\n\n****** First author input");
        authorRec1 = new Author(in);
        System.out.println("\n\n****** First author output\n" + authorRec1.toString());
        System.out.println("\n\n****** Second author input");
        authorRec2 = new Author(in);
        System.out.println("\n\n****** Second author output\n" + authorRec2.toString());
        System.out.println("\n\n****** First book input");
        bookRec1 = new Book(authorRec2, in);
        System.out.println("\n\n****** First book output\n" + bookRec1.toString());
        System.out.println("\n\n****** Second book input");
        bookRec2 = new Book(authorRec2, in);
        System.out.println("\n\n****** Second book output\n" + bookRec2.toString());
        System.out.println("\n\n****** First book output\n" + bookRec1.toString());
    class Author {
      private String authorName;
      private Initials inits;
      private int numTitles = 0;
      // PRE True POST Prompts user for details
      // and RETURNS new Author constructed from details
      public Author(BufferedReader in) {
        System.out.print("\nSurname ==> ");
        authorName = Text.ReadString(in);
        inits = new Initials(in);
        numTitles = 0;
      // PRE TRUE
      // POST RETURNS String representation of Author
      public String toString() {
        String result;
        result = "NAME : " + authorName + " " + inits.toString() + "\n";
        result = result + "Number of titles is " + numTitles;
        return(result);
      // PRE TRUE
      // POST Increments number of titles
      public void incTitles() {
        numTitles++;
    class Book {
      private String title;
      private Author author;
      // PRE TRUE // POST Prompts user for details
      // and RETURNS new Author constructed from details
      public Book(Author author, BufferedReader in) {
        System.out.print("\nTitle ==> ");
        title = Text.ReadString(in);
        this.author = author;
        author.incTitles();
      // PRE TRUE
      // POST RETURNS String representation of Book
      public String toString() {
        String result;
        result = "TITLE : " + title + "\n";
        result = result + "AUTHOR\n" + author.toString() + "\n";
        return(result);
    class Initials {
      private String inits;
      public Initials(BufferedReader in) {
        System.out.print("\nInitails Testing ==> ");
        inits = Text.ReadString(in);
      public String toString() {
        String result;
        result = inits;
        return(result);
    class Text {
      static String ReadString(BufferedReader in) {
        String text = "";
        try {
          text = in.readLine();
        catch (IOException e) {
          System.out.println(e.getMessage());
          System.exit(0);
        return text;
    }

  • (short)a=1 can't compiled??

    Deal all:
    I am new to java.
    If i type as below:
    short a=1;b=2; ->can compiled
    short a,b; a=1;b=2 -> can't compiled
    short a,b;a=(short)(1);->can't compiled
    can anyboby tell me Why?
    Thanks!!!

    hi,
    i was able to compile the below statements below with jdk 1.3.
    short a=1,b=2; //->can compiled
    short a,b; a=1;b=2;// -> can't compiled
    short a,b;a=(short)(1);//->can't compiled
    if these does not work with ur version, please do send us ur error.
    regards,
    shiva

  • How can I get Client IP Address in oracle?senthil

    How can I get Client IP Address in oracle?senthil

    Hi,
    Following query can help you to get the Client IP Address.
    select sys_context('userenv','ip_address') from dual;
    Thanks,

Maybe you are looking for

  • LR1.3 sRAW and Photo Downloader not working?

    Hi, Anyone else having problems with 40D sRAW files? When I import them they have a green cast - even converting to greyscale still leaves them with a green cast. In fact the grey channel in the histrogram display is suddenly green as well. Also, Pho

  • How to add a report template to the template wizard?

    Dear All, I built a new report in BPC, and want to use it as the report template. I did following steps: 1)change the "templaversion" in application set parameters from 15 to 16 (i.e, add a template) 2)save my report to etools--save dynamic templats;

  • Print Negative

    I have a pdf file of a logo. I need to print a negative. Under Print Menu the mode is composite, and image is positive. It will not allow me to change these settings. I tried to invert colors but it will not allow me to either. It allows me to print

  • CSV Lookup to validate the .TXT file

    Hi All, I am trying to validate the input file's A.txt customerID to other existing B.txt files CutomerID. Once if the input file matches the target files customerID then I am going write this output file as C.txt file. Hope we can do this with the h

  • Standard Webi  Report Templete ?

    Hi all, i was asked to prepare some naming convnetions and standard templete for webi reports . can any one please share your ideas and suggestions . what exactly  a WEBI report contains ? how to insert a company logo to a WEBI report ? i have a logo