Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Admin Console

    Hi,

    I am using SmartGWT 5.0, trying to bring up Admin Console in builtinds sample:

    Here is the code:

    IButton adminButton = new IButton("Admin Console");
    adminButton.addClickHandler(new ClickHandler() {
    public void onClick(ClickEvent event) {
    com.smartgwt.client.util.SC.openDataSourceConsole();
    }
    });

    When I clicked the button, got this error:

    Transport error - HTTP code: 500 for URL:
    http://127.0.0.1:8888/builtinds/tools/adminConsoleOperations.jsp

    Here is the log:

    === 2014-11-19 15:51:20,007 [0-13] WARN LoadISCTag - isc.moduleLoadOrder does not include user-selected modules: [DBConsole] - placing these modules last in the load order.
    === 2014-11-19 15:51:20,007 [0-13] INFO RequestContext - URL: '/builtinds/tools/adminConsole.jsp', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
    === 2014-11-19 15:51:20,007 [0-13] DEBUG ISCKeyedObjectPool - Borrowing object for 'Filesystem'
    === 2014-11-19 15:51:20,007 [0-13] DEBUG PoolableDataSourceFactory - Activated DataSource 21 of type 'Filesystem'
    === 2014-11-19 15:51:20,008 [0-13] DEBUG PoolableDataSourceFactory - Cleared and passivated DataSource 21 of type 'Filesystem'
    [WARN] /builtinds/tools/adminConsoleOperations.jsp
    Compile failed; see the compiler error output for details.
    at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
    at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
    at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451)
    at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439)
    at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:511)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:295)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
    at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
    at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:324)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:843)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:647)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:205)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
    [ERROR] 500 - POST /builtinds/tools/adminConsoleOperations.jsp?isc_rpc=1&isc_v=v10.0p_2014-11-05&isc_xhr=1 (127.0.0.1) 3702 bytes
    Request headers
    Accept: */*
    Accept-Language: en-us
    Referer: http://127.0.0.1:8888/builtinds/tools/adminConsole.jsp
    Content-Type: application/x-www-form-urlencoded; charset=UTF-8
    Accept-Encoding: gzip, deflate
    User-Agent: Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)
    Host: 127.0.0.1:8888
    Content-Length: 1119
    Connection: Keep-Alive
    Cache-Control: no-cache
    Cookie: GLog=%7B%0D%20%20%20%20trackRPC%3Atrue%2C%20%0D%20%20%20%20pageGUID%3A%2203FA0423-0A56-4D15-A053-E2AA9FA0283D%22%2C%20%0D%20%20%20%20priorityDefaults%3A%7B%0D%20%20%20%20%20%20%20%20sgwtInternal%3A1%0D%20%20%20%20%7D%2C%20%0D%20%20%20%20defaultPriority%3A3%2C%20%0D%20%20%20%20left%3A1484%2C%20%0D%20%20%20%20top%3A254%2C%20%0D%20%20%20%20width%3A963%2C%20%0D%20%20%20%20height%3A670%0D%7D; JSESSIONID=rry81bvfacai
    Response headers
    Content-Type: text/html; charset=iso-8859-1
    Content-Length: 3702

    Can you help?

    Thanks!

    #2
    As the error message suggests:

    Compile failed; see the compiler error output for details.
    These are the details needed to troubleshoot.

    Comment


      #3
      Where shall I look into?

      Here is the imports in gwt.xml

      <inherits name='com.google.gwt.user.User'/>
      <inherits name="com.smartgwt.tools.SmartGwtTools"/>
      <inherits name="com.smartgwtee.tools.Tools"/>
      <inherits name="com.smartgwtee.SmartGwtEE"/>
      <inherits name="com.smartgwt.tools.SmartGwtTools" />

      Then here is the code in BuiltInDS.java I added:

      IButton adminButton = new IButton("Admin Console");
      adminButton.addClickHandler(new ClickHandler() {
      public void onClick(ClickEvent event) {
      com.smartgwt.client.util.SC.openDataSourceConsole();
      }
      });


      Then when I run it, got the error. Don't know where to look into.

      Comment


        #4
        Compile failed; see the compiler error output for details.
        So you should look at the compiler error output.

        Comment


          #5
          This seems to be the error when trying to open Admin Console

          === 2014-11-20 13:33:36,947 [l0-4] DEBUG ConfigParser - Matched var name: gwtModuleName
          === 2014-11-20 13:33:36,947 [l0-4] DEBUG ConfigParser - value after substitution: builtinds/sc
          === 2014-11-20 13:33:36,947 [l0-4] DEBUG LoadISCTag - isomorphicURI not specified in tag, defaulting to: ../../builtinds/sc/
          === 2014-11-20 13:33:36,947 [l0-4] WARN LoadISCTag - isc.moduleLoadOrder does not include user-selected modules: [DBConsole] - placing these modules last in the load order.
          === 2014-11-20 13:33:36,948 [l0-4] INFO RequestContext - URL: '/builtinds/tools/adminConsole.jsp', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:36,948 [l0-4] DEBUG ISCKeyedObjectPool - Borrowing object for 'Filesystem'
          === 2014-11-20 13:33:36,979 [l0-4] DEBUG XML - Parsed XML from C:\workspace\built-in-ds\war\builtinds\sc\system\schema\Filesystem.ds.xml: 0ms
          === 2014-11-20 13:33:36,979 [l0-4] DEBUG ISCKeyedObjectPool - Borrowing object for 'DataSource'
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG PoolableDataSourceFactory - Created DataSource 19 of type 'DataSource' and assigned it to thread btpool0-4
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG PoolableDataSourceFactory - Created DataSource 19 of type 'DataSource' in the pooling flow
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG PoolableDataSourceFactory - Activated DataSource 19 of type 'DataSource'
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG ISCKeyedObjectPool - Borrowing object for 'DataSourceField'
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG PoolableDataSourceFactory - Created DataSource 20 of type 'DataSourceField' and assigned it to thread btpool0-4
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG PoolableDataSourceFactory - Created DataSource 20 of type 'DataSourceField' in the pooling flow
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG PoolableDataSourceFactory - Activated DataSource 20 of type 'DataSourceField'
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG ISCKeyedObjectPool - Borrowing object for 'field'
          === 2014-11-20 13:33:36,994 [l0-4] DEBUG PoolableDataSourceFactory - Created DataSource null of type 'field' in the pooling flow
          === 2014-11-20 13:33:37,010 [l0-4] DEBUG PoolableDataSourceFactory - Created DataSource 21 of type 'Filesystem' and assigned it to thread btpool0-4
          === 2014-11-20 13:33:37,010 [l0-4] DEBUG PoolableDataSourceFactory - Created DataSource 21 of type 'Filesystem' in the pooling flow
          === 2014-11-20 13:33:37,010 [l0-4] DEBUG PoolableDataSourceFactory - Activated DataSource 21 of type 'Filesystem'
          === 2014-11-20 13:33:37,010 [l0-4] DEBUG PoolableDataSourceFactory - Cleared and passivated DataSource 21 of type 'Filesystem'
          === 2014-11-20 13:33:37,026 [l0-5] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_Containers.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,026 [l0-1] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_Foundation.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,041 [l0-4] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_Core.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,041 [l0-6] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_Core.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,041 [l0-3] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_DataBinding.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,041 [l0-2] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_Foundation.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,041 [l0-8] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_Grids.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,041 [l0-7] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_Containers.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,041 [l0-9] INFO RequestContext - URL: '/builtinds/sc/system/development/ISC_Forms.js', User-Agent: 'Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; WOW64; Trident/5.0)': MSIE with Accept-Encoding header, ready for compressed JS
          === 2014-11-20 13:33:37,150 [l0-5] ERROR Download - Problem sending static file: C:/workspace/built-in-ds/war/builtinds/sc/system/development/ISC_Containers.js
          org.mortbay.jetty.EofException
          at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
          at org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:566)
          at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:911)
          at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:646)
          at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:577)
          at com.isomorphic.util.IOUtil.copyStreams(IOUtil.java:109)
          at com.isomorphic.util.IOUtil.copyStreams(IOUtil.java:84)
          at com.isomorphic.servlet.ServletTools.sendStaticFile(ServletTools.java:1615)
          at com.isomorphic.servlet.FileDownload.doGet(FileDownload.java:191)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
          at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:156)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
          at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
          at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
          at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
          at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
          at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
          at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
          at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
          at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
          at org.mortbay.jetty.Server.handle(Server.java:324)
          at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
          at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
          at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
          at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
          at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
          at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
          at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
          Caused by: java.io.IOException: An established connection was aborted by the software in your host machine
          at sun.nio.ch.SocketDispatcher.write0(Native Method)
          at sun.nio.ch.SocketDispatcher.write(Unknown Source)
          at sun.nio.ch.IOUtil.writeFromNativeBuffer(Unknown Source)
          at sun.nio.ch.IOUtil.write(Unknown Source)
          at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
          at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:160)
          at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:207)
          at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:693)
          ... 28 more
          === 2014-11-20 13:33:37,166 [l0-1] ERROR Download - Problem sending static file: C:/workspace/built-in-ds/war/builtinds/sc/system/development/ISC_Foundation.js
          org.mortbay.jetty.EofException
          at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760)
          at org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:566)
          at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:911)
          at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:646)
          at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:577)
          at com.isomorphic.util.IOUtil.copyStreams(IOUtil.java:109)
          at com.isomorphic.util.IOUtil.copyStreams(IOUtil.java:84)
          at com.isomorphic.servlet.ServletTools.sendStaticFile(ServletTools.java:1615)
          at com.isomorphic.servlet.FileDownload.doGet(FileDownload.java:191)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
          at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:156)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
          at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
          at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
          at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
          at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
          at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729)
          at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
          at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
          at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49)
          at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
          at org.mortbay.jetty.Server.handle(Server.java:324)
          at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505)
          at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829)
          at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513)
          at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211)
          at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380)
          at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395)
          at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488)
          Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host
          at sun.nio.ch.SocketDispatcher.writev0(Native Method)
          at sun.nio.ch.SocketDispatcher.writev(Unknown Source)
          at sun.nio.ch.IOUtil.write(Unknown Source)
          at sun.nio.ch.SocketChannelImpl.write(Unknown Source)
          at java.nio.channels.SocketChannel.write(Unknown Source)
          at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:223)
          at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:197)
          at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:682)
          ... 28 more

          Comment


            #6
            Originally posted by Isomorphic View Post
            So you should look at the compiler error output.
            Hi,

            Can you help me on this? The only change I made is

            Here is the imports in gwt.xml

            <inherits name='com.google.gwt.user.User'/>
            <inherits name="com.smartgwt.tools.SmartGwtTools"/>
            <inherits name="com.smartgwtee.tools.Tools"/>
            <inherits name="com.smartgwtee.SmartGwtEE"/>
            <inherits name="com.smartgwt.tools.SmartGwtTools" />

            Then here is the code in BuiltInDS.java I added:

            IButton adminButton = new IButton("Admin Console");
            adminButton.addClickHandler(new ClickHandler() {
            public void onClick(ClickEvent event) {
            com.smartgwt.client.util.SC.openDataSourceConsole();
            }
            });

            I look around but don't see any compile errors, it only shows the error when trying to open Admin Console by clicking the button.

            Thanks.

            Comment


              #7
              The "Problem sending static file" is unrelated and just means that at some point you killed a browser instance or tab that was in the middle of loading a page (not necessarily even the Admin Console).

              As far as the real problem, again just look at what the log is already telling you - it's trying to compile a .jsp we ship with our product, which should always work:

              Code:
              WARN /builtinds/tools/adminConsoleOperations.jsp
              Compile failed; see the compiler error output for details.
              Your changes to BuiltInDS are not relevant. You need to look at the compiler output log to figure out what's wrong.

              Comment


                #8
                Originally posted by Isomorphic View Post
                The "Problem sending static file" is unrelated and just means that at some point you killed a browser instance or tab that was in the middle of loading a page (not necessarily even the Admin Console).

                As far as the real problem, again just look at what the log is already telling you - it's trying to compile a .jsp we ship with our product, which should always work:

                Code:
                WARN /builtinds/tools/adminConsoleOperations.jsp
                Compile failed; see the compiler error output for details.
                Your changes to BuiltInDS are not relevant. You need to look at the compiler output log to figure out what's wrong.

                But I didn't change anything from /builtinds/tools/adminConsoleOperations.jsp

                Looks like it got error when trying to compile this jsp

                I can run the application without any issue. I can bring up developer console without any issue. Just not Admin console.


                BTW, this is SmartGWT 5.0 Pro. JRE 6.

                Comment


                  #9
                  Yes. We know all of this.

                  Your system or project is misconfigured in some way that causes adminConsoleOperations.jsp to fail to compile, even though you have not changed it.

                  So, seriously - go look at the compiler log.

                  Comment


                    #10
                    Originally posted by Isomorphic View Post
                    Yes. We know all of this.

                    Your system or project is misconfigured in some way that causes adminConsoleOperations.jsp to fail to compile, even though you have not changed it.

                    So, seriously - go look at the compiler log.
                    I am new to this, so please guide me through the issue.
                    EXACTLY where shall I look for this compiler error?

                    Here is what I did.

                    I loaded buildinds project in Eclipse, setup SGWTPRO_HOME in Eclipse, then build project, GWT Compile project, and the application runs. I can bring up developer conosle as well.

                    Then I added this button as described in the guild to bring up Admin Console. Run the applicaiton, when clicking the button got this error. I don't see any compiler error other than this run time error. Please let me where EXACTLY to check the compiler error.

                    Also I am attching adminConsoleOperations.jsp from the build here, could you check if it is correct?


                    <%@ page import="java.io.*" %>
                    <%@ page import="java.util.*" %>
                    <%@ page import="java.lang.reflect.*" %>

                    <%@ page import="javax.servlet.*" %>
                    <%@ page import="javax.servlet.http.*" %>

                    <%@ page import="com.isomorphic.base.*" %>
                    <%@ page import="com.isomorphic.util.*" %>
                    <%@ page import="com.isomorphic.io.*" %>
                    <%@ page import="com.isomorphic.log.*" %>
                    <%@ page import="com.isomorphic.servlet.*" %>
                    <%@ page import="com.isomorphic.xml.*" %>
                    <%@ page import="com.isomorphic.store.*" %>
                    <%@ page import="com.isomorphic.application.*" %>
                    <%@ page import="com.isomorphic.rpc.*" %>
                    <%@ page import="com.isomorphic.js.*" %>
                    <%@ page import="com.isomorphic.datasource.*" %>


                    <%
                    if (Boolean.valueOf(request.getParameter("checkPresent"))) {
                    out.print("window.adminConsolePresent=true;");
                    return;
                    }

                    RPCManager rpc;
                    try {
                    rpc = new RPCManager(request, response, out);
                    // Enable access to FilesystemDataSource
                    rpc.enableAllDataSources();
                    } catch (ClientMustResubmitException e) {
                    return;
                    }

                    for(Iterator i = rpc.getRequests().iterator(); i.hasNext();) {
                    Object req = i.next();
                    try {
                    if(req instanceof RPCRequest) {
                    RPCRequest newReq = (RPCRequest)req;
                    // See reference documentation on "Tools Deployment" for more information on tool security.
                    //
                    // To limit access to an explicit set of BuiltinRPC methods, uncomment the following lines:
                    // String[] allowedBuiltIns = {"getDefinedDatabases", "getDefinedDataSources", "importDataSources",
                    // "downloadClientContent", "setDefaultDB", "testDB", "saveDBConfig", "discoverJNDIDatabases"};
                    // String appID = newReq.getAppID();
                    // if ("isc_builtin".equals(appID)) {
                    // String methodName = newReq.getMethodName();
                    // if (!Arrays.asList(allowedBuiltIns).contains(methodName)) {
                    // throw new Exception("Attempt to execte RPC DMI BuiltIn '" + methodName
                    // +"' DENIED.");
                    // }
                    // }

                    RPCResponse newResp;
                    try {
                    // To limit access to BuiltIn methods defined in server.properties, replace
                    // the line below with:
                    // newResp = RPCDMI.execute(newReq, rpc, newReq.context);
                    newResp = RPCDMI.execute(newReq, rpc, newReq.context, true);
                    if (newResp == null) newResp = newReq.execute();
                    } catch (Exception e) {
                    newResp = new RPCResponse();
                    newResp.setStatus(RPCResponse.STATUS_FAILURE);
                    newResp.setData("An error occurred when executing this operation on the server.\n"+
                    "Exception details are as follows:\n\n" + e);
                    }

                    rpc.send(newReq, newResp);
                    } else {
                    DSRequest newReq = (DSRequest)req;
                    try {
                    rpc.send(newReq, newReq.execute());
                    } catch (Exception e) {
                    rpc.sendFailure(newReq, e);
                    }
                    }
                    } catch (Throwable e) {
                    rpc.sendFailure(req, e);
                    }

                    } // for(requests)

                    %>

                    <%
                    // This file allows the execution of "Builtin RPCs" which are unsafe in
                    // environments where users are not trusted. If Visual Builder is deployed in
                    // production, this file should be protected by an authentication system and/or
                    // restricted to adminstrator users.
                    %>

                    Comment


                      #11
                      This is the first time you've mentioned that you're using Eclipse.

                      Depending on the version of Eclipse, compilation errors are may be shown in the "Problems" area, or the "Console".

                      Comment


                        #12
                        Originally posted by Isomorphic View Post
                        This is the first time you've mentioned that you're using Eclipse.

                        Depending on the version of Eclipse, compilation errors are may be shown in the "Problems" area, or the "Console".
                        I am using Eclipse Juno.
                        No error from "Problem" tab, the error message I pasted here is from Console tab.

                        Thanks.

                        Comment


                          #13
                          "Problems" not "Problem".

                          If your unable to find compiler errors in your version of Eclipse, we suggest you Google how to do it - basic Eclipse usage issues are not good topics for this forum.

                          Comment


                            #14
                            Originally posted by Isomorphic View Post
                            "Problems" not "Problem".

                            If your unable to find compiler errors in your version of Eclipse, we suggest you Google how to do it - basic Eclipse usage issues are not good topics for this forum.
                            Sorry for the type. It's "Problems".

                            Comment


                              #15
                              Originally posted by jevonsyu View Post
                              Sorry for the type. It's "Problems".
                              sorry for the typo.

                              Comment

                              Working...
                              X