If you are working on Angular Js and trying to run it form remote machine, you will face this issue of site not opening.
above command binds to 127.0.0.1 with port 4200 by default.
In order to open this up for all IP address you can use below command while running ng serve.
Last week i was working on TFSBuild using TFS Buildserver to build a java project and there was one major challenge managing TFSBuild.proj file created when build definition was done. You can only have one proj file and you can’t use it in flexible way by changing lifecycle based build files, drop location etc.
Continue reading “TFSBuild – Custom Fields”
It happens sometime you want to extract XML body from SOAP message. In order to do that use below mentioned XSLT.
Continue reading “How to get XML from body of soap using XSLT”
Today I was writing a code to get error text from spring generated span field using jQuery. Where I noticed that name is having a period and asterisk which is not directly supported by selectors.
<div id=”test1″><span id=”*.errors“>The information you entered is invalid. Try again.</span></div>
Continue reading “jQuery: Problem with id containing a period or asterisk”
Today during testing of some service I got this UnsupportedOperationException in which message says Please Implement class#method which I am calling.
Later I digged inside the services code and found Continue reading “java.lang.UnsupportedOperationException : Please implement”
I was getting this error today during writing a program
Continue reading “java.io.NotSerializableException”
Got below error during web service request:-
java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/NONE/OAEPPADDING
Continue reading “java.security.NoSuchAlgorithmException: Cannot find any provider supporting RSA/NONE/OAEPPADDING”
I am using Spring 3.0 for my new application…I am not very familiar with annotation but learning them they are cool. Today I faced “Cannot Map Handler [XXX] to URL Path” error, while running my page.
Later debug I found that I duplicated the Controller definition stuff inside XXX-Servlet.xml as below. Continue reading “java.lang.IllegalStateException: Cannot map handler [controller] to URL path : There is already handler”
The HttpSessionBindingListener interface is implemented when an object needs to be notified if it's being bound to a session or unbound from a session.
Objects implement this interface so that they can be notified when they are being bound or unbound from a HttpSession. When a binding occurs (using HttpSession.setAttribute()) HttpSessionBindingEvent communicates the event and identifies the session into which the object is bound. Similarly, when an unbinding occurs (using HttpSession.removeAttribute()) HttpSessionBindingEvent communicates the event and identifies the session from which the object is unbound.
This interface has two methods, that are notified when the status of the object has changed:
- public void valueBound(HttpSessionBindingEvent event) : Notifies the object that it is being bound to a session and identifies the session.
- public void valueUnbound(HttpSessionBindingEvent event) : Notifies the object that it is being unbound from a session and identifies the session.
Note, this listener will not be declared in the deployment descriptor as the same as HttpSessionActivationListener interface. The container at runtime will introspect this object to see if it implements the HttpSessionActivationListener and/or HttpSessionBindingListener and fires appropriate events to the object.
These methods have a HttpSessionBindingEvent parameter that can be used to retrieve the session that the object was bound to and the name it was given in the session.
Events of this type are either sent to an object that implements HttpSessionBindingListener when it is bound or unbound from a session, or to a HttpSessionAttributeListener that has been configured in the deployment descriptor when any attribute is bound, unbound or replaced in a session.
The session binds the object by a call to HttpSession.setAttribute and unbinds the object by a call to HttpSession.removeAttribute.
The methods of this object that are used to get the name that's assigned to the object, the session it's bound to, and the actual object:
- public String getName() : Returns the name with which the attribute is bound to or unbound from the session.
- public Object getValue() : Returns the value of the attribute that has been added, removed or replaced. If the attribute was added (or bound), this is the value of the attribute. If the attrubute was removed (or unbound), this is the value of the removed attribute. If the attribute was replaced, this is the old value of the attribute.
- public HttpSession getSession() : Return the HttpSession that the object was bound to or unbound from.
In case you're seeing blank tooltips in Firefox, please uninstall and reinstall the latest version of Toolbar from the Toolbar homepage:
It will resolve the issue.