String reference not changing
I have 2 files as follows. (Runnable code)
1. StringTest.java
package mytest;
public class StringTest
public static String s1 = "Hello";
public static void main(String args[])
String s2= "Hello";
String s3= "Hello";
System.out.println("1. s1 s2 : " + (s1 == s2));
System.out.println("2. s2 s3 : " + (s2 == s3));
System.out.println("3. s1 s3 : " + (s1 == s3));
System.out.println("4. s1 s4 : " + (s1 == InnerMain.s4));
System.out.println("5. s2 s4 : " + (s1 == InnerMain.s4));
System.out.println("6. s1 s5 : " + (s1 == OuterClass.s5));
System.out.println("7. s4 s5 : " + (InnerMain.s4 == OuterClass.s5));
System.out.println("8. s2 s5 : " + (s2 == OuterClass.s5));
System.out.println("9. s3 s5 : " + (s3 == OuterClass.s5));
SameFile sf = new SameFile();
System.out.println("10. s1 s5 : " + (s1 == sf.s6));
System.out.println("11. s2 s5 : " + (s2 == sf.s6));
System.out.println("12. s3 s5 : " + (s3 == sf.s6));
System.out.println("13. s4 s5 : " + (InnerMain.s4 == sf.s6));
System.out.println("14. s5 s5 : " + (OuterClass.s5 == sf.s6));
sf.s6 = "Hello";
System.out.println("10. s1 s5 : " + (s1 == sf.s6));
System.out.println("11. s2 s5 : " + (s2 == sf.s6));
System.out.println("12. s3 s5 : " + (s3 == sf.s6));
System.out.println("13. s4 s5 : " + (InnerMain.s4 == sf.s6));
System.out.println("14. s5 s5 : " + (OuterClass.s5 == sf.s6));
public static class InnerMain
public static String s4 = "Hello";
class SameFile
public String s6 = "Hello";
}2.OuterClass.java
package mytest;
public class OuterClass
public static String s5 = "Hello";
}OUTPUT
1. s1 s2 : true
2. s2 s3 : true
3. s1 s3 : true
4. s1 s4 : true
5. s2 s4 : true
6. s1 s5 : true
7. s4 s5 : true
8. s2 s5 : true
9. s3 s5 : true
10. s1 s5 : true
11. s2 s5 : true
12. s3 s5 : true
13. s4 s5 : true
14. s5 s5 : true
10. s1 s5 : true
11. s2 s5 : true
12. s3 s5 : true
13. s4 s5 : true
14. s5 s5 : true"Hello" : String references dont change in any case?
String is immutable so no problem .. but whats going on ..
When you create a new String variable having the contents already existing in the String Pool ,then the reference point to existing data.
e.g.
String a="Hello";//Create a block of memory in the Pool with Data "Hello"
String b="Hello";// Search for any block having data "Hello", here existing then b will point to same block.....
// when you check s1==s2 // It check for the reference
// when you check s1.equals(s2) // It check for the contents(value) of variables
Similar Messages
-
Bpc install issue : string reference not set to an instance of a string.
hi
i am trying to install BPC server in my machine . after giving bw credential i am getting below error
bpc issue string reference not set to an instance of a string. parameter name s
does any one came across this? what might be wrong here?
please help meHi
Once you install the ABAP and .NET components, the server manager would be part of your program list. It would be something like SAP->BPC Server 7.0. Click on the server manager and in the server menu you will find 'Diagnostic' option as this would give you a good picture about the installation success post installation.
During the server manager installatio process, you would be alerted if any of the pre requisite software is not installed on your server machine. Please check the installation guide for detailed steps.
Thanks,
Santosh -
Posting string reference 961 not planned
Hi
From the output list of MB51, while I try to open a material document with Mvt Type 961(Backflush GI for Order), the system throws out a error "Posting string reference 961 not planned".
The same error appears when I try to access from Production Order -> Documented Goods Mvt -> Material document (with 961 Mvt).
Material documents is displayed for all other Mvt types.
Why is it so happening?
Thanks
VeluDear Velu,
Please check SE16 transaction:
Table: T156
BWART BUSTR
961 961 <<<<<<<<<<<<
This is the reason for the error message you are facing.
After 4.6A version, it is not possible to create custom movement type
by using a custom posting string reference.
Possible solution:
1) Deleting the movement and recreating the movement again in
reference to a standard movement. This is the best and recommendable
way.
2) Use SE16 and manually change the reference movement to a standard
movement.
3) Release 470 has additional table MIGO_T156 that has to be updated if you want to continue using a customer movement type that does not reference a standard movement in T156 but i think you have to tested it out as it is not supported by SAP Support, this is modification. Keep fields XTRANSFER_MVT,
XSTOCK_TYPE_MVT, XREMOVE_FROM_MVT and XPLACE_IN_MVT as initial.
Regards,
ian Wong Loke Foong -
Do not change the payment term created a Sales Order with reference
Hi Gurus,
Do not change the payment term created a Sales Order with reference to a contract where the payer of the change in Sales Order.Hello ,
As per my understanding , you do not want the payment terms to be changed even if the payer partner function is changed ,
as standard sap redetermines the payment terms with change in partner function, you may use the exit
USEREXIT_MOVE_FIELD_TO_VBAK- header level
USEREXIT_MOVE_FIELD_TO_VBAP- Item level
in this you could write a small code which will not change the payment terms when payer is redetermined
hope this helps
Thanks
akasha -
Hello,
As you can tell from the title of this question, I am no expert with GPO's. Before I begin, I spent a few minutes to an hour searching and reading in hopes of finding the solution and avoid putting myself out there as a "GPO Newb". While
I found several posts and answers that were similar and were related, the questions and answers were more advanced and did present the solutions providing the person had initial knowledge already. That is not necessarily my case and I would ask for a
little patience and a bit of 'hand-holding' for what I need.
I run SBS 2011, and in Group Policy Management I have a custom GPO. In this GPO I define all my settings. I understand this may not be the best or most practical method of applying policies, but I am not very strict and have few settings. This
policy existed prior to my joining the company, and was migrated in to this SBS '11 from SBS '03. That may be the issue, but before making any changes I am seeking expert advice.
When I select that GPO, named "Main GPO", and click on the tab at the top "Settings" I see the error: "An error occurred while generating report: Object reference not set to an instance of an object."
I saw that when I right click the GPO > View > Options and select the tab "Reporting" that it states that for reporting to work the location of the .adm files must be specified. I see that my option for the location is set to "Default"
which by my guessing would be located in the C:\Windows\sysvol directory. Below is what I see there:
C:\Windows\sysvol\domain
C:\Windows\sysvol\staging
C:\Windows\sysvol\staging areas
C:\Windows\sysvol\sysvol
I think the problem is that my custom GPO are not inside the default location, which I speculate is: C:\Windows\sysvol\domain\policies (which I do see some objects there).
But instead I also see items in this folder: C:\Windows\sysvol\sysvol\JOHN.LOCAL\policies (while where I just typed 'JOHN.LOCAL' is my actual local domain).
To further this, when I edit that custom GPO, then at the very top of the tree I right click on it and select Properties, I see a Unique Name listed there as a long string of numbers and letters, similar to a registry entry. I searched my server for
that same Unique Name and found it listed inside the folder: C:\Windows\sysvol\domain\policies
If I am correct with my assumption and basic knowledge, I should move all objects as follows:
-Move FROM: C:\Windows\sysvol\domain\policies
-Move TO: C:\Windows\sysvol\sysvol\JOHN.LOCAL\policies
My concerns are that I am not correct at all, that I will break something, that there may be an easier fix than moving anything, or that I am overlooking something causing this error altogether.
Thank you for anyone's help and time with assisting me with this request.
John Fester> top "Settings" I see the error: "An error occurred while generating
> report: Object reference not set to an instance of an object."
That's due to a security setting (most possibly) your current OS does
not understand. Hard to find out wich exact setting it is... To resolve
this issue, we need the gtpptmpl.inf file residing in the policiy's
sysvol folder. To open this folder, edit the policy, move to computer
settings - policies - windows settings - scripts - startup, press "show
files". Then move two folders upwards and back down to
.\microsoft\windows nt\secedit. There you'll see the gpttmpl.inf - post
its contents and we'll have a look at it.
> location, which I speculate is: C:\Windows\sysvol\domain\policies (which
> folder: C:\Windows\sysvol\sysvol\JOHN.LOCAL\policies (while where I just
That's perfectly ok - JOHN.LOCAL in fact is a symlink pointing to "domain".
> all objects as follows:
> -Move FROM: C:\Windows\sysvol\domain\policies
> -Move TO: C:\Windows\sysvol\sysvol\JOHN.LOCAL\policies
No.
Martin
Mal ein
GUTES Buch über GPOs lesen?
NO THEY ARE NOT EVIL, if you know what you are doing:
Good or bad GPOs?
And if IT bothers me - coke bottle design refreshment :)) -
Hello, I have this issue and Ihave wasted atleast 2 days with this one. I have tried all possible solutions -
1. Turn Off Real time McAffee scanning -- I do not have real time scanning ON
2. Delete Bin folder and start all over by adding references -- Did not work
3. delete .compiles or refresh filesdelete temp files from asp.net temp files folder -- no .Compiled file. Deleted refresh files but no use
4. change temp file for appliation in compilation tag of web config -- No use
My application framework is .NET 4.5 and VSD 2012. I have tried to compile from C:\WINDOWS\Mi
crosoft.NET\Framework folder as well as C:\WINDOWS\Mi
crosoft.NET\Framework64 folder. Both gave same error.
I need urgent assistance plz.
Here is stack trace :
C:\Development\Convergence\Applications\CAP\WixSetup\WixSetupView>"C:\WINDOWS\Mi
crosoft.NET\Framework\v4.0.30319\aspnet_compiler.exe" -u -fixedNames -p "C:\Deve
lopment\Convergence\Applications\CAP\TouchPointTier\Presentations" -v / "C:\Deve
lopment\Convergence\Applications\CAP\PrecompiledWeb\ConvergenceCAP" -errorstack
Microsoft (R) ASP.NET Compilation Tool version 4.0.30319.17929
Utility to precompile an ASP.NET application
Copyright (C) Microsoft Corporation. All rights reserved.
error ASPRUNTIME: Object reference not set to an instance of an object.
[NullReferenceException]: Object reference not set to an instance of an object.
at System.Web.Compilation.BuildManager.CopyPrecompiledFile(VirtualFile vfile,
String destPhysicalPath)
at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
at System.Web.Compilation.BuildManager.CopyStaticFilesRecursive(VirtualDirect
ory sourceVdir, String destPhysicalDir, Boolean topLevel)
at System.Web.Compilation.BuildManager.PrecompileAppInternal(VirtualPath star
tingVirtualDir, IEnumerable`1 excludedVirtualPaths)
at System.Web.Compilation.BuildManager.PrecompileApp(VirtualPath startingVirt
ualDir, IEnumerable`1 excludedVirtualPaths)
at System.Web.Compilation.BuildManager.PrecompileApp(ClientBuildManagerCallba
ck callback, IEnumerable`1 excludedVirtualPaths)
at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
llback callback, List`1 excludedVirtualPaths)
at System.Web.Compilation.BuildManagerHost.PrecompileApp(ClientBuildManagerCa
llback callback, List`1 excludedVirtualPaths)
at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
dManagerCallback callback, Boolean forceCleanBuild)
at System.Web.Compilation.ClientBuildManager.PrecompileApplication(ClientBuil
dManagerCallback callback)
at System.Web.Compilation.Precompiler.Main(String[] args)
C:\Development\Convergence\Applications\CAP\WixSetup\WixSetupView>pause
Press any key to continue . . .I know these warning are not related to my issue that is the reason i am not able to understand what is wrong with it. Its a huge application and compiliing takes atleast 6-7 hrs and after that I get error in "copyPrecompiledFiles" method.
I have circular reference issue in application but when I build application in specific sequece, it goes away so after builing application with 0 errors, i execute command to precompile
rmdir C:\Precompiled /s /q
mkdir C:\Precompiled
"C:\WINDOWS\Microsoft.NET\Framework64\v4.0.30319\aspnet_compiler.exe" -u -fixedNames -p "C:\ApplicationPath" -v / "C:\Precompiled" -errorstack
pause -
Object as Reference not working..Please help..!!!
public class GG{
public static void main(String[] args) {
Integer i = new Integer(10);
System.out.println("Before Call:"+i);
change(i);
System.out.println("After Call:"+i);
public static void change(Integer x){
x=20;
Here the output is coming
Before Call:10
After Call:10
I am confused when i am passing an object in a function then why the value is not changed as objects are passed by reference??Java is pass-by-value. Recommended reading:
[http://www.javaranch.com/campfire/StoryCups.jsp]
[http://www.javaranch.com/campfire/StoryPassBy.jsp]
This topic has been done to death too many times already. I'm moving this thread to New to Java and locking this it. Jasvinder.Singh, please confine your questions to the New to Java forum until such time as you can regard yourself as a Java Programmer.
db -
I have installed Project Server 2013 on SharePoint 2013, and installed the first PWA which worked. But I needed to change some configurations and so I deleted the PWA instances, but now I cannot delete the Project Server Service Application. Every attempt
to delete the Service Application it gives the error above, namely:
Sorry, something went wrong
Object reference not set to an instance of an object.
Technical Details
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: ecaeaf9c-9fec-3049-ba23-d9a18337b9e2
Date and Time: 8/18/2014 12:55:31 PM
I'd urgently appreciate help.Thanks Paul for the reply. Here's the error, and the logs below covering the time the error occurred.
I've tried to extract a section of the log file below:
==========================================================
08/18/2014 19:20:19.07 w3wp.exe (0x542C)
0x6DF4 SharePoint Foundation DistributedCache
00000 Unexpected SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
08/18/2014 19:20:19.07 w3wp.exe (0x542C)
0x6DF4 SharePoint Foundation DistributedCache
ah24w Unexpected Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
08/18/2014 19:20:19.07 w3wp.exe (0x542C)
0x6DF4 SharePoint Foundation DistributedCache
air4g Monitorable Token Cache: Failed to initialize SPDistributedSecurityTokenCache Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory() at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...
08/18/2014 19:20:19.07* w3wp.exe (0x542C)
0x6DF4 SharePoint Foundation DistributedCache
air4g Monitorable ...acheInitializer.Init(Object state)'.
08/18/2014 19:20:19.07 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
af4yd High [Forced due to logging gap, cached @ 08/18/2014 19:20:18.99, Original Level: Verbose] TenantAppEtag
record requested but there is no sitesubscription or tenantId for site {0} so we will use the WebApp Id for the cache. f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.07 w3wp.exe (0x7240)
0x7370 SharePoint Foundation Asp Runtime
aj1kp High [Forced due to logging gap, Original Level: Verbose] SPRequestModule.PreSendRequestHeaders f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.10 w3wp.exe (0x7240)
0x7370 Project Server Unified Logging Service
b8fx High ULS Init Completed (w3wp.exe, Microsoft.Office.Project.Server.Native.dll) f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.15 w3wp.exe (0x7240)
0x7370 0x6FB7007
6t8h High [Forced due to logging gap, cached @ 08/18/2014 19:20:19.07, Original
Level: Verbose] {0} f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.15 w3wp.exe (0x7240)
0x7370 Project Server Provisioning
9or8 High [Forced due to logging gap, Original Level: Verbose] Unprovisioning service app {0}
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.16 w3wp.exe (0x7240)
0x7370 Project Server Provisioning
8ig5 High Unregistering project psi shared application timer job. f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.21 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
8nca Medium Application error when access /_admin/ServiceApplicationDelete.aspx,
Error=Object reference not set to an instance of an object. at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob() at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication
psi) at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData) at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender,
EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyn... f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.21* w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
8nca Medium ...cPoint, Boolean includeStagesAfterAsyncPoint)
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.23 w3wp.exe (0x7240)
0x7370 SharePoint Foundation Runtime
tkau Unexpected System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()
at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication psi) at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)
at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.RaisePostBackEvent(String
eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoin... f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.23* w3wp.exe (0x7240)
0x7370 SharePoint Foundation Runtime
tkau Unexpected ...t) f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.24 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
ajlz0 High Getting Error Message for Exception System.Web.HttpUnhandledException (0x80004005): Exception
of type 'System.Web.HttpUnhandledException' was thrown. ---> System.NullReferenceException: Object reference not set to an instance of an object. at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.get_ServiceAppTimerJob()
at Microsoft.Office.Project.Server.Administration.ProjectPSISharedApplicationTimerJob.Unregister(PsiServiceApplication psi) at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.Unprovision(Boolean deleteData)
at Microsoft.SharePoint.ApplicationPages.ServiceApplicationDeletePage.OkButton_Click(Object sender, EventArgs e) at System.EventHandler.Invoke(Object sender, EventArgs e) at System.Web.UI.WebControls.Button.Rais...
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.24* w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
ajlz0 High ...ePostBackEvent(String eventArgument) at System.Web.UI.Page.ProcessRequestMain(Boolean
includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.HandleError(Exception e) at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) at System.Web.UI.Page.ProcessRequest() at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.32 w3wp.exe (0x14A4)
0x6508 SharePoint Foundation DistributedCache
00000 Unexpected SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm. 67c4af9c-afed-3049-ba23-d538b7dde463
08/18/2014 19:20:19.32 w3wp.exe (0x14A4)
0x6508 SharePoint Foundation DistributedCache
ah24w Unexpected Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
67c4af9c-afed-3049-ba23-d538b7dde463
08/18/2014 19:20:19.32 w3wp.exe (0x14A4)
0x6508 SharePoint Foundation DistributedCache
air4g Monitorable Token Cache: Failed to initialize SPDistributedSecurityTokenCache Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory() at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...
67c4af9c-afed-3049-ba23-d538b7dde463
08/18/2014 19:20:19.32* w3wp.exe (0x14A4)
0x6508 SharePoint Foundation DistributedCache
air4g Monitorable ...acheInitializer.Init(Object state)'.
67c4af9c-afed-3049-ba23-d538b7dde463
08/18/2014 19:20:19.38 w3wp.exe (0x7240)
0x7370 SharePoint Foundation Upgrade
aiaih High [Forced due to logging gap, Original Level: Verbose] desiredVersion: {0}
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.41 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
aat87 Monitorable f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.43 w3wp.exe (0x7240)
0x7370 SharePoint Foundation DistributedCache
00000 Unexpected SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm. f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.43 w3wp.exe (0x7240)
0x7370 SharePoint Foundation DistributedCache
ah24w Unexpected Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedViewStateCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.43 w3wp.exe (0x7240)
0x7370 SharePoint Foundation General
ajb4s Monitorable ViewStateLog: Failed to write to the velocity cache:
http://sharepoint:48488/_admin/ServiceApplicationDelete.aspx?id=24024e6bfd8f486ea7ab0b68658ce165&IsDlg=1
f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:19.46 w3wp.exe (0x7240)
0x7370 SharePoint Foundation Monitoring
b4ly Medium Leaving Monitored Scope (Request (POST:http://sharepoint:48488/_admin/ServiceApplicationDelete.aspx?id=24024e6bfd8f486ea7ab0b68658ce165&IsDlg=1)).
Execution Time=550.415729455012 f1c4af9c-7f7e-3049-ba23-ddc2aa2f9d7b
08/18/2014 19:20:20.08 w3wp.exe (0x542C)
0x6EC4 SharePoint Foundation DistributedCache
00000 Unexpected SPDistributedCachePointerWrapper::InitializeDataCacheFactory - No cache hosts are present or running in the farm.
08/18/2014 19:20:20.08 w3wp.exe (0x542C)
0x6EC4 SharePoint Foundation DistributedCache
ah24w Unexpected Unexpected Exception in SPDistributedCachePointerWrapper::InitializeDataCacheFactory for usage 'DistributedLogonTokenCache' - Exception 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()'.
08/18/2014 19:20:20.08 w3wp.exe (0x542C)
0x6EC4 SharePoint Foundation DistributedCache
air4g Monitorable Token Cache: Failed to initialize SPDistributedSecurityTokenCache Exception: 'System.InvalidOperationException: SPDistributedCachePointerWrapper::InitializeDataCacheFactory
- No cache hosts are present or running in the farm. at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory() at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String
name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType
containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow) at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenC...
08/18/2014 19:20:20.08* w3wp.exe (0x542C)
0x6EC4 SharePoint Foundation DistributedCache
air4g Monitorable ...acheInitializer.Init(Object state)'.
08/18/2014 19:20:20.30 OWSTIMER.EXE (0x09C4)
0x09F8 SharePoint Foundation Monitoring
nasq Medium Entering monitored scope (Timer Job SchedulingUnpublish). Parent No acba9844-723f-4477-901c-adfdcae98e4e
08/18/2014 19:20:20.30 OWSTIMER.EXE (0x09C4)
0x09F8 SharePoint Foundation Logging Correlation Data xmnv
Medium Name=Timer Job SchedulingUnpublish f1c4af9c-ffd4-3049-ba23-d4fe1cc1d1d7
08/18/2014 19:20:20.31 OWSTIMER.EXE (0x09C4)
0x0A10 SharePoint Foundation Monitoring
nasq Medium Entering monitored scope (Timer Job SchedulingUnpublish). Parent No 5dbf5387-ba14-4980-bc61-5ba5490870fa
==============================================
Thanks for the attention. -
I am working on a standalone install Sharepoint 2013 (no Active Directory). I found newsfeed feature is not available and checked Distributed Cache service is stopped. When start it “cacheHostInfo is null” is returned.
I checked the Windows service “AppFabric caching service” is stopped because the default identity “Network Service” not work. Then I change the AppFabric service identity to use “.\administrator” (which is also the sp farm administrator) and the service can
be started.
However the “cacheHostInfo is null” when try to start Distributed Cache service in central admin.
I searched on web and found this blog: http://rakatechblog.wordpress.com/2013/02/04/sharepoint-2013-spdistributedcacheserviceinstance-cachehostinfo-is-null/
I tried to run the script but it return error:
Add-SPDistributedCacheServiceInstance : Object reference not set to an
instance of an object.
At C:\root\ps\test.ps1:8 char:13
+ $whatever = Add-SPDistributedCacheServiceInstance
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share…ServiceInstance:
SPCmdletAddDist…ServiceInstance) [Add-SPDistributedCacheServiceInstance]
, NullReferenceException
+ FullyQualifiedErrorId : Microsoft.SharePoint.PowerShell.SPCmdletAddDistr
ibutedCacheServiceInstance
I am not sure what went wrong. Please give me some idea? Thank you for any comment!Can you deploy Active Directory as installing without is not a supported installation scenario - http://support.microsoft.com/kb/2764086.
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
"Object reference not set to an instance of an object" in WAD
10:45:09.659 ########## --> com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SwitchEditable ##########
-EXCEPTION-START- 10:45:09.659: DEBUG ### Browser Init failed. 2nd try will be proceeded. ---
Exception Message: Object reference not set to an instance of an object.
Exception at SAPWADMXHTML.IWADMXBrowser2.AttachAnnotator(Boolean On)
at com.sap.bi.et.wad.AxSAPWADMXHTML.AxCWADMXBrowser2.AttachAnnotator(Boolean on)
at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SwitchEditable(Boolean iBool)
Full Stack:
at com.sap.bi.et.wad.Debug.WriteTraceToFile(Level, String, Exception)
at com.sap.bi.et.wad.Debug.Exception(Exception, String)
at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SwitchEditable(Boolean)
at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.set_BrowserDesignMode(Boolean)
at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.Navigate(String, Boolean)
at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SetHTMLsafe(String, Boolean)
at com.sap.bi.et.wad.wadhtmlediting.WADctlWADHTMLControl.SetHTML(String, Boolean)
at com.sap.bi.et.wad.man.WADctlEditViewLayout.SetDocumentHTML(String)
at com.sap.bi.et.wad.man.WADctlEditViewLayout.TemplateXML2HTMLEdit()
at com.sap.bi.et.wad.man.WADfrmTemplateMDIWindow.UpdateView(Int32, Int32, Boolean)
at com.sap.bi.et.wad.man.WADfrmTemplateMDIWindow.tabLayoutTab_Switch(Object, EventArgs)
at System.Windows.Forms.TabControl.OnSelectedIndexChanged(EventArgs)
at System.Windows.Forms.TabControl.WmSelChange(Message&)
at System.Windows.Forms.TabControl.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.SendMessage(HandleRef, Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.SendMessage(Int32, IntPtr, IntPtr)
at System.Windows.Forms.Control.ReflectMessageInternal(IntPtr, Message&)
at System.Windows.Forms.Control.WmNotify(Message&)
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.ScrollableControl.WndProc(Message&)
at System.Windows.Forms.ContainerControl.WndProc(Message&)
at System.Windows.Forms.Form.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.CallWindowProc(IntPtr, IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.NativeWindow.DefWndProc(Message&)
at System.Windows.Forms.Control.DefWndProc(Message&)
at System.Windows.Forms.Control.WmMouseDown(Message&, MouseButtons, Int32)
at System.Windows.Forms.Control.WndProc(Message&)
at System.Windows.Forms.TabControl.WndProc(Message&)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message&)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message&)
at System.Windows.Forms.NativeWindow.Callback(IntPtr, Int32, IntPtr, IntPtr)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&)
at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32, Int32, Int32)
at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32, ApplicationContext)
at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32, ApplicationContext)
at System.Windows.Forms.Application.Run(Form)
at com.sap.bi.et.wad.BexWebApplicationDesigner.Launch.Main()
-EXCEPTION-END----Hello Dieu,
Have you found a solution of this exception?? i also come across this one.
Kind Regards,
Clark -
"Object reference not set to an instance of an object" after view selection
Hello,
I have a Visual Studio LightSwitch project where I connect to a Oracle server and select a view as a new data source.
I get a error message "Object reference not set to an instance of an object" after selecting the Oracle view as a data source.
The Visual Studio Log shows me following details in the ActivityLog:
362 End package load [Visual Studio Explorers and Designers Package] {8D8529D3-625D-4496-8354-3DAD630ECC1B} VisualStudio 2011/09/05 12:17:58.258
*363 ERROR OracleConnectionUIControl.ProcessParentFormAcceptButtonClick - Exception opening the connection. Oracle Data Provider for .NET ORA-12560: TNS: Fehler bei Protokolladapter at Oracle.DataAccess.Client.OracleException.HandleErrorHelper(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, OpoSqlValCtx pOpoSqlValCtx, Object src, String procedure, Boolean bCheck) at Oracle.DataAccess.Client.OracleException.HandleError(Int32 errCode, OracleConnection conn, IntPtr opsErrCtx, Object src) at Oracle.DataAccess.Client.OracleConnection.Open() at Oracle.VsDevTools.DDEX.OracleConnectionProperties.Test() at Oracle.VsDevTools.DDEX.OracleConnectionUIControl.ProcessParentFormAcceptButtonClick(Object sender, EventArgs e) {D601BB95-E404-4A8E-9F24-5C1A462426CE} Oracle Developer Tools for Visual Studio 2011/09/05 12:18:05.652*
364 OracleVSGPkg.QueryClose - Begin Oracle Developer Tools VS Package Query Close {D601BB95-E404-4A8E-9F24-5C1A462426CE} Oracle Developer Tools for Visual Studio 2011/09/05 12:18:32.001
But this error ORA-12560 does not make any sense, because I have got a working connection to the Oracle server and can see tables and views.
Any ideas?
Environment:
Visual Studio 2010 SP 1
Windows Server 2008 R2
ODAC 11.2.0.2.40 Beta 2 for Entity Framework and LINQ to Entities
Regards
BenjaminHi, did you ever resolve this? I have the same problem.
Thanks,
Mike -
Object Reference Not Set To An Instance Of An Object - Outlook Add-In - Add-In Express
Hi,
My Add-In has been developed in VS2010 using the Add-In Express pack.
Its a very simple add-in that shows an IT support ticket email detailing PC information. To use it, following installing the add-in, the user must select the tab in outlook and click on the Send IT Support Email button which will generate an Outlook Email
Template with specific information about the PC that I pull using VB.
It works fine in Windows 7 & 8, but throws an 'Object Reference Not Set To An Instance Of An Object' exception in Windows XP. Screenshot is shown below:
The code is below
Imports System.Runtime.InteropServices
Imports System.ComponentModel
Imports System.Drawing
Imports System.Windows.Forms
Imports AddinExpress.MSO
Imports System.Object
Imports System.Net
Imports System.Environment
Imports System.Net.NetworkInformation
Imports System.Windows.Forms.Application
Imports Microsoft.Office.Interop.Outlook
Imports outlook = Microsoft.Office.Interop.Outlook
'Add-in Express Add-in Module
<GuidAttribute("735B7BC8-DD2F-44D8-BC37-30D86769C065"), ProgIdAttribute("$safeprojectname$.AddinModule")> _
Public Class AddinModule
Inherits AddinExpress.MSO.ADXAddinModule
#Region " Add-in Express automatic code "
'Required by Add-in Express - do not modify
'the methods within this region
Public Overrides Function GetContainer() As System.ComponentModel.IContainer
If components Is Nothing Then
components = New System.ComponentModel.Container
End If
GetContainer = components
End Function
<ComRegisterFunctionAttribute()> _
Public Shared Sub AddinRegister(ByVal t As Type)
AddinExpress.MSO.ADXAddinModule.ADXRegister(t)
End Sub
<ComUnregisterFunctionAttribute()> _
Public Shared Sub AddinUnregister(ByVal t As Type)
AddinExpress.MSO.ADXAddinModule.ADXUnregister(t)
End Sub
Public Overrides Sub UninstallControls()
MyBase.UninstallControls()
End Sub
#End Region
Public Shared Shadows ReadOnly Property CurrentInstance() As AddinModule
Get
Return CType(AddinExpress.MSO.ADXAddinModule.CurrentInstance, AddinModule)
End Get
End Property
Private Sub AddInModule_AddInInitiatize(ByVal sender As Object, ByVal e As EventArgs) _
Handles MyBase.AddinInitialize
'Outlook 2010 = 14
If Me.HostMajorVersion >= 14 Then
AdxOlExplorerCommandBar1.UseForRibbon = False
End If
End Sub
Public ReadOnly Property OutlookApp() As Outlook._Application
Get
Return CType(HostApplication, Outlook._Application)
End Get
End Property
'Gets the MAC Address from the NIC Information
Function getMacAddress()
Dim nics() As NetworkInterface = _
NetworkInterface.GetAllNetworkInterfaces
Return nics(0).GetPhysicalAddress.ToString
End Function
Sub CreateTemplate()
Dim sHostName As String
Dim sDomain As String
Dim sUserName As String
Dim sOS As String
Dim s64 As String
Dim sMAC As String
Dim host As String = System.Net.Dns.GetHostName()
Dim LocalHostaddress As String = System.Net.Dns.GetHostEntry(host).AddressList(1).ToString()
Dim MyItem As Outlook.MailItem
'Finds the PC Number
sHostName = Environ$("computername")
'Finds the Domain
sDomain = Environ$("userdomain")
'Finds the Username logged into the PC
sUserName = (Environment.UserDomainName & "\" & Environment.UserName)
'Finds the Operating System
sOS = (My.Computer.Info.OSFullName)
'Shows the results collected from the getMacAddress Function in the sMac variable
sMAC = getMacAddress()
'Finds the Architecture of the Operating System - x86 or x64
If (Environment.Is64BitOperatingSystem) Then
s64 = ("64bit")
Else
s64 = ("32bit")
End If
'Creates a Template Email
MyItem = OutlookApp.CreateItem(Outlook.OlItemType.olMailItem)
'Configures the Sender as [email protected]
MyItem.To = "[email protected]"
'Shows the template
MyItem.Display()
'Shows all of the string in the Email Body
MyItem.HTMLBody = String.Concat("<b><u>IT SUPPORT TICKET</u></b>", "<br/><br/>", "<tr><b>PC Number: </b></tr>", sDomain, "\", sHostName, "<b></b>", "<br/><br/>", "<b>Username: </b>", sUserName, "<b></b>", "<br/><br/>", "<b>OS Version: </b>", sOS, s64, "<b></b>", "<br/><br/>", "<b>IP Address: </b>", LocalHostaddress, "<b></b>", "<br/><br/>", "<b>MAC Address: </b>", sMAC, "<b></b>", "<br/><br/>", "<b>Comment:</b>", "<br/>", "<i>Please give a brief description of your problem attaching a screen shot if possible</i>", "<br/><br/>") & MyItem.HTMLBody
End Sub
Private Sub AdxRibbonButton1_OnClick(ByVal sender As Object, ByVal control As IRibbonControl, ByVal pressed As Boolean) Handles AdxRibbonButton1.OnClick
'Runs CreateTemplate
CreateTemplate()
End Sub
Private Sub AdxCommandBarButton1_Click(ByVal sender As Object) Handles AdxCommandBarButton1.Click
'Runs CreateTemplate
CreateTemplate()
End Sub
End Class
I would appreciate any help with this whatsoever as I am pulling my hair out!!
Many Thanks!!
ChrisHi,
Welcome to MSDN forum.
I am afraid that the issue is out of support range of VS General Question forum which mainly discusses
the usage of Visual Studio IDE such as WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
and Visual Studio Editor.
Because your Add-in is developed using Add-in Express which is third-party, I suggest consulting Add-in Express forum:
http://www.add-in-express.com/forum/index.php for better support.
Best regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.
===Answer===
Comment on usual method and solution, by a forum Moderator.
As long as there are no confounding factors, such as certain extensions, or a user.jsfile the procedure is as follows
# Open a new tab and type "about:config" in the address bar.
# In the Search bar type: "newtab"
# Locate and double click "browser.newtab.url"
# In the "Enter String Value" box change "'''about:newtab'''" to "'''about:blank'''" and click OK.
# Verify that the value has changed and now all new tabs will be blank.
See post under by ''pirate048'' [/questions/976589?page=2#answer-509482] ~J99Have to say that I rather agree with Mark..all we want is a simple, unadorned clean page that doe not track and show usage!! WHY NOT!! Is it too simple for developers..we aren't all (nor do we want to be!) software experts! Come on Mozilla..tidy up and clean up..it might be a quicker programme too!!
-
Simple Button.Text not changing properly
Hi all,
The WPF learning curve is steep.
I have pulled my hair over this simple Button.Text change and I can't get it to work.
In WinForms this works:
Public Class Form1
Private Sub BTN_1_Click(sender As Object, e As EventArgs) Handles BTN_1.Click
BTN_1.Text = "CLICKED BUTTON 1"
BTN_2.Text = "CHANGED BY BUTTON 1"
End Sub
Private Sub BTN_2_Click(sender As Object, e As EventArgs) Handles BTN_2.Click
BTN_2.Text = "CLICKED BUTTON 2"
BTN_1.Text = "CHANGED BY BUTTON 2"
End Sub
End Class
I want to do the same thing in WPF
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Grid.Row="0">
<Button Name="BTN_1" Click="CLICK_BTN_1">
<StackPanel>
<TextBlock Name="CLICK_BTN_1_LABEL_1" Text="Button 1 text" VerticalAlignment="Top" Foreground="#BF000000" >
</TextBlock>
<TextBlock Name="CLICK_BTN_1_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
<Run FontSize="25">Button 1</Run>
<Run FontSize="12">Label 2</Run>
</TextBlock>
</StackPanel>
</Button>
</Grid>
<Grid Grid.Column="1" Grid.Row="0">
<Button Name="BTN_2" Click="CLICK_BTN_1">
<StackPanel>
<TextBlock Name="CLICK_BTN_2_LABEL_1" Text="Button 2 text" VerticalAlignment="Top" Foreground="#BF000000">
</TextBlock>
<TextBlock Name="CLICK_BTN_2_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
<Run FontSize="25">Button 2</Run>
<Run FontSize="12">Label 2</Run>
</TextBlock>
</StackPanel>
</Button>
</Grid>
</Grid>
</Window>
Class MainWindow
Private Sub CLICK_BTN_1(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles BTN_1.Click
' CHANGE LABEL 1 ON BUTTON 1
CLICK_BTN_1_LABEL_1.Text = "CLICKED BUTTON 1"
' CHANGE LABEL 1 ON BUTTON 2
CLICK_BTN_2_LABEL_1.Text = "CHANGED BY BUTTON 1"
End Sub
Private Sub CLICK_BTN_2(sender As System.Object, e As System.Windows.RoutedEventArgs) Handles BTN_2.Click
' CHANGE LABEL 1 ON BUTTON 1
CLICK_BTN_1_LABEL_1.Text = "CHANGED BY BUTTON 2"
' CHANGE LABEL 1 ON BUTTON 2
CLICK_BTN_2_LABEL_1.Text = "CLICKED BUTTON 2"
End Sub
End Class
This used to be so simple with WinForms, what am I doing wrong here?
New to WPFYeah, I saw that as well but now I am stuck again:
Same project but I have put the buttons in a usercontrol
<Window x:Class="MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Component_Changes"
Title="MainWindow" Height="350" Width="525">
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid Grid.Column="0" Grid.Row="0">
<Viewbox Stretch="Fill">
<ContentControl Name="UC_BTN1">
<ContentControl.Content>
<local:btn1 Margin="20"/>
</ContentControl.Content>
</ContentControl>
</Viewbox>
</Grid>
<Grid Grid.Column="1" Grid.Row="0">
<Viewbox Stretch="Fill">
<ContentControl Name="UC_BTN2">
<ContentControl.Content>
<local:btn2 Margin="20"/>
</ContentControl.Content>
</ContentControl>
</Viewbox>
</Grid>
</Grid>
</Window>
btn1.xaml
<UserControl x:Class="btn1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<Button Name="BTN_1" Click="CLICK_BTN_1">
<StackPanel>
<TextBlock Name="CLICK_BTN_1_LABEL_1" Text="Button 1 text" VerticalAlignment="Top" Foreground="#BF000000" >
</TextBlock>
<TextBlock Name="CLICK_BTN_1_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
<Run FontSize="25">Button 1</Run>
<Run FontSize="12">Label 2</Run>
</TextBlock>
</StackPanel>
</Button>
</Grid>
</UserControl>
btn1.xaml.vb
Public Class btn1
Dim CL_BTN2 As btn2
Private Sub CLICK_BTN_1(sender As Object, e As RoutedEventArgs) Handles BTN_1.Click
' CHANGE LABEL 1 ON BUTTON 1
CLICK_BTN_1_LABEL_1.Text = "CLICKED BUTTON 1"
' CHANGE LABEL 1 ON BUTTON 2
CL_BTN2.CLICK_BTN_2_LABEL_1.Text = "CHANGED BY BUTTON 1"
End Sub
End Class
btn2.xaml
<UserControl x:Class="btn2"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
mc:Ignorable="d"
d:DesignHeight="300" d:DesignWidth="300">
<Grid>
<Button Name="BTN_2" Click="CLICK_BTN_2">
<StackPanel>
<TextBlock Name="CLICK_BTN_2_LABEL_1" Text="Button 2 text" VerticalAlignment="Top" Foreground="#BF000000">
</TextBlock>
<TextBlock Name="CLICK_BTN_2_LABEL_2" VerticalAlignment="Top" Foreground="#BF000000">
<Run FontSize="25">Button 2</Run>
<Run FontSize="12">Label 2</Run>
</TextBlock>
</StackPanel>
</Button>
</Grid>
</UserControl>
btn2.xaml.vb
Public Class btn2
Dim CL_BTN1 As btn1
Private Sub CLICK_BTN_2(sender As Object, e As RoutedEventArgs) Handles BTN_2.Click
' CHANGE LABEL 1 ON BUTTON 1
CL_BTN1.CLICK_BTN_1_LABEL_1.Text = "CHANGED BY BUTTON 2"
' CHANGE LABEL 1 ON BUTTON 2
CLICK_BTN_2_LABEL_1.Text = "CLICKED BUTTON 2"
End Sub
End Class
No warnings in the code but the error is: 'Object reference not set to an instance of an object' and I thought I did, obviously not in the right way.
New to WPF -
Hi all ,
Im getting the below error , actually recently i created my own custom table zstudent, later i wrote select query to fetch data from the same and dump at internal table and then bind this to the table node.
But im getting below error, even i removed the select query still same error is occuring.
Error when processing your request
What has happened?
The URL http://********00.*****b.com:8000/sap/bc/webdynpro/sap/zdemo_student/ was not called due to an error.
Note
The following error text was processed in the system IDS : Access via 'NULL' object reference not possible.
The error occurred on the application server axsids00_IDS_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: WDDOINIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
Method: IF_WDR_COMPONENT_DELEGATE~WD_DO_INIT of program /1BCWDY/YUSM2Q74A826Y0JY1I4V==CP
Method: DO_INIT of program CL_WDR_DELEGATING_COMPONENT===CP
Method: INIT_CONTROLLER of program CL_WDR_CONTROLLER=============CP
Method: INIT_CONTROLLER of program CL_WDR_COMPONENT==============CP
Method: INIT of program CL_WDR_CONTROLLER=============CP
Method: INIT of program CL_WDR_CLIENT_COMPONENT=======CP
Method: INIT of program CL_WDR_CLIENT_APPLICATION=====CP
Method: IF_WDR_RUNTIME~CREATE of program CL_WDR_MAIN_TASK==============CP
Method: HANDLE_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CPThanks Rama,
Acutally i accidentally commented the lo_nd_student = wd_context ....etc
this line was commented .
i have one small requirement to fetch data from local customised table and fill the same to internal table and bind that to table node.
my table node is student having attributes as name , city and number , all are of type strings.
now i created one custom table zstudent having ID - char of length 10,
name of type string
city of type string
num of type string
i have inserted records
but when i use select query to fill data from this zstudent to my internal table of type lt_student type wd_this->elements_student ,
im getting same above error.
Maybe you are looking for
-
How to Add a new Field in the Web UI
In CRM. I want add a fields. How it is Possible. In WebUI after login. Select BP_SRV_MAIN. Then Select Manage Reports. Select New Entry. Porivide Program Name. Short Description. Select Service from Drop Down. Select Tables Ra
-
My Windows XP machine does not recognize my iPod Touch
Hello, I just bought a second-hand iPod Touch (4-gen, 32GB). My Windows XP laptop is giving no indication that anything is attached to it at all. The "found new hardware" wizard does not open. The little icon that allows you to eject safely before de
-
HT201252 How do I recover old imessage messages that have not been deleted?
I have not deleted any messages, but older ones are not showing up. Is there a way to get these back? Working on a Macbook Pro
-
After upgrade CUOM/SM from 2.1 to 2.3, I cannot launch CUSM.
Dear Experts. I recently upgraded CUOM with SM in same server from ver 2.1 to 2.3, and changed IP address and Hostname as well. I am new to this Cisco management system, I have a few question and need your help. 1. After upgrade, do I really need
-
Limit font choice in indesign?
Hi, Does anyone know if it's possible to limit which fonts show as a choice to use in indesign? So if I had a list of 30 fonts to be available to use in indesign, I can only have them as a font choice in the indesign font drop down menu. So, no syste