[jbosstools-issues] [JBoss JIRA] (JBIDE-12000) Random "Unable to publish to ther server" error

Rob Stryker (JIRA) jira-events at lists.jboss.org
Tue May 29 03:15:18 EDT 2012


    [ https://issues.jboss.org/browse/JBIDE-12000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696631#comment-12696631 ] 

Rob Stryker commented on JBIDE-12000:
-------------------------------------

Via the stacktrace, the lines match up with the following:

{code}
		if( adaptableObject instanceof IServerAttributes ) {
			typeId = ((IServerAttributes)adaptableObject).getServerType().getId();
			s = (IServer)adaptableObject;
		} else if( adaptableObject instanceof IRuntime ) {
{code}

The problem here is that, judging by the stacktrace, the only value for adaptableObject is an IServer, which extends IServerAttributes. If this element is null, however, it will never make it passed the instanceof check. Therefore we can assume it is not null. 

So we know it cannot be null... this means the return value from getServerType() must be null. Unfortunately that means you have a broken server somehow. A server with a null IServerType is one that would not pass this adaptable request 

Have you tried deleting the server and recreating it? 
                
> Random "Unable to publish to ther server" error
> -----------------------------------------------
>
>                 Key: JBIDE-12000
>                 URL: https://issues.jboss.org/browse/JBIDE-12000
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS/Servers
>    Affects Versions: 3.3.x
>         Environment: JBoss 6.1.1 server
>            Reporter: George Lindholm
>            Assignee: Rob Stryker
>            Priority: Critical
>             Fix For: 3.3.0.CR1
>
>
> What steps will reproduce the problem?
> 1.  Unknown, randomnly happens
> 2. 
> 3. 
> -- Error Details --
> Date: Thu May 24 13:35:41 PDT 2012
> Message: Could not publish to the server.
> Severity: Error
> Product: Eclipse 1.4.2.20120131-1457 (org.eclipse.epp.package.jee.product)
> Plugin: org.eclipse.wst.server.core
> Session Data:
> eclipse.buildId=M20120208-0800
> java.version=1.7.0_04
> java.vendor=Oracle Corporation
> BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_CA
> Framework arguments:  -product org.eclipse.epp.package.jee.product
> Command-line arguments:  -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product -data e:\java\workspace
> Exception Stack Trace:
> java.lang.NullPointerException
> 	at org.jboss.ide.eclipse.as.core.server.internal.ExtendedServerPropertiesAdapterFactory.getExtendedProperties(ExtendedServerPropertiesAdapterFactory.java:53)
> 	at org.jboss.ide.eclipse.as.core.server.internal.ExtendedServerPropertiesAdapterFactory.getAdapter(ExtendedServerPropertiesAdapterFactory.java:42)
> 	at org.jboss.ide.eclipse.as.core.server.internal.ExtendedServerPropertiesAdapterFactory.getJBossExtendedProperties(ExtendedServerPropertiesAdapterFactory.java:32)
> 	at org.jboss.ide.eclipse.as.jmx.integration.JBoss3To6ConnectionProvider.belongsHere(JBoss3To6ConnectionProvider.java:37)
> 	at org.jboss.ide.eclipse.as.jmx.integration.AbstractJBossJMXConnectionProvider.getConnections(AbstractJBossJMXConnectionProvider.java:106)
> 	at org.jboss.ide.eclipse.as.jmx.integration.AbstractJBossJMXConnectionProvider.findConnection(AbstractJBossJMXConnectionProvider.java:94)
> 	at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.getConnection(JBossJMXConnectionProviderModel.java:59)
> 	at org.jboss.ide.eclipse.as.jmx.integration.JBossJMXConnectionProviderModel.run(JBossJMXConnectionProviderModel.java:76)
> 	at org.jboss.ide.eclipse.as.jmx.integration.JBossServerJMXRunner.run(JBossServerJMXRunner.java:33)
> 	at org.jboss.ide.eclipse.as.core.server.internal.LocalJBossBehaviorDelegate.publishStart(LocalJBossBehaviorDelegate.java:211)
> 	at org.jboss.ide.eclipse.as.core.server.internal.DelegatingServerBehavior.publishStart(DelegatingServerBehavior.java:139)
> 	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:927)
> 	at org.eclipse.wst.server.core.model.ServerBehaviourDelegate.publish(ServerBehaviourDelegate.java:774)
> 	at org.eclipse.wst.server.core.internal.Server.publishImpl(Server.java:3087)
> 	at org.eclipse.wst.server.core.internal.Server$PublishJob.run(Server.java:345)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list