Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Test and Performance Tools Platform (TPTP) » Datapools and
Datapools and [message #49262] Thu, 05 January 2006 15:37 Go to next message
Eclipse UserFriend
Originally posted by: peter.marshall3.vodafone.com

Hi,
I am trying to access a datapool from outside of the tptp project (but
from within an eclipse project).

Inside the class
org.eclipse.hyades.models.common.datapool.impl.Common_Datapo olFactoryImpl
at
line 256 an exception is thrown. The line reads :

Resource res = resourceSet.getResource(URI.createFileURI(dpAbsolutePath),
true);

The exception is thrown from the getResource method, the URI method
executes correctly. The exception indicates that "A registered resource
factory is missing". I suspect that this is the factory for resources
with the extension
datapool.

How do I get the datapool factory registered?

I have tried registering the common datapool factory as follows :

ResourceSet resourceSet = new
ResourceSetImpl(); resourceSet.getResourceFactoryRegistry().getExtensionToFacto ryMap().put( "datapool",
new Common_DatapoolFactoryImpl());


This doesnt solve the problem. Using the .INSTANCE for the global factory
registry doesnt fix the problem either.

eclipse 3.1.0
tptp 4.0.0 / 4.0.1
hyades 4.0.0 / 4.0.1
emf 2.1.0 / 2.1.1

Thanks for any help.

Pete M.
Re: Datapools and [message #49290 is a reply to message #49262] Thu, 05 January 2006 16:19 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: peter.marshall3.vodafone.com

Sorry,
I see from reading my post that the information was not complete;

The actual error generated is :
Cannot create a resource for '" + uri + "'; a registered resource factory
is needed"

Where the uri is file:/path/name.datapool

It is originally thrown from :
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl at line 346 after a
null resource of null is created.
Re: Datapools and [message #50803 is a reply to message #49290] Wed, 18 January 2006 13:21 Go to previous message
test is currently offline testFriend
Messages: 51
Registered: July 2009
Member
Hi,

i also debugged through the jungle of factories and encountered the same
problem.
Has anybody an idea to solve it?
"Cannot create a resource for ''; a registered resource factory is needed"

The "best" thing is, that this information gets lost, because all
Throwables will be catched and a new DatapoolException is thrown with less
information!

Thanks alot!
Previous Topic:TPTP...Using the 4.1.0 platform...
Next Topic:Problem to monitoring jonas
Goto Forum:
  


Current Time: Mon Dec 30 16:44:26 GMT 2024

Powered by FUDForum. Page generated in 0.03965 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top