Seems to work now, but two observations:

(1) Your first patch (below) introduces (as part of the complete text):

 public UUID FullID
+        {
+            get { return _metadata.FullID; }
+            set { _metadata.FullID = value; }
+        }
+

 and  your second patch introduces:


+        // We expose FullID here because the NHibernate mappers require a
+        // property on the AssetBase class for its primary key (see
+        // OpenSim/Data/NHibernate/Resources/AssetBase.hbm.xml).
+        public UUID FullID
+        {
+            get { return Metadata.FullID; }
+            set { Metadata.FullID = value; }
+        }

 without removing the text from the first patch. I manually removed the
"get( return _metadata.FullID)
 set( _metadata.FullID=value)" and replaced it by the text in
the 2nd patch. Is this an issue if someone applies your patches and
there are two versions of "public UUID FullID" ? I may not be understanding
the patch syntax.



(2) In the new version, you added a 2nd database migration file for MSSQL
(001_RexAssetData). I created an equivalent one (I hope) for SQLite:

CREATE TABLE `RexAssetData` (
    `ID` nVARCHAR(255) PRIMARY KEY ASC NOT NULL,
    `MediaURL` nVARCHAR(64) NULL,
    `RefreshRate` TINYINT NULL );

 BTW, how does one get MediaURL into the db unless via script, since the
MediaURL parts of the viewer are grayed-out (one cannot manually add
this by using AboutLand in the viewer).

-p



