sf_dudu13's Profile
Agile User
39
Points

Questions
16

Answers
14

  • Agile User Asked on March 16, 2016 in Other APIs.

    wi will try that thanks!

    is there  documentation on how to use the api through webapps? (i mean, where could i found this cookies solution)

    • 5322 views
    • 17 answers
    • 0 votes
  • Agile User Asked on March 16, 2016 in Other APIs.

    hi antonio ,

    i have been printing the cookies name from the request and i dont see the j_username or j_password cookie.

    these are the ones i see:
    JSESSIONID 7topCreatePopupSize START_UPLOAD_IMMED UNZIP UPLOAD_TO_SINGLE_FF FILE_FOLDER_TYPE jsDebug invalidate_session

    • 5322 views
    • 17 answers
    • 0 votes
  • Agile User Asked on March 16, 2016 in Other APIs.

    tried also 

    private IAgileSession connect(HttpServletRequest request) throws ServletExceptio
    
    {
      HashMap params = new HashMap();
      params.put(AgileSessionFactory.PX_REQUEST, request);
      session = factory.createSession(params);
      return session;
    }
    
    
    (with the factory created by the url) and got :
    
    
    
    org.apache.jasper.JasperException: An exception occurred processing JSP page /PXinputTemplate.jsp at line 83
    
    80: 
    81:    
    82:    
    83:    javabeanforpx.JavaBeanForPX px= new javabeanforpx.JavaBeanForPX(request,agileServerURL); %>
    84: 
    85:   <div class='container'>
    86:     <div class='panel panel-primary dialog-panel'>
    
    
    Stacktrace:
    	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:568)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:455)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
    

    root cause

    javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class com.agile.api.pc.ServerProperties
    	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:912)
    	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:841)
    	org.apache.jsp.PXinputTemplate_jsp._jspService(PXinputTemplate_jsp.java:282)
    	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:432)
    	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:390)
    	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:334)
    	javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
    	org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
    

    root cause

    • 5322 views
    • 17 answers
    • 0 votes
  • Agile User Asked on March 15, 2016 in Other APIs.

    Thanks antonio.

    1. why is that a problem to run the custom app on the filemanager? 

    2,here is my code. i passed null values because i dont know how to fetch the user password from the url (i see only the user name)  :

    public String getObjectName()
    {
    try{

    AgileSessionFactory ag = AgileSessionFactory.getInstance(null);  
    IAgileSession sess = ag.createSession(null);

    return … //should get some object from the session but failes on the first line,,,

    }

    catch ( APIException ex )
    {
    return (“Failed Getting object name from context ” + ex.getErrorCode()+ex.getRootCause().getMessage()+” ” +System.getProperty(“java.io.tmpdir”) );

    }

    }

    • 5322 views
    • 17 answers
    • 0 votes