You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by John Obaterspok <jo...@gmail.com> on 2009/12/14 22:16:55 UTC

dotnet/client-010 gentool error

Hello,

I'm on a Fedora 12 machine and I'm having problems building the dotnet
client. Running 'ant' in the gentool directory from a fresh checkout
(r:890479 gives me the below error:

-----------------------------------------
Buildfile: build.xml

check_jython_deps:

build:
     [java] Traceback (most recent call last):
     [java]   File
"/home/john/svn/qpid/qpid/dotnet/client-010/gentool/codegen", line 69, in
<module>
     [java]     name =
cname(c)

     [java]   File
"/home/john/svn/qpid/qpid/dotnet/client-010/gentool/dotnetgenutil.py", line
135, in cname
     [java]     return pascal(0, cls["@name"], nd[field])
     [java]   File
"/home/john/svn/qpid/qpid/dotnet/client-010/gentool/dotnetgenutil.py", line
27, in pascal
     [java]     return "".join([p[0].upper() + p[1:] for p in
parts[:offset]] + [p[0].upper() + p[1:] for p in parts[offset:]])
     [java] java.lang.NoSuchMethodError: method java.lang.String.<init> with
signature ([III)V was not found.
     [java]    at org.python.core.PyUnicode.<init>(PyUnicode.java:62)
     [java]    at org.python.core.Py.makeCharacter(Py.java:1469)
     [java]    at org.python.core.PyUnicode.pyget(PyUnicode.java:300)
     [java]    at org.python.core.PySequence$1.getItem(PySequence.java:452)
     [java]    at
org.python.core.SequenceIndexDelegate.checkIdxAndFindItem(SequenceIndexDelegate.java:88)
     [java]    at
org.python.core.SequenceIndexDelegate.checkIdxAndFindItem(SequenceIndexDelegate.java:70)
     [java]    at
org.python.core.SequenceIndexDelegate.checkIdxAndGetItem(SequenceIndexDelegate.java:61)
     [java]    at
org.python.core.PySequence.seq___getitem__(PySequence.java:305)
     [java]    at
org.python.core.PySequence.__getitem__(PySequence.java:301)
     [java]    at
dotnetgenutil$py.pascal$1(/home/john/svn/qpid/qpid/dotnet/client-010/gentool/dotnetgenutil.py:27)
     [java]    at
dotnetgenutil$py.call_function(/home/john/svn/qpid/qpid/dotnet/client-010/gentool/dotnetgenutil.py)
     [java]    at org.python.core.PyTableCode.call(PyTableCode.java:165)
     [java]    at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
     [java]    at org.python.core.PyBaseCode.call(PyBaseCode.java:154)
     [java]    at org.python.core.PyFunction.__call__(PyFunction.java:338)
     [java]    at
dotnetgenutil$py.cname$10(/home/john/svn/qpid/qpid/dotnet/client-010/gentool/dotnetgenutil.py:137)
     [java]    at
dotnetgenutil$py.call_function(/home/john/svn/qpid/qpid/dotnet/client-010/gentool/dotnetgenutil.py)
     [java]    at org.python.core.PyTableCode.call(PyTableCode.java:165)
     [java]    at org.python.core.PyBaseCode.call(PyBaseCode.java:297)
     [java]    at org.python.core.PyBaseCode.call(PyBaseCode.java:124)
     [java]    at org.python.core.PyFunction.__call__(PyFunction.java:317)
     [java]    at
org.python.pycode._pyx0.f$0(/home/john/svn/qpid/qpid/dotnet/client-010/gentool/codegen:84)
     [java]    at
org.python.pycode._pyx0.call_function(/home/john/svn/qpid/qpid/dotnet/client-010/gentool/codegen)
     [java]    at org.python.core.PyTableCode.call(PyTableCode.java:165)
     [java]    at org.python.core.PyCode.call(PyCode.java:18)
     [java]    at org.python.core.Py.runCode(Py.java:1197)
     [java]    at
org.python.util.PythonInterpreter.execfile(PythonInterpreter.java:166)
     [java]    at org.python.util.jython.run(jython.java:229)
     [java]    at org.python.util.jython.main(jython.java:117)
     [java]
     [java] java.lang.NoSuchMethodError: java.lang.NoSuchMethodError: method
java.lang.String.<init> with signature ([III)V was not found.

BUILD FAILED
/home/john/svn/qpid/qpid/dotnet/client-010/gentool/build.xml:38: Java
returned: 255

Total time: 2 minutes 23 seconds
-----------------------------------------

Re: dotnet/client-010 gentool error

Posted by John Obaterspok <jo...@gmail.com>.
2009/12/16 Rafael Schloming <ra...@redhat.com>

> John Obaterspok wrote:
>
>> 2009/12/16 Rafael Schloming <ra...@redhat.com>
>>
>>  John Obaterspok wrote:
>>>
>>>  2009/12/14 Aidan Skinner <ai...@gmail.com>
>>>>
>>>>  On Mon, Dec 14, 2009 at 9:16 PM, John Obaterspok
>>>>
>>>>> <jo...@gmail.com> wrote:
>>>>>
>>>>>  I'm on a Fedora 12 machine and I'm having problems building the dotnet
>>>>>
>>>>>> client. Running 'ant' in the gentool directory from a fresh checkout
>>>>>> (r:890479 gives me the below error:
>>>>>>
>>>>>>  What version of java do you have installed?
>>>>>
>>>>>
>>>>>  [john@flower ~]$ java -version
>>>>>
>>>> java version "1.6.0_0"
>>>> OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-33.b16.fc12-i386)
>>>> OpenJDK Server VM (build 14.0-b16, mixed mode)
>>>>
>>>> [john@flower ~]$ rpm -q jython
>>>> jython-2.2.1-4.2.fc12.i686
>>>>
>>>> [john@flower ~]$ rpm -q python
>>>> python-2.6.2-2.fc12.i686
>>>>
>>>>
>>>> Any ideas?
>>>>
>>>>  You should probably check 'javac -version' as well. That doesn't
>>> necessarily match 'java -version' depending on what set of rpms you have
>>> installed.
>>>
>>>
>> [john@flower ~]$ javac -version
>> Eclipse Java Compiler 0.894_R34x, 3.4.2 release, Copyright IBM Corp 2000,
>> 2008. All rights reserved.
>>
>
> Yeah, that's your problem. Try 'yum install java-1.6.0-openjdk-devel'.
>
>

Exactly, that fixes the problem. Now I could finally build the dotnet client
after the java/javac/python/jython/ant/nant configuration :D

Much appreciated!

//John

Re: dotnet/client-010 gentool error

Posted by Rafael Schloming <ra...@redhat.com>.
John Obaterspok wrote:
> 2009/12/16 Rafael Schloming <ra...@redhat.com>
> 
>> John Obaterspok wrote:
>>
>>> 2009/12/14 Aidan Skinner <ai...@gmail.com>
>>>
>>>  On Mon, Dec 14, 2009 at 9:16 PM, John Obaterspok
>>>> <jo...@gmail.com> wrote:
>>>>
>>>>  I'm on a Fedora 12 machine and I'm having problems building the dotnet
>>>>> client. Running 'ant' in the gentool directory from a fresh checkout
>>>>> (r:890479 gives me the below error:
>>>>>
>>>> What version of java do you have installed?
>>>>
>>>>
>>>>  [john@flower ~]$ java -version
>>> java version "1.6.0_0"
>>> OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-33.b16.fc12-i386)
>>> OpenJDK Server VM (build 14.0-b16, mixed mode)
>>>
>>> [john@flower ~]$ rpm -q jython
>>> jython-2.2.1-4.2.fc12.i686
>>>
>>> [john@flower ~]$ rpm -q python
>>> python-2.6.2-2.fc12.i686
>>>
>>>
>>> Any ideas?
>>>
>> You should probably check 'javac -version' as well. That doesn't
>> necessarily match 'java -version' depending on what set of rpms you have
>> installed.
>>
> 
> [john@flower ~]$ javac -version
> Eclipse Java Compiler 0.894_R34x, 3.4.2 release, Copyright IBM Corp 2000,
> 2008. All rights reserved.

Yeah, that's your problem. Try 'yum install java-1.6.0-openjdk-devel'.

--Rafael

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: dotnet/client-010 gentool error

Posted by John Obaterspok <jo...@gmail.com>.
2009/12/16 Rafael Schloming <ra...@redhat.com>

> John Obaterspok wrote:
>
>> 2009/12/14 Aidan Skinner <ai...@gmail.com>
>>
>>  On Mon, Dec 14, 2009 at 9:16 PM, John Obaterspok
>>> <jo...@gmail.com> wrote:
>>>
>>>  I'm on a Fedora 12 machine and I'm having problems building the dotnet
>>>> client. Running 'ant' in the gentool directory from a fresh checkout
>>>> (r:890479 gives me the below error:
>>>>
>>> What version of java do you have installed?
>>>
>>>
>>>  [john@flower ~]$ java -version
>> java version "1.6.0_0"
>> OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-33.b16.fc12-i386)
>> OpenJDK Server VM (build 14.0-b16, mixed mode)
>>
>> [john@flower ~]$ rpm -q jython
>> jython-2.2.1-4.2.fc12.i686
>>
>> [john@flower ~]$ rpm -q python
>> python-2.6.2-2.fc12.i686
>>
>>
>> Any ideas?
>>
>
> You should probably check 'javac -version' as well. That doesn't
> necessarily match 'java -version' depending on what set of rpms you have
> installed.
>

[john@flower ~]$ javac -version
Eclipse Java Compiler 0.894_R34x, 3.4.2 release, Copyright IBM Corp 2000,
2008. All rights reserved.

Re: dotnet/client-010 gentool error

Posted by Rafael Schloming <ra...@redhat.com>.
John Obaterspok wrote:
> 2009/12/14 Aidan Skinner <ai...@gmail.com>
> 
>> On Mon, Dec 14, 2009 at 9:16 PM, John Obaterspok
>> <jo...@gmail.com> wrote:
>>
>>> I'm on a Fedora 12 machine and I'm having problems building the dotnet
>>> client. Running 'ant' in the gentool directory from a fresh checkout
>>> (r:890479 gives me the below error:
>> What version of java do you have installed?
>>
>>
> [john@flower ~]$ java -version
> java version "1.6.0_0"
> OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-33.b16.fc12-i386)
> OpenJDK Server VM (build 14.0-b16, mixed mode)
> 
> [john@flower ~]$ rpm -q jython
> jython-2.2.1-4.2.fc12.i686
> 
> [john@flower ~]$ rpm -q python
> python-2.6.2-2.fc12.i686
> 
> 
> Any ideas?

You should probably check 'javac -version' as well. That doesn't 
necessarily match 'java -version' depending on what set of rpms you have 
installed.

--Rafael

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Re: dotnet/client-010 gentool error

Posted by John Obaterspok <jo...@gmail.com>.
2009/12/14 Aidan Skinner <ai...@gmail.com>

> On Mon, Dec 14, 2009 at 9:16 PM, John Obaterspok
> <jo...@gmail.com> wrote:
>
> > I'm on a Fedora 12 machine and I'm having problems building the dotnet
> > client. Running 'ant' in the gentool directory from a fresh checkout
> > (r:890479 gives me the below error:
>
> What version of java do you have installed?
>
>
[john@flower ~]$ java -version
java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.6) (fedora-33.b16.fc12-i386)
OpenJDK Server VM (build 14.0-b16, mixed mode)

[john@flower ~]$ rpm -q jython
jython-2.2.1-4.2.fc12.i686

[john@flower ~]$ rpm -q python
python-2.6.2-2.fc12.i686


Any ideas?

//John

Re: dotnet/client-010 gentool error

Posted by Aidan Skinner <ai...@gmail.com>.
On Mon, Dec 14, 2009 at 9:16 PM, John Obaterspok
<jo...@gmail.com> wrote:

> I'm on a Fedora 12 machine and I'm having problems building the dotnet
> client. Running 'ant' in the gentool directory from a fresh checkout
> (r:890479 gives me the below error:

What version of java do you have installed?

- Aidan
-- 
Apache Qpid - AMQP, JMS, other messaging love http://qpid.apache.org
"A witty saying proves nothing" - Voltaire

---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org