Humour - One liners - Unix




Humour - One liners - Google




Humour - One liners - Windows









ERROR - Error 404: javax.servlet.UnavailableException: SRVE0201E: Servlet : not a servlet class

Problem

00000045 WebExtensionP W Servlet is currently unavailable: SRVE0201E: Servlet : not a servlet class

Cause
  
This is due to a jar having javax.servlet.Servlet in web-inf/lib as if you have any jar file that has
javax.servlet.Servlet (Eg: geronimo-j2ee_1.4_spec-1.0.jar or Servlet-api-2.3.jar) as part of web-inf/lib in your war file then your app inherits the servlet api from the jar that are in web-inf/lib and not the j2ee.jar provided by server.


Resolution

  • set the Parent last in the class loading policy for the application and module as well .
  • Remove the jars having javax.servlet.Servlet from the project.

ERROR - 0000006c webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[Stores Request Servlet]: java.lang.NullPointerException at java.net.URLDecoder.decode(URLDecoder.java:130)

Problem 

0000006c webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: [Servlet Error]-[Stores Request Servlet]: java.lang.NullPointerException at java.net.URLDecoder.decode(URLDecoder.java:130)
  
JR42439: CMVC 220771 - handle nullpointerexception when cookie.getValue()is null and passed into URLDecoder in RuntimeServletFilter class


Solution

The NPE should be handled in your code, and if cookie value is null, it should be printed as "cookie is null" instead of throwing NPE.

Humour - Testing on Production




Humour - Deleted Temp files




Humour - iSanta




Humour - Position and Salary Makes Difference





ERROR - 000000b6 CommerceSrvr E com.ibm.commerce.event.usertraffic.Traffic getUserTrafficData(HttpServletRequest httpRequest, ActivityToken activityToken, boolean isStoreCommand) CMN0409E: The following error occurred during processing: - Known Problem with IBM WCS 7

Problem
 
000000b6 CommerceSrvr  E
com.ibm.commerce.event.usertraffic.Traffic
getUserTrafficData(HttpServletRequest httpRequest, ActivityToken
activityToken, boolean isStoreCommand) CMN0409E: The following
error occurred during processing:
 
Resolution
 
This has been fixed with the fix pack 7.0.0.6
 
For workaround perform following 
 
Disable the UserTrafficEventListener within the WebSphere
Commerce configuration file (<instance>.xml/wc-server.xml) 
 
 <component
compClassName="com.ibm.commerce.event.usertraffic.UserTrafficEve
ntListener"
               enable="false"
               name="UserTrafficEventListener">
      <property display="false">
        <start enabled="false" />
      </property>
    </component>  
 
 

ERROR - The exception which was received is java.io.IOException: javax.xml.soap.SOAPException: org.xml.sax.SAXParseException: Error - An invalid XML character (Unicode: 0x45) was found in the prolog of the document. - Known WSAD 6 problem


Problem

While calling the webservice , getting the following error

The exception which was received is java.io.IOException: javax.xml.soap.SOAPException: org.xml.sax.SAXParseException: An invalid XML character (Unicode: 0x45) was found in the prolog of the document.

Cause

Problem with parsing the character in response xml because of difference in UTF encoding (UTF-8 or UTF-16). If it's on WAS 6 then it shows this as wrong message in case the service is not called properly. 

http://www-01.ibm.com/support/docview.wss?uid=swg1PK30932

Resolution

Check if there is any incompatibility with the UTF encoding defined in stubs , request and response.  
If the problem is on WAS 6 , check whether the service is getting called properly or not.




