Error Registering Contexts Java.lang.nullpointerexception
First Last Prev Next This bug is not in your last search results. Bug47316 - In config file, Service and engine names must match Summary: In config file, Service and engine names must match Status: RESOLVED FIXED Product: Tomcat 5 Classification: Unclassified Component: Catalina Version: Nightly Build Hardware: Other AIX Importance: P2 normal with 1 vote (vote) TargetMilestone: --- Assigned To: Tomcat Developers Mailing List URL: Keywords: Depends on: Blocks: Show dependency tree Reported: 2009-06-04 09:26 UTC by Chris Modified: 2009-06-13 13:38 UTC (History) CC List: 0 users Attachments Proposed patch to fix this issue (2.49 KB, application/octet-stream) 2009-06-05 10:32 UTC, Mark Thomas Details View All Add an attachment (proposed patch, testcase, etc.) Note You need to log in before you can comment on or make changes to this bug. Description Chris 2009-06-04 09:26:54 UTC We had a config working on 6.0.18 and failing in 6.0.20. In tomcat log, we found the following NPE at initialization: Jun 4, 2009 5:15:25 PM org.apache.catalina.connector.MapperListener init WARNING: Error registering contexts Throwable occurred: java.lang.NullPointerException at org.apache.catalina.connector.MapperListener.registerHost(MapperListener.java:332) at org.apache.catalina.connector.MapperListener.init(MapperListener.java:129) at org.apache.catalina.connector.Connector.start(Connector.java:1146) at org.apache.catalina.core.StandardService.start(StandardService.java:531) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:583) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:45) at sun.reflect.DelegatingMetho
Portal Liferay Portal 6.2 Liferay Portal 6.1 Liferay Portal 6.0 Liferay Portal 5.2 Liferay Portal 5.1 Liferay Social Office Liferay Social Office 3.1 Liferay Social Office 3.0 Liferay Social Office 2.0 Liferay Social Office 1.5 Community Welcome Dashboard Download Now Start Here Participate Contribute Liferay Projects AlloyUI Liferay Faces Liferay IDE Liferay Portal Liferay Social Office Liferay Mobile SDK Community Projects Community Feature Ideas Releases Forums Blogs Getting Started Content Guidelines Most Active Bloggers Wiki User Groups Special Activities dev.life Security Team Translation Team BugSquad Community Verifier Radio Liferay 2014 Top Contributors Upcoming Events Marketplace This wiki does not contain official documentation and is currently deprecated and read only. https://bz.apache.org/bugzilla/show_bug.cgi?id=47316 Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part https://web.liferay.com/community/wiki/-/wiki/Main/Plugin+Deployment+Troubleshooting of Liferay's community, meet other Liferay users, and get involved in the open source project. Search Wiki Main Proposals FrontPage Recent Changes All Pages Orphan Pages Draft Pages « Back to Using Liferay Plugin Deployment Troubleshooting Details Print Table of Contents[-] Unable to process deployment descriptor for context 'null' The WAR disappears but it's not available to the portal ERROR [portal-web.docroot.html.portal.render_portlet.jsp] java.lang.NullPointerException Absolute vs. Relative Path “Incorrect zip format” exception Log shows that the portlet was copied, but it doesn't appear in the list NullPointerException from Log4j BeanLocator is not set See Also The purpose of this article is to document the typical errors that are often found when deploying themes, layout templates and portlets to Liferay. Unable to process deployment descriptor for context 'null' #Check that you've deployed the WAR file to Liferay's autodeploy directory and not to the deploy directory of the application server directly. By default Liferay's autodeploy directory will be in: $USER_HOME/liferay/deploy (assuming 'your-user' is the name of the user that runs Liferay). $USER_HOME is /home/your-user in UNIX based systems such as Linux and MacOS and c:\Document and Settings\your-user in Windows. You can change the directory in Plugin Installer portlet -> Configuration (version 4.3), Admin porttlet
here for a quick overview of the site Help Center Detailed http://stackoverflow.com/questions/29617317/googlecloudmessaging-getinstanceunknown-source-nullpointer answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the error registering Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up GoogleCloudMessaging.getInstance(Unknown Source) NullPointer up vote 2 down vote favorite I am attempting to call the register actions for Google Cloud Messaging from error registering contexts my application class Global as: Global global; global = new Global(); // Adding GCM Registration actions: if (TextUtils.isEmpty(global.regId)) { global.regId = global.registerGCM(); Log.d("RegisterActivity", "GCM RegId: " + Global.regId); } But every time I attempt to run, the error: Caused by: java.lang.NullPointerException at GoogleCloudMessaging.getInstance(Unknown Source) at com.example.infrastructure.global.Global.registerGCM(Global.java:62) at com.example.infrastructure.SigningUp.onCreate(SigningUp.java:93) On line global.regId = global.registerGCM(); and line: gcm = GoogleCloudMessaging.getInstance(this); In my application class that houses the GCM register actions (below). How can I implement this Application class to allow for the use of these GCM actions? Global Application class: public class Global extends Application { // Testing for Google Cloud Messaging GoogleCloudMessaging gcm; Context context; public static String regId; public static final String REG_ID = "regId"; private static final String APP_VERSION = "appVersion"; static final String TAG = "Register Activity"; public String registerGCM() { gcm = GoogleCloudMessaging.getInstance(this); regId = getRegistrationId(context); if (TextUtils.isEmpty(regId)) { registerInBackground(); Log.d("RegisterActivity", "registerGCM - s