Error on walkthru

7 posts, 0 answers
  1. Vann
    Vann avatar
    7 posts
    Member since:
    Feb 2011

    Posted 08 Apr 2011 Link to this post

    I have downloaded and installed the ORM trial software. I am trying to do the Waklthrough: Create a RIA Services Solution.

    I get to create a domain service step and in the OpenAccess RIA Wizard when I select the SofiaCarRentalDbContext from the dropdown I get a dialog error: Object reference not set to an instance of an object.....

    Any ideas? I do have the Sales Dashboard project running in this same environment.

    tks,
    vhb
  2. Vann
    Vann avatar
    7 posts
    Member since:
    Feb 2011

    Posted 08 Apr 2011 Link to this post

    Here is the log.txt from Data Services Wizard:

    CustomerDALPicker - 4/8/2011 3:18:57 PM: Exception Message: 'Object reference not set to an instance of an object.', Type: 'Telerik.OpenAccess.OpenAccessException', Source: 'Telerik.OpenAccess.Runtime', StackTrace: '   at Telerik.OpenAccess.RT.ExceptionWrapper.Throw()
       at Telerik.OpenAccess.RT.Helper.getPersistenceManagerFactory(PropertySet props)
       at Telerik.OpenAccess.RT.DatabaseAdapter.AssertPersistenceManagerFactory(String usr, String password, Boolean open)
       at Telerik.OpenAccess.RT.DatabaseAdapter.Telerik.OpenAccess.SPI.IDatabaseAdapter.GetMetaData()
       at Telerik.OpenAccess.OpenAccessContextBase.get_Metadata()
       at Telerik.OpenAccess.DSW.Core.Discoverer.DomainModel.DomainModelDiscoverer.GetMetadataContainer()
       at Telerik.OpenAccess.DSW.Core.Discoverer.DiscovererBase.GetEntities()
       at Telerik.OpenAccess.DSW.Core.DALDependency.ConcreteDal.ExtractEntities(IDomainModel domainModel)
       at Telerik.OpenAccess.DSW.Presenter.Presenters.CustomerDALPickerPresenter.ValidateInputs(Action dalFilePathNotFoundAction, Action objectContextNotFoundAction, Action`1 modelChooserInitializationAction, Action`1 dataServicePickerInitializationAction, Action`1 exceptionHandling)'
     Exception Message: 'Object reference not set to an instance of an object.', Type: 'System.NullReferenceException', Source: 'Telerik.OpenAccess.Runtime', StackTrace: '   at OpenAccessRuntime.Relational.RelationalStorageManagerFactory.CheckLicense()
       at OpenAccessRuntime.storagemanager.logging.LoggingStorageManagerFactory.CheckLicense()
       at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryBase.CheckLicense()
       at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.CheckLicense()
       at OpenAccessRuntime.DataObjects.PersistenceManagerFactoryImp.init()
       at OpenAccessRuntime.DataObjects.BootstrapPMF.getPersistenceManagerFactory(PropertySet props)
       at Telerik.OpenAccess.RT.Helper.getPersistenceManagerFactory(PropertySet props)'
  3. DevCraft banner
  4. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 12 Apr 2011 Link to this post

    Hi Vann,

    Are you sure that you are using the correct wizard? The exception seems to be thrown from the Data Services Wizard, which is not the one used in the walkthrough. Please note that, as described in the Creating a Domain Service section of the article, you need to invoke the OpenAccess RIA Wizard from the Add New Item entry in the project's context menu. Then select the Telerik OpenAccess Domain Service item template at the end of the list and click Add.
    Please let us know if this is not the case and the exception is indeed thrown by the OpenAccess RIA Wizard, we would need to investigate this further.

    All the best,
    Alexander
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Vann
    Vann avatar
    7 posts
    Member since:
    Feb 2011

    Posted 12 Apr 2011 Link to this post

    I was trying the Data Wizard to see if it worked and posted the error as I thought it might be helpful in trouble shooting. I was using the correct wizard for the walkthru.

    I have uninstalled the trial and reinstalled the free version and am getting the same error. I have posted that in the proper forum.

    tks,
    vhb
  6. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 14 Apr 2011 Link to this post

    Hi Vann,

     Which approach are you using for generating your domain service? Are you generating from an rlinq file or are you generating from a context? Basically generating from an rlinq file would mean that your rlinq file will be read and the metadata will be obtained from there. If on the other hand you are using a context then reflection will be used to obtain the metadata.
    Please share with us which approach is causing the null reference exception and perhaps use the other one for a temporary workaround.

    All the best,
    Petar
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Vann
    Vann avatar
    7 posts
    Member since:
    Feb 2011

    Posted 14 Apr 2011 Link to this post

    When using the context I get the error. When I use the Rlinq file I do not get an error but no entities show up for me to select.
  8. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 15 Apr 2011 Link to this post

    Hi Vann,

     Is it possible that you have inheritance defined in your model? We used to have some problems in models that had inheritance defined and those problems caused the wizard not to show any entities. Can you never the less execute the wizard as it will generated you the basics that are required in order to use our implementation of the RIA services. After that you can manually create some end points for your classes. 
    We have completely rewritten the RIA wizard and it should be part of our next service pack. With the new and improved wizard those problems will not be present.
    I am sorry for any inconvenience this might be causing you.

    Kind regards,
    Petar
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Back to Top
DevCraft banner