You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by Paulo Henrique Trecenti <pt...@gmail.com> on 2007/04/14 02:32:11 UTC

NEP in WireObjectFactoryTestCase

Hi,
The test case "WireObjectFactoryTestCase" throws a NEP because the atributo
"interfaze" is not setted before in the object "OperationImpl" ... them NEP
in this peace of code when the "JavaInterfaceUtil" try execute
"isRemoteable"

    public static  Method findMethod(Class<?> implClass, Operation
operation) throws NoSuchMethodException {
        String name = operation.getName();
       ---> if(operation.getInterface().isRemotable()) {
            for(Method m: implClass.getMethods()) {
                if(m.getName().equals(name)) {
                    return m;
                }
            }
            throw new NoSuchMethodException(name);
        }
        Class<?>[] paramTypes = getPhysicalTypes(operation);
        return implClass.getMethod(name, paramTypes);
    }

I don't now where I can fix it.

-- 
Paulo Henrique Trecenti

Re: NEP in WireObjectFactoryTestCase

Posted by Paulo Henrique Trecenti <pt...@gmail.com>.
Ok I'm fix that "op.setInterface( new JavaInterfaceImpl());"

2007/4/13, Paulo Henrique Trecenti <pt...@gmail.com>:
>
> Hi,
> The test case "WireObjectFactoryTestCase" throws a NEP because the
> atributo "interfaze" is not setted before in the object "OperationImpl" ...
> them NEP
> in this peace of code when the "JavaInterfaceUtil" try execute
> "isRemoteable"
>
>     public static  Method findMethod(Class<?> implClass, Operation
> operation) throws NoSuchMethodException {
>         String name = operation.getName();
>        ---> if(operation.getInterface().isRemotable()) {
>             for(Method m: implClass.getMethods()) {
>                 if(m.getName().equals(name)) {
>                     return m;
>                 }
>             }
>             throw new NoSuchMethodException(name);
>         }
>         Class<?>[] paramTypes = getPhysicalTypes(operation);
>         return implClass.getMethod(name, paramTypes);
>     }
>
> I don't now where I can fix it.
>
> --
> Paulo Henrique Trecenti




-- 
Paulo Henrique Trecenti

Re: NEP in WireObjectFactoryTestCase

Posted by Paulo Henrique Trecenti <pt...@gmail.com>.
But now the test case is "WireUtilsTestCase"

2007/4/13, Paulo Henrique Trecenti <pt...@gmail.com>:
>
> Hi,
>
> The erro stay there in same location....
> public static  Method findMethod(Class<?> implClass, Operation operation)
> throws NoSuchMethodException {
>         String name = operation.getName();
>         if( operation.getInterface().isRemotable()) {
>             for(Method m: implClass.getMethods()) {
>                 if(m.getName().equals(name)) {
>                     return m;
>                 }
>             }
>             throw new NoSuchMethodException(name);
>         }
>         Class<?>[] paramTypes = getPhysicalTypes(operation);
>         return implClass.getMethod(name, paramTypes);
>     }
>
> The interfaze is not setted....
>
>
> 2007/4/13, Paulo Henrique Trecenti <pt...@gmail.com>:
> >
> > Ok tank you...
> >
> > 2007/4/13, Raymond Feng <en...@gmail.com>:
> > >
> > > Hi,
> > >
> > > Sorry for the regression and I just fixed it under r528720.
> > >
> > > Thanks,
> > > Raymond
> > >
> > > ----- Original Message -----
> > > From: "Paulo Henrique Trecenti" < ptrecenti@gmail.com >
> > > To: <tu...@ws.apache.org>
> > > Sent: Friday, April 13, 2007 5:32 PM
> > > Subject: NEP in WireObjectFactoryTestCase
> > >
> > >
> > > > Hi,
> > > > The test case "WireObjectFactoryTestCase" throws a NEP because the
> > > > atributo
> > > > "interfaze" is not setted before in the object "OperationImpl" ...
> > > them
> > > > NEP
> > > > in this peace of code when the "JavaInterfaceUtil" try execute
> > > > "isRemoteable"
> > > >
> > > >    public static  Method findMethod(Class<?> implClass, Operation
> > > > operation) throws NoSuchMethodException {
> > > >        String name = operation.getName();
> > > >       ---> if(operation.getInterface ().isRemotable()) {
> > > >            for(Method m: implClass.getMethods()) {
> > > >                if(m.getName().equals(name)) {
> > > >                    return m;
> > > >                }
> > > >            }
> > > >            throw new NoSuchMethodException(name);
> > > >        }
> > > >        Class<?>[] paramTypes = getPhysicalTypes(operation);
> > > >        return implClass.getMethod(name, paramTypes);
> > > >    }
> > > >
> > > > I don't now where I can fix it.
> > > >
> > > > --
> > > > Paulo Henrique Trecenti
> > > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> > >
> > >
> >
> >
> > --
> > Paulo Henrique Trecenti
>
>
>
>
> --
> Paulo Henrique Trecenti




