[Mono-list] Mono gets crash while adding multiple context in XSP

Anandnld_dev anandnld at gmail.com
Tue May 27 09:20:44 EDT 2008


Previously I made a mistake by having global variable for addPort and
removePort. By that if I add a new context then while remove it Im not able
to find it out. Its a Synchronization problem.

Now I has handled safely...

This my code which I have added.

^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
public void startAddThread(string addP){
		   try{
                   int addPort = Int32.Parse(addP);
                   Thread add = new Thread (delegate() {
StartListeningToAdd(addPort); });
                   add.Start();
 
		   }catch (Exception e) {
            Console.WriteLine("Exception in adding Thread : "+e.ToString());
           }          
		}
		
		public void startRemoveThread(string removeP){
		   try{
               int removePort = Int32.Parse(removeP);
               Thread remove = new Thread (delegate() {
StartListeningToRemove(removePort); });
               remove.Start();
		   }catch (Exception e) {
            Console.WriteLine("Exception in removing Thread :
"+e.ToString());
           }  
		}
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^



Anandnld





Robert Jordan wrote:
> 
> Anandnld_dev wrote:
>> 
>> Thanks a lot, this bug has been solved. Error is in my added code only.
>> Its
>> been solved.
> 
> Anyway, the runtime should not crash like this. Could you please post
> the code that led to this crash?
> 
> Robert
> 
>> 
>> Anandnld
>> 
>> 
>> 
>> 
>> Robert Jordan wrote:
>>> Hi,
>>>
>>> please file a bug report with a self-contained test case at
>>>
>>> 	http://www.mono-project.com/Bugs
>>>
>>> Robert
>>>
>>> Anandnld_dev wrote:
>>>> Hi,
>>>>       Im using mono 1.9.1 and XSP 1.9.1. XSP configuration, make and
>>>> make
>>>> install are done through cygwin.
>>>>       Im trying to add multiple context through XSP at runtime. For
>>>> that
>>>> I
>>>> have added my code in server.cs and ApplicationServer.cs files in XSP.
>>>> I
>>>> didnt change anything in Mono, just installed.
>>>>       After that when I start my XSP server by passing addition
>>>> parameters
>>>> such as addPort and removePort for my usage and mono.exe, its works
>>>> fine
>>>> for
>>>> adding few context. After that its stacktrace error and then mono gets
>>>> crashed. 
>>>>
>>>> Following is the stacktrace error:
>>>> --------------------------------
>>>>
>>>>
>>>> ************************-------------------------------*************************
>>>>
>>>>  vpath /satyam_dev_com10521/
>>>>  fullpath
>>>> c:\devsquare\data\users\5\satyam_dev_com\projects\netproject10521
>>>> Content sending to client : SUCCESS
>>>> Waiting for a connection to remove...
>>>> Removing application.
>>>> Removing context... /mahe_xsp_net10526
>>>> Context has not /
>>>> Application is removed successfully.
>>>>
>>>> ** (xsp.exe:1816): WARNING **: mono_class_from_mono_type: implement me
>>>> 0x5d
>>>>
>>>> Waiting for a connection to remove...
>>>> Removing application.
>>>> Removing context... /satyam_dev_com10521
>>>> Context has not /
>>>> Application is removed successfully.
>>>> Stacktrace:
>>>>
>>>>   at (wrapper managed-to-native) System.MonoType.getFullName
>>>> (bool,bool)
>>>> <0x00004>
>>>>   at (wrapper managed-to-native) System.MonoType.getFullName
>>>> (bool,bool)
>>>> <0xffffffff>
>>>>   at System.MonoType.get_AssemblyQualifiedName () <0x0000e>
>>>>   at System.Runtime.Remoting.Messaging.CADMethodCallMessage.GetMethod
>>>> ()
>>>> <0x000a7>
>>>>   at System.Runtime.Remoting.Messaging.MethodCall..ctor
>>>> (System.Runtime.Remoting.Messaging.CADMethodCallMessage) <0x000f0>
>>>>   at System.AppDomain.ProcessMessageInDomain
>>>> (byte[],System.Runtime.Remoting.Messaging.CADMethodCallMessage,byte[]&,System.Runtime.Remoting.Messaging.CADMethodReturnMessage&)
>>>> <0x0004e>
>>>>   at (wrapper remoting-invoke-with-check)
>>>> System.AppDomain.ProcessMessageInDomain
>>>> (byte[],System.Runtime.Remoting.Messaging.CADMethodCallMessage,byte[]&,System.
>>>> Runtime.Remoting.Messaging.CADMethodReturnMessage&) <0xffffffff>
>>>>   at
>>>> System.Runtime.Remoting.Channels.CrossAppDomainSink.ProcessMessageInDomain(byte[],System.Runtime.Remoting.Messaging.CADMethodCallMessage)
>>>> <0x00051>
>>>>   at (wrapper runtime-invoke)
>>>> System.Object.runtime_invoke_CrossAppDomainSink/ProcessMessageRes_byte[]_CADMethodCallMessage
>>>> (object,intptr,intptr,intptr) <0xffffffff>
>>>>   at (wrapper managed-to-native)
>>>> System.Reflection.MonoMethod.InternalInvoke
>>>> (object,object[]) <0x00004>
>>>>   at (wrapper managed-to-native)
>>>> System.Reflection.MonoMethod.InternalInvoke
>>>> (object,object[]) <0xffffffff>
>>>>   at (wrapper managed-to-native)
>>>> System.Object.__icall_wrapper_mono_remoting_wrapper (intptr,intptr)
>>>> <0x00004>
>>>>   at (wrapper managed-to-native)
>>>> System.Object.__icall_wrapper_mono_remoting_wrapper (intptr,intptr)
>>>> <0xffffffff>
>>>>
>>>> C:\csharp\xsp-1.9.1\src\Mono.WebServer.XSP>
>>>>
>>>> ************************-------------------------------*************************
>>>>
>>>> After this mono gets crashed...
>>>>
>>>>
>>>> And also along with this error Im getting waring popup message also,
>>>> Please
>>>> look into the image attached.
>>>>
>>>> With the warning message - ** ERROR **: file class.c: line 3970
>>>> (mono_class_from_mono_type): should not be reached aborting...
>>>>
>>>> http://www.nabble.com/file/p17406506/xsp_error.gif 
>>>>
>>>>
>>>>
>>>> Please help me in this..
>>>>
>>>> Anandnld
>>> _______________________________________________
>>> Mono-list maillist  -  Mono-list at lists.ximian.com
>>> http://lists.ximian.com/mailman/listinfo/mono-list
>>>
>>>
>> 
> 
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
> 
> 

-- 
View this message in context: http://www.nabble.com/Mono-gets-crash-while-adding-multiple-context-in-XSP-tp17406506p17490329.html
Sent from the Mono - General mailing list archive at Nabble.com.



More information about the Mono-list mailing list