Mikko Pallari wrote:
> Hi,
>
> That is also a bug in OpenSim. I have reported it and there is a working 
> patch: http://opensimulator.org/mantis/view.php?id=3080
>
> The second patch work fine, but it must be added manually, because it isn't 
> in correct format.
>
> ______________________________
> Mikko Pallari
>
> ADMINO technologies
> www.adminotech.com
> www.realxtend.org
>
>
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On 
> Behalf Of Paul Fishwick
> Sent: 9. helmikuuta 2009 16:28
> To: [email protected]
> Subject: [REX] Re: modrex build failure (opensim 8268) due to missing .dll
>
>
>
> I saw your patch, and it looks like 'OpenSim.Region.Environment' needed to
> be changed to 'OpenSim.Region.Framework' in file:
>
> opensim/data/nhibernate/resources/regionstore.hbm.xml
>
> The problem is that even after making this change, prebuilding both modrex
> and opensim, recompling and re-running, I get another run-time error
> relating
> to nhibernate. It looks like "FullID" is a property it is seeking. Do you
> get the same error? See this:
>
> 09:22:43 - [PRIM INVENTORY]: Starting scripts in scene
> 09:22:43 - [SCENE]: Loading land objects from storage
> 09:22:43 - [UDPSERVER]: Opening UDP socket on 0.0.0.0 9000.
> 09:22:43 - [UDPSERVER]: UDP socket bound, getting ready to listen
> 09:22:43 - [UDPSERVER]: Listening on port 9000
> 09:22:43 - [NHIBERNATE]: Initializing NHibernateRexObjectData
> 09:22:45 - [APPLICATION]:
>
> Unhandled Exception: NHibernate.PropertyNotFoundException: Could not
> find a gett
> er for property 'FullID' in class 'OpenSim.Framework.AssetBase'
>    at NHibernate.Properties.BasicPropertyAccessor.GetGetter(Type type,
> String pr
> opertyName)
>    at NHibernate.Tuple.PropertyFactory.GetGetter(Property mappingProperty)
>    at
> NHibernate.Tuple.PropertyFactory.BuildIdentifierProperty(PersistentClass m
> appedEntity, IIdentifierGenerator generator)
>    at NHibernate.Tuple.Entity.EntityMetamodel..ctor(PersistentClass
> persistentCl
> ass, ISessionFactoryImplementor sessionFactory)
>    at
> NHibernate.Persister.Entity.AbstractEntityPersister..ctor(PersistentClass
> persistentClass, ICacheConcurrencyStrategy cache,
> ISessionFactoryImplementor fac
> tory)
>    at
> NHibernate.Persister.Entity.SingleTableEntityPersister..ctor(PersistentCla
> ss persistentClass, ICacheConcurrencyStrategy cache,
> ISessionFactoryImplementor
> factory, IMapping mapping)
>    at
> NHibernate.Persister.PersisterFactory.CreateClassPersister(PersistentClass
>  model, ICacheConcurrencyStrategy cache, ISessionFactoryImplementor
> factory, IMa
> pping cfg)
>    at NHibernate.Impl.SessionFactoryImpl..ctor(Configuration cfg,
> IMapping mappi
> ng, Settings settings, EventListeners listeners)
>    at NHibernate.Cfg.Configuration.BuildSessionFactory()
>    at OpenSim.Data.NHibernate.NHibernateManager..ctor(String connect,
> String sto
> re, Assembly assembly)
>    at OpenSim.Data.NHibernate.NHibernateRexObjectData.Initialise(String
> connect)
>
>    at ModularRex.RexParts.ModrexObjects.PostInitialise()
>    at OpenSim.Region.Framework.ModuleLoader.PostInitialise()
>    at
> OpenSim.ApplicationPlugins.LoadRegions.LoadRegionsPlugin.Initialise(OpenSi
> mBase openSim)
>    at OpenSim.ApplicationPluginInitialiser.Initialise(IPlugin plugin)
>    at OpenSim.Framework.PluginLoader`1.Load()
>    at OpenSim.Framework.PluginLoader`1.Load(String extpoint)
>    at OpenSim.OpenSimBase.LoadPlugins()
>    at OpenSim.OpenSimBase.StartupSpecific()
>    at OpenSim.OpenSim.StartupSpecific()
>    at OpenSim.Framework.Servers.BaseOpenSimServer.Startup()
>    at OpenSim.Application.Main(String[] args)
>
> C:\OpenSim\opensim_test_modrex3\bin>
> Mikko Pallari wrote:
>   
>> Hi,
>>
>> This is a bug in OpenSim. I have already submitted a bug report and a patch 
>> to it: http://opensimulator.org/mantis/view.php?id=3113
>>
>>
>> ______________________________
>> Mikko Pallari
>>
>> ADMINO technologies
>> www.adminotech.com
>> www.realxtend.org
>>
>>
>> -----Original Message-----
>> From: [email protected] [mailto:[email protected]] On 
>> Behalf Of Paul Fishwick
>> Sent: 9. helmikuuta 2009 15:50
>> To: [email protected]
>> Subject: [REX] Re: modrex build failure (opensim 8268) due to missing .dll
>>
>>
>> Mikko
>>  I tried this just now with your new modrex v. 63 and the latest opensim.
>> I am using SQLite as the database. The compile works flawlessly, but
>> when running opensim for the first time, and generating new terrain, I
>> get the following error. Any ideas on what could be wrong? I did notice
>> that in VC# 2008, after putting in the 3 ModRex projects, there is
>> a bad reference:
>>
>> OpenSim.Region.Interfaces.dll in the added ModularRex project.
>>
>> Unfortunately, removing this reference results in a successful build,
>> but fails when running opensim in the same location:
>>
>> ........................
>> 08:41:22 - [SCENE]: Registering with InterregionCommsIn
>> 08:41:22 - [PRIM INVENTORY]: Starting scripts in scene
>> 08:41:22 - [SCENE]: Loading land objects from storage
>> 08:41:22 - [UDPSERVER]: Opening UDP socket on 0.0.0.0 9000.
>> 08:41:22 - [UDPSERVER]: UDP socket bound, getting ready to listen
>> 08:41:22 - [UDPSERVER]: Listening on port 9000
>> 08:41:22 - [NHIBERNATE]: Initializing NHibernateRexObjectData
>> 08:41:24 - [APPLICATION]:
>>
>> Unhandled Exception: NHibernate.MappingException: Could not compile the
>> mapping
>> document: OpenSim.Data.NHibernate.Resources.RegionStore.hbm.xml --->
>> NHibernate.
>> MappingException: persistent class
>> OpenSim.Region.Environment.Scenes.SceneObject
>> Part, OpenSim.Region.Framework not found ---> System.TypeLoadException:
>> Could no
>> t load type 'OpenSim.Region.Environment.Scenes.SceneObjectPart' from
>> assembly 'O
>> penSim.Region.Framework, Version=0.0.0.0, Culture=neutral,
>> PublicKeyToken=null'.
>>
>>    at System.Reflection.Assembly._GetType(String name, Boolean
>> throwOnError, Boo
>> lean ignoreCase)
>>    at System.Reflection.Assembly.GetType(String name, Boolean throwOnError)
>>    at
>> NHibernate.Util.ReflectHelper.TypeFromAssembly(AssemblyQualifiedTypeName n
>> ame, Boolean throwOnError)
>>    at NHibernate.Util.ReflectHelper.ClassForName(String name)
>>    at NHibernate.Cfg.XmlHbmBinding.Binder.ClassForFullNameChecked(String
>> fullNam
>> e, String errorMessage)
>>    --- End of inner exception stack trace ---
>>    at NHibernate.Cfg.XmlHbmBinding.Binder.ClassForFullNameChecked(String
>> fullNam
>> e, String errorMessage)
>>    at NHibernate.Cfg.XmlHbmBinding.ClassBinder.BindClass(XmlNode node,
>> Persisten
>> tClass model)
>>    at NHibernate.Cfg.XmlHbmBinding.RootClassBinder.Bind(XmlNode node,
>> HbmClass c
>> lassSchema)
>>    at
>> NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.AddRootClasses(XmlNode pare
>> ntNode)
>>    at NHibernate.Cfg.XmlHbmBinding.MappingRootBinder.Bind(XmlNode node)
>>    at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument
>> doc)
>>    --- End of inner exception stack trace ---
>>    at NHibernate.Cfg.Configuration.LogAndThrow(Exception exception)
>>    at NHibernate.Cfg.Configuration.AddValidatedDocument(NamedXmlDocument
>> doc)
>>    at NHibernate.Cfg.Configuration.ProcessMappingsQueue()
>>    at
>> NHibernate.Cfg.Configuration.AddDocumentThroughQueue(NamedXmlDocument docu
>> ment)
>>    at NHibernate.Cfg.Configuration.AddXmlReader(XmlReader hbmReader,
>> String name
>> )
>>    at NHibernate.Cfg.Configuration.AddInputStream(Stream xmlInputStream,
>> String
>> name)
>>    at NHibernate.Cfg.Configuration.AddResource(String path, Assembly
>> assembly)
>>    at NHibernate.Cfg.Configuration.AddAssembly(Assembly assembly)
>>    at NHibernate.Cfg.Configuration.AddAssembly(String assemblyName)
>>    at
>> OpenSim.Data.NHibernate.NHibernateManager.ParseConnectionString(String con
>> nect)
>>    at OpenSim.Data.NHibernate.NHibernateManager..ctor(String connect,
>> String sto
>> re, Assembly assembly)
>>    at OpenSim.Data.NHibernate.NHibernateRexObjectData.Initialise(String
>> connect)
>>
>>    at ModularRex.RexParts.ModrexObjects.PostInitialise()
>>    at OpenSim.Region.Framework.ModuleLoader.PostInitialise()
>>    at
>> OpenSim.ApplicationPlugins.LoadRegions.LoadRegionsPlugin.Initialise(OpenSi
>> mBase openSim)
>>    at OpenSim.ApplicationPluginInitialiser.Initialise(IPlugin plugin)
>>    at OpenSim.Framework.PluginLoader`1.Load()
>>    at OpenSim.Framework.PluginLoader`1.Load(String extpoint)
>>    at OpenSim.OpenSimBase.LoadPlugins()
>>    at OpenSim.OpenSimBase.StartupSpecific()
>>    at OpenSim.OpenSim.StartupSpecific()
>>    at OpenSim.Framework.Servers.BaseOpenSimServer.Startup()
>>    at OpenSim.Application.Main(String[] args)
>>
>> C:\OpenSim\opensim_test_modrex3\bin>
>>
>>
>>
>> Mikko Pallari wrote:
>>
>>     
>>> This should be now fixed in newest revision.
>>>
>>> ______________________________
>>> Mikko Pallari
>>>
>>> ADMINO technologies
>>> www.adminotech.com
>>> www.realxtend.org
>>>
>>>
>>> -----Original Message-----
>>> From: [email protected] [mailto:[email protected]] On 
>>> Behalf Of Paul Fishwick
>>> Sent: 7. helmikuuta 2009 3:14
>>> To: [email protected]
>>> Subject: [REX] modrex build failure (opensim 8268) due to missing .dll
>>>
>>>
>>> ModreX build failed with latest opensim:
>>>
>>> OpenSim: v. 8268
>>> ModReX: v. 62
>>>
>>> Opensim compiles and builds correctly without modrex
>>>
>>> OpenSim.Region.Interfaces.dll is not created because the Interfaces
>>> module does not exist in v. 8268. After trying to compile in VC#2008
>>> with the usual 3 modrex components, this results in a build failure due
>>> to the missing assembly reference.
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> --
>>> Paul Fishwick, PhD
>>> Professor and Director, Digital Arts and Sciences Programs
>>> University of Florida
>>> Computer & Information Science and Eng. Dept.
>>> Bldg. CSE, Room 301
>>> P.O. Box 116120
>>> Gainesville, FL 32611
>>> Email: [email protected]
>>> Phone: (352) 392-1414
>>> Fax: (352) 392-1220
>>> Web: http://www.cise.ufl.edu/~fishwick
>>>
>>>
>>>
>>>
>>>
>>>       
>> --
>> Paul Fishwick, PhD
>> Professor and Director, Digital Arts and Sciences Programs
>> University of Florida
>> Computer & Information Science and Eng. Dept.
>> Bldg. CSE, Room 301
>> P.O. Box 116120
>> Gainesville, FL 32611
>> Email: [email protected]
>> Phone: (352) 392-1414
>> Fax: (352) 392-1220
>> Web: http://www.cise.ufl.edu/~fishwick
>>
>>
>>
>>
>>     
>
>
> --
> Paul Fishwick, PhD
> Professor and Director, Digital Arts and Sciences Programs
> University of Florida
> Computer & Information Science and Eng. Dept.
> Bldg. CSE, Room 301
> P.O. Box 116120
> Gainesville, FL 32611
> Email: [email protected]
> Phone: (352) 392-1414
> Fax: (352) 392-1220
> Web: http://www.cise.ufl.edu/~fishwick
>
>
>
>
> >
>   


-- 
Paul Fishwick, PhD
Professor and Director, Digital Arts and Sciences Programs
University of Florida
Computer & Information Science and Eng. Dept.
Bldg. CSE, Room 301
P.O. Box 116120
Gainesville, FL 32611
Email: [email protected]
Phone: (352) 392-1414
Fax: (352) 392-1220
Web: http://www.cise.ufl.edu/~fishwick


--~--~---------~--~----~------------~-------~--~----~
this list: http://groups.google.com/group/realxtend
realXtend home page: http://www.realxtend.org/
-~----------~----~----~----~------~----~------~--~---

Reply via email to