I am trying to setup Flex Monkey.I am using Flex SDK 3.5. I added the Additional Compiler Arguments -include-libraries "../libs/automation_monkey3.x.swc"for my project in Flex Builder.Now when I runthe application and click on Username text box, I am getting the following error.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at com.gorillalogic.aqadaptor::AQEnvironment/sortAncestors()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:328]
at Array$/_sort()
at Array/http://adobe.com/AS3/2006/builtin::sort()
at com.gorillalogic.aqadaptor::AQEnvironment/findAllAncestors()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:302]
at com.gorillalogic.aqadaptor::AQEnvironment/findClosestAncestor()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:275]
at com.gorillalogic.aqadaptor::AQEnvironment/getAutomationClassByInstance()[/Users/sstern/Documents/Projects/flexmonkey/MonkeyLink/src/com/gorillalogic/aqadaptor/AQEnvironment.as:246]
at mx.automation::AutomationManager/helpCreateIDPart()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:1880]
at mx.automation.delegates.core::ContainerAutomationImpl/createAutomationIDPart()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\delegates\core\ContainerAutomationImpl.as:185]
at mx.core::UIComponent/createAutomationIDPart()[C:\autobuild\3.5.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9299]
at mx.automation::AutomationManager/captureID()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:2657]
at mx.automation::AutomationManager/captureIDFromMouseDownEvent()[C:\work\flex\dmv_automation\projects\automation\src\mx\automation\AutomationManager.as:2588]
When I remove the Additional Compiler Parameters, the application works fine. I am unable to fix this issue. Any help is greatly appreciated.
Once I cleaned and recreated html-template folder in Flex builder, the error got resolved.Strange,but it works!
Related
Hoping someone can help, ive just updated some nuget packages (from .net core preview to 3) ran a build and now get an error saying:
The type name 'SqlConnection' could not be found in the namespace. This type has been forwarded to assembly Consider adding a reference to that assembly.
As you can see from the image below i have got the names in there. but i believe the grey means that it doesnt think its using it? and im getting the error.
Any ideas on how to fix the issue?
Thanks
Hy guys,
I got one existing project from my co-worker. I opened the folder in VS as web site. When I build it and try to run I get the following message-
Warning C:\Users......: ASP.NET runtime error: Object reference not set to an instance of an object.
Error - Object reference not set to an instance of an object.
I have a Visual Studio 2012, registered as student version, target framework is 2.0
Try to check your project reference to load well, not missing reference (you can check in folder "Reference"), or sometime this error because your object is not initialize [blank value], you can add images to give us detail information for your issue.
That is called a Null Reference, you (the code) try to use an object which is not created/initialised yet.
Its impossible to give you an answer which would fix your issue, you will have to debug the code yourself.
When the exception occurs, visual studio should ask you if you want to 'break' or 'continue'. Choose break and check where in the code the error is, then take it from there.
//Example:
AClassofSomeSort myObj2 = new AClassofSomeSort();
myObj2.DoSomething(); //Totally fine, cause the myObj2 have been initialised.
AClassofSomeSort myObj;
myObj.DoSomething(); //Oh noes, the 'myObj' is not created! Exception is thrown.
I am sorry if this is not really a coding question (it depends on if its my code causing the problem I suppose).
I have seen this question: Tracking down intermittent 'Object reference not set to an instance of an object.' error on build
However, it has not been of much help (although if you read the comments, you will see that I thought it did help for a while there).
When I try publish my website, occasionally, I will get an error with no file or line reference:
Pre-compiling Web Site
Building directory '/App_Code/'.
Building directory '/'.: Publication (web): Object reference not set to an instance of an object.
Pre-compilation Complete
------ Skipped Publish: Project X:\, Configuration: Debug Any CPU ------
I know the usual causes of "Object reference not set to an instance of an object" but this seems a bit different, isn't it supposed to be a runtime error? Not a build error?
What is weird is that it happens, seemingly at random (about 25%-33% of the time). I can try to publish it and have it fail. Then try again straight after, without changing anything and it works fine.
I started getting this error after moving some of my functions (VB.net btw) to a new file in the App_Code folder so they can be accessed by all pages of the site.
If you need any more info, please let me know.
Thanks,
EDIT: After further investigation, it seems to only happen if I try to publish the website within a few seconds of saving changes to any file within it. What could cause this?
The same error occurred for me to, I deleted the dlls of the custom controls in the web site that are already in the bin, then i published the web site, and succeeded
IF you have any custom/usercontrols in your project, they are actually running at design time and can give object ref errors. This can occur during builds too. In that case, a property is being referenced that is NOTHING and throws the error.
I had a similar problem with a Windows Form project.
Wherever I try to move a custom control on the windows form, and then try to save the form, VS2010 comes back with "Object not set to an instance of an object".
I suspected the error was deep down in the layers of abstraction in my inherited code, but couldn't work out how deep to go, without reviewing every line of code.
My solution to this problem is this.
Open up another instance of Visual Studio 2010
Menu: Debug | Attach to Process..
Search for "devenv.exe xxx YourApplicationName..." and select it
Click "Attach"
Menu: Debug | Exceptions..
Tick all the boxes in the thrown column, then "OK"
Your second instance of VS2010 is not debugging your first instance, including all the custom controls.
Return to the first instance of VS2010, and repeat the actions that caused the error in the first place, the second instance of VS2010 will break at the line of code that has the error.
You may want to look at this link there is a bug in vs2012
https://connect.microsoft.com/VisualStudio/feedback/details/749901/error-when-i-click-publish-object-reference-not-set-to-an-instance-of-an-object
I've migrated a Flex 3 app over to 4.6. I noticed a glitch in the app when it changed views. When I ran the app with the debugger, I received an error: mx:states SetProperty/apply.
There was also a Reference error #1069 stating the the Property text could not be found.
Any ideas of what might be going wrong would be greatly appreciated.
Thanks.
I got strange compile-time error:
Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list.
This project is aspnet mvc web application and all was fine for a long time.
After I added them Build went fine, but what could be a reason for this error?
It was caused by addition of file with .xaml extension.
By default, VS.NET try to complie it.
When I changed settings to BuildAction: none, copy to output: always I was able to remove those references.
i know that this error was solved, but in my situation, solution was different.
If you copied or moved an item from another project, its "Build Action" property might be set to "Page". This happened to me, and changing it to "Resource" or "Content" (because that's what the item was) fixed the problem.
You are using some type from the assemblies in your code. As a server side project this is almost certainly an error.
VS will normally give you an error immediately on entering the name of something for which it cannot find a definition so it seems odd that you got as far as a compile before noticing.