1
votes

2016-12-30 02:27:09,458 [-] [http-nio-9443-exec-14] ERROR ApiMgtDAO Unable to find the API: admin-common7-1.0.7 in the database 2016-12-30 02:27:09,460 [-] [http-nio-9443-exec-14] ERROR index:jag org.wso2.carbon.apimgt.api.APIManagementException: Unable to find the API: admin-common7-1.0.7 in the database 2016-12-30 02:27:09,461 [-] [http-nio-9443-exec-14] ERROR WebAppManager org.mozilla.javascript.EcmaError: TypeError: Cannot read property "apis" from null (/publisher/site/blocks/listing/block.jag#40) org.jaggeryjs.scriptengine.exceptions.ScriptException: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "apis" from null (/publisher/site/blocks/listing/block.jag#40)

Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot read property "apis" from null (/publisher/site/blocks/listing/block.jag#40)

I restart wso2server.sh In AM. Then I can not successfully login the publisher site of AM. The browser prompted as the following

Error 500 : The page cannot be displayed.

The server encountered an internal error or misconfiguration and was unable to complete your request.

why?

1
What is the error in logs you see after restarting?Bee
There is no error logs but the logs as the following >Caused by: org.wso2.carbon.databridge.agent.exception.DataEndpointSecurityException: Error while trying to connect to ssl://localhost:7712 at org.wso2.carbon.databridge.agent.endpoint.thrift.ThriftSecureClientPool keObject(AbstractClientPoolFactory.java:39) at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(GenericKeyedObjectPool.java:1212) Caused by: java.net.ConnectException: Connection refused. However, There are alse the logs before.Mike
api stroe and carbon site can be loggined..Mike
that connection error is not related to this. this can happen if you have put some invalid data when creating API. you may try cleaning database or, use REST APIs to to delete common7 api.Bee
You are right. But how can I clean the database or use REST APIS to delete common7 API?Mike

1 Answers

1
votes

Looks like your common7 API is not properly created. Try to remove it from registry and see if you can login to publisher.