<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Java – Yeri Tiete</title>
    <link>https://yeri.be/tag/java/</link>
    <description>Yeri Tiete&#39;s blog</description>
    <language>en</language>
    <copyright>© Yeri Tiete</copyright>
    <lastBuildDate>Mon, 21 Oct 2013 10:26:30 +0200</lastBuildDate>
    <atom:link href="https://yeri.be/tag/java/index.xml" rel="self" type="application/rss+xml" />
    
    <item>
      <title>Java heist</title>
      <link>https://yeri.be/java-heist/</link>
      <pubDate>Mon, 21 Oct 2013 10:26:30 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/java-heist/</guid>
      <description>&lt;p style=&#34;text-align: center;&#34;&gt;&lt;iframe width=&#34;100%&#34; height=&#34;360&#34; src=&#34;//www.youtube.com/embed/HXvm76e2X1Q?rel=0&#34; frameborder=&#34;0&#34; allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p style="text-align: center;"><iframe width="100%" height="360" src="//www.youtube.com/embed/HXvm76e2X1Q?rel=0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
      <category>Software</category>
      <category>java</category><category>youtube</category>
    </item>
    
    <item>
      <title>Javapocalypse</title>
      <link>https://yeri.be/javapocalypse/</link>
      <pubDate>Sat, 15 Jun 2013 12:00:15 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/javapocalypse/</guid>
      <description>&lt;p style=&#34;text-align: center;&#34;&gt;&lt;iframe width=&#34;640&#34; height=&#34;360&#34; src=&#34;https://www.youtube.com/embed/E3418SeWZfQ?rel=0&#34; frameborder=&#34;0&#34; allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p style="text-align: center;"><iframe width="640" height="360" src="https://www.youtube.com/embed/E3418SeWZfQ?rel=0" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
      <category>Misc</category><category>Software</category>
      <category>java</category><category>youtube</category>
    </item>
    
    <item>
      <title>Tomcat: javax.servlet.ServletException issues</title>
      <link>https://yeri.be/javax-servlet-servletexception/</link>
      <pubDate>Fri, 22 Oct 2010 10:41:54 +0200</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/javax-servlet-servletexception/</guid>
      <description>&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;&#34;&gt;javax.servlet.ServletException&#xA;org.apache.catalina.security.SecurityUtil.execute&#xA;(SecurityUtil.java:294)&lt;/pre&gt;&#xA;&lt;p&gt;Solution:&lt;/p&gt;&#xA;&lt;p&gt;Create 20servlets.policy:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;&#34;&gt;nano -w /etc/tomcat5.5/policy.d/20servlets.policy&lt;/pre&gt;&#xA;&lt;p&gt;And add:&lt;/p&gt;&#xA;&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;&#34;&gt;grant codeBase &#34;file:${catalina.base}/webapps/-&#34; {&#xA;permission java.security.AllPermission;&#xA;};&lt;/pre&gt;&#xA;&lt;p&gt;And restart Tomcat&lt;/p&gt;&#xA;&lt;div&gt;&#xA;&lt;pre style=&#34;background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;&#34;&gt;/etc/init.d/tomcat5.5 restart&lt;/pre&gt;&#xA;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;">javax.servlet.ServletException
org.apache.catalina.security.SecurityUtil.execute
(SecurityUtil.java:294)</pre>
<p>Solution:</p>
<p>Create 20servlets.policy:</p>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;">nano -w /etc/tomcat5.5/policy.d/20servlets.policy</pre>
<p>And add:</p>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;">grant codeBase "file:${catalina.base}/webapps/-" {
permission java.security.AllPermission;
};</pre>
<p>And restart Tomcat</p>
<div>
<pre style="background-color: #ffffff; line-height: 12pt; margin-right: 5px; padding: 5px; border: 1px dashed #489e06;">/etc/init.d/tomcat5.5 restart</pre>
</div>
]]></content:encoded>
      <category>Errors</category><category>Linux</category><category>Software</category>
      <category>java</category><category>tomcat</category>
    </item>
    
    <item>
      <title>Java &#43; Angry IP Scanner error</title>
      <link>https://yeri.be/java-angry-ip-scanner-error/</link>
      <pubDate>Thu, 06 Nov 2008 12:00:43 +0100</pubDate>
      <author>Yeri Tiete</author>
      <guid isPermaLink="true">https://yeri.be/java-angry-ip-scanner-error/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://www.angryziber.com&#34; target=&#34;_blank&#34;&gt;Angry IP scanner&lt;/a&gt; was quitting each time I started the application, and looking at Console I saw these errors:&lt;/p&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;JavaAppLauncher Error&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; CFBundleCopyResourceURL&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; failed loading MRJApp.properties file&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;JavaAppLauncher Error&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; CFBundleCopyResourceURL&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; failed &lt;span class=&#34;k&#34;&gt;while&lt;/span&gt; getting Resource/Java directory&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;LaunchRunner Error&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; No main class specified&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;JavaAppLauncher Error&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; CallStaticVoidMethod&lt;span class=&#34;o&#34;&gt;()&lt;/span&gt; threw an exception&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; Exception in thread &lt;span class=&#34;s2&#34;&gt;&amp;#34;main&amp;#34;&lt;/span&gt; java.lang.NullPointerException&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;  at apple.launcher.LaunchRunner.run&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;LaunchRunner.java:112&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;  at apple.launcher.LaunchRunner.callMain&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;LaunchRunner.java:50&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 &lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;  at apple.launcher.JavaApplicationLauncher.main&lt;span class=&#34;o&#34;&gt;(&lt;/span&gt;JavaApplicationLauncher.java:61&lt;span class=&#34;o&#34;&gt;)&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;06/11/08 11:34:15 com.apple.launchd&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;97&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt; &lt;span class=&#34;o&#34;&gt;([&lt;/span&gt;0x0-0x1f01f&lt;span class=&#34;o&#34;&gt;]&lt;/span&gt;.net.azib.ipscan&lt;span class=&#34;o&#34;&gt;[&lt;/span&gt;190&lt;span class=&#34;o&#34;&gt;])&lt;/span&gt; Exited with &lt;span class=&#34;nb&#34;&gt;exit&lt;/span&gt; code: &lt;span class=&#34;m&#34;&gt;1&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;After some googling I came upon &lt;a href=&#34;http://renderfast.com/2008/09/26/java-for-mac-update-2-leaves-some-java-apps-broken/&#34; target=&#34;_blank&#34;&gt;this website&lt;/a&gt;.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><a href="http://www.angryziber.com" target="_blank">Angry IP scanner</a> was quitting each time I started the application, and looking at Console I saw these errors:</p>
<div class="highlight"><pre tabindex="0" class="chroma"><code class="language-bash" data-lang="bash"><span class="line"><span class="cl">06/11/08 11:34:15 <span class="o">[</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">]</span> <span class="o">[</span>JavaAppLauncher Error<span class="o">]</span> CFBundleCopyResourceURL<span class="o">()</span> failed loading MRJApp.properties file
</span></span><span class="line"><span class="cl">06/11/08 11:34:15 <span class="o">[</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">]</span> <span class="o">[</span>JavaAppLauncher Error<span class="o">]</span> CFBundleCopyResourceURL<span class="o">()</span> failed <span class="k">while</span> getting Resource/Java directory
</span></span><span class="line"><span class="cl">06/11/08 11:34:15 <span class="o">[</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">]</span> <span class="o">[</span>LaunchRunner Error<span class="o">]</span> No main class specified
</span></span><span class="line"><span class="cl">06/11/08 11:34:15 <span class="o">[</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">]</span> <span class="o">[</span>JavaAppLauncher Error<span class="o">]</span> CallStaticVoidMethod<span class="o">()</span> threw an exception
</span></span><span class="line"><span class="cl">06/11/08 11:34:15 <span class="o">[</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">]</span> Exception in thread <span class="s2">&#34;main&#34;</span> java.lang.NullPointerException
</span></span><span class="line"><span class="cl">06/11/08 11:34:15 <span class="o">[</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">]</span>  at apple.launcher.LaunchRunner.run<span class="o">(</span>LaunchRunner.java:112<span class="o">)</span>
</span></span><span class="line"><span class="cl">06/11/08 11:34:15 <span class="o">[</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">]</span>  at apple.launcher.LaunchRunner.callMain<span class="o">(</span>LaunchRunner.java:50<span class="o">)</span>
</span></span><span class="line"><span class="cl">06/11/08 11:34:15 <span class="o">[</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">]</span>  at apple.launcher.JavaApplicationLauncher.main<span class="o">(</span>JavaApplicationLauncher.java:61<span class="o">)</span>
</span></span><span class="line"><span class="cl">06/11/08 11:34:15 com.apple.launchd<span class="o">[</span>97<span class="o">]</span> <span class="o">([</span>0x0-0x1f01f<span class="o">]</span>.net.azib.ipscan<span class="o">[</span>190<span class="o">])</span> Exited with <span class="nb">exit</span> code: <span class="m">1</span>
</span></span></code></pre></div><p>After some googling I came upon <a href="http://renderfast.com/2008/09/26/java-for-mac-update-2-leaves-some-java-apps-broken/" target="_blank">this website</a>.</p>
<p>Following the (long/first) instructions did solve the problem, and I can now run the application.</p>
<p>Only skipping #9, as I could not find the &ldquo;CFBundleExecutable&rdquo;, and simply renaming the old <em>ipscan</em> to <em>ipscan.bak</em>, and renaming <em>JavaApplicationStub</em> to <em>ipscan</em>.</p>
]]></content:encoded>
      <category>Apple</category><category>Errors</category><category>Software</category>
      <category>angry ip scanner</category><category>java</category><category>mac os x</category>
    </item>
    
  </channel>
</rss>
