[Mono-list] xsp more than one app failure

Chris Turchin chris@turchin.net
Sun, 27 Jun 2004 01:59:08 -0700 (PDT)


hi,

i am experiencing this as well with mod_mono - i had submimtted it to bugzilla
a while back and it was working again but since thursdsay or so i have seen
regression  (usinig anon cvs).

http://bugzilla.ximian.com/show_bug.cgi?id=55978

in my report, i thought it had more to do with a specific control, but now it
appears indeed to have more to do with multiple webapps.

regards,
--chris



ps: stack trace:

Server error in '/blogx' application
Description: Error processing request.

Error Message: HTTP 500.

Stack Trace:

System.NullReferenceException: Object reference not set to an instance of an
object
in <0x0000f> System.Int32:FindSign
(int&,string,System.Globalization.NumberFormatInfo,bool&,bool&)
in <0x00427> System.Int32:Parse
(string,System.Globalization.NumberStyles,System.IFormatProvider)
in <0x00013> System.Int32:Parse (string,System.IFormatProvider)
in <0x00019> System.Convert:ToInt32 (string,System.IFormatProvider)
in <0x0000e> System.String:System.IConvertible.ToInt32 (System.IFormatProvider)
in <0x00473> System.Convert:ToType (object,System.Type,System.IFormatProvider)
in <0x00069> System.Convert:ChangeType (object,System.Type)
in <0x0020d>
System.Web.Compilation.TemplateControlCompiler:GetExpressionFromString
(System.Type,string)
in <0x000e9>
System.Web.Compilation.TemplateControlCompiler:AddCodeForPropertyOrField
(System.Web.UI.ControlBuilder,System.Type,string,string,bool)
in <0x001e3>
System.Web.Compilation.TemplateControlCompiler:ProcessPropertiesAndFields
(System.Web.UI.ControlBuilder,System.Reflection.MemberInfo,string,string)
in <0x003e0>
System.Web.Compilation.TemplateControlCompiler:CreateAssignStatementsFromAttributes
(System.Web.UI.ControlBuilder)
in <0x0014b> System.Web.Compilation.TemplateControlCompiler:CreateControlTree
(System.Web.UI.ControlBuilder,bool,bool)
in <0x00494> System.Web.Compilation.TemplateControlCompiler:CreateControlTree
(System.Web.UI.ControlBuilder,bool,bool)
in <0x00494> System.Web.Compilation.TemplateControlCompiler:CreateControlTree
(System.Web.UI.ControlBuilder,bool,bool)
in <0x00494> System.Web.Compilation.TemplateControlCompiler:CreateControlTree
(System.Web.UI.ControlBuilder,bool,bool)
in <0x00050> System.Web.Compilation.TemplateControlCompiler:CreateMethods ()
in <0x0000a> System.Web.Compilation.PageCompiler:CreateMethods ()
in <0x00148> System.Web.Compilation.BaseCompiler:GetCompiledType ()
in <0x00251> System.Web.Compilation.AspGenerator:GetCompiledType ()
in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
in <0x00018> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
in <0x00050> System.Web.UI.PageParser:GetCompiledPageInstance
(string,string,System.Web.HttpContext)
in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler
(System.Web.HttpContext,string,string,string)
in <0x00337> System.Web.HttpApplication:CreateHttpHandler
(System.Web.HttpContext,string,string,string)
in <0x0011f> CreateHandlerState:Execute ()
in <0x00084> StateMachine:ExecuteState
(System.Web.HttpApplication/IStateHandler,bool&)


On Sun, 27 Jun 2004, Tomasz Soroka wrote:

> I have problem with xsp since beta 3
>
> it's also in rc1, so look at this:
>
> All apps work properly, when I run them as standalone - for example:
>
>  mono /usr/bin/xsp.exe  --root . --applications /www:possibleWWW
>
>
> Problem is when I try run more than one app with xsp
>
>  mono /usr/bin/xsp.exe  --root . --applications
> /www:possibleWWW,/test:t1/
>
> first app is my homepage and second is a xsp testing pages - from xsp
> installation. My homepage is written with using vs.net and compiled with
> mono.It uses firebird .net assembly compiled also with mono.
>
> when I first call /test 1 in browser
>
> http://localhost:8080/test
>
> it load properly next when i try call /www
>
> http://localhost:8080/www
>
> i get stacktrace (this app standaolne works perfectly)
>
>
> Description: Error processing request.
>
> Error Message: HTTP 500.
>
> Stack Trace:
> System.NullReferenceException: Object reference not set to an instance of an object
> in <0x0000f> System.Int32:FindSign (int&,string,System.Globalization.NumberFormatInfo,bool&,bool&)
> in <0x00427> System.Int32:Parse (string,System.Globalization.NumberStyles,System.IFormatProvider)
> in <0x00013> System.Int32:Parse (string,System.IFormatProvider)
> in <0x00019> System.Convert:ToInt32 (string,System.IFormatProvider)
> in <0x0000e> System.String:System.IConvertible.ToInt32 (System.IFormatProvider)
> in <0x00473> System.Convert:ToType (object,System.Type,System.IFormatProvider)
> in <0x00069> System.Convert:ChangeType (object,System.Type)
> in <0x0020d> System.Web.Compilation.TemplateControlCompiler:GetExpressionFromString (System.Type,string)
> in <0x000e9> System.Web.Compilation.TemplateControlCompiler:AddCodeForPropertyOrField (System.Web.UI.ControlBuilder,System.Type,string,string,bool)
> in <0x001e3> System.Web.Compilation.TemplateControlCompiler:ProcessPropertiesAndFields (System.Web.UI.ControlBuilder,System.Reflection.MemberInfo,string,string)
> in <0x003e0> System.Web.Compilation.TemplateControlCompiler:CreateAssignStatementsFromAttributes (System.Web.UI.ControlBuilder)
> in <0x0014b> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00494> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00494> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00050> System.Web.Compilation.TemplateControlCompiler:CreateMethods ()
> in <0x0000a> System.Web.Compilation.PageCompiler:CreateMethods ()
> in <0x00148> System.Web.Compilation.BaseCompiler:GetCompiledType ()
> in <0x00251> System.Web.Compilation.AspGenerator:GetCompiledType ()
> in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
> in <0x00018> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
> in <0x00050> System.Web.UI.PageParser:GetCompiledPageInstance (string,string,System.Web.HttpContext)
> in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext,string,string,string)
> in <0x00337> System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext,string,string,string)
> in <0x0011f> CreateHandlerState:Execute ()
> in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)
>
>
> Interesting is that when after run xsp
>
> I first run /www app and then i will call /test app both works properly!
>
>
> ---
>
> Second situation is more strange. It happens when I try run two my own
> apps. Every app work perfectly standalone, but when i run them as:
>
>  mono /usr/bin/xsp.exe  --root . --applications
> /www:possibleWWW,/dev:possibleDev/
>
>
> when I first call /www it loads perfectly, but when after that i try run
> second app (/dev) i got error:
>
> Server error in '/dev' application
>
> ________________________________________________________________________
> Description: Error processing request.
>
> Error Message: HTTP 500.
>
> Stack Trace:
> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.FormatException: Error parsing 200px
> in <0x0026c> System.Web.UI.WebControls.Unit:.ctor (string,System.Globalization.CultureInfo,System.Web.UI.WebControls.UnitType)
> in <0x00015> System.Web.UI.WebControls.Unit:.ctor (string,System.Globalization.CultureInfo)
> in <0x00023> System.Web.UI.WebControls.Unit:.ctor (string)
> in <0x0005b> possibleDev.Ctrls.DevLanguages:.ctor ()
> in <0x00021> possibleDev.WebForm1:.ctor ()
> in <0x0000a> ASP.index_aspx:.ctor ()
> in (unmanaged) (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[])
> in <0x00004> (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[])
> in <0x00097> System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
> --- End of inner exception stack trace ---
>
> in <0x000fb> System.Reflection.MonoCMethod:Invoke (object,System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
> in <0x0001d> System.Reflection.MonoCMethod:Invoke (System.Reflection.BindingFlags,System.Reflection.Binder,object[],System.Globalization.CultureInfo)
> in <0x00044> System.Reflection.ConstructorInfo:Invoke (object[])
> in <0x00153> System.Activator:CreateInstance (System.Type,bool)
> in <0x00010> System.Activator:CreateInstance (System.Type)
> in <0x0002e> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
> in <0x00050> System.Web.UI.PageParser:GetCompiledPageInstance (string,string,System.Web.HttpContext)
> in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext,string,string,string)
> in <0x00337> System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext,string,string,string)
> in <0x0011f> CreateHandlerState:Execute ()
>
>
> When after run xsp I first call /dev app it loads and works perfectly,
> but when i try run second app (/www) i got error:
>
>
> Server error in '/www' application
>
> ________________________________________________________________________
> Description: Error processing request.
>
> Error Message: HTTP 500.
>
> Stack Trace:
> System.NullReferenceException: Object reference not set to an instance of an object
> in <0x0000f> System.Int32:FindSign (int&,string,System.Globalization.NumberFormatInfo,bool&,bool&)
> in <0x00427> System.Int32:Parse (string,System.Globalization.NumberStyles,System.IFormatProvider)
> in <0x00013> System.Int32:Parse (string,System.IFormatProvider)
> in <0x00019> System.Convert:ToInt32 (string,System.IFormatProvider)
> in <0x0000e> System.String:System.IConvertible.ToInt32 (System.IFormatProvider)
> in <0x00473> System.Convert:ToType (object,System.Type,System.IFormatProvider)
> in <0x00069> System.Convert:ChangeType (object,System.Type)
> in <0x0020d> System.Web.Compilation.TemplateControlCompiler:GetExpressionFromString (System.Type,string)
> in <0x000e9> System.Web.Compilation.TemplateControlCompiler:AddCodeForPropertyOrField (System.Web.UI.ControlBuilder,System.Type,string,string,bool)
> in <0x001e3> System.Web.Compilation.TemplateControlCompiler:ProcessPropertiesAndFields (System.Web.UI.ControlBuilder,System.Reflection.MemberInfo,string,string)
> in <0x003e0> System.Web.Compilation.TemplateControlCompiler:CreateAssignStatementsFromAttributes (System.Web.UI.ControlBuilder)
> in <0x0014b> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00494> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00494> System.Web.Compilation.TemplateControlCompiler:CreateControlTree (System.Web.UI.ControlBuilder,bool,bool)
> in <0x00050> System.Web.Compilation.TemplateControlCompiler:CreateMethods ()
> in <0x0000a> System.Web.Compilation.PageCompiler:CreateMethods ()
> in <0x00148> System.Web.Compilation.BaseCompiler:GetCompiledType ()
> in <0x00251> System.Web.Compilation.AspGenerator:GetCompiledType ()
> in <0x00036> System.Web.UI.PageParser:CompileIntoType ()
> in <0x00018> System.Web.UI.TemplateControlParser:GetCompiledInstance ()
> in <0x00050> System.Web.UI.PageParser:GetCompiledPageInstance (string,string,System.Web.HttpContext)
> in <0x00011> System.Web.UI.PageHandlerFactory:GetHandler (System.Web.HttpContext,string,string,string)
> in <0x00337> System.Web.HttpApplication:CreateHttpHandler (System.Web.HttpContext,string,string,string)
> in <0x0011f> CreateHandlerState:Execute ()
> in <0x00084> StateMachine:ExecuteState (System.Web.HttpApplication/IStateHandler,bool&)
>
>
> ________________________________________________________________________
>
> As I mentioned before both apps works very vell with xsp standalone.
>
> I have no Idea what's wrong, but this error wasn't before mono beta 3.
>
> regards
> Tomek
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list@lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>