-- 
Paulo Henrique Trecenti

Re: NEP in WireObjectFactoryTestCase

Posted by Raymond Feng <en...@gmail.com>.
Sorry, I was in a rush.

More fix is checked in under r528730.

Thanks,
Raymond


----- Original Message ----- 
From: "Paulo Henrique Trecenti" <pt...@gmail.com>
To: <tu...@ws.apache.org>
Sent: Friday, April 13, 2007 6:12 PM
Subject: Re: NEP in WireObjectFactoryTestCase


> Hi,
> 
> The erro stay there in same location....
> public static  Method findMethod(Class<?> implClass, Operation operation)
> throws NoSuchMethodException {
>        String name = operation.getName();
>        if(operation.getInterface().isRemotable()) {
>            for(Method m: implClass.getMethods()) {
>                if(m.getName().equals(name)) {
>                    return m;
>                }
>            }
>            throw new NoSuchMethodException(name);
>        }
>        Class<?>[] paramTypes = getPhysicalTypes(operation);
>        return implClass.getMethod(name, paramTypes);
>    }
> 
> The interfaze is not setted....
> 
> 
> 2007/4/13, Paulo Henrique Trecenti <pt...@gmail.com>:
>>
>> Ok tank you...
>>
>> 2007/4/13, Raymond Feng <en...@gmail.com>:
>> >
>> > Hi,
>> >
>> > Sorry for the regression and I just fixed it under r528720.
>> >
>> > Thanks,
>> > Raymond
>> >
>> > ----- Original Message -----
>> > From: "Paulo Henrique Trecenti" <ptrecenti@gmail.com >
>> > To: <tu...@ws.apache.org>
>> > Sent: Friday, April 13, 2007 5:32 PM
>> > Subject: NEP in WireObjectFactoryTestCase
>> >
>> >
>> > > Hi,
>> > > The test case "WireObjectFactoryTestCase" throws a NEP because the
>> > > atributo
>> > > "interfaze" is not setted before in the object "OperationImpl" ...
>> > them
>> > > NEP
>> > > in this peace of code when the "JavaInterfaceUtil" try execute
>> > > "isRemoteable"
>> > >
>> > >    public static  Method findMethod(Class<?> implClass, Operation
>> > > operation) throws NoSuchMethodException {
>> > >        String name = operation.getName();
>> > >       ---> if(operation.getInterface ().isRemotable()) {
>> > >            for(Method m: implClass.getMethods()) {
>> > >                if(m.getName().equals(name)) {
>> > >                    return m;
>> > >                }
>> > >            }
>> > >            throw new NoSuchMethodException(name);
>> > >        }
>> > >        Class<?>[] paramTypes = getPhysicalTypes(operation);
>> > >        return implClass.getMethod(name, paramTypes);
>> > >    }
>> > >
>> > > I don't now where I can fix it.
>> > >
>> > > --
>> > > Paulo Henrique Trecenti
>> > >
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>> >
>> >
>>
>>
>> --
>> Paulo Henrique Trecenti
> 
> 
> 
> 
> -- 
> Paulo Henrique Trecenti
>

---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org


Re: NEP in WireObjectFactoryTestCase

Posted by Paulo Henrique Trecenti <pt...@gmail.com>.
Hi,

The erro stay there in same location....
public static  Method findMethod(Class<?> implClass, Operation operation)
throws NoSuchMethodException {
        String name = operation.getName();
        if(operation.getInterface().isRemotable()) {
            for(Method m: implClass.getMethods()) {
                if(m.getName().equals(name)) {
                    return m;
                }
            }
            throw new NoSuchMethodException(name);
        }
        Class<?>[] paramTypes = getPhysicalTypes(operation);
        return implClass.getMethod(name, paramTypes);
    }

The interfaze is not setted....


