Creating joins correctly

I have been asked to create a sales opportunity report which returns a selection of fields from OOPR, OPR1, OPR3, OPR4 and OCPR.  For starters I have the following:
SELECT DISTINCT T0.OpprId, T0.CardCode, T0.CardName, T0.OpenDate, T0.PredDate, T2.ClosePrcnt, T4.ThreatLevl, T4.Memo, T4.Won, T1.U_Country,  T1.U_Source, T3.Descript, T5.Name
FROM OOPR  T0 INNER JOIN OCPR  T1 ON T0.CprCode = T1.CntctCode INNER JOIN OPR1  T2 ON T0.OpprId = T2.OpprId INNER JOIN OOST  T3 ON T0.StepLast = T3.Num, OPR3  T4 INNER JOIN OCMT  T5 ON T4.CompetId = T5.CompetId
This does not include OPR4 yet.  My first problem is that it returns multiple lines for each opportunity based around permutations of stage and competitor.  I have tried INNER, LEFT and RIGHT joins but have the same problem.  I'm obviously missing something fairly fundamental.  If I then try to JOIN in OPR4 I lock up the system until it brings back 105,000 result!  We currently have a total of 360 opportunities!
Thanks for your time

I have now seen one area which would cause this.  Step_Id shows the stages of the opportunity there are therefore usually more than one stage.  This query returns all stages.  Any thoughts on how we return just the last one.

