SEVERE: Servlet.service() for servlet [jsp]
What is a NullPointerException, and how do I fix it?
On my Windows machine, my main hard drive has the letter C: and the name "Local disk".   To list the drive letters in Java on Windows, the File object has the static listRoots() method. But I can't find a way to acquire the drive names (as opposed to the drive letters) on Windows.  Has anyone tried this before? One of my associates had their Hotmail account broadcasting spam, and presumably hacked. They managed to change the password, but after that, the account got locked; Hotmail asks you for a phone number, and they're supposed to call you with a code.  This person requested the code several times, with different numbers (even two of mine!), but never received any call with the confirmation code.  I referred them to the full-length process, which includes answering the security question; apparently, they forgot their question (having entered it over a decade ago and never reviewed it since).  What options, if any, exist to restore access to this person's account? They only want to grab their contacts; they plan to operate full-force on GMail going forward. Probability of selecting an even natural number from the set $\Bbb N$. I confirmed on  thread that there are as many as even natural numbers as there are natural numbers.   Question : Suppose I have selected a number $n \in \mathbb N$; what is the probability that $n$ is even?  My Thought : $\text{Probability} = \dfrac{\text{n(E)}}{\text{n(S)}}$ Here $\text{n(S)}$ is the set of all natural numbers i.e. $\mathbb N$, and $\text{n(E)}$ is set of all even natural numbers. Since it is proved that number of elements is the set $\mathbb N$ is exactly the same as the number of elements in the set of natural numbers (it’s very easy to put the set of natural numbers, $\Bbb N=\{0,1,2,3,\dots\}$, into one-to-one correspondence with the set $\text{E}=\{0,2,4,6,\dots\}$ of even natural numbers; the map $\Bbb N\to \text{E}:n\mapsto 2n$ is clearly a bijection.) ; Thus, Probability $= \boxed 1$ I know this is definitely wrong.Probability must be $0.5$. But where am I wrong? Can anyone explain ? Thanks! Should I follow what was mentioned in the “duration of stay” or in the "validity of the visa"? I'm from Tunisia and I got a Schengen visa from the Austrian Embassy for  28 days, the “duration of stay”, and the number of entries is 1. But the validity of the visa is from 02/08/2015 to 13/09/2015.  Do I have to stay only 28 days, for example from 02/08/2015 to 29/08/2015 or can I stay there until 12/09/2015 ?  And if I have got to stay only 28 days, then can I choose the days of stay, that's mean can I stay in Austria for example from 09/08/2015 to 05/09/2015? Wake screen after scheduled task wakes computer Why is paper more frangible when it is wet? My four-year-old daughter asked me why paper tends to fall apart when wet, and I wasn't sure.  I speculated that the water lubricates the paper fibers so that they can untangle and separate more easily, but I really wasn't sure. Let $A = \{ 1,2,3,4 \}$ Let $F$ be a set of all functions from $A \to A$.  Let $S$ be a relation defined by : $\forall f,g \in F$ $fSg \iff f(i) = g(i)$ for some $i \in A$  Let $h: A \to A$ be the function $h(x) = 1 $ for all $x \in A$.   How many functions $g \in F$ are there so that $gSh$ ?  My solution : $gSh$ means that $g(i) = h(i)$ for some $i \in A$. So $g(i) = 1$.  So number 1 always needs to connect to some x - 4 choices.  Then we have $3$ left-over numbers that can connect to $4$ numbers each.  So solution is $4 \cdot 4 \cdot 4 \cdot 4$. Is this correct at all? Thanks in advance !! :) Active Directory: Is it required that the "A" record for a domain point to a Domain Controller? Motor to spin slowly, low torque So I have a mac computer but i plugged in a windows keyboard in my mac. I am still trying to figure out how to paste commands into a command block. So how can I paste a command? Permanent xmodmap in Ubuntu 13.04 I cannot make xmodmap run on login in Ubuntu 13.04. I have searched around, including in askubuntu and all answers I found do not work.  I have a file named .Xmodmap in my home folder which contains the desired mappings. If I run it manually it works fine, so there is no error there. In order to make it run on startup, I have tried:     Using various .xinitrc containing one of the following commands:      xmodmap .Xmodmap xmodmap ~/.Xmodmap   /usr/bin/xmodmap /home/NAME/.Xmodmap if [ -s ~/.Xmodmap ]; then xmodmap ~/.Xmodmap fi  Using .Xresources instead of .xinitrc with the same variations. Setting it as a startup application.   None of the above works in Ubuntu 13.04 (64-bit). I also saw a few ideas about globally changing the keyboard mappings, but most of them were not applicable in Ubuntu 13.04 (i.e. the corresponding files did not exist where specified) and I prefer not to touch the global settings anyway. Normally to remove files with spaces in their filename you would have to run:  $ rm "file name"   but if I want to remove multiple files, e.g.:  $ find . -name "*.txt" | xargs rm   This will not delete files with spaces in them. How can I verify the following statement?     The image of a morphism $f : A \longrightarrow B$ is defined as $\text{Im}(f) = \text{Ke}r(\text{coke}r f)$ whenever it exists (e.g., in every abelian category). The morphism $f : A \longrightarrow B$ factors   uniquely through $\text{Im} f \longrightarrow B$ whenever $\text{Im} f$ exists, and $A \longrightarrow \text{Im} f$ is an epimorphism and a cokernel of ker $f \longrightarrow A$ in every abelian category. How to turn hundreds of text URLs in Excel into clickable hyperlinks? Let $R$ be a UFD and $r\in R$ irreducible. If $S=R-(r)$, why is $S^{-1}R$ a PID?   I've finished proving the integral domain part, which was pretty easy.  How to prove it's principal? consider $R \subset S^{-1}R \subset F$, where $F$ is the field of fractions of $R$?  thank you! :p What does the 'static' keyword do in a class? Anthology for children; contains story about friendly Martian on postapocalyptic Earth I'm looking for the title of an anthology of children's science fiction stories from the 1950s. The best of the bunch involved a Martian who visited earth, and realized we'd blown ourselves up in a nuclear war and had fallen into savagery. The Martian is a vegetarian who subsists on biscuits made by a machine he brought with him, and communicates by using one of his tentacles to feed messages direction to/from the brain of the person he's talking to.  Inadvertently left behind by his expedition, he initially befriended some children, and eventually managed to rebuild civilization. Presently he dies, but when another expedition comes a generation later, they find the civilization he rebuilt.  there were other stories, but that was the best one.   If I can't find the name of the book it was in, I'd be happy to settle for the name of the author and the title of the story. Why doesn't hydrogen gas exist in Earth's atmosphere? The root mean square velocity of hydrogen gas at room temperature is: Gas constant: $R=8.31\ \mathrm{J\ K^{-1}\ mol^{-1}}$ Molar mass of hydrogen gas: $M=2.02\times10^{-3}\ \mathrm{kg/mol}$ $$\begin{align} v &amp;= \left(\frac{3\times8.31\ \mathrm{J\ K^{-1}\ mol^{-1}}\times300}{2.02\times10^{-3}\ \mathrm{kg/mol}}\right)^{\frac12}\\ &amp;= 3356.8377\ \mathrm{m/s}\\ &amp;= 3.356\ \mathrm{km/s} \end{align}$$ The escape speed of Earth is $11.2\ \mathrm{km/s}$, which is larger than the root mean square velocity of hydrogen gas. But still, hydrogen gas doesn't exist in Earth's atmosphere. Why? Have I made any mistakes in my calculations? How do I change the screen resolution using Ubuntu command line? can anybody tell me which one of these is the correct one? I have been searching all over the internet but I have still got no answer.  Types of books Types of book