2007/4/13, Paulo Henrique Trecenti <pt...@gmail.com>:
>
> Ok tank you...
>
> 2007/4/13, Raymond Feng <en...@gmail.com>:
> >
> > Hi,
> >
> > Sorry for the regression and I just fixed it under r528720.
> >
> > Thanks,
> > Raymond
> >
> > ----- Original Message -----
> > From: "Paulo Henrique Trecenti" <ptrecenti@gmail.com >
> > To: <tu...@ws.apache.org>
> > Sent: Friday, April 13, 2007 5:32 PM
> > Subject: NEP in WireObjectFactoryTestCase
> >
> >
> > > Hi,
> > > The test case "WireObjectFactoryTestCase" throws a NEP because the
> > > atributo
> > > "interfaze" is not setted before in the object "OperationImpl" ...
> > them
> > > NEP
> > > in this peace of code when the "JavaInterfaceUtil" try execute
> > > "isRemoteable"
> > >
> > >    public static  Method findMethod(Class<?> implClass, Operation
> > > operation) throws NoSuchMethodException {
> > >        String name = operation.getName();
> > >       ---> if(operation.getInterface ().isRemotable()) {
> > >            for(Method m: implClass.getMethods()) {
> > >                if(m.getName().equals(name)) {
> > >                    return m;
> > >                }
> > >            }
> > >            throw new NoSuchMethodException(name);
> > >        }
> > >        Class<?>[] paramTypes = getPhysicalTypes(operation);
> > >        return implClass.getMethod(name, paramTypes);
> > >    }
> > >
> > > I don't now where I can fix it.
> > >
> > > --
> > > Paulo Henrique Trecenti
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: tuscany-dev-help@ws.apache.org
> >
> >
>
>
> --
> Paulo Henrique Trecenti




-- 
Paulo Henrique Trecenti

Re: NEP in WireObjectFactoryTestCase

Posted by Paulo Henrique Trecenti <pt...@gmail.com>.
Ok tank you...

2007/4/13, Raymond Feng <en...@gmail.com>:
>
> Hi,
>
> Sorry for the regression and I just fixed it under r528720.
>
> Thanks,
> Raymond
>
> ----- Original Message -----
> From: "Paulo Henrique Trecenti" <pt...@gmail.com>
> To: <tu...@ws.apache.org>
> Sent: Friday, April 13, 2007 5:32 PM
> Subject: NEP in WireObjectFactoryTestCase
>
>
> > Hi,
> > The test case "WireObjectFactoryTestCase" throws a NEP because the
> > atributo
> > "interfaze" is not setted before in the object "OperationImpl" ... them
> > NEP
> > in this peace of code when the "JavaInterfaceUtil" try execute
> > "isRemoteable"
> >
> >    public static  Method findMethod(Class<?> implClass, Operation
> > operation) throws NoSuchMethodException {
> >        String name = operation.getName();
> >       ---> if(operation.getInterface().isRemotable()) {
> >            for(Method m: implClass.getMethods()) {
> >                if(m.getName().equals(name)) {
> >                    return m;
> >                }
> >            }
> >            throw new NoSuchMethodException(name);
> >        }
> >        Class<?>[] paramTypes = getPhysicalTypes(operation);
> >        return implClass.getMethod(name, paramTypes);
> >    }
> >
> > I don't now where I can fix it.
> >
> > --
> > Paulo Henrique Trecenti
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: tuscany-dev-help@ws.apache.org
>
>


-- 
Paulo Henrique Trecenti

Re: NEP in WireObjectFactoryTestCase

Posted by Raymond Feng <en...@gmail.com>.
Hi,

Sorry for the regression and I just fixed it under r528720.

Thanks,
Raymond

----- Original Message ----- 
From: "Paulo Henrique Trecenti" <pt...@gmail.com>
To: <tu...@ws.apache.org>
Sent: Friday, April 13, 2007 5:32 PM
Subject: NEP in WireObjectFactoryTestCase


> Hi,
> The test case "WireObjectFactoryTestCase" throws a NEP because the 
> atributo
> "interfaze" is not setted before in the object "OperationImpl" ... them 
> NEP
> in this peace of code when the "JavaInterfaceUtil" try execute
> "isRemoteable"
>
>    public static  Method findMethod(Class<?> implClass, Operation
> operation) throws NoSuchMethodException {
>        String name = operation.getName();
>       ---> if(operation.getInterface().isRemotable()) {
>            for(Method m: implClass.getMethods()) {
>                if(m.getName().equals(name)) {
>                    return m;
>                }
>            }
>            throw new NoSuchMethodException(name);
>        }
>        Class<?>[] paramTypes = getPhysicalTypes(operation);
>        return implClass.getMethod(name, paramTypes);
>    }
>
> I don't now where I can fix it.
>
> -- 
> Paulo Henrique Trecenti
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-dev-help@ws.apache.org