Error trying to use TreeSet

I get an odd error when trying to use TreeSet on my computer... even in code that I know compiles on other computers...
C:\Program Files\JavaCompiler\Programs\Exam2\Prob03>javac Prob03.java
.\Prob03MyClass.java:1: cannot resolve symbol
symbol : class TreeSet
location: class Prob03MyClass
class Prob03MyClass extends TreeSet
^
1 error
I'm figuring that it doesn't know where to find TreeSet... even though I put in the command
import java.util.*;
So... anyone know what I can do to fix this?

nevermind... I had the import java.util.* only in the driver program, and not in the class...
When I put it in the class, it worked... kinda...

Similar Messages

  • I get an error trying to use Apple Address Book with Word Mail merge - says it cannot open data file?

    I am running MS Word 2011, latest Mac OS, and trying to use the Mail Merge option with the Apple Address Book as the data source.
    However whenever I select the Apple Address Book as the data source, I get the error "Word was unable to open the data source".
    Anybody got any idea why?
    Thanks for your help

    I am guessing you could have solved this little problem already but perhaps someone else may benefit:
    I struggled with the same problem - not being able to use Mac Address Book (i.e. Contacts) with Word 2013 for mac mail-merge (on Mountain Lion and, now, on Mavericks) - with the exact same error message reported by Klausngigtoas above .
    So I read lots of techie stuff on forums which passed a nice few hours but didn't help. Finally, with slumped, defeated expression, I gave up.
    But I just now (such is life) I accidentally stumbled upon the simple solution:
    1. Enter System Preferences and click Security & Privacy.
    2. Select the Privacy tab and then on Contacts on the left hand panel.
    3. In the right hand panel ("Allow the apps below to access your contacts") just tick the Contacts box.
    4. And Voilà! - at least it worked for me - hope it does for you.

  • Error trying to use OLTCommandLine.jar

    I have an error trying to run an OLT Scenario from command line using OLTCommandLine.jar as described in Chapter 4.3.6 of the OLT Load Testing Users Guide. (OATS 12.1) If anyone has input please let me know.
    I am attempting to invoke OLTCommandLine.jar on the OATS Server with the following command line:
    C:\OracleATS\jdk\bin\java.exe -jar C:\OracleATS\lib\OLTCommandLine.jar -run -scenarioFile="C:\OracleATS\OFT\Login_LOAD\Login_LOAD.scn" -session="Login_LOAD_CMD_test" -OLTServer=localhost:8088 -user=Administrator -password=XXXXX -log C:\Temp\myOLTlog.log
    The error message is as follows:
    Error initializing controller connection to t3://10.0.1.13:8088/Administrator\n\n(message id=ctl.initError)
    Please make sure the OLT server is running!

    I was able to resolve this issue.
    The error message indicated a problem using the t3 protocol. The local weblogic install did not have it enabled. I was able to login to the weblogic console (http://localhost:8088/console) as user "oats" with the install password. Then I figured out that I needed to click the "Enable Tunneling" checkbox. After that the OLTCommandLine.jar started working as desired.

  • Getting Error Trying to Use addField Method

    I am trying to use automation to add a field to a document but get an error stating Invalid Argument Type..
    Here is part of my code:
    avDocMM = 
    CreateObject("AcroExch.PDDoc") 
    If File(whatDrawingNumber) = .T. Then   
    ispdffilee = avDocMM.Open(whatDrawingNumber)  
    If ispdffilee = .T. 
    jse3MM = avDocMM.GetJSObject
    *dfrnopMM = jse3MM.numPages 
    STORE 50 TO array1(1)  
    STORE 20 TO array1(2)  
    STORE 450 TO array1(3)  
    STORE 0 TO array1(4) 
    jse4MM = jse3MM.addField("test","text",0,array1)
    avDocMM. 
    Close()

    Hi Marco,
    I guess I need to install XML functions in my DB. Do you think anything else might be the problem?
    Here is the table description:
    SQL> describe resultstable;
    Name Null? Type
    TAXON NUMBER(38)
    GENOMEID VARCHAR2(30)
    REFSEQNA VARCHAR2(40)
    CONTIGNAME VARCHAR2(40)
    LOCATIONID CHAR(3)
    SEQUENCEVERSIONID NUMBER(38)
    EXTFEATUREID VARCHAR2(11)
    GENEID NUMBER(38)
    LEFTEND FLOAT(126)
    RIGHTEND FLOAT(126)
    STRAND VARCHAR2(30)

  • Error trying to use VHV or diff

    Hi,
    I've installed SCM 9.0.4 on a 9i database. I'm trying to use it but I get the following error while trying to use RON's diff tool or VHV:
    Message
    CDR-03120: Internal Error - Problem making a repository connection
    Cause
    An internal Diff or Merge component has been
    unable to make a repository connection.
    How can I get this to work?
    thanks
    Lapolla

    Lapolla,
    This is typically a problem with the entry in tnsnames.ora for the database instance. Can you check that it looks similar to:
    UKP1111.ORACLE.COM =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = TCP)(HOST = ukp1111)(PORT = 1521))
    (CONNECT_DATA =
    (SID = ORCL)
    The connection used by the RON is vmia sqlnet, the VHV and Diff/Merge use a jdbc connection, thus your tns entries may work for the RON and not the java tools.
    David

  • Error trying to use jsp:useBean

              I am trying to use a class in a JSP that is basically a connection to an
              Oracle database. It works fine when used from a servlet. However, when I try
              to instantiate it from a JPS page, I get errors. Here is the snippet from
              the JSP page:
              <%@ page import="engr.projmgmt.*" %>
              <jsp:useBean id="OB" class="engr.projmgmt.OracleBroker" />
              The class is here:
              /usr/local/apache/servlets/engr/projmgmt/OracleBroker.class
              The weblogic class path contains /usr/local/apache/servlets.
              I get the following error in the weblogic log:
              Mon Aug 13 17:39:15 PDT 2001:<E> <ServletContext-General> Servlet failed
              with Exception
              java.lang.ClassNotFoundException: class engr.projmgmt.OracleBroker :
              java.lang.IllegalAccessException: engr/projmgmt/OracleBroker
              at java.beans.Beans.instantiate(Beans.java:215)
              at java.beans.Beans.instantiate(Beans.java:55)
              at jsp_servlet._PM._index._jspService(_index.java:90)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :120)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:915)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:879)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:269)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              --------------- nested within: ------------------
              weblogic.utils.NestedRuntimeException: cannot instantiate
              'engr.projmgmt.OracleBroker' - with nested exception:
              [java.lang.ClassNotFoundException: class engr.projmgmt.OracleBroker :
              java.lang.IllegalAccessException: engr/projmgmt/OracleBroker]
              at jsp_servlet._PM._index._jspService(_index.java:92)
              at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :120)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:915)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:879)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:269)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
              at
              weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              Anyone have anyideas?
              Thanks,
              CC
              

    I appears that your default constructor is not publicly accessible from the
              exception.
              Sam
              "Chuck Carson" <[email protected]> wrote in message
              news:[email protected]...
              >
              > I am trying to use a class in a JSP that is basically a connection to an
              > Oracle database. It works fine when used from a servlet. However, when I
              try
              > to instantiate it from a JPS page, I get errors. Here is the snippet from
              > the JSP page:
              >
              > <%@ page import="engr.projmgmt.*" %>
              > <jsp:useBean id="OB" class="engr.projmgmt.OracleBroker" />
              >
              > The class is here:
              > /usr/local/apache/servlets/engr/projmgmt/OracleBroker.class
              > The weblogic class path contains /usr/local/apache/servlets.
              >
              > I get the following error in the weblogic log:
              >
              > Mon Aug 13 17:39:15 PDT 2001:<E> <ServletContext-General> Servlet failed
              > with Exception
              > java.lang.ClassNotFoundException: class engr.projmgmt.OracleBroker :
              > java.lang.IllegalAccessException: engr/projmgmt/OracleBroker
              > at java.beans.Beans.instantiate(Beans.java:215)
              > at java.beans.Beans.instantiate(Beans.java:55)
              > at jsp_servlet._PM._index._jspService(_index.java:90)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > :120)
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > l.java:915)
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > l.java:879)
              > at
              >
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              > Manager.java:269)
              > at
              >
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
              > at
              > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              > --------------- nested within: ------------------
              > weblogic.utils.NestedRuntimeException: cannot instantiate
              > 'engr.projmgmt.OracleBroker' - with nested exception:
              > [java.lang.ClassNotFoundException: class engr.projmgmt.OracleBroker :
              > java.lang.IllegalAccessException: engr/projmgmt/OracleBroker]
              > at jsp_servlet._PM._index._jspService(_index.java:92)
              > at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
              > at
              >
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              > :120)
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > l.java:915)
              > at
              >
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              > l.java:879)
              > at
              >
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              > Manager.java:269)
              > at
              >
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:365)
              > at
              > weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:253)
              > at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:129)
              >
              >
              > Anyone have anyideas?
              >
              > Thanks,
              > CC
              >
              >
              

  • Error trying to use OWB 10.2

    Hi:
    Could anybody help? I am using windows XP with service pack 2:
    OWB client version 10.2.0.1.31
    OWB repository 10.2.1.0
    ORACLE DATABASE 10.1
    I just installed OWB 10.2 in windows XP. I created repositories and I could open the design center, However trying to open a mapping or create a table, view etc. I get the following error:
    API5072: Internal Error: Null message for exception. Please contact Oracle Support with the stack trace and details on how to reproduce it.
    oracle.wh.util.Assert: API5072: Internal Error: Null message for exception. Please contact Oracle Support with the stack trace and details on how to reproduce it.
         at oracle.wh.util.Assert.owbAssert(Assert.java:51)
         at oracle.wh.ui.jcommon.OutputConfigure.showMsg(OutputConfigure.java:216)
         at oracle.wh.ui.common.CommonUtils.error(CommonUtils.java:370)
         at oracle.wh.ui.console.commands.TreeMenuHandler.error(TreeMenuHandler.java:132)
         at oracle.wh.ui.console.commands.TreeMenuHandler.error(TreeMenuHandler.java:121)
         at oracle.wh.ui.console.commands.CreateCmd.performAction(CreateCmd.java:86)
         at oracle.wh.ui.console.commands.TreeMenuHandler$1.run(TreeMenuHandler.java:188)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
    Could anybody help? I am using windows XP with service pack 2:
    OWB client version 10.2.0.1.31
    OWB repository 10.2.1.0

    SolutionTo implement the solution, please execute the following steps:
    1. Log into OWB Design Center.
    2. Navigate to Tools -> Preferences.
    3. For Appearance, set locale to a value (use English US ).
    4. Restart OWB Design Center.
    5. Retest the issue.
    8. Migrate the solution as appropriate to other environments.

  • Output error trying to use Classes

    I downloaded and installed the classes that come with "Flade"
    I am trying to learn how to use the classes that comes with it.
    In my actionscript I have:
    import org.cove.flade.util.Vector;
    import org.cove.flade.util.Line;
    var p1:Vector = 5;
    var p2:Vector = 40;
    var x:Number = 10;
    var y:Number = 40;
    var MyLine:org.cove.flade.util.Line = new
    org.cove.flade.util.Line(p1:Vector, p2:Vector);
    var MyVector:org.cove.flade.util.Line = new
    org.cove.flade.util.Vector(x:Number, y:Number);
    and the error that I get is:
    **Error** Scene=Scene 1, layer=Layer 1, frame=1:Line 9: ')'
    or ',' expected
    var MyLine:org.cove.flade.util.Line = new
    org.cove.flade.util.Line(p1:Vector, p2:Vector);
    Total ActionScript Errors: 1 Reported Errors: 1
    What am I missing here? And am I going about this the right
    way? Thanks for any help in advance.

    Hi Marco,
    I guess I need to install XML functions in my DB. Do you think anything else might be the problem?
    Here is the table description:
    SQL> describe resultstable;
    Name Null? Type
    TAXON NUMBER(38)
    GENOMEID VARCHAR2(30)
    REFSEQNA VARCHAR2(40)
    CONTIGNAME VARCHAR2(40)
    LOCATIONID CHAR(3)
    SEQUENCEVERSIONID NUMBER(38)
    EXTFEATUREID VARCHAR2(11)
    GENEID NUMBER(38)
    LEFTEND FLOAT(126)
    RIGHTEND FLOAT(126)
    STRAND VARCHAR2(30)

  • Error trying to use load-externs in a module project

    Hi:
    I am trying to implement modules in my application. I have
    read the documentation and learned that if i want to reduce the
    size of my modules i have to use the link-report and load-externs
    compiler options (the first in the main project and the second in
    the modules)
    This is the line that i use in the "Additional compiler
    arguments" section of the the main project:
    -locale en_US -use-network=true -optimize=true
    -link-report=C:\report.xml
    The file is created in the specified location but......
    when i try to use report.xml in the load-externs argument of
    the module project i get the next error:
    "could not open 'C:\report.xml' while processing
    configuration variable 'load-externs'
    The line tha i use is this:
    -locale en_US -use-network=true -optimize=true
    -load-externs=C:\report.xml
    I am using Flex Builder 2.01
    I'll appreciate your help
    Thanks
    GBY

    Hi
    This answer is 3 1/2 years too late, but someone else might find it helpful.
    Saw your question and was looking for the same answer. Eventually translated this spanish site to english.
    Solution: you need to copy the linkReport.xml to the root folder of your module project i.e. the same directory as
    your [ModuleName].mxml file.
    Good luck
    Brian

  • Read-only errors trying to use MDS in JDeveloper 11.1.1.4.0

    JDeveloper 11.1.1.4.0
    I'm trying to set up MDS in our application using the usual docs, cue cards and blog posts.
    We use our own LDAP-based authentication, which we'll set up later. In the meantime, I have a custom UserCC class which just returns one user name.
    In the adf-config.xml setup, in "View", I set to track column.
    In the code I have println statements for each method, my UserCC constructor is called.
    When I rearrange the order of columns, I get the following error messages in my console:
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.
    <DocumentUtils> <getDocument> ADFv: Trouble getting the mutable document from MDS.No other messages or indicators that other forum posts mention, nothing with any more details.
    Here is my UserCC code, built as part of my Models project, put in ...\jdeveloper\jdev\lib\patches
    package oracle.documaker.idocumaker.model;
    import oracle.mds.core.MetadataObject;
    import oracle.mds.core.RestrictedSession;
    import oracle.mds.cust.CacheHint;
    import oracle.mds.cust.CustomizationClass;
    public class UserCC extends CustomizationClass {
        private static final String DEFAULT_LAYER_NAME = "user";
        private String mLayerName = "user";
        public UserCC() {
            System.out.println("XXX In the UserCC Constructor");
        public CacheHint getCacheHint() {
            System.out.println("XXX In the UserCC getCacheHint");
            return CacheHint.USER;
        public String getName() {
            System.out.println("XXX In the UserCC getName");
            return mLayerName;
        public String[] getValue(RestrictedSession sess, MetadataObject mo) {
            System.out.println("XXX I was asked about the user name");
            return (new String[] { "alanabrams" });
    }

    We've always had security on, the only thing that changed was my understanding of how we were doing security.
    Before, I had written a custom UserCC that always returned the same name, after I used the standard UserCC. I had the same results both time.
    The cause of my error message is "MDS repository may be configured incorrectly", which I kind of figured, but there's nothing to point me to diagnose how it is incorrectly configured or how to fix it.

  • INS0009 error trying to use OWB Browser Assistant

    Hi!
    I'm trying to integrate a 9iAS installation on the same machine as an OWB installation using the Browser Assistant (I'm following the documentation instructions), but I'm having a couple of problems getting it working.
    When I get to the sysdba information page and click 'Next', I eventually get a INS0009 can't connect to the database error. The SID of the 9iAS installation is the default, iasdb, and I can tnsping that, so it appears to be working. (Also shows up under lsnrctl stat). I should note that I have combined the 9iAS - Infrastructure and 9i DB TNSListeners into one, and this appears to work fine.
    I can login to the IASDB database with no problems, as well.
    This shows up in listener.log when I try and connect, but nothing happens:
    16-FEB-2004 08:51:14 * (CONNECT_DATA=(SERVICE_NAME=iasdb)(CID=(PROGRAM=D:\oracle\OWB_DT\jdk\jre\bin\javaw.exe)(HOST=JHIGGS)(USER=jhiggs))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3660)) * establish * iasdb * 0
    16-FEB-2004 08:51:14 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=iasdb)) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3663)) * establish * iasdb * 0
    16-FEB-2004 08:51:14 * (CONNECT_DATA=(sid=iasdb)(CID=(PROGRAM=D:\oracle\OWB_DT\jdk\jre\bin\javaw.exe)(HOST=JHIGGS)(USER=jhiggs))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3666)) * establish * iasdb * 0
    16-FEB-2004 08:51:14 * (CONNECT_DATA=(SID=iasdb)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3669)) * establish * iasdb * 0
    16-FEB-2004 08:51:14 * (CONNECT_DATA=(SERVICE_NAME=iasdb)(CID=(PROGRAM=D:\oracle\OWB_DT\jdk\jre\bin\javaw.exe)(HOST=JHIGGS)(USER=jhiggs))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3672)) * establish * iasdb * 0
    16-FEB-2004 08:51:14 * (CONNECT_DATA=(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))(SERVICE_NAME=iasdb)) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3675)) * establish * iasdb * 0
    16-FEB-2004 08:51:14 * (CONNECT_DATA=(sid=iasdb)(CID=(PROGRAM=D:\oracle\OWB_DT\jdk\jre\bin\javaw.exe)(HOST=JHIGGS)(USER=jhiggs))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3678)) * establish * iasdb * 0
    16-FEB-2004 08:51:14 * (CONNECT_DATA=(SID=iasdb)(CID=(PROGRAM=)(HOST=__jdbc__)(USER=))) * (ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=3681)) * establish * iasdb * 0
    And this has shown up in the past (but not in the most recent attempt) in OraDim.log:
    Fri Feb 13 16:04:51 2004
    ORA-03113: end-of-file on communication channel
    Can anyone help?
    Thanks a lot!

    Whoops. Problem fixed. I tried using the same user ("sys") and password in EM Console, and it didn't work. Tried system/manager and it worked in both.
    Problem solved!

  • Errors trying to use time machine backup

    I continue to have failures to use my Time Capsule HD (1 TB) as a backup disk; cites error 60.
    I've tried various encryption/login/security measures and it fails with the same response. There must be something more basic that I am overlooking?
    Any clues or breadcrumbs would be most appreciated.
    -iRonic

    If you are running the latest firmware, let me suggest you go back to 7.5.2 .. on a Gen 3 you might find it much more reliable.
    Hold down the option key when you select firmware update and the full selection forward and back should present. Choose the 7.5 version.
    Make sure you use names that are SMB compatible.. short, no spaces, pure alphanumeric.
    For TC network name, Wireless and Hard disk name.

  • Error trying to use multiple lines from a PO in a Goods Receipt PO

    I get the following error when I try to add 2 lines from a PO to a single Goods Receipt PO (code below):
    -5002 One of the base documents has already been closed  [PDN1.BaseEntry][line: 1]
    I can create the Goods Receipt PO if I use 1 line or lines from multiple PO's???
                   SAPbobsCOM.Documents poReceipt2 = (SAPbobsCOM.Documents)_diApi.SboCompany.GetBusinessObject(BoObjectTypes.oPurchaseDeliveryNotes);
                   poReceipt2.CardCode = "ALL";
                   poReceipt2.DocDueDate = DateTime.Now;
                   poReceipt2.Lines.Quantity = 5;
                   poReceipt2.Lines.ItemCode = "HAMSHA";
                   poReceipt2.Lines.BaseEntry = 11;
                   poReceipt2.Lines.BaseLine = 0;
                   poReceipt2.Lines.BaseType = 22;
                   poReceipt2.Lines.Add();
                   poReceipt2.Lines.Quantity = 5;
                   poReceipt2.Lines.ItemCode = "LAMFIL";
                   poReceipt2.Lines.BaseEntry = 11;
                   poReceipt2.Lines.BaseLine = 1;
                   poReceipt2.Lines.BaseType = 22;
                   poReceipt2.Add();
    Any help is appreciated!
    Thanks,
    Daniel

    Hi Louis, thanks for the post...
    However the PO document that I am refercing definately has both lines open, if I use 1 of those lines it works fine, but the error occurs if I use 2 lines from the same PO.  I am also definately using the docentry not the docnum for the GetByKey() method.
    Can anyone run the same basic logic through the DI API?  That is create a PO with 2 lines on it, then run the code as above to make a Goods Receipt PO and reference the 2 lines from the 1 PO document?  (It works if I add multiple lines referncing lines from multiple PO docs??)
    Thanks,
    Dan
    Message was edited by: Daniel Archer

  • Error: Trying to use Photoshop automation

    I am running Windows 7, 32-bit.
    I tried to add a reference from Visual Studio but Photoshop was not visible. So I decided to try to register the type library manually.
    I am trying to automate photoshop but I cannot get the type library registered.
    The command from the photoshop directory is:
    regsvr32 Typelibrary.tlb
    There error I am getting is:
    The module typelibrary.tlb may not be compatile with the version of windows tha tyou are running. check if the module is compatibe with an x86 (32 bit) or x64 (64-bit) version of regsvr32.exe
    Any ideas?

    nevermind... I had the import java.util.* only in the driver program, and not in the class...
    When I put it in the class, it worked... kinda...

  • I get the following error trying to use buildtms with Tux 6.5 and Oracle 8.1.6

    I do not get this error using tuxedo 7.1.
    /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (BS-30e9.o)
    was detected. The linked output may not run on a PA 1.x system.
    I received the same error when using the buildserver command with one of the -f
    files built as a .o file using the CC compiler.

    If you run buildclient or buildserver -v, you will see the flags passed
    to the compiler. TUXEDO 7 passes +DA1.1, which is going to build a
    binary that can run on older HP systems, but not perform as well. If you
    want to use the more modern instruction set, you can pass "-f+DA2.0" on
    the build line, which will override the DA1.1.
    In general, the TUXEDO build utilities are fairly conservative. If you
    notice, they do not even pass the optimizer flag, -O, to the compiler.
    We feel that you should be building your .o files yourself, using the
    appropriate compiler options, and then use our build commands to do the
    final linking.
    And if you are running on HP, you really need to learn about the
    different machine architectures and compiler options. Start with "man
    cc".
         Scott Orshan
    Peter Martin wrote:
    >
    I do not get this error using tuxedo 7.1.
    /usr/ccs/bin/ld: (Warning) At least one PA 2.0 object file (BS-30e9.o)
    was detected. The linked output may not run on a PA 1.x system.
    I received the same error when using the buildserver command with one of the -f
    files built as a .o file using the CC compiler.

Maybe you are looking for

  • Error in loading blolb data

    hi, i have a form page where i am hard coding data into a table with the help of a process. I have a blob column in the table and i want to insert the data in to the column of blol.i am not able to do so. my table has following columns ID     NUMBER 

  • Pages.   Is there a better document management App?

    I have had Pages for a few months.  I downloaded it, knowing it had some editing drawbacks.  But one major irritant is that documents copied to Pages drops text - even whole sections of a WORD document.  Of course, it messes up text in tables but I d

  • How to compose a text file and print??

    I have a text file,i want to print it. For example: &nbsp&nbsp &nbsp &nbsp &nbsp Holle World!(Font:Bold,size=10) Holle world Holle world Holle world Holle world. Holle world Holle world &nbsp &nbsp &nbsp &nbsp &nbsp Holle world Holle worldHolle world

  • PhotoBooth Questions

    I have not had much success with taking photos in Photo Booth with the new backgrounds without having portions of the person in the photo missing in the photo. Is there a way this should be done? I get out of the frame of the photo when it asks me to

  • No network adapter found on install

    I have just purchased a Linksys WRT160N router and the first task of loading the program on my main computer has already hit a snag. It says it cannot find a network adapter on my computer and that I need to enable it. My adapter is functioning as I'