mvn compile dependency:treeto find the dependencies at compile time.
Ankur Tade
Thursday, November 24, 2022
Identify security vulnerabilities in Intellij environment
Security vulnerabilities are visibile only during the Trivy scan as a part of github actions and that can eat a lot of your time fixing one by one.
Solution is :-
Latest version of Intellij will give you hints about security vulnerabilities for dependencies in the pom and it can automatically upgrade with one click. That will save a lot of your time.
In addition if there some dependency which you are not sure about where it has been used in the application which is flagged by Trivy Scan then you can use
Monday, February 14, 2022
Wednesday, November 2, 2016
Is there God ?
Life is very complex an unpredictable. We are busy in earning money, running families, socializing, getting involved in some kind of additional activities for society. After these all activities in case time permits we get some time to relax. Even though our body is relaxing out mind is actively working and thinking. Suddenly our mind presents so called philosophical questions who am I , why I am here ? Am I body or mind or spirit? There questions are always there in our back of the mind and come up when our mind is resting ….One of the biggest question among them
Is there God?
If you are avid reader on this topic then you find two camps. One is believers and another is non-believers. Non-believers don’t believe in god and they say that there is no god in this world. The believers on the other side say that there is god in this world who is drives this world and who has created this world. This battle among these two camps about existence of god is going on from decades and staring from somebody discovered the concept of the god. In addition the definition of god is different for different people and communities and religions.
What should a common man like you and me do in this situation who want to find what is logically correct here?
Is it so simple to come to conclusion very easily? Assume that there is god present in the world, and then at lease it looks like impossible to see or achieve or experience the god with help of your intelligent mind otherwise Einstein has already discovered him before you and me. As long as we don't know the ultimate reality of the world intellectually we can’t say that there no god in this world. Because world is really confusing where you can see both sequential and repeating activities and randomness. We have been lots of time fooled by our mind. We can’t guarantee that same action done twice or sequence can get the same result. So somehow our intellectual and intelligent mind is incomplete and there is something "beyond our imagination if there is" which our intellectual mind has been unable grasp.
The question is how to go beyond our intellect?
Only way I see is "Meditation"
Friday, October 2, 2015
Automated Application log in having j_security_check challenge using Apache httpclient
I was working on automated login using the code provided by blog post specially using j_security_check using httpclient (4.5.1)
http://www.elitejavacoder.com/2013/10/http-client-form-based-authentication.html
DefaultHttpClient client =
new
DefaultHttpClient();
You will get meesage as "DefaultHttpClient is depricated"
To make this code working please use
HttpClient client = HttpClientBuilder.create().build();
Thursday, March 22, 2012
java.security.AccessControlException: Access denied Error in Websphere
Caused by: java.lang.ExceptionInInitializerError
at java.lang.J9VMInternals.initialize(J9VMInternals.java:218)
at org.apache.commons.discovery.jdk.JDKHooks.(JDKHooks.java:75)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412)
at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(AccessController.java:197)
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.(LogFactory.java:33)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at org.apache.axis.transport.http.AxisServlet.(AxisServlet.java:75)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at org.apache.axis.transport.http.AxisServletBase.class$(AxisServletBase.java:59)
at org.apache.axis.transport.http.AxisServletBase.(AxisServletBase.java:58)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1328)
at java.beans.Beans.instantiate(Beans.java:219)
at java.beans.Beans.instantiate(Beans.java:63)
at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1392)
at java.security.AccessController.doPrivileged(AccessController.java:246)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:125)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1387)
... 23 more
Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission createClassLoader)
at java.security.AccessController.checkPermission(AccessController.java:108)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:213)
at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:620)
at java.lang.ClassLoader.(ClassLoader.java:136)
at java.lang.ClassLoader.(ClassLoader.java:117)
at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.(PsuedoSystemClassLoader.java:73)
at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215)
at org.apache.commons.discovery.jdk.JDK12Hooks.(JDK12Hooks.java:73)
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
... 52 more
If you get this kind of error please check out that unintentionally you have enable the java 2 security while enabling the websphere security.
Please disable the Java 2 security and application should work.
at java.lang.J9VMInternals.initialize(J9VMInternals.java:218)
at org.apache.commons.discovery.jdk.JDKHooks.
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:412)
at org.apache.commons.discovery.tools.DiscoverSingleton.find(DiscoverSingleton.java:378)
at org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at java.security.AccessController.doPrivileged(AccessController.java:197)
at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at org.apache.axis.components.logger.LogFactory.
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at org.apache.axis.transport.http.AxisServlet.
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:130)
at org.apache.axis.transport.http.AxisServletBase.class$(AxisServletBase.java:59)
at org.apache.axis.transport.http.AxisServletBase.
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:161)
at java.lang.Class.newInstanceImpl(Native Method)
at java.lang.Class.newInstance(Class.java:1328)
at java.beans.Beans.instantiate(Beans.java:219)
at java.beans.Beans.instantiate(Beans.java:63)
at com.ibm.ws.webcontainer.servlet.ServletWrapper$1.run(ServletWrapper.java:1392)
at java.security.AccessController.doPrivileged(AccessController.java:246)
at com.ibm.ws.security.util.AccessController.doPrivileged(AccessController.java:125)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.loadServlet(ServletWrapper.java:1387)
... 23 more
Caused by: java.security.AccessControlException: Access denied (java.lang.RuntimePermission createClassLoader)
at java.security.AccessController.checkPermission(AccessController.java:108)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:558)
at com.ibm.ws.security.core.SecurityManager.checkPermission(SecurityManager.java:213)
at java.lang.SecurityManager.checkCreateClassLoader(SecurityManager.java:620)
at java.lang.ClassLoader.
at java.lang.ClassLoader.
at org.apache.commons.discovery.jdk.PsuedoSystemClassLoader.
at org.apache.commons.discovery.jdk.JDK12Hooks.findSystemClassLoader(JDK12Hooks.java:215)
at org.apache.commons.discovery.jdk.JDK12Hooks.
at java.lang.J9VMInternals.initializeImpl(Native Method)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)
... 52 more
If you get this kind of error please check out that unintentionally you have enable the java 2 security while enabling the websphere security.
Please disable the Java 2 security and application should work.
Saturday, April 23, 2011
My journey of learning Norwegian language so far
In Year 2006 I came to Norway for work purpose as a skilled IT worker. First two years I was not at all serious about learning Norsk. I used to communicate only in English in office as well as outside. Someone like me who spends big chunk of his own time in office, it gradually became important for me to start learning Norsk to avoid my office colleagues to conduct meetings in English for sake of me. As well I was getting a bad feeling that I was missing something in the social circle because I was not able to understand Norsk. As Norsk is business language in most of the offices in Norway it’s very important that you read, write and speak Norsk.
I am not claiming to be very best in Norsk but now days I take part in the meetings conducted in Norsk and if I want to make some point then I can create 2-3 sentences in Norsk and communicate what I want to say. As well I can write emails with 2-3 sentences in Norsk.
To be frank this journey was not a piece of cake. I need to go through lots of frustration and emotional ups and downs. I used to feel a lot of time that I can’t do this anymore. I assume during the process of learning Norsk some of you must be going through same kind of frustration I did. I had a very strong feeling that I am not good at learning language. My wife picked up Norsk very quickly but I was struggling with learning basics of the Norsk.
To be straight to the point I used the divide and rule strategy. The basic step to learn any language is its vocabulary and grammar. What I feel also is if someone wants to learn the language properly then first he needs to understand the culture of the language also. The core part of the language is Grammar. Each language has it’s own culture and it’s own special rules. In Norwegian daily life they make use of “være så god” in different context for ex. while serving, while offering etc based on the context the meaning of this word changes. Each language has its own special way of communicating which one need know if he wants to learn the language. It’s important to know the Norsk words in daily life along with Norsk vocabulary of IT branch. IT vocabulary was helpful for me to understand what’s going on in meetings as well reading business emails.
The various ways to learn Norsk language:
1. Best way is start attending Norsk language Course. Be serious during the course and don’t be a back bencher. Different organizations conduct language courses in Oslo. Based on affordability you can join course whatever you want. Most of the classes adhere to the European standard of learning languages. There are different levels of courses and based on your existing proficiency these organizations recommend you courses for different levels. You can take an online as well as in person test to check out which level of course you fit in. Please see this website for details http://www.fuoslo.no/default.asp?avd=79&nyh=3042
2. Just going to the course will not be sufficient but do try to pass language test for example Norsk Prøve II, Prøve III. Each exam tests your reading, listening and writing skills based on the exam level. This includes your grammar as well. I would highly recommend to appear for an exam. You can choose the exam level based on your competency level. It’s not mandatory to go norsk course for taking exam. You can study by yourself and take exam as well. My personal experience is after passing exam it gave me lots of confidence about my language skills.
3. Reading the Norwegian papers and website and watch Norwegian news, serials. There are lots of English serials coming on the NRK channels with subtexts in Norsk.
4. You can rent out DVDs from nearby libraries with subtitles in Norsk and re-watch the movies in English and try to understand and memorize Norwegian words.
5. Make a list of Norwegian words which you don’t know and try re-read the list when you find some free time. I used to read this word list while I was travelling to office, to home and during my leisure time. It’s all about making good use of your time and then funda of practice and practice and practice.
6. Use of Mindmaps and word splitting technique can also be useful to memorize Norwegian words. There are lots of techniques available on internet which could be used to memorize the Norwegian words.
7. Speak Norwegian whenever you get a chance for ex. in boutiques or stations or taxis or with your colleagues.
8. Whenever you find some new Norsk word then try to add it to your world list and read this wordlist frequently.
9.Usage of http://translate.google.com
10.Usage of Clue software
As I am working in IT branch the vocabulary which I gained while while studying in the lauguage course was limited. So I needed an extra effort to improve my vocabulary in the IT branch. I found following tricks very helpful.
1. Whenever I used to receive some business communication in Norsk I used to translate it in English with help of translate.google.com or Clue software and that way I prepared special wordlist for IT branch. Again I used read that list frequently when I used to get a free time in office.
2. Another trick is to read article related to IT industry. I am using www.computerworld.no and try to read at least one article everyday in Norsk by using Google translate. I see may benefits here like improve vocabulary, I was able to know what’s happening in IT industry in Norway also the trendy words and slang words used in Norsk IT industry.
3. Try to read as much as Norsk technical documents in your office.
4. You can record the meeting on your mobile which are conducted in Norsk and re listen them to catch the words you don’t understand.
5. I have English to Norwegian dictionary on my mobile so whenever I read a new Norsk word I try to translate in with help of the dictionary and add to my word list.
Learning language is ongoing and continuous process. It’s upon individual about his own proactiveness and commitment and his readiness to put in extra efforts and hours.
The benefits are enormous.
1. One will get more accepted in his colleagues in office and as well as socially
2. One will start contributing more to his office work
3. Boss will be very much impressed that you have acquired the language skill because ease of doing business with you.
4. One can take part in social interactions which will increase his knowledge about Norwegian society ,day to day events
The continuous improvement principle of Toyota is very useful while learning language. Try to work every day on the language improve yourself day by day. I feel that it takes approx. 2 years learning Norsk if your language parser in brain is of average capability as mine. One can learn language in shorter duration than 2 year if he is committed and ready to take more efforts. The tricks mentioned above are not the ultimate tricks there could other ways as well. Feel free discuss them in comments.
I am not claiming to be very best in Norsk but now days I take part in the meetings conducted in Norsk and if I want to make some point then I can create 2-3 sentences in Norsk and communicate what I want to say. As well I can write emails with 2-3 sentences in Norsk.
To be frank this journey was not a piece of cake. I need to go through lots of frustration and emotional ups and downs. I used to feel a lot of time that I can’t do this anymore. I assume during the process of learning Norsk some of you must be going through same kind of frustration I did. I had a very strong feeling that I am not good at learning language. My wife picked up Norsk very quickly but I was struggling with learning basics of the Norsk.
To be straight to the point I used the divide and rule strategy. The basic step to learn any language is its vocabulary and grammar. What I feel also is if someone wants to learn the language properly then first he needs to understand the culture of the language also. The core part of the language is Grammar. Each language has it’s own culture and it’s own special rules. In Norwegian daily life they make use of “være så god” in different context for ex. while serving, while offering etc based on the context the meaning of this word changes. Each language has its own special way of communicating which one need know if he wants to learn the language. It’s important to know the Norsk words in daily life along with Norsk vocabulary of IT branch. IT vocabulary was helpful for me to understand what’s going on in meetings as well reading business emails.
The various ways to learn Norsk language:
1. Best way is start attending Norsk language Course. Be serious during the course and don’t be a back bencher. Different organizations conduct language courses in Oslo. Based on affordability you can join course whatever you want. Most of the classes adhere to the European standard of learning languages. There are different levels of courses and based on your existing proficiency these organizations recommend you courses for different levels. You can take an online as well as in person test to check out which level of course you fit in. Please see this website for details http://www.fuoslo.no/default.asp?avd=79&nyh=3042
2. Just going to the course will not be sufficient but do try to pass language test for example Norsk Prøve II, Prøve III. Each exam tests your reading, listening and writing skills based on the exam level. This includes your grammar as well. I would highly recommend to appear for an exam. You can choose the exam level based on your competency level. It’s not mandatory to go norsk course for taking exam. You can study by yourself and take exam as well. My personal experience is after passing exam it gave me lots of confidence about my language skills.
3. Reading the Norwegian papers and website and watch Norwegian news, serials. There are lots of English serials coming on the NRK channels with subtexts in Norsk.
4. You can rent out DVDs from nearby libraries with subtitles in Norsk and re-watch the movies in English and try to understand and memorize Norwegian words.
5. Make a list of Norwegian words which you don’t know and try re-read the list when you find some free time. I used to read this word list while I was travelling to office, to home and during my leisure time. It’s all about making good use of your time and then funda of practice and practice and practice.
6. Use of Mindmaps and word splitting technique can also be useful to memorize Norwegian words. There are lots of techniques available on internet which could be used to memorize the Norwegian words.
7. Speak Norwegian whenever you get a chance for ex. in boutiques or stations or taxis or with your colleagues.
8. Whenever you find some new Norsk word then try to add it to your world list and read this wordlist frequently.
9.Usage of http://translate.google.com
10.Usage of Clue software
As I am working in IT branch the vocabulary which I gained while while studying in the lauguage course was limited. So I needed an extra effort to improve my vocabulary in the IT branch. I found following tricks very helpful.
1. Whenever I used to receive some business communication in Norsk I used to translate it in English with help of translate.google.com or Clue software and that way I prepared special wordlist for IT branch. Again I used read that list frequently when I used to get a free time in office.
2. Another trick is to read article related to IT industry. I am using www.computerworld.no and try to read at least one article everyday in Norsk by using Google translate. I see may benefits here like improve vocabulary, I was able to know what’s happening in IT industry in Norway also the trendy words and slang words used in Norsk IT industry.
3. Try to read as much as Norsk technical documents in your office.
4. You can record the meeting on your mobile which are conducted in Norsk and re listen them to catch the words you don’t understand.
5. I have English to Norwegian dictionary on my mobile so whenever I read a new Norsk word I try to translate in with help of the dictionary and add to my word list.
Learning language is ongoing and continuous process. It’s upon individual about his own proactiveness and commitment and his readiness to put in extra efforts and hours.
The benefits are enormous.
1. One will get more accepted in his colleagues in office and as well as socially
2. One will start contributing more to his office work
3. Boss will be very much impressed that you have acquired the language skill because ease of doing business with you.
4. One can take part in social interactions which will increase his knowledge about Norwegian society ,day to day events
The continuous improvement principle of Toyota is very useful while learning language. Try to work every day on the language improve yourself day by day. I feel that it takes approx. 2 years learning Norsk if your language parser in brain is of average capability as mine. One can learn language in shorter duration than 2 year if he is committed and ready to take more efforts. The tricks mentioned above are not the ultimate tricks there could other ways as well. Feel free discuss them in comments.
Tuesday, January 25, 2011
Tools needed for websphere administrator on windows
Baretale software
Used to tail the log files
Has pop up facility to differenciate which log has been updated recentily. May add a screen shot for it in future.
Check out link here. baretale
TotalCommander
Used to manage network drives
View files in network drives.
TotalCommander
PowerCMD
Best way to work on command promts. Throw out windows command prompt which are very
preliminary and not at all user friendly.
PowerCMS
Free extended Task Manager
http://www.extensoft.com/?p=downloads
KeyPass
Today you need to remember many passwords. You need a password for the Windows network logon, your e-mail account, your website's FTP password, online passwords (like website member account), etc. etc. etc. The list is endless. Also, you should use different passwords for each account. Because if you use only one password everywhere and someone gets this password you have a problem... A serious problem. The thief would have access to your e-mail account, website, etc. Unimaginable
Windows Surfer
single sign service, This will be very useful to avoid log in to websphere consoles
everytime.You can surf all the websphere consoles in a single application. The login information is stored on your local machine with passoword propected way.
Windows Remote Desktop Connection Manager
Remote Desktop Connection Manager (RD Connection Manager) enables you to configure and manage resources that are available to users through RemoteApp and Desktop Connection. These resources include RemoteApp programs and virtual desktops. Virtual desktops include virtual machines in virtual desktop pools and personal virtual desktops.
Agent Ransack
Finding files that other search engines miss.
Used to tail the log files
Has pop up facility to differenciate which log has been updated recentily. May add a screen shot for it in future.
Check out link here. baretale
TotalCommander
Used to manage network drives
View files in network drives.
TotalCommander
PowerCMD
Best way to work on command promts. Throw out windows command prompt which are very
preliminary and not at all user friendly.
PowerCMS
Free extended Task Manager
http://www.extensoft.com/?p=downloads
KeyPass
Today you need to remember many passwords. You need a password for the Windows network logon, your e-mail account, your website's FTP password, online passwords (like website member account), etc. etc. etc. The list is endless. Also, you should use different passwords for each account. Because if you use only one password everywhere and someone gets this password you have a problem... A serious problem. The thief would have access to your e-mail account, website, etc. Unimaginable
Windows Surfer
single sign service, This will be very useful to avoid log in to websphere consoles
everytime.You can surf all the websphere consoles in a single application. The login information is stored on your local machine with passoword propected way.
Windows Remote Desktop Connection Manager
Remote Desktop Connection Manager (RD Connection Manager) enables you to configure and manage resources that are available to users through RemoteApp and Desktop Connection. These resources include RemoteApp programs and virtual desktops. Virtual desktops include virtual machines in virtual desktop pools and personal virtual desktops.
Agent Ransack
Finding files that other search engines miss.
Subscribe to:
Posts (Atom)