My project and web services work fine in the simulator but crash when uploading to an iPhone. It had been working fine before I updated Monotouch from 1.1. Can I revert back to earlier versions of Monotouch? Here is the problem:
I have a monotouch app using web services. When I export the project to Xcode, I get a build error stating:
System.Web.Services.dll.mdb: No such file or directory
In the folder explorer that file is highlighted in red because there is nothing there.
Does anyone have a working System.Web.Services.dll for the latest version of monodevelop and monotouch?
Here is the stack trace on exit error in xCode:
Wed Nov 18 10:31:37 unknown SpringBoard[24] : MultitouchHID(208ad0) uilock state: 1 -> 0
Wed Nov 18 10:31:37 unknown SpringBoard[24] : MultitouchHID(2944f0) device bootloaded
Wed Nov 18 10:31:47 unknown kernel[0] : launchd[85] Builtin profile: container (seatbelt)
Wed Nov 18 10:31:47 unknown kernel[0] : launchd[85] Container: /private/var/mobile/Applications/49398D0F-C9F2-456A-BB84-BA1F91C78243 (seatbelt)
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Xml.Serialization.XmlAttributeAttribute.AddKeyHash (System.Text.StringBuilder sb) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Xml.Serialization.XmlReflectionImporter..ctor () [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.SoapTypeStubInfo..ctor (System.Web.Services.Protocols.LogicalTypeInfo logicalTypeInfo) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : --- End of inner exception stack trace ---
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Reflection.MonoCMethod.Invoke (BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Activator.CreateInstance (System.Type type, BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Activator.CreateInstance (System.Type type, System.Object[] args, System.Object[] activationAttributes) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Activator.CreateInstance (System.Type type, System.Object[] args) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.LogicalTypeInfo.CreateTypeStubInfo (System.Type type) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.LogicalTypeInfo.GetTypeStub (System.String protocolName) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.TypeStubManager.GetTypeStub (System.Type t, System.String protocolName) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at System.Web.Services.Protocols.SoapHttpClientProtocol..ctor () [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at GeoQuiz2.GeoQuizRef.TGeoTeachers..ctor () [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at GeoQuiz2.QuizPicker.ViewDidLoad () [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at MonoTouch.UIKit.UIViewController.get_View () [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at GeoQuiz2.AppDelegate.m__0 (System.Object , System.EventArgs ) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at MonoTouch.UIKit.UIControlEventProxy.Activated () [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at MonoTouch.UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at MonoTouch.UIKit.UIApplication.Main (System.String[] args) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : at GeoQuiz2.Application.Main (System.String[] args) [0x00000] in :0
Wed Nov 18 10:32:04 unknown UIKitApplication:GeoQuiz2[0x46ff][85] : Error connecting stdout and stderr (192.168.1.19:10001)
Wed Nov 18 10:32:04 unknown com.apple.launchd[1] : (UIKitApplication:GeoQuiz2[0x46ff]) Exited with exit code: 1
Wed Nov 18 10:32:04 unknown SpringBoard[24] : Application 'GeoQuiz' exited abnormally with exit status 1
Using your Web.Services.dll I think I got a shorter stack trace on error.
System.Web.Services.dll.mdb should be installed. Have you tried reinstalling monotouch?
I've uploaded System.Web.Services.dll and System.Web.Services.dll.mdb for you to try: here. Use at your own risk! And you should report the problem and provide any relevant info so that this problem can be fixed for real.
Related
I tried to create a Dynamic Web Project which uses Tomcat. I constructed a hello world project, which works fine. But I don't know what happens that it crashed and shows error. The log is given in the following. I searched the forums and someone said the concern is about web.xml file or the version of JDK. It is appreciated if this issue is investigated considering the program works fine first.
It worth mentioning that Tomcat works fine from the console. Additionally, I had a clean installation of eclipse and Tomcat, but the problem still exists.
Thank you
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version name: Apache Tomcat/10.0.27
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server built: Oct 3 2022 14:18:31 UTC
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Server version number: 10.0.27.0
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Name: Windows 10
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: OS Version: 10.0
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Architecture: x86
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Java Home: C:\Program Files (x86)\Java\jre1.8.0_301
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Version: 1.8.0_301-b09
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: JVM Vendor: Oracle Corporation
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_BASE: E:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: CATALINA_HOME: C:\Program Files\Apache\apache-tomcat-10.0.27
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.base=E:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dcatalina.home=C:\Program Files\Apache\apache-tomcat-10.0.27
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dwtp.deploy=E:\eclipse\workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Djava.endorsed.dirs=C:\Program Files\Apache\apache-tomcat-10.0.27\endorsed
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.VersionLoggerListener log
INFO: Command line argument: -Dfile.encoding=Cp1252
Feb 06, 2023 10:50:01 PM org.apache.catalina.core.AprLifecycleListener init
WARNING: The Apache Tomcat Native library failed to load. The error reported was [C:\Program Files\Apache\apache-tomcat-10.0.27\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform]
java.lang.UnsatisfiedLinkError: C:\Program Files\Apache\apache-tomcat-10.0.27\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.load0(Unknown Source)
at java.lang.System.load(Unknown Source)
at org.apache.tomcat.jni.Library.<init>(Library.java:41)
at org.apache.tomcat.jni.Library.initialize(Library.java:234)
at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:201)
at org.apache.catalina.core.AprLifecycleListener.lifecycleEvent(AprLifecycleListener.java:138)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:423)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:135)
at org.apache.catalina.startup.Catalina.load(Catalina.java:747)
at org.apache.catalina.startup.Catalina.load(Catalina.java:769)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:305)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475)
Feb 06, 2023 10:50:01 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-nio-8080"]
Feb 06, 2023 10:50:01 PM org.apache.catalina.startup.Catalina load
INFO: Server initialization in [428] milliseconds
Feb 06, 2023 10:50:01 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service [Catalina]
Feb 06, 2023 10:50:01 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet engine: [Apache Tomcat/10.0.27]
Feb 06, 2023 10:50:01 PM org.apache.catalina.util.SessionIdGeneratorBase createSecureRandom
WARNING: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [162] milliseconds.
Feb 06, 2023 10:50:02 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:886)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
... 21 more
Caused by: java.lang.NoClassDefFoundError: javax/el/CompositeELResolver
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2510)
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:877)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1413)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:104)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:332)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:989)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5085)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 27 more
Caused by: java.lang.ClassNotFoundException: javax.el.CompositeELResolver
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1449)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)
... 47 more
Feb 06, 2023 10:50:02 PM org.apache.catalina.core.ContainerBase startInternal
SEVERE: A child container failed during start
java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:886)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
... 13 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
... 21 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
... 21 more
Caused by: java.lang.NoClassDefFoundError: javax/el/CompositeELResolver
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2510)
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:877)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1413)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:104)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:332)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:989)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5085)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 27 more
Caused by: java.lang.ClassNotFoundException: javax.el.CompositeELResolver
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1449)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)
... 47 more
Feb 06, 2023 10:50:02 PM org.apache.catalina.startup.Catalina start
SEVERE: The required Server component failed to start so Tomcat is unable to start.
org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:265)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardService.startInternal(StandardService.java:432)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.startup.Catalina.start(Catalina.java:795)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:345)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:476)
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: A child container failed during start
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
... 13 more
Caused by: org.apache.catalina.LifecycleException: A child container failed during start
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:938)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:886)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
... 13 more
Caused by: java.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
at java.util.concurrent.FutureTask.report(Unknown Source)
at java.util.concurrent.FutureTask.get(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:926)
... 21 more
Caused by: org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/test]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
at java.util.concurrent.FutureTask.run(Unknown Source)
at org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75)
at java.util.concurrent.AbstractExecutorService.submit(Unknown Source)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:919)
... 21 more
Caused by: java.lang.NoClassDefFoundError: javax/el/CompositeELResolver
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2510)
at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:877)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1413)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at org.apache.catalina.util.Introspection.getDeclaredFields(Introspection.java:104)
at org.apache.catalina.startup.WebAnnotationSet.loadFieldsAnnotation(WebAnnotationSet.java:269)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationListenerAnnotations(WebAnnotationSet.java:89)
at org.apache.catalina.startup.WebAnnotationSet.loadApplicationAnnotations(WebAnnotationSet.java:67)
at org.apache.catalina.startup.ContextConfig.applicationAnnotationsConfig(ContextConfig.java:332)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:989)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:303)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5085)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 27 more
Caused by: java.lang.ClassNotFoundException: javax.el.CompositeELResolver
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1449)
at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1257)
... 47 more
Feb 06, 2023 10:50:02 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-nio-8080"]
Feb 06, 2023 10:50:02 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service [Catalina]
Feb 06, 2023 10:50:02 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-nio-8080"]
solved. I changed the version of Tomcat from 10 to 9.
I am trying to build APK or App Bundle with IL2CPP but I when build, the build process goes to "Building native binary with IL2CPP" then it stops and I get the following error:
Failed running D:\Program Files\Unity Versions\2019.1.0f2\Editor\Data\il2cpp/build/il2cpp.exe --convert-to-cpp --emit-null-checks --enable-array-bounds-check --dotnetprofile="unityaot" --compile-cpp --libil2cpp-static --platform="Android" --architecture="ARMv7" --configuration="Release" --outputpath="D:\Workspace\UnitySandbox\EMIAPTest\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a\libil2cpp.so" --cachedirectory="D:\Workspace\UnitySandbox\EMIAPTest\Assets\..\Library\il2cpp_android_armeabi-v7a/il2cpp_cache" --additional-include-directories="D:\Program Files\Unity Versions\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\bdwgc/include" --additional-include-directories="D:\Program Files\Unity Versions\2019.1.0f2\Editor\Data\PlaybackEngines\AndroidPlayer/Tools\libil2cpp/include" --tool-chain-path="D:/Program Files/Unity Versions/2019.1.0f2/Editor/Data/PlaybackEngines/AndroidPlayer/NDK" --profiler-report --map-file-parser="D:/Program Files/Unity Versions/2019.1.0f2/Editor/Data/Tools/MapFileParser/MapFileParser.exe" --directory=D:/Workspace/UnitySandbox/EMIAPTest/Temp/StagingArea/assets/bin/Data/Managed --generatedcppdir=D:/Workspace/UnitySandbox/EMIAPTest/Temp/StagingArea/Il2Cpp/il2cppOutput
stdout:
Building libil2cpp.so with AndroidToolChain
Output directory: D:\Workspace\UnitySandbox\EMIAPTest\Temp\StagingArea\assets\bin\Data\Native\armeabi-v7a
Cache directory: D:\Workspace\UnitySandbox\EMIAPTest\Library\il2cpp_android_armeabi-v7a\il2cpp_cache
il2cpp.exe didn't catch exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
--- End of inner exception stack trace ---
at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
at il2cpp.Program.DoRun(String[] args)
at il2cpp.Program.Run(String[] args)
at il2cpp.Program.Main(String[] args)
---> (Inner Exception #0) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
---> (Inner Exception #1) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
---> (Inner Exception #2) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
---> (Inner Exception #3) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
---> (Inner Exception #4) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
---> (Inner Exception #5) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
---> (Inner Exception #6) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
---> (Inner Exception #7) System.ComponentModel.Win32Exception (0x80004005): The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)<---
stderr:
Unhandled Exception: System.AggregateException: One or more errors occurred. ---> System.ComponentModel.Win32Exception: The specified executable is not a valid application for this OS platform.
at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo startInfo)
at Unity.IL2CPP.Shell.Execute(ExecuteArgs executeArgs, IExecuteController controller)
at Unity.IL2CPP.Building.CppProgramBuilder.ProvideObjectFile(IntermediateObjectFileCompilationData data)
at Unity.IL2CPP.Building.ParallelFor.<>c__DisplayClass1_0`2.<RunWithResult>b__0(Object o)
--- End of inner exception stack trace ---
at Unity.IL2CPP.Building.ParallelFor.RunWithResult[D,T](D[] data, Func`2 action)
at Unity.IL2CPP.Building.CppProgramBuilder.BuildAllCppFiles(IEnumerable`1 sourceFilesToCompile, IBuildStatisticsCollector statisticsCollector)
at Unity.IL2CPP.Building.CppProgramBuilder.Build(IBuildStatistics& statistics)
at il2cpp.Program.DoRun(String[] args)
at il2cpp.Program.Run(String[] args)
at il2cpp.Program.Main(String[] args)
UnityEngine.Debug:LogError(Object)
UnityEditorInternal.Runner:RunProgram(Program, String, String, String, CompilerOutputParserBase) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:128)
UnityEditorInternal.Runner:RunManagedProgram(String, String, String, CompilerOutputParserBase, Action`1) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
UnityEditorInternal.IL2CPPBuilder:RunIl2CppWithArguments(List`1, Action`1, String) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
UnityEditorInternal.IL2CPPBuilder:ConvertPlayerDlltoCpp(String, String, String, Boolean) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
UnityEditorInternal.IL2CPPBuilder:Run() (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
UnityEditorInternal.IL2CPPUtils:RunIl2Cpp(String, String, IIl2CppPlatformProvider, Action`1, RuntimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
And this error right after it:
Exception: D:\Program Files\Unity Versions\2019.1.0f2\Editor\Data\il2cpp/build/il2cpp.exe did not run properly!
UnityEditorInternal.Runner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:130)
UnityEditorInternal.Runner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, System.Action`1[T] setupStartInfo) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/BuildUtils.cs:73)
UnityEditorInternal.IL2CPPBuilder.RunIl2CppWithArguments (System.Collections.Generic.List`1[T] arguments, System.Action`1[T] setupStartInfo, System.String workingDirectory) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:496)
UnityEditorInternal.IL2CPPBuilder.ConvertPlayerDlltoCpp (System.String inputDirectory, System.String outputDirectory, System.String workingDirectory, System.Boolean platformSupportsManagedDebugging) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:477)
UnityEditorInternal.IL2CPPBuilder.Run () (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:334)
UnityEditorInternal.IL2CPPUtils.RunIl2Cpp (System.String tempFolder, System.String stagingAreaData, UnityEditorInternal.IIl2CppPlatformProvider platformProvider, System.Action`1[T] modifyOutputBeforeCompile, UnityEditor.RuntimeClassRegistry runtimeClassRegistry) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/Il2Cpp/IL2CPPUtils.cs:63)
UnityEditor.Android.PostProcessor.Tasks.RunIl2Cpp.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <177bc8179be6497489c4b5b319f290d7>:0)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context) (at <177bc8179be6497489c4b5b319f290d7>:0)
UnityEditor.Android.PostProcessAndroidPlayer.PostProcess (UnityEditor.BuildTarget target, System.String stagingAreaData, System.String stagingArea, System.String playerPackage, System.String installPath, System.String companyName, System.String productName, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at <177bc8179be6497489c4b5b319f290d7>:0)
UnityEditor.Android.AndroidBuildPostprocessor.PostProcess (UnityEditor.Modules.BuildPostProcessArgs args, UnityEditor.BuildProperties& outProperties) (at <177bc8179be6497489c4b5b319f290d7>:0)
UnityEditor.PostprocessBuildPlayer.Postprocess (UnityEditor.BuildTargetGroup targetGroup, UnityEditor.BuildTarget target, System.String installPath, System.String companyName, System.String productName, System.Int32 width, System.Int32 height, UnityEditor.BuildOptions options, UnityEditor.RuntimeClassRegistry usedClassRegistry, UnityEditor.Build.Reporting.BuildReport report) (at C:/buildslave/unity/build/Editor/Mono/BuildPipeline/PostprocessBuildPlayer.cs:281)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
Then I get usual "Build Failed" error.
I am running Unity 2019.1.0f2. Building APK or App Bundle on Mono works fine.
Solved! I tried Unity 2019.1.11f1 and it worked with the new version!
p.s. Hope it will help someone one day :)
Also make sure you select the drop down in the < android part and select the ndk install. Because if you do not, you will get the same error because it will be using the old 16b version of ndk, and It WILL not let you upgrade to the new version manually in preferences. I had this problem and I just got the compile to finish with no errors and after 2 days. Finally fixed.
We recently moved a .net project to .net core and have it running in a docker container. Since doing so I've been getting an occasional error from entity framework when saving changes on a new entity. In none of the cases does the entity have any related objects. It's just creating a new single record in the database.
The error message unfortunately doesn't make much sense to me and I'm not sure where to begin looking. Since it didn't do this before I'm wondering if it's somehow tied to being in a docker container or the move to .net core. The error message is...
System.Data.SqlClient.SqlException (0x80131904): A transport-level
error has occurred when receiving results from the server. (provider:
TCP Provider, error: 0 - Success) at
System.Data.SqlClient.SqlConnection.OnError(SqlException exception,
Boolean breakConnection, Action1 wrapCloseInAction) at
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException
exception, Boolean breakConnection, Action1 wrapCloseInAction) at
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject
stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at
System.Data.SqlClient.TdsParserStateObject.ReadSniError(TdsParserStateObject
stateObj, UInt32 error) at
System.Data.SqlClient.TdsParserStateObject.ReadSniSyncOverAsync() at
System.Data.SqlClient.TdsParserStateObject.TryReadNetworkPacket() at
System.Data.SqlClient.TdsParserStateObject.TryPrepareBuffer() at
System.Data.SqlClient.TdsParserStateObject.TryReadByte(Byte& value) at
System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
stateObj, Boolean& dataReady) at
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior,
SqlCommand cmdHandler, SqlDataReader dataStream,
BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject
stateObj) at
System.Data.SqlClient.TdsParser.TdsExecuteTransactionManagerRequest(Byte[]
buffer, TransactionManagerRequestType request, String transactionName,
TransactionManagerIsolationLevel isoLevel, Int32 timeout,
SqlInternalTransaction transaction, TdsParserStateObject stateObj) at
System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransactionYukon(TransactionRequest
transactionRequest, String transactionName, IsolationLevel iso,
SqlInternalTransaction internalTransaction) at
System.Data.SqlClient.SqlInternalConnectionTds.ExecuteTransaction(TransactionRequest
transactionRequest, String name, IsolationLevel iso,
SqlInternalTransaction internalTransaction) at
System.Data.SqlClient.SqlInternalConnection.BeginSqlTransaction(IsolationLevel
iso, String transactionName, Boolean shouldReconnect) at
System.Data.SqlClient.SqlConnection.BeginTransaction(IsolationLevel
iso, String transactionName) at
System.Data.SqlClient.SqlConnection.BeginDbTransaction(IsolationLevel
isolationLevel) at
System.Data.Common.DbConnection.BeginTransaction(IsolationLevel
isolationLevel) at
Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransactionWithNoPreconditions(IsolationLevel
isolationLevel) at
Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction(IsolationLevel
isolationLevel) at
Microsoft.EntityFrameworkCore.Storage.RelationalConnection.BeginTransaction()
at
Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(Tuple2
parameters) at
Microsoft.EntityFrameworkCore.Storage.Internal.SqlServerExecutionStrategy.Execute[TState,TResult](TState
state, Func3 operation, Func3 verifySucceeded) at
Microsoft.EntityFrameworkCore.Update.Internal.BatchExecutor.Execute(IEnumerable1
commandBatches, IRelationalConnection connection) at
Microsoft.EntityFrameworkCore.Storage.RelationalDatabase.SaveChanges(IReadOnlyList1
entries) at
Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(IReadOnlyList1
entriesToSave) at
Microsoft.EntityFrameworkCore.ChangeTracking.Internal.StateManager.SaveChanges(Boolean
acceptAllChangesOnSuccess) at
Microsoft.EntityFrameworkCore.DbContext.SaveChanges(Boolean
acceptAllChangesOnSuccess) at
Microsoft.EntityFrameworkCore.DbContext.SaveChanges() at
TEAPI.Domain.Data.Repositories.EventLogRepository.LogEvent(EventLogEvent
eventLogEvent) in
/home/web/buildAgent/work/35649df7ceb7c251/src/TEAPI.Domain/Data/Repositories/EventLogRepository.cs:line
52 at TEAPI.Controllers.EventLogController.LogSalesEvent() in
/home/web/buildAgent/work/35649df7ceb7c251/src/TEAPI/Controllers/EventLogController.cs:line
27 at
Microsoft.Extensions.Internal.ObjectMethodExecutor.<>c__DisplayClass33_0.b__0(Object
target, Object[] parameters) at
Microsoft.Extensions.Internal.ObjectMethodExecutor.Execute(Object
target, Object[] parameters) at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__12.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext
context) at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State&
next, Scope& scope, Object& state, Boolean& isCompleted) at
Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__22.MoveNext() ---
End of stack trace from previous location where exception was thrown
--- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext
context) at
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next,
Scope& scope, Object& state, Boolean& isCompleted) at
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__17.MoveNext() ---
End of stack trace from previous location where exception was thrown
--- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at
Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__15.MoveNext() ---
End of stack trace from previous location where exception was thrown
--- at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at Microsoft.AspNetCore.Builder.RouterMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown --- at
System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at
System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task
task) at TEAPI.Middleware.ExceptionHandlingMiddleware.d__3.MoveNext()
in
/home/web/buildAgent/work/35649df7ceb7c251/src/TEAPI/Middleware/ExceptionHandlingMiddleware.cs:line
26 ClientConnectionId:72a861d4-e94c-4175-9249-bdca4a2b83a0
Iam about to publish my ASP.NET Core 2.0 Web-Api on my Raspberry pie.
Running my application local on my Windows 10 machine works great, but when I deploy it to the Raspberry (ubuntu.16.04-arm), I have problems with entity-framework.
As soon as a databaseoperation is executed, Iam getting the following error:
fail: Microsoft.EntityFrameworkCore.Query[100100]
An exception occurred in the database while iterating the results of a query for context type 'NFCDataRESTApi.SQLiteDataBase.DataBase'.
System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception. ---> System.Reflection.TargetInv ocationException: Exception has been thrown by the target of an invocation. --->System.DllNotFoundException: Unable to load DLL 'e_sqlite3': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
at SQLitePCL.Batteries_V2.Init()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlagsinvokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Data.Sqlite.Utilities.BundleInitializer.Initialize()
at Microsoft.Data.Sqlite.SqliteConnection..cctor()
--- End of inner exception stack trace ---
at Microsoft.EntityFrameworkCore.Storage.Internal.SqliteRelationalConnection.CreateDbConnection()
at Microsoft.EntityFrameworkCore.Internal.LazyRef1.get_Value()
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.Internal.SqliteRelationalConnection.Open(Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.Enumerator.BufferlessMoveNext(Boolean buffer)
at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplyClass12_02.<Execute>b__0(DbContext c, TState s)
at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded)
at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, Func2 operation, Func2 verifySuccee ded, TState state)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.Enumerator.MoveNext()
at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__172.MoveNext()
at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.MoveNext()
System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception. ---> System.Reflection.TargetInvocatio nException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'e_sqlite3': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
at SQLitePCL.Batteries_V2.Init()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Data.Sqlite.Utilities.BundleInitializer.Initialize()
at Microsoft.Data.Sqlite.SqliteConnection..cctor()
--- End of inner exception stack trace ---
at Microsoft.EntityFrameworkCore.Storage.Internal.SqliteRelationalConnection.CreateDbConnection()
at Microsoft.EntityFrameworkCore.Internal.LazyRef1.get_Value()
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.Internal.SqliteRelationalConnection.Open(Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.Enumerator.BufferlessMoveNext(Boolean buffer)
at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplayClass12_02.<Execute>b__0(DbContext c, TState s)
at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded)
at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, Func2 operation, Func2 verifySucceeded, TState state)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.Enumerator.MoveNext()
at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__172.MoveNext()
at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.MoveNext()
fail: Microsoft.AspNetCore.Server.Kestrel[13]
Connection id "0HL8JR800T0MD", Request id "0HL8JR800T0MD:00000003": An unhandled exception was thrown by the application.
System.TypeInitializationException: The type initializer for 'Microsoft.Data.Sqlite.SqliteConnection' threw an exception. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'e_sqlite3': The specified module or one of its dependencies could not be found.
(Exception from HRESULT: 0x8007007E)
at SQLitePCL.SQLite3Provider_e_sqlite3.NativeMethods.sqlite3_libversion_number()
at SQLitePCL.SQLite3Provider_e_sqlite3.SQLitePCL.ISQLite3Provider.sqlite3_libversion_number()
at SQLitePCL.raw.SetProvider(ISQLite3Provider imp)
at SQLitePCL.Batteries_V2.Init()
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.Data.Sqlite.Utilities.BundleInitializer.Initialize()
at Microsoft.Data.Sqlite.SqliteConnection..cctor()
--- End of inner exception stack trace ---
at Microsoft.EntityFrameworkCore.Storage.Internal.SqliteRelationalConnection.CreateDbConnection()
at Microsoft.EntityFrameworkCore.Internal.LazyRef1.get_Value()
at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.Open(Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Storage.Internal.SqliteRelationalConnection.Open(Boolean errorsExpected)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.Enumerator.BufferlessMoveNext(Boolean buffer)
at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.<>c__DisplayClass12_02.<Execute>b__0(DbContext c, TState s)
at Microsoft.EntityFrameworkCore.Storage.Internal.NoopExecutionStrategy.Execute[TState,TResult](TState state, Func3 operation, Func3 verifySucceeded)
at Microsoft.EntityFrameworkCore.ExecutionStrategyExtensions.Execute[TState,TResult](IExecutionStrategy strategy, Func2 operation, Func2 verifySucceeded, TState state)
at Microsoft.EntityFrameworkCore.Query.Internal.QueryingEnumerable1.Enumerator.MoveNext()
at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.<_TrackEntities>d__172.MoveNext()
at Microsoft.EntityFrameworkCore.Query.Internal.LinqOperatorProvider.ExceptionInterceptor1.EnumeratorExceptionInterceptor.MoveNext()
at NFCDataRESTApi.Repositories.PermissionRepository.GetAdminUsers() in C:\Users\morit\Desktop\NFCRESTApi\RESTApi\RESTApi\Repositories\PermissionRepository.cs:line 28
at NFCDataRESTApi.Filters.ValidateUserFilter.OnActionExecuting(ActionExecutingContext context) in C:\Users\morit\Desktop\NFCRESTApi\RESTApi\RESTApi\Filters\ValidateUserFilter.cs:line 27
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__10.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Rethrow(ActionExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__14.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__22.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Rethrow(ResourceExecutedContext context)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.Next(State& next, Scope&scope, Object& state, Boolean& isCompleted)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__17.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Mvc.Internal.ResourceInvoker.d__15.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Builder.RouterMiddleware.d__4.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Swashbuckle.AspNetCore.Swagger.SwaggerMiddleware.d__6.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.AspNetCore.Hosting.Internal.RequestServicesContainerMiddleware.d__3.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.Http.Frame`1.d__2.MoveNext()
The intersting part probably is:
System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.DllNotFoundException: Unable to load DLL 'e_sqlite3': The specified module or one of its dependencies could not be found.
Iam using entity framework core
Any advices?
Edit:
My csproj:
<ItemGroup>
<DotNetCliToolReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" Version="2.0.0" />
<PackageReference Include="SQLitePCL.raw" Version="0.9.4-pre1" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="1.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="2.0.0" />
</ItemGroup>
if dotnet restore didn't work: possibly you need local/linux libraries on which the nuget package depends on?
You can install sqllite through app-get. Allthough i don't think this would be necessary. But I had http/ssl issues before on dotnet docker image, i had to install extra linux libraries.
try this: https://iqbalnaved.wordpress.com/2014/07/10/how-to-install-sqlite-3-8-2-on-ubuntu-14-04-and-commands-for-creating-database-and-tables/
I am having some trouble with resuming a monodroid mvvmcross app: whenever the app goes to the background and stops it cant resume.
Here is the logcat with the exceptions:
I/ActivityManager( 389): Start proc com.tasteitandroidclient for activity com.t
asteitandroidclient/tasteitandroidclient.MyProfilePage: pid=30611 uid=10066 gids
={50066, 3003, 1006, 1015, 1028}
D/Zygote ( 129): Process 30596 exited cleanly (1)
D/dalvikvm( 129): GC_EXPLICIT freed 41K, 1% free 8825K/8896K, paused 2ms+2ms, t
otal 23ms
D/dalvikvm( 129): GC_EXPLICIT freed <1K, 1% free 8825K/8896K, paused 1ms+3ms, t
otal 18ms
D/dalvikvm( 129): GC_EXPLICIT freed <1K, 1% free 8825K/8896K, paused 2ms+2ms, t
otal 18ms
I/ActivityThread(30611): Pub com.tasteitandroidclient.mono.MonoRuntimeProvider._
_mono_init__: mono.MonoRuntimeProvider
D/dalvikvm(30611): Trying to load lib /data/app-lib/com.tasteitandroidclient-2/l
ibmonodroid.so 0x424a0288
D/dalvikvm(30611): Added shared lib /data/app-lib/com.tasteitandroidclient-2/lib
monodroid.so 0x424a0288
W/libc (30611): WARNING: generic atexit() called from legacy shared library
W/monodroid-gc(30611): GREF GC Threshold: 46800
I/mvx (30611): 0.02 Setup: PlatformServices start
I/mono-stdout(30611): mvx:Diagnostic: 0.02 Setup: PlatformServices start
I/mvx (30611): 0.16 Setup: MvvmCross settings start
I/mono-stdout(30611): mvx:Diagnostic: 0.16 Setup: MvvmCross settings start
I/mvx (30611): 0.16 Setup: Singleton Cache start
I/mono-stdout(30611): mvx:Diagnostic: 0.16 Setup: Singleton Cache start
I/mvx (30611): 0.17 Setup: Bootstrap actions
I/mono-stdout(30611): mvx:Diagnostic: 0.17 Setup: Bootstrap actions
I/mvx (30611): 0.25 Setup: StringToTypeParser start
I/mono-stdout(30611): mvx:Diagnostic: 0.25 Setup: StringToTypeParser start
I/mvx (30611): 0.26 Setup: ViewModelFramework start
I/mono-stdout(30611): mvx:Diagnostic: 0.26 Setup: ViewModelFramework start
I/mvx (30611): 0.26 Setup: PluginManagerFramework start
I/mono-stdout(30611): mvx:Diagnostic: 0.26 Setup: PluginManagerFramework start
I/mvx (30611): 0.27 Ensuring Plugin is loaded for Cirrious.MvvmCross.Plugi
ns.DownloadCache.PluginLoader
I/mono-stdout(30611): mvx:Diagnostic: 0.27 Ensuring Plugin is loaded for Cirrio
us.MvvmCross.Plugins.DownloadCache.PluginLoader
I/mvx (30611): 0.28 Loading plugin assembly: Cirrious.MvvmCross.Plugins.Do
wnloadCache.Droid.dll
I/mono-stdout(30611): mvx:Diagnostic: 0.28 Loading plugin assembly: Cirrious.Mv
vmCross.Plugins.DownloadCache.Droid.dll
I/mvx (30611): 0.29 Ensuring Plugin is loaded for Cirrious.MvvmCross.Plugi
ns.File.PluginLoader
I/mono-stdout(30611): mvx:Diagnostic: 0.29 Ensuring Plugin is loaded for Cirrio
us.MvvmCross.Plugins.File.PluginLoader
I/mvx (30611): 0.29 Loading plugin assembly: Cirrious.MvvmCross.Plugins.Fi
le.Droid.dll
I/mono-stdout(30611): mvx:Diagnostic: 0.29 Loading plugin assembly: Cirrious.Mv
vmCross.Plugins.File.Droid.dll
I/mvx (30611): 0.30 Ensuring Plugin is loaded for Cirrious.MvvmCross.Plugi
ns.PictureChooser.PluginLoader
I/mono-stdout(30611): mvx:Diagnostic: 0.30 Ensuring Plugin is loaded for Cirrio
us.MvvmCross.Plugins.PictureChooser.PluginLoader
I/mvx (30611): 0.30 Loading plugin assembly: Cirrious.MvvmCross.Plugins.Pi
ctureChooser.Droid.dll
I/mono-stdout(30611): mvx:Diagnostic: 0.30 Loading plugin assembly: Cirrious.Mv
vmCross.Plugins.PictureChooser.Droid.dll
I/mvx (30611): 0.30 Setup: App start
I/mono-stdout(30611): mvx:Diagnostic: 0.30 Setup: App start
I/mvx (30611): 0.43 Setup: ViewModelTypeFinder start
I/mono-stdout(30611): mvx:Diagnostic: 0.43 Setup: ViewModelTypeFinder start
I/mvx (30611): 0.45 Setup: ViewsContainer start
I/mono-stdout(30611): mvx:Diagnostic: 0.45 Setup: ViewsContainer start
I/mvx (30611): 0.45 Setup: ViewDispatcher start
I/mono-stdout(30611): mvx:Diagnostic: 0.45 Setup: ViewDispatcher start
I/mvx (30611): 0.46 Setup: Views start
I/mono-stdout(30611): mvx:Diagnostic: 0.46 Setup: Views start
I/mvx (30611): 0.51 Setup: CommandCollectionBuilder start
I/mono-stdout(30611): mvx:Diagnostic: 0.51 Setup: CommandCollectionBuilder star
t
I/mvx (30611): 0.51 Setup: NavigationSerializer start
I/mono-stdout(30611): mvx:Diagnostic: 0.51 Setup: NavigationSerializer start
I/mvx (30611): 0.53 Setup: InpcInterception start
I/mono-stdout(30611): mvx:Diagnostic: 0.53 Setup: InpcInterception start
I/mvx (30611): 0.53 Setup: LastChance start
I/mono-stdout(30611): mvx:Diagnostic: 0.53 Setup: LastChance start
I/MvxBind (30611): 0.56 Missing stylable field MvxControl
I/mono-stdout(30611): MvxBind:Error: 0.56 Missing stylable field MvxControl
I/MvxBind (30611): 0.56 Missing stylable field MvxControl_MvxTemplate
I/mono-stdout(30611): MvxBind:Error: 0.56 Missing stylable field MvxControl_Mvx
Template
I/mvx (30611): 1.32 Setup: Secondary end
I/mono-stdout(30611): mvx:Diagnostic: 1.32 Setup: Secondary end
I/mvx (30611): 1.36 Attempting to load new ViewModel from Intent with Extr
as
I/mono-stdout(30611): mvx:Diagnostic: 1.36 Attempting to load new ViewModel fro
m Intent with Extras
I/mvx (30611): 1.85 Problem initialising viewModel of type UserPageViewMod
el - problem TargetInvocationException: Exception has been thrown by the target
of an invocation.
I/mvx (30611): at System.Reflection.MonoMethod.Invoke (System.Object
obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] p
arameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unkn
own>:0
I/mvx (30611): at System.Reflection.MethodBase.Invoke (System.Object obj,
System.Object[] parameters) [0x00000] in <filename unknown>:0
I/mvx (30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelExtensions.Cal
lBundleMethod (IMvxViewModel viewModel, System.Reflection.MethodInfo methodInfo,
IMvxBundle bundle) [0x00000] in <filename unknown>:0
I/mvx (30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelExtensions.Cal
lBundleMethods (IMvxViewModel viewModel, System.String methodName, IMvxBundle bu
ndle) [0x00000] in <filename unknown>:0
I/mvx (30611): at Cirrious.MvvmCross.ViewModels.MvxDefaultViewModelLocator
.CallCustomInitMethods (IMvxViewModel viewModel, IMvxBundle parameterValues) [0x
00000] in <filename unknown>:0
I/mvx (30611): at Cirrious.MvvmCross.ViewModels.MvxDefaultViewModelLocator
.TryLoad (System.Type viewModelType, IMvxBundle parameterValues, IMvxBundle save
dState, IMvxViewModel& viewModel) [0x00000] in <filename unknown>:0
I/mvx (30611): InnerException was NullReferenceException: Object reference n
ot set to an instance of an object
I/mvx (30611): at TasteITAndroidClient.UserPageViewModel.InitFromBund
le (IMvxBundle parameters) [0x00000] in <filename unknown>:0
I/mvx (30611): at Cirrious.MvvmCross.ViewModels.MvxViewModel.Init (IMvxBun
dle parameters) [0x00000] in <filename unknown>:0
I/mvx (30611): at (wrapper managed-to-native) System.Reflection.MonoMethod
:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
I/mvx (30611): at System.Reflection.MonoMethod.Invoke (System.Object obj,
BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parame
ters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:
0
I/mono-stdout(30611): mvx:Warning: 1.85 Problem initialising viewModel of type
UserPageViewModel - problem TargetInvocationException: Exception has been thrown
by the target of an invocation.
I/mono-stdout(30611): at System.Reflection.MonoMethod.Invoke (System.Object
obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] p
arameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unkn
own>:0
I/mono-stdout(30611): at System.Reflection.MethodBase.Invoke (System.Object ob
j, System.Object[] parameters) [0x00000] in <filename unknown>:0
I/mono-stdout(30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelExtensions.
CallBundleMethod (IMvxViewModel viewModel, System.Reflection.MethodInfo methodIn
fo, IMvxBundle bundle) [0x00000] in <filename unknown>:0
I/mono-stdout(30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelExtensions.
CallBundleMethods (IMvxViewModel viewModel, System.String methodName, IMvxBundle
bundle) [0x00000] in <filename unknown>:0
I/mono-stdout(30611): at Cirrious.MvvmCross.ViewModels.MvxDefaultViewModelLoca
tor.CallCustomInitMethods (IMvxViewModel viewModel, IMvxBundle parameterValues)
[0x00000] in <filename unknown>:0
I/mono-stdout(30611): at Cirrious.MvvmCross.ViewModels.MvxDefaultViewModelLoca
tor.TryLoad (System.Type viewModelType, IMvxBundle parameterValues, IMvxBundle s
avedState, IMvxViewModel& viewModel) [0x00000] in <filename unknown>:0
I/mono-stdout(30611): InnerException was NullReferenceException: Object referenc
e not set to an instance of an object
I/mono-stdout(30611): at TasteITAndroidClient.UserPageViewModel.InitFromBund
le (IMvxBundle parameters) [0x00000] in <filename unknown>:0
I/mono-stdout(30611): at Cirrious.MvvmCross.ViewModels.MvxViewModel.Init (IMvx
Bundle parameters) [0x00000] in <filename unknown>:0
I/mono-stdout(30611): at (wrapper managed-to-native) System.Reflection.MonoMet
hod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exceptio
n&)
I/mono-stdout(30611): at System.Reflection.MonoMethod.Invoke (System.Object ob
j, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] par
ameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknow
n>:0
I/MonoDroid(30611): UNHANDLED EXCEPTION: Cirrious.CrossCore.Exceptions.MvxExcept
ion: Failed to construct and initialize ViewModel for type TasteITAndroidClient.
UserPageViewModel from locator MvxDefaultViewModelLocator - check MvxTrace for m
ore information
I/MonoDroid(30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelLoader.LoadView
Model (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest,Cirrious.MvvmCross.View
Models.IMvxBundle,Cirrious.MvvmCross.ViewModels.IMvxViewModelLocator) <0x00104>
I/MonoDroid(30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelLoader.LoadView
Model (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest,Cirrious.MvvmCross.View
Models.IMvxBundle) <0x0008b>
I/MonoDroid(30611): at Cirrious.MvvmCross.Droid.Views.MvxAndroidViewsContainer.V
iewModelFromRequest (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest,Cirrious.
MvvmCross.ViewModels.IMvxBundle) <0x0003b>
I/MonoDroid(30611): at Cirrious.MvvmCross.Droid.Views.MvxAndroidViewsContainer.C
reateViewModelFromIntent (Android.Content.Intent,Cirrious.MvvmCross.ViewModels.I
MvxBundle) <0x000cf>
I/MonoDroid(30611): at Cirrious.MvvmCross.Droid.Views.MvxAndroidViewsContainer.L
oad (Android.Content.Intent,Cirrious.MvvmCross.ViewModels.IMvxBundle,System.Type
) <0x001eb>
I/MonoDroid(30611): at Cirrious.MvvmCross.Droid.Views.MvxActivityViewExtensions.
LoadViewModel (Cirrious.MvvmCross.Droid.Views.IMvxAndroidView,Cirrious.MvvmCross
.ViewModels.IMvxBundle) <0x00163>
I/MonoDroid(30611): at Cirrious.MvvmCross.Droid.Views.MvxActivityViewExtensions/
<>c__DisplayClass3.<OnViewCreate>b__1 () <0x0002b>
I/MonoDroid(30611): at Cirrious.MvvmCross.Views.MvxViewExtensionMethods.OnViewCr
eate (Cirrious.MvvmCross.Views.IMvxView,System.Func`1<Cirrious.MvvmCross.ViewMod
els.IMvxViewModel>) <0x00073>
I/MonoDroid(30611): at Cirrious.MvvmCross.Droid.Views.MvxActivityViewExtensions.
OnViewCreate (Cirrious.MvvmCross.Droid.Views.IMvxAndroidView,Android.OS.Bundle)
<0x001a7>
I/MonoDroid(30611): at Cirrious.MvvmCross.Droid.Views.MvxActivityAdapter.EventSo
urceOnCreateCalled (object,Cirrious.CrossCore.Core.MvxValueEventArgs`1<Android.O
S.Bundle>) <0x0002b>
I/MonoDroid(30611): at (wrapper delegate-invoke) System.EventHandler`1<Cirrious.
CrossCore.Core.MvxValueEventArgs`1<Android.OS.Bundle>>.invoke_void__this___objec
t_TEventArgs (object,Cirrious.CrossCore.Core.MvxValueEventArgs`1<Android.OS.Bund
le>) <0x000ab>
I/MonoDroid(30611): at Cirrious.CrossCore.Core.MvxDelegateExtensionMethods.Raise
<Android.OS.Bundle> (System.EventHandler`1<Cirrious.CrossCore.Core.MvxValueEvent
Args`1<Android.OS.Bundle>>,object,Android.OS.Bundle) <0x00063>
I/MonoDroid(30611): at Cirrious.CrossCore.Droid.Views.MvxEventSourceActivity.OnC
reate (Android.OS.Bundle) <0x00047>
I/MonoDroid(30611): at TasteITAndroidClient.BaseActivity`1<TasteITAndroidClient.
UserPageViewModel>.OnCreate (Android.OS.Bundle) <0x0001b>
I/MonoDroid(30611): at TasteITAndroidClient.RecomendationFloatingMenuDisplayActi
vity`1<TasteITAndroidClient.UserPageViewModel>.OnCreate (Android.OS.Bundle) <0x0
001b>
I/MonoDroid(30611): at TasteITAndroidClient.MyProfilePage.OnCreate (Android.OS.B
undle) <0x0001b>
I/MonoDroid(30611): at Android.App.Activity.n_OnCreate_Landroid_os_Bundle_ (intp
tr,intptr,intptr) <0x0005b>
I/MonoDroid(30611): at (wrapper dynamic-method) object.b0555ae5-9a73-4bdf-a346-3
59d6ab94c3d (intptr,intptr,intptr) <0x00043>
D/dalvikvm(30611): GC_CONCURRENT freed 200K, 3% free 9016K/9248K, paused 3ms+2ms
, total 17ms
E/mono (30611):
E/mono (30611): Unhandled Exception:
E/mono (30611): Cirrious.CrossCore.Exceptions.MvxException: Failed to constru
ct and initialize ViewModel for type TasteITAndroidClient.UserPageViewModel from
locator MvxDefaultViewModelLocator - check MvxTrace for more information
E/mono (30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelLoader.LoadVie
wModel (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest request, IMvxBundle sa
vedState, IMvxViewModelLocator viewModelLocator) [0x00000] in <filename unknown>
:0
E/mono (30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelLoader.LoadVie
wModel (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest request, IMvxBundle sa
vedState) [0x00000] in <filename unknown>:0
E/mono (30611): at Cirrious.MvvmCross.Droid.Views.MvxAndroidViewsContainer.
ViewModelFromRequest (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest viewMode
lRequest, IMvxBundle savedState) [0x00000] in <filename unknown>:0
E/mono (30611): at Cirrious.MvvmCross.Droid.Views.MvxAndroidViewsContainer.
CreateViewModelFromIntent (Android.Content.Intent intent, IMvxBundle savedState)
[0x00000] in <filename u
E/mono-rt (30611): [ERROR] FATAL UNHANDLED EXCEPTION: Cirrious.CrossCore.Excepti
ons.MvxException: Failed to construct and initialize ViewModel for type TasteITA
ndroidClient.UserPageViewModel from locator MvxDefaultViewModelLocator - check M
vxTrace for more information
E/mono-rt (30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelLoader.LoadVie
wModel (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest request, IMvxBundle sa
vedState, IMvxViewModelLocator viewModelLocator) [0x00000] in <filename unknown>
:0
E/mono-rt (30611): at Cirrious.MvvmCross.ViewModels.MvxViewModelLoader.LoadVie
wModel (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest request, IMvxBundle sa
vedState) [0x00000] in <filename unknown>:0
E/mono-rt (30611): at Cirrious.MvvmCross.Droid.Views.MvxAndroidViewsContainer.
ViewModelFromRequest (Cirrious.MvvmCross.ViewModels.MvxViewModelRequest viewMode
lRequest, IMvxBundle savedState) [0x00000] in <filename unknown>:0
E/mono-rt (30611): at Cirrious.MvvmCross.Droid.Views.MvxAndroidViewsContainer.
CreateViewModelFromIntent (Android.Content.Intent intent, IMvxBundle savedState)
[0x00000] i
I/ActivityManager( 389): Process com.tasteitandroidclient (pid 30611) has died.
I am having a hard time understanding what is the problem... It happens on every activity.
Any ides?
The trace shows an unhandled exception while creating your UserPageViewModel
it further shows "InnerException was NullReferenceException: Object referenc
e not set to an instance of an object
I/mono-stdout(30611): at TasteITAndroidClient.UserPageViewModel.InitFromBundle (IMvxBundle parameters) [0x00000]"
If you add more trace to your UserPageViewModel constructor and to the Init method, then this may help work out what the issue is.