Fornax-Platform
Forum

NoSuchMethodError: URIConverter.createInputStream(URI, Map)

View: New views
4 Messages — Rating Filter:   Alert me  

NoSuchMethodError: URIConverter.createInputStream(URI, Map)

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

in a novice attempt, I am trying to use the Fornax Maven plugin and
the Hibernate cartridge to generate sources. So far, no luck. My
current problem is the following exception:

0    INFO  WorkflowRunner     - openArchitectureWare v4.3.1
0    INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org
and contr   ibutors
0    INFO  WorkflowRunner     -
------------------------------------------------
--------------------------------------
0    INFO  WorkflowRunner     - running workflow: workflow.oaw
0    INFO  WorkflowRunner     -
1282 ERROR VisitorCreator     - java.lang.RuntimeException:
java.lang.NullPointe   rException
1313 ERROR VisitorCreator     - java.lang.RuntimeException:
java.lang.NoSuchMeth   odError:
org.eclipse.emf.ecore.resource.URIConverter.createInputStream(Lorg/ecli
  pse/emf/common/util/URI;Ljava/util/Map;)Ljava/io/InputStream;
1344 ERROR WorkflowRunner     - Error creating instance of type
'org.openarchite   ctureware.uml2.Setup' :
java.lang.NullPointerException [bean bean class='org.ope
narchitectureware.uml2.Setup' in workflow.oaw:10]
1344 ERROR WorkflowRunner     - Error creating instance of type
'org.openarchite   ctureware.uml2.profile.ProfileMetaModel' :
java.lang.NoSuchMethodError: org.ecli
pse.emf.ecore.resource.URIConverter.createInputStream(Lorg/eclipse/emf/common/ut
  il/URI;Ljava/util/Map;)Ljava/io/InputStream; [bean bean
class='org.openarchitect   ureware.uml2.profile.ProfileMetaModel'
id='mm_hibernate_profile' in org/fornax/c
artridges/uml2/hibernate/hibernate.oaw:53]

Obviously, the reason are conflicting versions of EMF. As the stack
trace is suppressed, I don't know what's the calling class.

Any suggestions? Is there any possibility to get a clean (in the sense
of OAW) local Maven repository?

Thanks,

Jochen


--
Germanys national anthem is the most boring in the world - how telling!

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Re: NoSuchMethodError: URIConverter.createInputStream(URI, Map)

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No ideas?


On Wed, Oct 21, 2009 at 8:42 AM, Jochen Wiedmann
<jochen.wiedmann@...> wrote:

> Hi,
>
> in a novice attempt, I am trying to use the Fornax Maven plugin and
> the Hibernate cartridge to generate sources. So far, no luck. My
> current problem is the following exception:
>
> 0    INFO  WorkflowRunner     - openArchitectureWare v4.3.1
> 0    INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org
> and contr   ibutors
> 0    INFO  WorkflowRunner     -
> ------------------------------------------------
> --------------------------------------
> 0    INFO  WorkflowRunner     - running workflow: workflow.oaw
> 0    INFO  WorkflowRunner     -
> 1282 ERROR VisitorCreator     - java.lang.RuntimeException:
> java.lang.NullPointe   rException
> 1313 ERROR VisitorCreator     - java.lang.RuntimeException:
> java.lang.NoSuchMeth   odError:
> org.eclipse.emf.ecore.resource.URIConverter.createInputStream(Lorg/ecli
>  pse/emf/common/util/URI;Ljava/util/Map;)Ljava/io/InputStream;
> 1344 ERROR WorkflowRunner     - Error creating instance of type
> 'org.openarchite   ctureware.uml2.Setup' :
> java.lang.NullPointerException [bean bean class='org.ope
> narchitectureware.uml2.Setup' in workflow.oaw:10]
> 1344 ERROR WorkflowRunner     - Error creating instance of type
> 'org.openarchite   ctureware.uml2.profile.ProfileMetaModel' :
> java.lang.NoSuchMethodError: org.ecli
> pse.emf.ecore.resource.URIConverter.createInputStream(Lorg/eclipse/emf/common/ut
>  il/URI;Ljava/util/Map;)Ljava/io/InputStream; [bean bean
> class='org.openarchitect   ureware.uml2.profile.ProfileMetaModel'
> id='mm_hibernate_profile' in org/fornax/c
> artridges/uml2/hibernate/hibernate.oaw:53]
>
> Obviously, the reason are conflicting versions of EMF. As the stack
> trace is suppressed, I don't know what's the calling class.
>
> Any suggestions? Is there any possibility to get a clean (in the sense
> of OAW) local Maven repository?
>
> Thanks,
>
> Jochen
>
>
> --
> Germanys national anthem is the most boring in the world - how telling!
>



--
Germanys national anthem is the most boring in the world - how telling!

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Re: NoSuchMethodError: URIConverter.createInputStream(URI, Map)

by Karsten Thoms :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jochen!

Look into your dependencies with "mvn dependency:list" or "mvn dependency:tree". Override conflicting dependencies by adding them in the dependencies section in front, e.g. when the build is using wrong EMF library versions.

~Karsten

----- Original Message -----
From: "Jochen Wiedmann" <jochen.wiedmann@...>
To: fornax-developer@...
Sent: Wednesday, October 21, 2009 9:42:43 AM (GMT+0100) Europe/Berlin
Subject: [Fornax-developer] NoSuchMethodError: URIConverter.createInputStream(URI, Map)

Hi,

in a novice attempt, I am trying to use the Fornax Maven plugin and
the Hibernate cartridge to generate sources. So far, no luck. My
current problem is the following exception:

0    INFO  WorkflowRunner     - openArchitectureWare v4.3.1
0    INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org
and contr   ibutors
0    INFO  WorkflowRunner     -
------------------------------------------------
--------------------------------------
0    INFO  WorkflowRunner     - running workflow: workflow.oaw
0    INFO  WorkflowRunner     -
1282 ERROR VisitorCreator     - java.lang.RuntimeException:
java.lang.NullPointe   rException
1313 ERROR VisitorCreator     - java.lang.RuntimeException:
java.lang.NoSuchMeth   odError:
org.eclipse.emf.ecore.resource.URIConverter.createInputStream(Lorg/ecli
  pse/emf/common/util/URI;Ljava/util/Map;)Ljava/io/InputStream;
1344 ERROR WorkflowRunner     - Error creating instance of type
'org.openarchite   ctureware.uml2.Setup' :
java.lang.NullPointerException [bean bean class='org.ope
narchitectureware.uml2.Setup' in workflow.oaw:10]
1344 ERROR WorkflowRunner     - Error creating instance of type
'org.openarchite   ctureware.uml2.profile.ProfileMetaModel' :
java.lang.NoSuchMethodError: org.ecli
pse.emf.ecore.resource.URIConverter.createInputStream(Lorg/eclipse/emf/common/ut
  il/URI;Ljava/util/Map;)Ljava/io/InputStream; [bean bean
class='org.openarchitect   ureware.uml2.profile.ProfileMetaModel'
id='mm_hibernate_profile' in org/fornax/c
artridges/uml2/hibernate/hibernate.oaw:53]

Obviously, the reason are conflicting versions of EMF. As the stack
trace is suppressed, I don't know what's the calling class.

Any suggestions? Is there any possibility to get a clean (in the sense
of OAW) local Maven repository?

Thanks,

Jochen


--
Germanys national anthem is the most boring in the world - how telling!

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer

Re: NoSuchMethodError: URIConverter.createInputStream(URI, Map)

by Jochen Wiedmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good advice, Karsten!

I found that I could eliminate this problem by adding

          <dependency>
            <groupId>org.eclipse.emf</groupId>
            <artifactId>ecore</artifactId>
            <version>2.4.0</version>
          </dependency>

to the project and plugin dependencies.

Thanks,

Jochen


On Wed, Nov 4, 2009 at 1:51 PM, Karsten Thoms <karsten.thoms@...> wrote:

> Hi Jochen!
>
> Look into your dependencies with "mvn dependency:list" or "mvn dependency:tree". Override conflicting dependencies by adding them in the dependencies section in front, e.g. when the build is using wrong EMF library versions.
>
> ~Karsten
>
> ----- Original Message -----
> From: "Jochen Wiedmann" <jochen.wiedmann@...>
> To: fornax-developer@...
> Sent: Wednesday, October 21, 2009 9:42:43 AM (GMT+0100) Europe/Berlin
> Subject: [Fornax-developer] NoSuchMethodError: URIConverter.createInputStream(URI, Map)
>
> Hi,
>
> in a novice attempt, I am trying to use the Fornax Maven plugin and
> the Hibernate cartridge to generate sources. So far, no luck. My
> current problem is the following exception:
>
> 0    INFO  WorkflowRunner     - openArchitectureWare v4.3.1
> 0    INFO  WorkflowRunner     - (c) 2005-2008 openarchitectureware.org
> and contr   ibutors
> 0    INFO  WorkflowRunner     -
> ------------------------------------------------
> --------------------------------------
> 0    INFO  WorkflowRunner     - running workflow: workflow.oaw
> 0    INFO  WorkflowRunner     -
> 1282 ERROR VisitorCreator     - java.lang.RuntimeException:
> java.lang.NullPointe   rException
> 1313 ERROR VisitorCreator     - java.lang.RuntimeException:
> java.lang.NoSuchMeth   odError:
> org.eclipse.emf.ecore.resource.URIConverter.createInputStream(Lorg/ecli
>  pse/emf/common/util/URI;Ljava/util/Map;)Ljava/io/InputStream;
> 1344 ERROR WorkflowRunner     - Error creating instance of type
> 'org.openarchite   ctureware.uml2.Setup' :
> java.lang.NullPointerException [bean bean class='org.ope
> narchitectureware.uml2.Setup' in workflow.oaw:10]
> 1344 ERROR WorkflowRunner     - Error creating instance of type
> 'org.openarchite   ctureware.uml2.profile.ProfileMetaModel' :
> java.lang.NoSuchMethodError: org.ecli
> pse.emf.ecore.resource.URIConverter.createInputStream(Lorg/eclipse/emf/common/ut
>  il/URI;Ljava/util/Map;)Ljava/io/InputStream; [bean bean
> class='org.openarchitect   ureware.uml2.profile.ProfileMetaModel'
> id='mm_hibernate_profile' in org/fornax/c
> artridges/uml2/hibernate/hibernate.oaw:53]
>
> Obviously, the reason are conflicting versions of EMF. As the stack
> trace is suppressed, I don't know what's the calling class.
>
> Any suggestions? Is there any possibility to get a clean (in the sense
> of OAW) local Maven repository?
>
> Thanks,
>
> Jochen
>
>
> --
> Germanys national anthem is the most boring in the world - how telling!
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@...
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Fornax-developer mailing list
> Fornax-developer@...
> https://lists.sourceforge.net/lists/listinfo/fornax-developer
>



--
Germanys national anthem is the most boring in the world - how telling!

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Fornax-developer mailing list
Fornax-developer@...
https://lists.sourceforge.net/lists/listinfo/fornax-developer