Asked by:
Resource Manager - Adding entities via web interface fails

Question
-
Hi everybody,
I'm back with more errors. After creating the custom data model, I've attempted to add an entity via the Resource Manager. First I tried a File resource (Zentity.Core) and that failed (the errors are identical, so I will only post one for brevity), then I tried creating a custom entity (MyModel.Model). It took a very long time (10+ minutes) to even get this error. Slow processing?Error is below:
<?xml version="1.0" encoding="utf-8"?> <Root> <Items> <Item> <DateTime>04.03.2012 03:46:30</DateTime> <Severity>Error</Severity> <Content>An error occurred while retrieving Resource Types</Content> </Item> <Item> <DateTime>04.03.2012 03:35:25</DateTime> <Severity>Error</Severity> <Content>System.NotImplementedException: Enumerator value not implemented for the DataAcess response. *********************** at Zentity.ResourceManager.Common.Operational.Messaging.MessageMapper.GetMessage(OperationResponse responseCode) at Zentity.ResourceManager.Models.Business.ResourceModel.UploadFileBytesCompleted(Object userState, OperationResponse responseCode)</Content> </Item> <Item> <DateTime>04.03.2012 03:35:25</DateTime> <Severity>Error</Severity> <Content>System.Reflection.TargetInvocationException: An exception occurred during the operation, making the result invalid. Check InnerException for exception details. *********************** System.ObjectDisposedException: Cannot access a disposed object. Object name: 'System.ServiceModel.Channels.HttpChannelFactory+HttpRequestChannel'. *********************** at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at Zentity.ResourceManager.Models.ResourceServiceReference.UploadFileBytesCompletedEventArgs.get_Result() at Zentity.ResourceManager.Models.DataAccess.Components.ResourceHelper.OnUploadFileBytesCompleted(Object sender, UploadFileBytesCompletedEventArgs e)</Content> </Item> <Item> <DateTime>04.03.2012 03:10:44</DateTime> <Severity>Error</Severity> <Content>An error occurred while retrieving Resource Types</Content> </Item> <Item> <DateTime>02.26.2012 12:53:31</DateTime> <Severity>Error</Severity> <Content>An error occurred while adding a Resource</Content> </Item> <Item> <DateTime>02.26.2012 12:05:14</DateTime> <Severity>Error</Severity> <Content>An error occurred while retrieving Data Modules.</Content> </Item> <Item> <DateTime>02.26.2012 12:01:29</DateTime> <Severity>Error</Severity> <Content>An error occurred while adding a Resource</Content> </Item> </Items> </Root>
Repro steps:
- Start Zentity Resource Manager (after adding custom model)
- Log in as Administrator (I used the built-in admin account, no Windows authentication)
- Try to add an entity (fill in Title, Description and Uri)
- Wait....
- Error (see above)
I really need this to work, it would be great to find out what's behind it and why Zentity generally dislikes models other than ScholarlyWorks.
Cheers,
WizMan
Tuesday, April 3, 2012 2:14 PM
All replies
-
Wiz, please let us know on the status of this issue. Are you still facing this issue? I tested at my end with a custom model and is working fine.
-Regards
Tuesday, April 17, 2012 7:53 AM -
Hi Kalnemi, yes I am still having the issue. Could you please paste here how you have created that custom model? Maybe the problem appears only when importing from RDFS.
Cheers,
WizMan
Wednesday, April 18, 2012 6:01 PM -
Hi Wiz,
I did the test on USPresident and TestScholarlyWorks (a modification of ScholarlySample rdf that comes with installation). Both were added using the RDFs and powershell script. I able to add resources of the both type using ZRM.
Thursday, April 19, 2012 3:29 AM -
here is the RDF file.
<?xml version="1.0"?> <!DOCTYPE rdf:RDF [ <!ENTITY sch "http://scholarsample.example.org" > ]> <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#" xmlns:sch="http://scholarsample.example.org" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xml:base="http://scholarsample.example.org"> <!-- Scholar Sample --> <rdfs:Class rdf:about="ScholarSample" /> <!-- Author --> <rdfs:Class rdf:about="TestAuthor"> <rdfs:subClassOf rdf:resource="ScholarSample" /> </rdfs:Class> <rdf:Property rdf:about="TestFirstName"> <rdfs:range rdf:resource="&sch;string"/> <rdfs:domain rdf:resource="TestAuthor"/> </rdf:Property> <rdf:Property rdf:about="TestLastName"> <rdfs:range rdf:resource="&sch;string"/> <rdfs:domain rdf:resource="TestAuthor"/> </rdf:Property> <rdf:Property rdf:about="TestAge"> <rdfs:range rdf:resource="&sch;integer"/> <rdfs:domain rdf:resource="TestAuthor"/> </rdf:Property> <!-- Research Document --> <rdfs:Class rdf:about="TestResearchDocument"> <rdfs:subClassOf rdf:resource="ScholarSample" /> </rdfs:Class> <rdf:Property rdf:about="TestAuthors"> <rdfs:range rdf:resource="TestAuthor"/> <rdfs:domain rdf:resource="TestResearchDocument"/> </rdf:Property> <rdf:Property rdf:about="TestPublishedDate"> <rdfs:range rdf:resource="&sch;datetime"/> <rdfs:domain rdf:resource="TestResearchDocument"/> </rdf:Property> <rdf:Property rdf:about="TestAbstract"> <rdfs:range rdf:resource="&sch;string"/> <rdfs:domain rdf:resource="TestResearchDocument"/> </rdf:Property> <rdf:Property rdf:about="TestPrimary"> <rdfs:range rdf:resource="&sch;string"/> <rdfs:domain rdf:resource="TestResearchDocument"/> </rdf:Property> <rdf:Property rdf:about="TestLicense"> <rdfs:range rdf:resource="&sch;string"/> <rdfs:domain rdf:resource="TestResearchDocument"/> </rdf:Property> <rdf:Property rdf:about="TestComments"> <rdfs:range rdf:resource="&sch;string"/> <rdfs:domain rdf:resource="TestResearchDocument"/> </rdf:Property> </rdf:RDF>
Thursday, April 19, 2012 3:36 AM