ERROR - WebExtensionP E SRVE0026E: [Servlet Error]-[javax.servlet.UnavailableException: SRVE0201E: Servlet []: not a servlet class


Problem - The following error occurs during startup.

WebExtensionP E   SRVE0026E: [Servlet Error]-[javax.servlet.UnavailableException: SRVE0201E: Servlet []: not a servlet class

Cause -

Weservice.xml has not been configured correctly. The xml doesn't have the correct entry for the servlet.

Resolution -

Add / Update the <servlet-link> within webservice.xml to include the missing servlet entry.






Humour - Why did you called the help desk

Humour - Still Software Engineer

Humour - Tutorial Apps


Java Eclipse - Build Path Errors

Generic Error

Java Build Path Errors.

Specific Errors

  • Project is missing the required library
  • The resource is not in the build path of the
  • Can't find class file for
  • The project cannot be built until build path errors are resolved

Problem

source, jar or project has not been included in the build path.

Resolution 

First see if the problematic file is part of Java Source or Jar file or another project. 

If it's part of JavaSource within same project, make sure that this has been included within Java Build Path.

Right Click Project -> Properties -> Click Source Tab


Make sure that your source folder is listed within "Source folders in build path". If not add it using Add folder button.

If problematic file is part of some jar - upon reaching here , click the libraries tab and make sure that the jar file is listed within "Jars and class folders on the build path". Moreover please check the .classpath file to see if the jar has been included properly.



If the problematic file is in another project , go to project tab and make sure that the project is listed within "Required projects on the build path".

 

Java - Java Exceptions and their description

ExceptionDescription
ArithmeticExceptionArithmetic error, such as divide-by-zero.
ArrayIndexOutOfBoundsExceptionArray index is out-of-bounds.
ArrayStoreExceptionAssignment to an array element of an incompatible type.
ClassCastExceptionInvalid cast.
IllegalArgumentExceptionIllegal argument used to invoke a method.
IllegalMonitorStateExceptionIllegal monitor operation, such as waiting on an unlocked thread.
IllegalStateExceptionEnvironment or application is in incorrect state.
IllegalThreadStateExceptionRequested operation not compatible with current thread state.
IndexOutOfBoundsExceptionSome type of index is out-of-bounds.
NegativeArraySizeExceptionArray created with a negative size.
NullPointerExceptionInvalid use of a null reference.
NumberFormatExceptionInvalid conversion of a string to a numeric format.
SecurityExceptionAttempt to violate security.
StringIndexOutOfBoundsAttempt to index outside the bounds of a string.
UnsupportedOperationExceptionAn unsupported operation was encountered.
ClassNotFoundExceptionClass not found.
CloneNotSupportedExceptionAttempt to clone an object that does not implement the Cloneable interface.
IllegalAccessExceptionAccess to a class is denied.
InstantiationExceptionAttempt to create an object of an abstract class or interface.
InterruptedExceptionOne thread has been interrupted by another thread.
NoSuchFieldExceptionA requested field does not exist.
NoSuchMethodExceptionA requested method does not exist.


200 Core Java Interview Questions and Answers

ERROR - The method is undefined for the type - Updating JDK Compliance level and JRE


Generic Compile time Error

The method (methodName) undefined for the type (className)

Specific errors

The method contains(String) is undefined for the type String
The method codePointAt(String) is undefined for the type String
The method codePointBefore(String) is undefined for the type String
The method offsetByCodePoints(String) is undefined for the type String
The method replace(String) is undefined for the type String
The method contentEquals(String) is undefined for the type String
The method format(String) is undefined for the type String
The method getTypeParameters(typeVariable) is undefined for the type typeVariable
The method getGenericReturnType(Type) is undefined for the type Type
The method isBridge(Boolean) is undefined for the type Boolean
The method getDefaultValue(Object) is undefined for the type Object
The method checkedSet(Set) is undefined for the type Set
The method checkedSet(List) is undefined for the type List
The method emptyList(List) is undefined for the type List
The method getResources() is undefined for the type
The method getSystemService(String) is undefined for the type List

Problem

This error message appears in java when the method is not defined in that class. If you getting these errors for methods related to String or Collection Classes most likely the problem is because of JDK compliance level or installed JRE. All these methods compiles with JDK 1.5 or above.

Changing the JDK compliance level

Changing JDK compliance level for workspace

Step 1 - Go to Windows -> Preferences



Step 2 - Click Compiler within left navigation and then Compliance and Classfiles tab.



Step 3 - Change the compliance level to 1.5 using Compiler compliance level dropdown.



or you can change the JDK compliance level just for the project.

Step 1 - Right click project and click properties


Step 2 - Click Java Compiler in the left navigation and then click Compliance and Classfiles tab.


Step 3 - Change the compliance level using Compiler compliance level dropdown.






If you are not able to see level 1.5 , this means the problem could be due to outdated JRE used.

Update to new JRE.

Step 1 - Download the JRE with JDK 1.5.

Step 2 - Go to Windows -> Preferences -> Installed JREs


Step 2 - Click Add to Add a new JRE



Step 3 - Browse to the new JRE location and select the JRE folder




Compile again and this should resolve the problem.


Java - Types of Errors , compile time , run time

There are several types of error, each with its own method of detection and repair. Broadly application errors are divided into compile time errors and run time errors.  

Compile Time Errors

Syntax errors are errors in grammar and punctuation such as mismatched quotes, missed commas or case-sensitivity issues.

Code Missing error are errors resulting because appropriate code , classes , jars have not been included. For example - classNotFound etc.
 

RunTime Errors

Runtime errors only show up as the program is executed. Example of run time errors are exceptions like nullPointerException , IllegalArgumentException.

Other than these 2 broad classifications , we have -

Logic errors are basic errors in the programmer's algorithms or procedural errors. Diagnosis only comes when incorrect results occur and solution requires mapping out the flow for test cases. An example is wrong scoping of a variable. Dynamic testing is required. 

Threading errors can occur when multiple threads are programmed. Common issues are access, deadlock, data race and synchronization. These types of errors are very difficult to trace.

200 Core Java Interview Questions and Answers


Humour - Office Boss



Other Office Humour Posts -

http://techsharepoint.blogspot.com/2012/11/humour-still-software-engineer.html
http://techsharepoint.blogspot.com/2012/11/humour-diwali-leave.html
http://techsharepoint.blogspot.com/2012/11/humour-boss.html
http://techsharepoint.blogspot.com/2012/11/humour-propose-like-boss.html
http://techsharepoint.blogspot.com/2012/11/humour-facebook-blocked-in-office.html
http://techsharepoint.blogspot.com/2012/11/humour-outdated-configuration.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_1724.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_7861.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_11.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons.html
http://techsharepoint.blogspot.com/2012/10/humour-tech-toons-2.html

Humour - Diwali Leave



Other Office Humour Posts -

http://techsharepoint.blogspot.com/2012/11/humour-still-software-engineer.html
http://techsharepoint.blogspot.com/2012/11/humour-office-boss.html
http://techsharepoint.blogspot.com/2012/11/humour-boss.html
http://techsharepoint.blogspot.com/2012/11/humour-propose-like-boss.html
http://techsharepoint.blogspot.com/2012/11/humour-facebook-blocked-in-office.html
http://techsharepoint.blogspot.com/2012/11/humour-outdated-configuration.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_1724.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_7861.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_11.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons.html
http://techsharepoint.blogspot.com/2012/10/humour-tech-toons-2.html

Humour - Boss


Other Office Humour Posts -

http://techsharepoint.blogspot.com/2012/11/humour-still-software-engineer.html
http://techsharepoint.blogspot.com/2012/11/humour-office-boss.html
http://techsharepoint.blogspot.com/2012/11/humour-diwali-leave.html
http://techsharepoint.blogspot.com/2012/11/humour-propose-like-boss.html
http://techsharepoint.blogspot.com/2012/11/humour-facebook-blocked-in-office.html
http://techsharepoint.blogspot.com/2012/11/humour-outdated-configuration.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_1724.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_7861.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons_11.html
http://techsharepoint.blogspot.com/2012/11/humour-technical-technology-cartoons.html
http://techsharepoint.blogspot.com/2012/10/humour-tech-toons-2.html

Humour - Types of computer viruses



 

Adam and Eve virus: Takes a couple of bytes out of your Apple.

Airline virus: You're in Dallas, but your data is in Singapore.

Bill Clinton virus: Promises to give equal time to all processes: 50% to poor, slow processes; 50% to middle-class processes, and 50% to rich ones. This virus protests your computer's involvement in other computer's affairs, even though it has been having one of its own for 12 years.


 Madonna virus: If your computer gets this virus, lock up your dog!

Michael Jackson virus: Hard to identify because it is constantly altering its appearance. This virus won't harm your PC, but it will trash your car.

Nike virus: Just Does It!


Politically correct virus: Never calls itself a "virus", but instead refers to itself as an "electronic microorganism".


 

ERROR - Class Not Found Exception - java.lang.ClassNotFoundException

Resolution -

1. Find out the jar file which resides the problematic class. To find that out just do

ctrl + shift + t and type the class name.

You can see the jar name at the bottom "qualifier"section.

2. Check if your class path contains the jar. Add the class path entry if it doesn't have.

3. even then if it doesn't resolve, you will have to find if there is any other classpath ( jar file , start up ) which is overriding the class path entries and fix that.


ERROR - The socket bind failed for host hostname( localhost ) and port portnumber (80 , 9080 , 8000). The port may already be in use.

Problem

CHFW0029E: Error initializing chain SOAPAcceptorChain2 because of exception com.ibm.wsspi.channel.framework.exception.RetryableChannelException: Address already in use: bind
[11/28/12 22:21:36:653 PST] 0000000e TCPPort       E   TCPC0003E: TCP Channel TCP_4 initialization failed.  The socket bind failed for host * and port 443.  The port may already be in use.

Cause

The error occurs while restarting the application server as the port might be in use by some other application or the port might haven't released properly during restart.

Resolution

a. To correct this problem, wait for a few minutes after stopping the server and then restart the server.

b. Check if there is any other app that is using the same port. Could be another http server listening on the same port or some other app ( skype could be using the same port :) ). 

c. Check the startup logs for any errors and specifically look for errors pertaining to same port.

ERROR - WSWS3066E: Error: Expected 'envelope' but found H1 Message being parsed:

Error -

com.ibm.commerce.foundation.services.invocation.exception.InvocationServiceException: java.io.IOException: javax.xml.soap.SOAPException: org.xml.sax.SAXException: WSWS3066E: Error: Expected 'envelope' but found  H1 Message being parsed:

Cause -

Problem while reading the response to the web service call.

Root Cause -

There could be problem with the stubs.
There could be problem with the web service itself.
The response from the web service might not be correct.

Resolution -

Recreate stubs if you manually modified the stubs. See if the web services are working properly and their response is correct. If the issue is on local host , One can even trying restart the web services by going to the admin console -> Enterprise applications.


ERROR - IWAE0022E Exception occurred loading deployment descriptor "WEB-INF/web.xml" for module


Possible Cause -
The EAR file might be corrupt or incomplete.

Resolution -

Rebuild the Ear and deploy.

_______________________________________________________________________________

Possible Cause -
Entry for the web project is missing within Ear.

Resolution -

Make sure the web project entry is correct in application.xml
Proper web project entries are there in build.xml
Make sure that the module ( web project ) has been included within EAR.

________________________________________________________________________________

Possible Cause -
taglib tag is not wrapped around the <jsp-config> tag

Resolution -

valid web.xml 2.4 with taglib declaration would be:

<jsp-config>
<taglib>...</taglib>
<taglib>...</taglib>
</jsp-config>






ERROR - IWAE0011E The project in Enterprise Application project has duplicate module name.


Possible cause -

1. Problem with the configuration within application.xml.
2. Deleting / closing the projects.

Possible Resolution -

1. Verify the application.xml entries within ear project to see if there are multiple entries for a project. If not ,
2. Make sure there shouldn't be any project entry in application.xml which doesn't exist. Delete the problematic entry if required.
3. Sometime it just get resolved by just putting a space somewhere in application.xml and save.


Humour - Propose like a Boss




Quotes on Coding , Software and Projects

“Before software can be reusable it first has to be usable.”
Ralph Johnson


 “Java is C++ without the guns, knives, and clubs”
James Gosling, co-inventor of Java


“Coding styles are like assholes, everyone has one and no one likes anyone elses.”
Eric Warmenhoven


“Documentation is like sex: when it is good, it is very, very good; and when it is bad, it is better than nothing.”
Dick Brandon


“Once you’re done writing the code, never open it again unless you want to see how uncomprehensible and utterly ridiculous it really is.”
Raphael Sazonov


“Programming is like sex: one mistake and you have to support it for the rest of your life.”
Michael Sinz


“The evolution of languages: FORTRAN is a non-typed language. C is a weakly typed language. Ada is a strongly typed language. C++ is a strongly hyped language.”
Ron Sercely


“The use of COBOL cripples the mind; its teaching should therefore be regarded as a criminal offense”
Edsger Dijkstra


“Writing in C or C++ is like running a chain saw with all the safety guards removed.”
Bob Gray
 
 
 
 
 
 


 “Always program as if the person who will be maintaining your program is a violent psychopath that knows where you live.”
Martin Golding
 
 


“I invented it, Bill made it famous.”
David Bradley (wrote the code for Ctrl-Alt-Delete on the IBM PC) 


“Adding manpower to a late software project makes it later”
F. Brooks, The Mythical Man-Month.

Humour - Dare by an Infosys Employee



Height of Frustration:

An Infosys employee sent this mail to the Board of Directors of Infosys and cc to N.Murthy... (And got fired..obviously) It resembles the Infosys jobs ad in newspapers.

Humour - For IBM Employees


Humour - For Satyam Employees



Humour - For HCL Employees




How stock Market works










HTTP Error Codes - 401 Access Denied , 403 Forbidden , 404 Not Found , 500 Internal Server Error

HTTP Error Code and their definition

100 - Continue.
101 - Switching protocols.
200 - OK. The client request has succeeded.
201 - Created.
202 - Accepted.
203 - Non-authoritative information.
204 - No content.
205 - Reset content.
206 - Partial content.
207 - Multi-Status (WebDay).
301 - Moved Permanently
302 - Object moved.
304 - Not modified.
307 - Temporary redirect.
400 - Bad request.
401 - Access denied.
401.1 - Logon failed.
401.2 - Logon failed due to server configuration.
401.3 - Unauthorized due to ACL on resource.
401.4 - Authorization failed by filter.
401.5 - Authorization failed by ISAPI/CGI application.
401.7 – Access denied by URL authorization policy on the Web server.
403 - Forbidden. 
403.1 - Execute access forbidden.
403.2 - Read access forbidden.
403.3 - Write access forbidden.
403.4 - SSL required.
403.5 - SSL 128 required.
403.6 - IP address rejected.
403.7 - Client certificate required.
403.8 - Site access denied.
403.9 - Too many users.
403.10 - Invalid configuration.
403.11 - Password change.
403.12 - Mapper denied access.
403.13 - Client certificate revoked.
403.14 - Directory listing denied.
403.15 - Client Access Licenses exceeded.
403.16 - Client certificate is untrusted or invalid.
403.17 - Client certificate has expired or is not yet valid.
403.18 - Cannot execute requested URL in the current application pool. This error code is specific to IIS 6.0.
403.19 - Cannot execute CGIs for the client in this application pool. This error code is specific to
403.20 - Passport logon failed. This error code is specific to IIS 6.0.
404 - Not found.

404.0 - (None) – File or directory not found.
404.1 - Web site not accessible on the requested port.
404.2 - Web service extension lockdown policy prevents this request.
404.3 - MIME map policy prevents this request.
405 - HTTP verb used to access this page is not allowed (method not allowed.)
406 - Client browser does not accept the MIME type of the requested page.
407 - Proxy authentication required.
412 - Precondition failed.
413 – Request entity too large.
414 - Request-URI too long.
415 – Unsupported media type.
416 – Requested range not satisfiable.
417 – Execution failed.
423 – Locked error. 
500 - Internal server error.
500.12 - Application is busy restarting on the Web server.
500.13 - Web server is too busy.
500.15 - Direct requests for Global.asa are not allowed.
500.16 – UNC authorization credentials incorrect. This error code is specific to IIS 6.0.
500.18 – URL authorization store cannot be opened. This error code is specific to IIS 6.0.
500.19 - Data for this file is configured improperly in the metabase.
500.100 - Internal ASP error.
501 - Header values specify a configuration that is not implemented.
502 - Web server received an invalid response while acting as a gateway or proxy.
502.1 - CGI application timeout.
502.2 - Error in CGI application.
503 - Service unavailable. This error code is specific to IIS 6.0.
504 - Gateway timeout.
505 - HTTP version not supported.


Famous Stock / Financial Market Quotes - Warren Buffet , George Soros , Spike Milligan , John Templeton , Mark Twain - Guest Blog



  • It's not whether you're right or wrong that's important, but how much money you make when you're right and how much you lose when you're wrong. - George Soros
     
     
  • Of the billionaires I have known, money just brings out the basic traits in them. If they were jerks before they had money, they are simply jerks with a billion dollars. - Warren Buffett.
  • Markets are constantly in a state of uncertainty and flux and money is made by discounting the obvious and betting on the unexpected. - George Soros
     
  • I just made a killing in the stock market -- I shot my broker. - Henny Youngman
     
  • The financial markets generally are unpredictable. So that one has to have different scenarios... The idea that you can actually predict what's going to happen contradicts my way of looking at the market. - George Soros
     
  • October: This is one of the peculiarly dangerous months to speculate in stocks. The others are July, January, September, April, November, May, March, June, December, August and February. - Mark Twain
     
  • The time of maximum pessimism is the best time to buy and the time of maximum optimism is the best time to sell. - John Templeton
     
  • I never attempt to make money on the stock market. I buy on the assumption that they could close the market the next day and not reopen it for five years. - Warren Buffett
     
  • If past history was all there was to the game, the richest people would be librarians. - Warren Buffett
     
  • Rule No.1: Never lose money. Rule No.2: Never forget rule No.1. - Warren Buffett
     
  • Wall Street is the only place that people ride to in a Rolls Royce to get advice from those who take the subway. - Warren Buffett
     
  • The stock market is filled with individuals who know the price of everything, but the value of nothing. - Philip Fisher
     
  • A market is the combined behavior of thousands of people responding to information, misinformation and whim. - Kenneth Chang 
     
  • Only buy something that you'd be perfectly happy to hold if the market shut down for ten years. - Warren Buffett
     
  • Only buy something that you'd be perfectly happy to hold if the market shut down for 10 years. - Warren Buffett
     
  • The only time to buy these is on a day with no "y" in it.  - Warren Buffett
     
  • The first rule is not to lose. The second rule is not to forget the first rule.  -Warren Buffett
     
  • The key to making money in stocks is not to get scared out of them. - Peter Lynch
     
  • The four most dangerous words in investing are "This time it's different". - John Templeton
     
  • Put not your trust in money, but put your money in trust. - Oliver Wendell Holmes
     
  • Money is like manure. You have to spread it around or it smells. - J. Paul Getty
     
  • Investors have very short memories. - Roman Abramovich
     
  • Experience taught me a few things. One is to listen to your gut, no matter how good something sounds on paper. The second is that you're generally better off sticking with what you know. And the third is that sometimes your best investments are the ones you don't make. - Donald Trump
     
  • Money can't buy you happiness but it does bring you a more pleasant form of misery. - Spike Milligan
     
  • Money couldn't buy friends, but you got a better class of enemy. - Spike Milligan


Related Link -
http://techsharepoint.blogspot.com/2012/11/stock-markets-elctronic-casino-guest_13.html


Stock Market - An Electronic Casino - Guest Blog




"Stock Market !!! .The first few words that comes to my mind after hearing this is; Economics , Finance , Companies and Profit. Yes Profit !!! It comes to mind , but it never reaches my pocket. Everyone is talking about the profit, but Why don't I make any? All my friends are making money but Why don't I? All Analysts on Media are talking about profits and even their followers, but Why don't I ?"

The real problem is the way you see it. It's actually not, How you see it !!!
  
It's an Electronic Casino. Yes, You heard it right !!! Its an electronic Casino, and it follows all the rules of casino.   

Names like Harshad Mehta,Ketan Parekh are still fresh in people's mind but nobody knows What they used to do. "Yeah I know they were stock operators !!! but what do stock operators do ?" 

They own the casino; but without any registration, Audit or Balance Sheet. People Who have been to Vegas and Macau can better tell you who makes the real money in the business -

'In the casino, the cardinal rule is to keep them playing and to keep them coming back. The longer they play, the more they lose, and in the end, we get it all.' - The movie "Casino" ( 1995 )

In Casino, You always get lesser multiple money than the probability of Win you have. For Example - Roulette ( spinning wheel ) has 38 slots whereas Casino Pays you approx 30 times on a Win.  Having some understanding of Mathematics and Probabilities, I can make out the reason of above quote.

"But Why do I loose in stock market ? I have a better probability as i know fundamental and technical analysis, I know finance and economics, I get the real time news, I follow the market top shots and I am friend with many brokers in the markets."

If Casino was forced to pay you better multiple than your probability, How would it had those lavish ambiance, Glittery looks and beautiful girls. 

"Doesn't seems like any Casino can make money that way."

Even then Casino would have managed it; but, the dirty Way !!!

How about if I can manipulate the ball of the Roulette and ask everyone to opt anything except 13 which being the unlucky number and once the house is packed, I get it into the 13th hole.  

Oh My Goodness !!! Nobody thought of it and it happened. 

Don't feel surprised. It always happens with you !!!.

"October: This is one of the peculiarly dangerous months to speculate in stocks. The others are July, January, September, April, November, May, March, June, December, August and February." - Mark Twain

The four most dangerous words in investing are "This time it's different". - John Templeton 
   

 

Java - Web Service - Errors during Service Call - IWAB0135E SRVE0017W WSWS1002E WSWS3277E

IWAB0135E An unexpected error has occurred.
IOException
unexpected message


This most likely occurs when one try to connect to a web service over HTTPS. The certificate that web service is sending to you can not be validated by the trusted certificates in your WAS Trust Store. Either Change the url to http or to get the certificate and upload.

IWAB0135E An unexpected error has occurred.
404
Not Found

 

Check the end point url. If thats correct , Check the servlet mapping within web.xml and see if there are any errors or warnings showing up. 

0000008d WebContainer  E   SRVE0017W: A WebGroup/Virtual Host to handle has not been defined
 

Check virtual host config within admin console. Specify ports explicitly if required. If the error still doesn't resolve. Check the deployment descriptor (web.xml ) for errors or warnings.

 

WSWS1002E: Error processing Web services deployment descriptor for module:
 

Add the required jar files in the Web service project, j2ee module dependencies, web libraries section and also load all the referenced project here. Also remove the entries from java build path so that the RSA will not complain about the duplicate class entries. Check your class path entries in the admin console-->troubleshooting --> classloaderviewer and search whether all ther referenced projects and the jar files are available.
 

WSWS3277E: Error: Could not resolve to an operation.
 

Check the url. If that's correct trying hitting service through some other client to see if the issue is with client or the service.


Still facing any problem with the web service. Join the discussion Box.