Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: PLEASE, help as I am really stuck getting SLSB to work

  1. #11
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    The method that you invoke on your interface is intercepted by the proxy. However, on delegating the method call to the real instance (i.e. the session bean stub) you receive a NoSuchMethodException.
    This indicates, that the stub does not implement that method.

    So I would conclude that either your business interface is not in sync with your local interface, or your local interface is not in sync with your bean implementation class.

    Regards,
    Andreas

  2. #12
    Join Date
    Jun 2005
    Location
    Philly
    Posts
    199

    Default

    Quote Originally Posted by Andreas Senft
    The method that you invoke on your interface is intercepted by the proxy. However, on delegating the method call to the real instance (i.e. the session bean stub) you receive a NoSuchMethodException.
    This indicates, that the stub does not implement that method.

    So I would conclude that either your business interface is not in sync with your local interface, or your local interface is not in sync with your bean implementation class.

    Regards,
    Andreas
    Code:
    /*
     * Generated by XDoclet - Do not edit!
     */
    package com.blackhawk.ff.service;
    
    /**
     * Local interface for ConsumerManager.
     * @xdoclet-generated at 
     * @copyright Safeway
     *  Inc.; HP
     * @version xxx
     */
    public interface ConsumerManagerLocal
       extends javax.ejb.EJBLocalObject, com.blackhawk.ff.service.ConsumerManager
    {
    
    }
    Code:
    package com.blackhawk.ff.service;
    
    import com.blackhawk.ff.consumer.IConsumer;
    import com.blackhawk.ff.consumer.ISearchKey;
    import com.blackhawk.ff.consumer.IQueryKey;
    import com.blackhawk.ff.exception.*;
    import com.blackhawk.ff.trx.IConsumerTrxRequest;
    import com.blackhawk.ff.velocity.IVelocityRequest;
    
    import java.util.Collection;
    
    /**
     * Created by IntelliJ IDEA.
     * User: mknut01
     * Date: Jun 14, 2005
     * Time: 10:44:13 AM
     * To change this template use File | Settings | File Templates.
     */
    public interface ConsumerManager {
    
        /**
         * DOCUMENT ME!
         *
         * @param pIQueryKey DOCUMENT ME!
         * @return DOCUMENT ME!
         * @throws ConsumerQueryException DOCUMENT ME!
         */
        public IConsumer getConsumer(IQueryKey pIQueryKey) throws ConsumerQueryException;
        public Collection getConsumers(ISearchKey pISearchKey) throws ConsumerSearchException;
        //public Collection getConsumers(IQueryKey pIQueryKey) throws ConsumerQueryException;
        public IConsumer updateConsumer(IConsumer pIConsumer) throws ConsumerUpdateException;
    
        public Collection getConsumerTransactions(IConsumerTrxRequest consumerTrxRequest) throws ConsumerTrxException;
    
        public Collection getVelocity(IVelocityRequest velocityRequest) throws ConsumerVelocityException;
    }

  3. #13
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    Ok, it seems not to be the interfaces. What about the implementing class?

    Regards,
    Andreas

  4. #14
    Join Date
    Aug 2004
    Posts
    2,715

    Default

    Wait. I just realized that the UndeclaredThrowableException came from $proxy80, while the nested NoSuchMethodException referred to $proxy78. As I see, you are using a proxy for your DAO (btw. why don't you declare that as well but use it programmatically?).

    Maybe the problem lies in the DAO (i.e. the invoked method is a not existing DAO method)?

    Regards,
    Andreas

  5. #15
    Join Date
    May 2007
    Posts
    7

    Default having the same problem...

    You wouldn't happen to remember how you solved this?

  6. #16
    Join Date
    May 2007
    Posts
    7

    Default solution


  7. #17
    Join Date
    May 2007
    Posts
    7

    Default solution for JBoss

    For JBoss users having this same problem, change this line
    in JBOSS_HOME/server
    /<your_configuration>/deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xml:

    <attribute name="UseJBossWebLoader">true</attribute>

Similar Threads

  1. Replies: 6
    Last Post: Jun 14th, 2007, 01:00 PM
  2. Stuck with Transactions
    By twocoasttb in forum Data
    Replies: 3
    Last Post: Oct 12th, 2005, 07:09 PM
  3. Replies: 1
    Last Post: Jun 23rd, 2005, 02:13 AM
  4. Replies: 5
    Last Post: Apr 15th, 2005, 08:26 AM
  5. Replies: 0
    Last Post: Oct 20th, 2004, 04:41 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •