Layer7 API Management

  • 1.  Unable to Create Application Request

    Posted Aug 22, 2017 05:06 AM

    Hi, I'm using the developer portal (3.5 CR4) withe Gateway (9.2). When I'm trying to save the request for an application, the form closes and no new request is seen

     

     

    Upon checking the catalina.out logs, I'm seeing the following error

    08/22 17:02:43.259 ERROR (http-nio-37080-exec-10:) - [ManageAppsXS general] -- java.lang.NumberFormatException: For input string: ""
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
    at java.lang.Integer.parseInt(Integer.java:592)
    at java.lang.Integer.parseInt(Integer.java:615)
    at com.thelevel.lrs.bm.ManageAppsXS.getXML(ManageAppsXS.java:141)
    at com.thelevel.cms.xmlsources.AbstractXMLSource.getXML(AbstractXMLSource.java:172)
    at com.thelevel.cms.site.PageRule.handleRequest(PageRule.java:277)
    at com.thelevel.cms.site.CMSSiteHandler.handleRequest(CMSSiteHandler.java:488)
    at com.thelevel.cms.site.CMSSiteHandler.handleRequest(CMSSiteHandler.java:439)
    at com.thelevel.cms.site.SiteServlet.processRequest(SiteServlet.java:413)
    at com.thelevel.cms.site.SiteServlet.instrumentRequest(SiteServlet.java:217)
    at com.thelevel.cms.site.SiteServlet.filterRequest(SiteServlet.java:171)
    at com.thelevel.cms.site.SiteServlet.service(SiteServlet.java:121)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.thelevel.cms.admin.JSONFilter.doFilter(JSONFilter.java:40)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.thelevel.lrs.JForumFilter.doFilter(JForumFilter.java:108)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at com.thelevel.cms.identity.AuthFilter.doFilter(AuthFilter.java:106)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.picocontainer.web.PicoServletContainerFilter.doFilter(PicoServletContainerFilter.java:74)
    at com.thelevel.cms.CMSBootstrapper$ServletFilter.doFilter(CMSBootstrapper.java:649)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
    at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
    at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799)
    at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
    at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:861)
    at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1455)
    at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
    at java.lang.Thread.run(Thread.java:745)

     

    Any help would be greatly appreciated.

     

    Thank you



  • 2.  Re: Unable to Create Application Request

    Posted Aug 22, 2017 05:17 AM

    when you say "save the request for an application" can you elaborate a bit more on what exactly are you trying to do ?



  • 3.  Re: Unable to Create Application Request

    Broadcom Employee
    Posted Aug 22, 2017 06:10 AM

    Hi didsi01,

     

     

    The correct term should be submit, however the portal uses the word Save.

     

    Hope this clarifies what I'm trying to achieve.



  • 4.  Re: Unable to Create Application Request

    Broadcom Employee
    Posted Aug 23, 2017 09:55 AM

    This can occur for a few possible reasons, but the most common is that the user who is trying to perform this task has mixed roles and domain in the CMS.

     

    Could you send through the roles/domain that are associated with the user that's experiencing this error? You can find this by doing the following:
    -Login to the CMS as the admin user (http://<portal-hostname>/admin)
    -Click on "User Administration" on the left side
    -Click on "Manage Users" on the left side
    -Scroll to find the user in question
    -Note the "Domain" value under the "General" Tab.
    -Note the "Current Roles" under the "Roles" tab.

     

    For your reference, here is the list of default roles and domains for various user types, ensure that the user adheres to these:

    Username: AccountManager
    Domain: INTERNAL
    Roles: accountManager

    Username: Admin
    Domain: INTERNAL
    Roles: administrator

    Username: ApiOwner
    Domain: INTERNAL
    Roles: apiOwner, cmsuser

    Username: BusinessManager
    Domain: INTERNAL
    Roles: businessManager

    Username: WebAdmin
    Domain: INTERNAL
    Roles: cmsuser, webAdmin

    External users/developers should have:
    Domain: LRSDEVELOPER
    Roles combo1: organizationAdmin, registeredUser
    Roles combo2: registeredUser

     

    Regards,

    Azad