<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Eclipse on MarkJacobsen.net</title><link>https://test.markjacobsen.net/tags/eclipse/</link><description>Recent content in Eclipse on MarkJacobsen.net</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Tue, 10 Mar 2015 21:30:00 +0000</lastBuildDate><atom:link href="https://test.markjacobsen.net/tags/eclipse/index.xml" rel="self" type="application/rss+xml"/><item><title>NullPointerException – could not publish to server</title><link>https://test.markjacobsen.net/2015/03/nullpointerexception-could-not-publish-to-server/</link><pubDate>Tue, 10 Mar 2015 21:30:00 +0000</pubDate><guid>https://test.markjacobsen.net/2015/03/nullpointerexception-could-not-publish-to-server/</guid><description>&lt;p&gt;Ok, so this is an obscure one, but if it saves anyone from multiple days of banging their head against the wall it’s worth it…&lt;/p&gt;
&lt;p&gt;Recently I was working in eclipse, had created my component, compiled it, and had it pushed to our ivy repository. I then went to bring it into another (web) project when I started getting complaints about a NullPointerException. For kicks I tried running the web app and received the error “NullPointerException (could not publish to server)”. With all that useful information how could I not figure out what the problem was?&lt;/p&gt;
&lt;p&gt;Fortunately another &lt;a href="http://markjacobsen.net/people/mike-mukavetz/" target="_blank"&gt;developer&lt;/a&gt; I spoke with had seen the issue before and pointed me in the right direction. In the utility component/jar you have to (see screen shot below too)…&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Go to Project -&amp;gt; Properties&lt;/li&gt;
&lt;li&gt;Click on “Project Facets”&lt;/li&gt;
&lt;li&gt;Check “Utility Module”&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;And then it will just magically work. Wasn’t that &lt;strong&gt;completely obvious?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;[&lt;img data-recalc-dims="1" loading="lazy" decoding="async" class="alignnone size-full wp-image-950" src="https://i0.wp.com/markjacobsen.net/wp-content/uploads/2015/03/EclipseUtilityMode.png?resize=474%2C439" alt="EclipseUtilityMode" width="474" height="439" srcset="https://i0.wp.com/markjacobsen.net/wp-content/uploads/2015/03/EclipseUtilityMode.png?w=651&amp;ssl=1 651w, https://i0.wp.com/markjacobsen.net/wp-content/uploads/2015/03/EclipseUtilityMode.png?resize=300%2C278&amp;ssl=1 300w, https://i0.wp.com/markjacobsen.net/wp-content/uploads/2015/03/EclipseUtilityMode.png?resize=324%2C300&amp;ssl=1 324w" sizes="auto, (max-width: 474px) 100vw, 474px" /&gt;][1][1]: &lt;a class="link" href="https://i0.wp.com/markjacobsen.net/wp-content/uploads/2015/03/EclipseUtilityMode.png" target="_blank" rel="noopener"
 &gt;https://i0.wp.com/markjacobsen.net/wp-content/uploads/2015/03/EclipseUtilityMode.png&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>