Similar Messages

  • Is there a way to create a corrective work order off a prevenative workore

    Hello,,
    Is there a way to create a corrective work order off a preventive/inspection work order. Or is there a way to indicate that a corrective work order was created from preventive/inspection work order. In addition is there a way to report these changes.
    Thanks.

    Yes, first take your PM WO#, and go to Transaction IW36<p>
    <p>
    This process is how to create a "sub-order"<p>
    <p>you will be asked to enter in the "superior order", in this case it will be the PM Work Order you want to be the "parent"

  • Hi all! What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    What is the best way to create the correct space for baseball jersey names and numbers? along with making sure they are the right size for large printing.

    Buying more hard drive space is a very valid option, here.  Editing takes up lots of room, you should never discount the idea of adding more when you need it.
    Another possibility is exporting to MXF OP1a using the AVC-I codec.  It's not lossless, but it is Master quality.  Plus the file size is a LOT smaller, so it may suit your needs.

  • Create AR Correction Invoice

    Hi All,
      I need create AR Correction Invoice link to AR Invoice, abt system display error "Invalid structure document"
    oDoc = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oInvoice)
    oDoc.GetByKey(XXX)
    _oOCSI = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oCorrectionInvoice)
    If _oRecSet.RecordCount <> 0 Then
       _oOCSI.CardCode = oDoc.CardCode
       _oOCSI.DocDate = oDoc.DocDate
      _oOCSI.DocDueDate = oDoc.DocDate
      oOCSI.DocType = SAPbobsCOM.BoDocumentTypes.dDocumentService
      For i = 1 To _oRecSet.RecordCount
          If i > 1 Then
            _oOCSI.Lines.Add()
          End If
          oDoc.Lines.SetCurrentLine(i - 1)
          _oOCSI.Lines.BaseEntry = oDoc.DocEntry
          _oOCSI.Lines.BaseLine = oDoc.Lines.LineNum
          _oOCSI.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oInvoices
          oOCSI.Lines.CorrectionInvoiceItem = SAPbobsCOM.BoCorInvItemStatus.ciisWas
          _oOCSI.Lines.Add()
           _oOCSI.Lines.BaseEntry = oDoc.DocEntry
           _oOCSI.Lines.BaseLine = oDoc.Lines.LineNum
           _oOCSI.Lines.BaseType = SAPbobsCOM.BoObjectTypes.oInvoices
          _oOCSI.Lines.LineTotal = 0
           oOCSI.Lines.CorrectionInvoiceItem = SAPbobsCOM.BoCorInvItemStatus.ciisShouldBe
          _oRecSet.MoveNext()
       Next i
       lErrCode = _oOCSI.Add
    Please Help me.

    Simply change the order of lines you are adding. First you'll have to create ShouldBe items, than the Was items.
    Dim _oOCSI As SAPbobsCOM.Documents
            _oOCSI = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oCorrectionInvoice)
            _oOCSI.CardCode = "12121212212"
            _oOCSI.DocDate = Now()
            _oOCSI.DocDueDate = Now()
            _oOCSI.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Service
            _oOCSI.Lines.CorrectionInvoiceItem = SAPbobsCOM.BoCorInvItemStatus.ciis_ShouldBe
            _oOCSI.Lines.LineTotal = 0
            _oOCSI.Lines.BaseType = 13
            _oOCSI.Lines.BaseEntry = 122
            _oOCSI.Lines.BaseLine = 0
            _oOCSI.Lines.Add()
            _oOCSI.Lines.CorrectionInvoiceItem = SAPbobsCOM.BoCorInvItemStatus.ciis_Was
            _oOCSI.Lines.BaseType = 13
            _oOCSI.Lines.BaseEntry = 122
            _oOCSI.Lines.BaseLine = 0
            lErrCode = _oOCSI.Add()

  • Factory method usage, creating the correct Image subclass

    Hi, I created a factory method
      public enum ImgType {
        SINGLE, STRIP, SPRITE_SHEET
    public static Image createImage(ImgType imgType) {
        switch (imgType) {
          case SINGLE:
            return new MyImage1(0, 0);
          case SPRITE_SHEET:
            return new MyImage2("", 0, 0);
          case STRIP:
            return new MyImage3("", 0, 0);
          default:
            throw new IllegalArgumentException("The image type " + imgType + " is not recognized.");
      }that creates different images based on the enum type provided.
    and heres is a usage of that function
      public BufferedImage loadAwtImage(ImageInputStream in, String imgName,  ImageTypeFactory.ImgType imgType) throws IOException {
        BufferedImage img = imgLoader.loadImage(in);
        BufferedImage imgsubType = ImageTypeFactory.createImage(imgType);  // Convert to real Image type
        addAwtImg(imgName, imgsubType);
        return imgsubType;
      }In a test:
    imgLib.loadAwtImage(imageStream, "cursor", ImageTypeFactory.ImgType.SPRITE_SHEET);Is it 'good' that in the test I can say(using the imgType enum) what sort of Image should be returned?
    doesn't this expose the working of the class to the outside, on the other hand I don't know howto create the correct sub image based on an image loaded.
    I use subImages to allow selection within the image, like the 3th 'tile' within an imageStrip returns just that cropped image.
    Before I had List<Image> and List<List<Image>> and now I can just return Images in 1 method instead of 2,3 by using lists.
    Edited by: stef569 on Dec 12, 2008 11:05 AM

    creates specifications... :p
    *  load the BufferedImage from the ImageInputStream
    * add it to the cache keyed by the imgName
    * @return a BufferedImage, or a custom subclass based on the imgType
    * @throws IOException when the img could not be loaded
    public BufferedImage loadAwtImage(ImageInputStream in, String imgName,  ImageTypeFactory.ImgType imgType) throws IOException I can test it, but the ImageTypeFactory.ImgType imgType parameter looks wrong to me.
    if you see this in a class method would you change it/find a better way.

  • Creating a correctly separated PDF from Illustrator in Acrobat Reader 7,8,9

    I work in an organisation with users having various versions of Acrobat Pro and Acrobat Reader.
    We need to create a PDF from Illustrator, I guess by using 'save as', that can be correctly displayed in Acrobat 7 onwards.
    A flattened PDF views correctly in all versions, but doesn't allow some users to view separations as it converts to CMYK.
    My understanding is that PDF-X could ensure overprint is on, so the PDF will display correctly.  But, for versions 7 and 8 overprint preview will need to be activated in order for the PDF to be correctly displayed.
    Does anyone know of another solution, in that we could create a PDF, correctly separated and viewable in Acrobat Reader 7, 8, 9.
    Thanks

    Why are your Reader users using different versions? It's a free download. Get them all on the current version.
    JET

  • Win Freehand can't create PDFs correctly

    Any help with the problem below would be much appreciated.
    We recently upgraded to Freehand MX (11.0.2) running on 3
    Windows (XP) machines but we can't create a pdf file where the
    fonts are included correctly using the print to pdf option.
    Freehand will also not produce a PS file for printing correctly as
    the fonts are also not being included. We have checked all of the
    include font options but still they do not appear to be included in
    the file. Also, copy and pasting from the created pdf file creates
    gibberish.
    Within the pdf's document preferences the fonts show up as:
    Gen.Frutiger-45-Light (Embedded Subset)
    Type: Type 1
    Encoding: Custom
    Within the actual document page the font appears to have been
    substituted with an equivalent. Outputting to an EPS also has the
    same problem. And, the problem also occurs with all fonts. Freehand
    9 still works OK.
    So far all Adobe have said is that Freehand just doesn't
    work: 'Unfortunately there is nothing we can do about this as
    Freehand is a discontinued product and the compatability between
    Freehand and Acrobat will not be updated'.
    Has anyone else had this problem? Any help would be much
    appreciated as at the moment Freehand MX is just unusable and
    Adobe's opinion seems to be so what.
    Thanks in anticipation

    I have had the same problem in the past. In the end I got a
    pro to sort it out. It would be great get some advice if the
    problem occurs again.

  • Creating Invoice Correction Requests

    Dear experts:
    I create a Invoice Correction Requests reference to a billing document.This document only contains one item.
    But my Invoice Correction Request contains two items,the invoice Correction Request contain repeated items from the reference billing document.
    How does it happened?
    Can anybody give me some advice?
    TKS!

    Dear Stephen
    It is a standard feature.  The system calculates the difference between the amount that was originally calculated and the corrected amount for each item.
    Once it has been approved, you can remove the block. The system creates a credit memo with reference to the invoice correction request. If the remaining amount is positive, the total value does not have a + sign, if the remaining amount is negative, the total value has a u2013 sign.
    Two items are automatically created for each item from the invoice, to be copied for the invoice correction request:
    -  First: Credit item
    -  Second: Debit item
    thanks
    G. Lakshmipathi

  • Purchase order not created for correct item in WGSREQ

    Hi Experts,
    When we use inbound Idoc type WGSREQ in Retail, with 2
    items for example, where the one item is incorrect, to create
    a purchase order, the system incorrectly does not generate a
    document for the correct item.

    Dear Plamen,
    Check following points
    (a) Article master listed or not for your Store / DC
    (b) Info record is there or not?
    (c) Check Vedor master extended to relevant purchase organization or not?
    Hope this info will be useful.
    Regards,
    Muralidhara

  • Re Create Joins in Complex folder?

    Hi all, I have a question regarding complex folders. I am reading the Oracle Discoverer Handbook, and it says that when a complex folder is created and Items are dragged in, the Joins are not copied, and must be created. (I noticed that the joins are missing when I drag all items from other folders in.) How do you do this? I havn't been recreating Joins all along and it seems to be working ok... can someone elaborate? I think the book only has one sentence on it.

    Hi,
    If you have 2 base folders A and B, and you create a join between A and B then both folders will contain the A<->B join.
    If you then create a complex folder X and drag items from A into X. X will not contain the A<->B join. If you want to join X to B in your report then you will have to create a X<-> B join.
    However, if you drag items from both A and B into X, then folder X will implicitly contain the A<->B join. It won't show up in the folder items, but will be shown in the folder dependencies.
    Hope that helps,
    Rod West

  • I am creating a check on learning with 2 responses and want to create a correct/incorrect response

    I am creating a check on learning which is scenario based.  I want the student to be able to select whether it is permissible or nonpermissible.  I had thought to do this with 2 objects--each associated with a clickbox to indicate a correct/incorrect response but this doesn't work.  How can I achieve this?

    Could you please explain what you want in a little more detail?  I'm a bit unsure about what you want the student to indicate is either permissable or non-permissable.
    If you are using Click Boxes positioned over objects that the user should click to indicate their choice, have you set the click boxes to show feedback captions?

  • Accesspoint not joining correct controller

    Hi,
    I am trying to setup a 2504 Wireless Controller with a few  AIR-AP1262N-E-K9 Access Points. But i'm having trouble getting the access points to connect to the controller.
    The controller and AP's are setup at a local network at one of my customers. They are part of a quite large organization and are therefore connected to some of their other divisions in different contries via MPLS. The DHCP and DNS servers are therefore on a different subnet.
    I have confirmed that the Access Points do get a correct IP from the DHCP server and that i am able to ping from the controller to the AP. When looking at the controller it does not receive any join requests from the AP's.
    I have setup a console connection to the controller and 1 AP, so i can view debug information.
    Most guides mention that you can run different LWAPP commands from the CLI on the AP like show lwapp for example. But i am not able to run any of these LWAPP commands on my AP.
    I was hinted that this could be due to the fact that the AP was actually connected to a controller. Is there any way to confirm this from the CLI on the AP? I have run the following command: ap#show controller which gave the following output:
    interface Dot11Radio0
    Radio Dortmunder 2.4
    I was wondering if this could actually mean that the AP had joined another controller?
    When looking at the LED it is constant green which should mean that it up and running, but no clients is associated to it yet.
    Any ideas would be greatly appreciated.

    ap#show version
    Cisco IOS Software, C1260 Software (AP3G1-K9W7-M), Version 12.4(25d)JA1, RELEASE SOFTWARE (fc1)
    Technical Support: http://www.cisco.com/techsupport
    Copyright (c) 1986-2011 by Cisco Systems, Inc.
    Compiled Thu 11-Aug-11 02:07 by prod_rel_team
    ROM: Bootstrap program is C1260 boot loader
    BOOTLDR: C1260 Boot Loader (AP3G1-BOOT-M) Version 12.4(23c)JA5, RELEASE SOFTWARE (fc1)
    ap uptime is 1 hour, 34 minutes
    System returned to ROM by reload
    System image file is "flash:/ap3g1-k9w7-mx.124-25d.JA1/ap3g1-k9w7-mx.124-25d.JA1"
    This product contains cryptographic features and is subject to United
    States and local country laws governing import, export, transfer and
    use. Delivery of Cisco cryptographic products does not imply
    third-party authority to import, export, distribute or use encryption.
    Importers, exporters, distributors and users are responsible for
    compliance with U.S. and local country laws. By using this product you
    agree to comply with applicable laws and regulations. If you are unable
    to comply with U.S. and local laws, return this product immediately.
    A summary of U.S. laws governing Cisco cryptographic products may be found at:
    http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
    If you require further assistance please contact us by sending email to
    [email protected].
    cisco AIR-AP1262N-E-K9     (PowerPC460exr) processor (revision A0) with 81910K/49152K bytes of memory.
    Processor board ID FCZ1631Z058
    PowerPC460exr CPU at 666Mhz, revision number 0x18A8
    Last reset from reload
    1 Gigabit Ethernet interface
    2 802.11 Radio(s)
    32K bytes of flash-simulated non-volatile configuration memory.
    Base ethernet MAC Address: 30:F7:0D:13:02:C9
    Part Number                          : 73-12175-06
    PCA Assembly Number                  : 800-32268-06
    PCA Revision Number                  : A0
    PCB Serial Number                    : FOC16274Y8E
    Top Assembly Part Number             : 800-33866-02
    Top Assembly Serial Number           : FCZ1631Z058
    Top Revision Number                  : A0
    Product/Model Number                 : AIR-AP1262N-E-K9
    Configuration register is 0xF

  • Create a correct EAR file

    Hi there,
    i've create a server which has connections to an Oracle DB, the servlet is runnig perfectly in the oc4j integrated with JDeveloper9i.
    I have created a connection-> Application server.
    i see the data-sources.xml that jdeveloper creates, in my source directory, together with oc4j-app file, so this file is created.
    The fact is that i want to have a correct EAR file which i can deploy wherever in whatever instance of oc4j.
    when i deploy my project, my EAR file contains the war (the classes, extra libraries, web.xml) and the meta-inf directory with the application.xml file, but nothing else.
    a) What should i do in jdeveloper to include the data-sources.xml in the EAR file.
    b) do i need something to point where the extra libraries are?
    thank you,
    Laura

    You seem to be hitting bug 2548426. Sorry for the inconvenience. For a work-around, see:
    http://otn.oracle.com/products/jdev/htdocs/readme_903Preview_addendum.html#orion
    This bug will be fixed in 9.0.3 production.

  • Clients not joined correctly?

    Hi,
    We have a new Windows Server 2012 Essentials. When we join new devices, some show correctly and other show with the same icon as the server and don't provide info on windows version/security etc. Both the PC's below are Windows 8.1 pro.
    Anyone know the reason for this?

    I get the following error. I hope it's safe to post the log? I have removed server names.
    Does this tell you anything?
    Log Name:      Application
    Source:        Application Error
    Date:          20/02/2015 19:55:25
    Event ID:      1000
    Task Category: (100)
    Level:         Error
    Keywords:      Classic
    User:          N/A
    Computer:      removed.removed.local
    Description:
    Faulting application name: SharedServiceHost.exe, version: 6.3.9600.16384, time stamp: 0x5215ca62
    Faulting module name: KERNELBASE.dll, version: 6.3.9600.17415, time stamp: 0x54505737
    Exception code: 0xe0434352
    Fault offset: 0x0000000000008b9c
    Faulting process id: 0x1dd4
    Faulting application start time: 0x01d04d472a0e3897
    Faulting application path: C:\Windows\System32\Essentials\SharedServiceHost.exe
    Faulting module path: C:\Windows\system32\KERNELBASE.dll
    Report Id: 68a20b38-b93a-11e4-80da-ac9e174e040b
    Faulting package full name:
    Faulting package-relative application ID:
    Event Xml:
    <Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
      <System>
        <Provider Name="Application Error" />
        <EventID Qualifiers="0">1000</EventID>
        <Level>2</Level>
        <Task>100</Task>
        <Keywords>0x80000000000000</Keywords>
        <TimeCreated SystemTime="2015-02-20T19:55:25.000000000Z" />
        <EventRecordID>27931</EventRecordID>
        <Channel>Application</Channel>
        <Computer>...removed...</Computer>
        <Security />
      </System>
      <EventData>
        <Data>SharedServiceHost.exe</Data>
        <Data>6.3.9600.16384</Data>
        <Data>5215ca62</Data>
        <Data>KERNELBASE.dll</Data>
        <Data>6.3.9600.17415</Data>
        <Data>54505737</Data>
        <Data>e0434352</Data>
        <Data>0000000000008b9c</Data>
        <Data>1dd4</Data>
        <Data>01d04d472a0e3897</Data>
        <Data>C:\Windows\System32\Essentials\SharedServiceHost.exe</Data>
        <Data>C:\Windows\system32\KERNELBASE.dll</Data>
        <Data>68a20b38-b93a-11e4-80da-ac9e174e040b</Data>
        <Data>
        </Data>
        <Data>
        </Data>
      </EventData>
    </Event>

  • Trying to create cmp correctly(auto-increment);error while running

    I am using the latest versions of Jboss(4.0.5.GA) and Lomboz(R-3.2-200610201336) along with SQL Server 2005 and Microsoft's SQL Server 2005 JDBC driver.
    Lomboz used xdoclet to create the java files based on the SQL table but it did not put anything in the DoctorBean.java file telling it that the primary key was auto-incremented.
    Using the JSP files, I can retreive data out of the database fine so I know the connection and drivers are set up properly.
    Here is the error:
    09:16:46,815 WARN  [ServiceController] Problem starting service jboss.j2ee:service=EjbModule,module=MedicalEJB.jar
    java.lang.StringIndexOutOfBoundsException: String index out of range: 0
        at java.lang.String.charAt(Unknown Source)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassLocally(RepositoryClassLoader.java:197)
        at org.jboss.mx.loading.UnifiedLoaderRepository3.loadClassFromClassLoader(UnifiedLoaderRepository3.java:277)
        at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:284)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
        at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.jboss.util.loading.DelegatingClassLoader.loadClass(DelegatingClassLoader.java:89)
        at org.jboss.mx.loading.LoaderRepositoryClassLoader.loadClass(LoaderRepositoryClassLoader.java:90)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.jboss.util.loading.DelegatingClassLoader.loadClass(DelegatingClassLoader.java:89)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityCommandMetaData.<init>(JDBCEntityCommandMetaData.java:73)
        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.<init>(JDBCEntityMetaData.java:952)
        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.<init>(JDBCApplicationMetaData.java:378)
        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXmlFileLoader.java:89)
        at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaData(JDBCStoreManager.java:736)
        at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBCStoreManager.java:424)
        at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:368)
        at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:172)
        at org.jboss.ejb.EjbModule.startService(EjbModule.java:414)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy25.start(Unknown Source)
        at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:662)
        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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
        at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
        at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
        at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
        at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy26.start(Unknown Source)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy8.deploy(Unknown Source)
        at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
        at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
        at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
        at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
        at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
        at $Proxy0.start(Unknown Source)
        at org.jboss.system.ServiceController.start(ServiceController.java:417)
        at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy4.start(Unknown Source)
        at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
        at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
        at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
        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.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
        at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
        at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
        at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
        at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
        at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
        at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
        at $Proxy5.deploy(Unknown Source)
        at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
        at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
        at org.jboss.Main.boot(Main.java:200)
        at org.jboss.Main$1.run(Main.java:490)
        at java.lang.Thread.run(Unknown Source)
    09:16:46,862 INFO  [EJBDeployer] Deployed: file:/C:/java/jboss-4.0.5.GA/server/default/deploy/MedicalEJB.jar
    09:16:46,987 INFO  [TomcatDeployer] deploy, ctxPath=/MedicalWeb, warUrl=.../tmp/deploy/tmp63256MedicalWeb-exp.war/
    09:16:47,315 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
    09:16:47,503 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
    --- MBeans waiting for other MBeans ---
    ObjectName: jboss.j2ee:service=EjbModule,module=MedicalEJB.jar
      State: FAILED
      Reason: java.lang.StringIndexOutOfBoundsException: String index out of range: 0
    --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
    ObjectName: jboss.j2ee:service=EjbModule,module=MedicalEJB.jar
      State: FAILED
      Reason: java.lang.StringIndexOutOfBoundsException: String index out of range: 01Simple Doctor table:
    CREATE TABLE [dbo].[Doctors](
        [DoctorId] [int] IDENTITY(1,1) NOT NULL,
        [firstName] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
        [lastName] [varchar](50) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL,
    CONSTRAINT [PK_Doctors] PRIMARY KEY CLUSTERED
        [DoctorId] ASC
    )WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
    ) ON [PRIMARY]Most of DoctorBean.java was createded automatically with xdoclet, I created these items manually but with no success:
    * @jboss.entity-command
    * name="mssql-get-generated-keys"
    * @jboss.unknown-pk
    * class="java.lang.Integer"
    * column-name="doctorid"
    * field-name="doctorid"
    * jdbc-type="INTEGER"
    * sql-type="int"
    * auto-increment="true"DoctorBean.java:
    package com.bdintegrations.MedicalApp.EJB;
    import java.rmi.RemoteException;
    import javax.ejb.EJBException;
    import javax.ejb.EntityContext;
    import javax.ejb.RemoveException;
    * <!-- begin-xdoclet-definition -->
    * @ejb.bean name="Doctor"
    *    jndi-name="Doctor"
    *    type="CMP"
    *  primkey-field="doctorid"
    *  schema="DoctorSCHEMA"
    *  cmp-version="2.x"
    *  @ejb.persistence
    *   table-name="dbo.Doctors"
    * @ejb.finder
    *    query="SELECT OBJECT(a) FROM DoctorSCHEMA as a" 
    *    signature="java.util.Collection findAll()" 
    * @ejb.pk
    *  class="java.lang.Object"
    *  generate="false"
    * @jboss.entity-command
    * name="mssql-get-generated-keys"
    * @jboss.unknown-pk
    * class="java.lang.Integer"
    * column-name="doctorid"
    * field-name="doctorid"
    * jdbc-type="INTEGER"
    * sql-type="int"
    * auto-increment="true"
    * @jboss.persistence
    * datasource="java:/MSSQLDS"
    * datasource-mapping="MS SQLSERVER2005"
    * table-name="dbo.Doctors"
    * create-table="false" remove-table="false"
    * alter-table="false"
    * <!-- end-xdoclet-definition -->
    * @generated
    public abstract class DoctorBean implements javax.ejb.EntityBean {
         * <!-- begin-user-doc -->
         * The  ejbCreate method.
         * <!-- end-user-doc -->
         * <!-- begin-xdoclet-definition -->
         * @ejb.create-method
         * <!-- end-xdoclet-definition -->
         * @generated
        public java.lang.Object ejbCreate(String firstName, String lastName) throws javax.ejb.CreateException {
            setFirstname(firstName);
            setLastname(lastName);
            return null;
            // end-user-code
         * <!-- begin-user-doc -->
         * The container invokes this method immediately after it calls ejbCreate.
         * <!-- end-user-doc -->
         * @generated
        public void ejbPostCreate() throws javax.ejb.CreateException {
            // begin-user-code
            // end-user-code
         * <!-- begin-user-doc -->
         * CMP Field doctorid
         * Returns the doctorid
         * @return the doctorid
         * <!-- end-user-doc -->
         * <!-- begin-xdoclet-definition -->
         * @ejb.persistent-field
         * @ejb.persistence
         *    column-name="DoctorId"
         *     jdbc-type="INTEGER"
         *     sql-type="int identity"
         *     read-only="false"
         * @ejb.pk-field
         * @ejb.interface-method
         * <!-- end-xdoclet-definition -->
         * @generated
        public abstract java.lang.Integer getDoctorid();
         * <!-- begin-user-doc -->
         * Sets the doctorid
         * @param java.lang.Integer the new doctorid value
         * <!-- end-user-doc -->
         * <!-- begin-xdoclet-definition -->
         * @ejb.interface-method
         * <!-- end-xdoclet-definition -->
         * @generated
        public abstract void setDoctorid(java.lang.Integer doctorid);
         * <!-- begin-user-doc -->
         * CMP Field firstname
         * Returns the firstname
         * @return the firstname
         * <!-- end-user-doc -->
         * <!-- begin-xdoclet-definition -->
         * @ejb.persistent-field
         * @ejb.persistence
         *    column-name="firstName"
         *     jdbc-type="VARCHAR"
         *     sql-type="varchar"
         *     read-only="false"
         * @ejb.interface-method
         * <!-- end-xdoclet-definition -->
         * @generated
        public abstract java.lang.String getFirstname();
         * <!-- begin-user-doc -->
         * Sets the firstname
         * @param java.lang.String the new firstname value
         * <!-- end-user-doc -->
         * <!-- begin-xdoclet-definition -->
         * @ejb.interface-method
         * <!-- end-xdoclet-definition -->
         * @generated
        public abstract void setFirstname(java.lang.String firstname);
         * <!-- begin-user-doc -->
         * CMP Field lastname
         * Returns the lastname
         * @return the lastname
         * <!-- end-user-doc -->
         * <!-- begin-xdoclet-definition -->
         * @ejb.persistent-field
         * @ejb.persistence
         *    column-name="lastName"
         *     jdbc-type="VARCHAR"
         *     sql-type="varchar"
         *     read-only="false"
         * @ejb.interface-method
         * <!-- end-xdoclet-definition -->
         * @generated
        public abstract java.lang.String getLastname();
         * <!-- begin-user-doc -->
         * Sets the lastname
         * @param java.lang.String the new lastname value
         * <!-- end-user-doc -->
         * <!-- begin-xdoclet-definition -->
         * @ejb.interface-method
         * <!-- end-xdoclet-definition -->
         * @generated
        public abstract void setLastname(java.lang.String lastname);
        /* (non-Javadoc)
         * @see javax.ejb.EntityBean#ejbActivate()
        public void ejbActivate() throws EJBException, RemoteException {
            // TODO Auto-generated method stub
        /* (non-Javadoc)
         * @see javax.ejb.EntityBean#ejbLoad()
        public void ejbLoad() throws EJBException, RemoteException {
            // TODO Auto-generated method stub
        /* (non-Javadoc)
         * @see javax.ejb.EntityBean#ejbPassivate()
        public void ejbPassivate() throws EJBException, RemoteException {
            // TODO Auto-generated method stub
        /* (non-Javadoc)
         * @see javax.ejb.EntityBean#ejbRemove()
        public void ejbRemove() throws RemoveException, EJBException,
                RemoteException {
            // TODO Auto-generated method stub
        /* (non-Javadoc)
         * @see javax.ejb.EntityBean#ejbStore()
        public void ejbStore() throws EJBException, RemoteException {
            // TODO Auto-generated method stub
        /* (non-Javadoc)
         * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
        public void setEntityContext(EntityContext arg0) throws EJBException,
                RemoteException {
            // TODO Auto-generated method stub
        /* (non-Javadoc)
         * @see javax.ejb.EntityBean#unsetEntityContext()
        public void unsetEntityContext() throws EJBException, RemoteException {
            // TODO Auto-generated method stub
        public DoctorBean() {
            // TODO Auto-generated constructor stub
    }JSP client page snippet:
    <%
    DoctorHome home = DoctorUtil.getHome();
    Doctor doctor = home.create("Jon","Smith");
    %>
    <%=doctor.getDoctorid() %>thanks

    Nevermind.. no one bothered to inform the developer that the path to the collection AND the path to the directory that the collection is for are different on this other server.
    Fixed.

Maybe you are looking for

  • Can't connect via Airport Utility

    Just noticed that my shared USB drive wasn't connecting so I opened Airport Utility and got this message when trying to manually access my Airport Extreme: Make sure your AirPort wireless device is plugged in and in range of your computer or connecte

  • AVI Files not importing into CS4 from DVD

    I have the DVD disk for Premiere Pro CS4 Classroom In A Book and all the avi files have only sound and when imported into Premiere Pro CS4 a missing codec error warning appears and the file will not import. I have to say this problem only occurs with

  • Tried "everything" and LOTS of iPhoto 6 thumbnails still broken

    I have the "Gray" Thumbnail problem in spades on BOTH my wife's and my PowerBooks running 10.4.6. As per many other postings, various Thumbnails gray with exclamation mark, and they will not link to photo on a double-click. I currently have just over

  • 10.1.2 installing timeout

    Windows 7 home - just reinstalled windows from scratch from hard drive 'D' - tried with Explorer and Firefox 5 times to install Reader to enable install other programes that request it -same thing each time - on third panel goes immediately to 33% fo

  • Progress bars objects not serializable message iat application runtime

    I am getting errors for the beans that have to do with progress bars. It says these objects are not serializable. When I try to implement serializable I still get that error. What do I need to do? I have 3 progress bars in view scope. SEVERE: ADFc: S