Public connection context class

Is there any way to force sqlj to generate a public
connection context class ? Right now, it always generates
connection context classes which are only accessible within
the current package, not outside of the package.
Regards,
Francois Staes.

Is there any way to force sqlj to generate a public
connection context class ? Right now, it always generates
connection context classes which are only accessible within
the current package, not outside of the package.
Regards,
Francois Staes.

Similar Messages

  • SQLJ Connection Context

    Hi,
    i was trying to create a SQLJ connection context following the procedure given in the following link.
    https://help.sap.com/saphelp_nw04/helpdata/en/70/a19cc472e72c4481172909938578fc/frameset.htm
    But i am getting  error when i am inserting this sqlj statement inside the class Ctx
    public class Ctx
         #sql public context Ctx with (dataSource = "java:comp/env/TMP_PERSISTENCE_EXAMPLE");//here i am getting this error
    Error               
    SQLJ: The ConnectionContext class "Ctx" must not be declared as an inner class of the class "temp.persistence.gettingstarted.dao.Ctx". It may be declared as a static inner class.     Ctx.sqlj     OpenSQLWeb/source/temp/persistence/gettingstarted/dao     
    could u tell me how i can resolve this.

    Hi,
      i think you are refering to the sqlj file
      with reference to the example its ctx.sqlj
      The contents of the file are
    <-- Start -->
    package temp.persistence.gettingstarted.dao;
    #sql public context Ctx with (dataSource = "java:comp/env/TMP_PERSISTENCE_EXAMPLE");
    <-- End -->
    its not a class file.
    If you have installed JDT, you will have the complete working example in 'C:\Program Files\SAP\JDT\eclipse\examples\J2EE_GettingStartedOpenSQL.zip'
    Hope that helps.
    Regards,
    S.Divakar

  • Can't create a public connection

    I have searched the forums and none of the solutions worked.
    When I try to create a discoverer connection through AS control, I get this error:
    An error occurred:oracle.disco.oem.configuration.DiscoConfigurationException: Failed to create new Connection. ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "ORASSO.WWSSO_API_PRIVATE", line 244 ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "ORASSO.WWSSO_UTL", line 546 ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 1
    I've been googling it (and searching this forum) for the past 2 days and can't get it to work. Help anyone? Where should I be looking at?
    I see in the error something about SSO, checked that component and it's up (like all the others) but its start time is N/A.
    Any help is appreciated. I must create a public connection in discoverer in order to put worksheets into portal!!

    Exception initializing 'oracle.dbtools.raptor.MonitorJDBCAddin' in extension 'Oracle SQL Developer': oracle.classloader.
    util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.jdbc.OracleDriverThe Oracle driver is not on the classpath.

  • Rookie Problem:Connection Pool Class not found

    Hi All,
    I'm new to java (3 days now!) and I was writing some sample JSP code to learn about Connection Pooling using Sun Server 8... My goal here is to hopefully learn how to use Connection pooling so I can develop a DAO class that uses good design patterens. It appears that that my J2EE server is not finding my db providers connection pooling class. If this is my problem where should I add this reference? I was looking at the Admin Console and did not see a way to add it there?
    Someone please send me down the right path :)
    I think my error is...."Wrong class name or classpath for Datasource Object : {0}
    java.lang.ClassNotFoundException: com.ibm.db2.jdbc.DB2ConnectionPoolDataSource" (see below for trace)
    Thanks in advance for the help and tips
    John
    My test JSP source code......
    <%/* JMM This page was created on 9/1/2004
    The purpose of this page is to test and learn basic JSP Connection Snytax and flow
    control */%>
    <%/* **********Begin JSP Page Directives********** */%>
    <%@page contentType="text/html"%>
    <%@page pageEncoding="UTF-8"%>
    <%@page import="javax.sql.*"%>
    <%@page import="java.sql.*"%>
    <%@page import="javax.naming.*"%>
    <%@page import="java.util.Hashtable"%>
    <%/* ********** End JSP Page Directive ********** */%>
    <%! String pageName = "Johns Test JSP Page";
    String jndi_ereporting_nm = "jdbc/F0654TE1";
    %>
    <html>
    <head><title><%=pageName%></title></head>
    <body>
    <%-- <jsp:useBean id="beanInstanceName" scope="session" class="beanPackage.BeanClassName" /> --%>
    <%-- <jsp:getProperty name="beanInstanceName" property="propertyName" /> --%>
    Importing the follwoing Libs<br>
    <br>import javax.sql.*;
    <br>import java.sql.*;
    <br>import javax.naming.*;
    <br>import java.util.Hashtable;
    <br>
    <br>Attempting to connnect to F0654TE1 using JNDI Lookup....
    <br>
    <%
              DataSource ds = null;
              Connection con = null;
              Context ctx = null;
              Hashtable env = null;
              long nStartTime, nStopTime, nElapsedTime;
              // Set up environment for creating InitialContext object
              //humm.. whats stored in here ....what are these used for?
    out.println("Context.INITIAL_CONTEXT_FACTORY=" + Context.INITIAL_CONTEXT_FACTORY + "<br>");
              out.println("Context.PROVIDER_URL=" + Context.PROVIDER_URL + "<br>");
              InitialContext ic = new InitialContext();
              ds = (DataSource) ic.lookup(jndi_ereporting_nm);
         out.println("open connection....<br>");
              con = ds.getConnection();
         out.println("connection has been opened!!!....<br>");
              con.close();
         out.println("connection has been closed!!!....<br>");     
    %>
    <br>
    <br>Finished attempting to connnect to F0654TE1 using JNDI....
    </body>
    </html>
    Errror Log file.....
    [#|2004-09-02T10:08:42.951-0400|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR5099 : Wrong class name or classpath for Datasource Object : {0}
    java.lang.ClassNotFoundException: com.ibm.db2.jdbc.DB2ConnectionPoolDataSource
         at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:141)
         at com.sun.gjc.common.DataSourceObjectBuilder.getDataSourceObject(DataSourceObjectBuilder.java:198)
         at com.sun.gjc.common.DataSourceObjectBuilder.constructDataSourceObject(DataSourceObjectBuilder.java:65)
         at com.sun.gjc.spi.DSManagedConnectionFactory.createManagedConnection(DSManagedConnectionFactory.java:70)
         at com.sun.enterprise.resource.LocalTxConnectorAllocator.createResource(LocalTxConnectorAllocator.java:63)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.createSteadyResources(IASNonSharedResourcePool.java:501)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.initPool(IASNonSharedResourcePool.java:176)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.internalGetResource(IASNonSharedResourcePool.java:314)
         at com.sun.enterprise.resource.IASNonSharedResourcePool.getResource(IASNonSharedResourcePool.java:260)
         at com.sun.enterprise.resource.PoolManagerImpl.getResourceFromPool(PoolManagerImpl.java:244)
         at com.sun.enterprise.resource.PoolManagerImpl.getResource(PoolManagerImpl.java:137)
         at com.sun.enterprise.connectors.ConnectionManagerImpl.internalGetConnection(ConnectionManagerImpl.java:194)
         at com.sun.enterprise.connectors.ConnectionManagerImpl.allocateConnection(ConnectionManagerImpl.java:94)
         at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:68)
         at org.apache.jsp.jsp.jndi_005fdb_005ftest_jsp._jspService(jndi_005fdb_005ftest_jsp.java:102)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
         at java.lang.Thread.run(Thread.java:534)
    |#]
    [#|2004-09-02T10:08:42.961-0400|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR5038:Unexpected exception while creating resource|#]
    [#|2004-09-02T10:08:42.961-0400|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR5117 : Failed to obtain/create connection. Reason : Class name is wrong or classpath is not set for : com.ibm.db2.jdbc.DB2ConnectionPoolDataSource|#]
    [#|2004-09-02T10:08:42.961-0400|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.resourceadapter|_ThreadID=11;|RAR5114 : Error allocating connection : [Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.ibm.db2.jdbc.DB2ConnectionPoolDataSource]|#]
    [#|2004-09-02T10:08:43.131-0400|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=11;|StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
    java.sql.SQLException: Error in allocating a connection. Cause: Class name is wrong or classpath is not set for : com.ibm.db2.jdbc.DB2ConnectionPoolDataSource
         at com.sun.gjc.spi.DataSource.getConnection(DataSource.java:72)
         at org.apache.jsp.jsp.jndi_005fdb_005ftest_jsp._jspService(jndi_005fdb_005ftest_jsp.java:102)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:102)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:282)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:263)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:210)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:246)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:236)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:145)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:141)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:214)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:168)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:133)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:539)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.webservice.EjbWebServiceValve.invoke(EjbWebServiceValve.java:134)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.security.web.SingleSignOn.invoke(SingleSignOn.java:254)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at com.sun.enterprise.web.VirtualServerValve.invoke(VirtualServerValve.java:209)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:114)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:109)
         at com.sun.enterprise.web.VirtualServerMappingValve.invoke(VirtualServerMappingValve.java:166)
         at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:107)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:522)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:936)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:165)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:683)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:604)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:542)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:647)
         at java.lang.Thread.run(Thread.java:534)
    |#]

    Sorry this is not the way i usually handle db connectivity, i think you need to set up a name in your server.xml file (this is for tomcat based applicatin servers) which is then referenced in your jsp file. I have had a quick google and found this.
    http://manual.evolutionhosting.com/evochunk/ch19s04.html
    You menttioned that you wanted to devolp really good design patterns, how big is your project going to be, if it is going to be a large project then you may want to look at
    http://www.hibernate.org

  • Null connection context using java wrapped wwsec_api

    How can I specify my OID connection information when using the PL/SQL wwsec_api with java wrappers?
    I am getting a null connection context, and I assume that it is looking for the directory connection information (OID host,port,user,password).
    Is this somehow specified in the .properties file?
    The java was created with Jpublisher per the Jdeveloper help instructions. Following is a code snippet using the java classes created.
    String userName = "username";
    WwsecApi anWwsecApi = new WwsecApi();
    WwsecApiRowtypeSql3 userInfo = (WwsecApiRowtypeSql3)anWwsecApi.personInfo(userName);
    if (userInfo.getEmpno() != null)
    out.print("Employee Number" + userInfo.getEmpno());
    else
    out.print("null");

    -- Set the session context for a lightweight user as follows in your java code before executing the API call.
    -- portal.wwctx_api.set_context(p_user_name => 'portal',p_password => 'password1',p_company => 'simplerewards');
    portal.wwctx_api_private.set_context (p_user_name => 'portal');

  • Null connection context with java wrapped wwsec_api

    How can I specify my OID connection information when using the PL/SQL wwsec_api with java wrappers?
    I am getting a null connection context, and I assume that it is looking for the directory connection information (OID host,port,user,password).
    Is this somehow specified in the .properties file?
    The java was created with Jpublisher per the Jdeveloper help instructions. Following is a code snippet using the java classes created.
    String userName = "username";
    WwsecApi anWwsecApi = new WwsecApi();
    WwsecApiRowtypeSql3 userInfo = (WwsecApiRowtypeSql3)anWwsecApi.personInfo(userName);
    if (userInfo.getEmpno() != null)
    out.print("Employee Number" + userInfo.getEmpno());
    else
    out.print("null");

    -- Set the session context for a lightweight user as follows in your java code before executing the API call.
    -- portal.wwctx_api.set_context(p_user_name => 'portal',p_password => 'password1',p_company => 'simplerewards');
    portal.wwctx_api_private.set_context (p_user_name => 'portal');

  • Java stored procedures connection context

    In my Oracle database there are two java stored procedures:
    A java stored procedure P1 having
    Connection conn1 = DriverManager.getConnection("jdbc:default:connection")
    and
    a java stored procedure P2 having
    Connection conn2 = DriverManager.getConnection("jdbc:default:connection")
    P1 calls P2 using conn1.CallableStatement.
    Here is the question: does P2 inherit the connection
    context conn1 (so that actualy conn2 = conn1) or P2's transactional
    scope is separate from P1's one?
    Thanks,
    -Eugene

    AFAIK, when you run Java in the database, for local SQL data access, there is only one default connection per session, P1 and P2 should share the same transaction context.
    Kuassi

  • Discoverer URL - Hide password without having to use public connection

    Hi,
    I would like to call Discoverer Viewer without having to expose the schema password and without having to use public connections. Is this possible? Disco Viewer is called directly from my application, with custom authorization and authentication. I do not want to expose reports to the public by creating public connections.
    TIA.
    Tamas

    Hi,
    If you use an HTTP Post in your application to pass the viewer URL to the Discoverer server then you can supply the password as a hidden input that will not be visible to the users.
    Rod West

  • Error: No public or protected classes found to document.

    Hello,
    I am currently going spare trying to get javadoc to document the code I have written. I have checked the Java code given the information on the website and the comments are correct and complete for all methods. The command line I am using is:
    c:\j2sdk1.4.1_01\bin\javadoc.exe -d docs/ Population.javaAnd the makefile (bat file) is in the directory with the population.java file. The command line works with other files in the same directory, programmed and commented to the same standard. The error I get is:
    C:\Documents and Settings\ril\MYDOCU~1\PROGRA~1\JCreator\ILCSFrame>c:\j2sdk1.4.1_01\bin\javadoc.exe -d docs/ Population.java
    Loading source file ILCSFrame.java...
    Constructing Javadoc information...
    Standard Doclet version 1.4.1
    Generating docs/\constant-values.html...
    javadoc: No public or protected classes found to document.
    1 errorI have tried checking the documentation with the doccheck doclet with the following command line:
    c:\j2sdk1.4.1_01\bin\javadoc.exe -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath C:\j2sdk1.4.1_01\utils\doccheck1.2b1\lib Population.javaBut it throws the following error:
    C:\Documents and Settings\ril\MYDOCU~1\PROGRA~1\JCreator\ILCSFrame>c:\j2sdk1.4.1
    _01\bin\javadoc.exe -doclet com.sun.tools.doclets.doccheck.DocCheck -docletpath
    C:\j2sdk1.4.1_01\utils\doccheck1.2b1\lib\doccheck.jar Population.java
    Loading source file Population.java...
    Constructing Javadoc information...
    javadoc: In doclet class com.sun.tools.doclets.doccheck.DocCheck,  method start
    has thrown an exception java.lang.reflect.InvocationTargetException
    java.lang.NoSuchMethodError: com.sun.tools.doclets.HtmlWriter.<init>(Ljava/lang/
    String;Ljava/lang/String;)V
            at com.sun.tools.doclets.doccheck.HtmlWriterExt.<init>(HtmlWriterExt.jav
    a:16)
            at com.sun.tools.doclets.doccheck.DocCheck.makeWriter(DocCheck.java:1407
            at com.sun.tools.doclets.doccheck.DocCheck.printStatisticsPage(DocCheck.
    java:456)
            at com.sun.tools.doclets.doccheck.DocCheck.printErrorPages(DocCheck.java
    :433)
            at com.sun.tools.doclets.doccheck.DocCheck.startGeneration(DocCheck.java
    :364)
            at com.sun.tools.doclets.doccheck.DocCheck.start(DocCheck.java:337)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:324)
            at com.sun.tools.javadoc.DocletInvoker.invoke(DocletInvoker.java:193)
            at com.sun.tools.javadoc.DocletInvoker.start(DocletInvoker.java:92)
            at com.sun.tools.javadoc.Start.parseAndExecute(Start.java:301)
            at com.sun.tools.javadoc.Start.begin(Start.java:120)
            at com.sun.tools.javadoc.Main.execute(Main.java:41)
            at com.sun.tools.javadoc.Main.main(Main.java:31)
    1 errorIf I try running doccheck (without doclet) on the whole directory (containing 6 java files), it will only pick up 3 of them (one including the SwingWorker java file). Any help greatly appreciated.

    "No public or protected classes found to document" means
    that the class Population.java is not in the current directory.
    Without trying to insult your programming ability, these things
    come to mind:
    - Omit the slash at the end of "-d docs/" This causes the
    message "Generating docs/\constant-values.html.
    I'm not sure why the bat file uses a forward slash on
    a Windows system.
    - Make sure you cd to the directory containing the bat file before
    running it.
    - Java is case-sensitive (I notice you spelled the filename
    both uppercase and lowercase.) Make sure the file name,
    the class name in the class, and the class name in the bat
    file have the same case.
    As far as doccheck not running, we have not yet released the
    version that runs on 1.4.x. Please write to "doccheck-feedback"
    with "@sun.com" for more info. (I've broken up the email address
    so text crawlers won't get it.)
    -Doug Kramer
    Javadoc team

  • Syntax error in context class

    Hi Experts,
    I have created a zclass ZL_BP_DATA_MARKETINGATTR5_CN00 keeping class CL_BP_DATA_MARKETINGATTR5_CN00 as super. Now when I am tryng to activate it, I am getting an syntax error "Type LCL_VALUEHELP_FOR_ATTR_SET is unknown". When I double click on it, it takes me to standard class CL_BP_DATA_MARKETINGATTR5_CN00.
    I have copied the private variables and all but still I am getting it.
    I have enhanced BP Data Marketting Attribute Search view in bsp component BSP_WD_CMPWD.
    Except the context class all other classes are getting converted into Z class. I want to redefine the get_v_attr_desc attribute method of the context class, can anybody tell me how to get the zclass instead of the standard context class in the basp component.
    Regards,
    Sangeeta.

    Hi ,
    I hope your issue is in making a context Class into Zclass..
    Go to the Corresponding Context Node .
    Right Click on the Context Node .
    Click Regenerate GET_I_Methods .
    Go back and Come again to the screen .
    you can find that the Context class is redefined.
    Regards,
    Sijo

  • Own connection handling class

    hi all,
    In the jdbcpds.conf file, it is mentioned that we can write our own connection handling class which extends the provided JDBCConnectionHandling class
    What i tried after looking at the methods of connection handler is something like this
    class myJDBCConnectionHandling extends JDBCConnectionHandling
    protected void parseConnectInfo(String s, JDBCConnectDialog jdbcconnectdialog, Plugin plugin)
    throws Exception
    String dbUrl = null;
    dbUrl = "<user>/<pwd>@<remotedatabase>";
    super.parseConnectInfo(dbUrl, jdbcconnectdialog, plugin);
    Is there anything else that needs to be done
    because this is throwing an error
    JDBCPDS-62008 : Failed to connect to the datasource null
    Invalid arguments in the call
    Can anybody correct me
    Of course my main purpose of trying this is to have something like a logical name given to the P_JDBCPDS parameter which can be mapped to the actual database url using JNDI lookup.
    what i was expecting was, the string when passed to the connection handler, i can add the code to lookup the name in my own connection handler and leave the rest to the provided JDBCConnectionHandling class
    Am i going in right direction or not
    Or if anybody has any other solution you are welcome to suggest
    Any sort of help is greatly appreciated
    Thanks in advance
    Ramakrishna

    hi,
    One more thing i forgot to mention was that i am not too concerned about this lookup in reports builder
    I need when this is running on the server
    thanks & regards
    ramakrishna

  • Public connection in discoverer 11g

    hi,
    how can I add public connection in discoverer 11g?
    what does I have to install for it?
    thank ahead,

    Hi,
    For a Discoverer 11g standalone installation, you will need to run the Repository Creation Utility (RCU) and associate the middle-tier with the connection management schemas in the repository.
    You may want to refer to My Oracle Support document "How To Associate A Discoverer 11g (11.1.1.x) Standalone Installation With The Connection Management Schemas (Doc ID 1155198.1)"
    Regards,
    Steve.

  • Help with public connections

    I have searched the forums and none of the solutions worked.
    When I try to create a discoverer connection through AS control, I get this error:
    An error occurred:oracle.disco.oem.configuration.DiscoConfigurationException: Failed to create new Connection. ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "ORASSO.WWSSO_API_PRIVATE", line 244 ORA-06510: PL/SQL: unhandled user-defined exception ORA-06512: at "ORASSO.WWSSO_UTL", line 546 ORA-06502: PL/SQL: numeric or value error ORA-06512: at line 1
    I've been googling it (and searching this forum) for the past 3 days and can't get it to work. Help anyone? Where should I be looking at?
    I see in the error something about SSO, checked that component and it's up (like all the others) but its start time is N/A.
    Any help is appreciated. I must create a public connection in order to put worksheets into portal!!

    AMN wrote:
    1. Is it the first public connection you are trying to make on this DB?Yes, it is.
    Ensure that an EUL is properly created and is accessible; also ensure that the database where the EUL is created is accessible from BI instance. (this means ensure the tnsnames in BI instance has an entry for it). also the user can logon successfully into the EUL without problem and have appropriate privileges;
    - use the Discoverer connection method for login;All of that is set/done properly. I can access the EUL through Discoverer Administrator and can connect to BI Discoverer directly and access the worksheet created before. I'm guessing there is nothing wrong with the EUL itself, as it is accessible.
    2. your problem though looks more on the user side. however, the root error is numeric or value error somewhere. can you share some specific details on what you are entering to create the public connection?AS for the Connection Name and Description, the login method is Oracle BI Discoverer.
    As for the Database Account Details, the EUL, username, password and database are the same I enter to connect to BI Discoverer and Disc. Administrator:
    * End User Layer: umhgsa_eul     
    * User Name: umhgsa_eul          
    * Database: intcare
    3. have you tried creating the connection through discoverer viewer? or to connect directly?I have tried through Discoverer Viewer and Discoverer EM. I can only connect directly and everything works fine since there. My huge problem is that I really need to create a public connection or else I can't use the workbooks on the portal! Is there any other way around?
    Thanks for your recommendations, AMN :)

  • Why no 'Public connections' link is displayed?

    Hi, I meet the problem with Discover(with oracle10g 10.1.2) : according to "Discoverer configuration B13918_02.pdf", Section 4.6, we could create "public connection" via OAS manage page,
    But there is no hyperlink "public connections" , where I can found it ? but the above document show the following step , and it should have the hyperlink to that, but I can't found it ?
    . To create a public connection:
    1. Display Application Server Control (for more information, see Section 5.1.2, "How
    to start Application Server Control and display the System Components page").
    2. Display the Application Server Control Discoverer Home page (for more
    information, see Section 5.1.3, "How to display the Application Server Control
    Discoverer Home page").
    3. Display the Administration tab.
    4. Select the Public Connections link to display the Discoverer Public Connections
    area.(note : I can't found link at this step)
    Somebody can help me?

    Yes.   And we forwarded to one email address.  She sent it to 5 clients email addresses to complete.
    3 of them were able to complete this with no problem.
    3 of them could not …it said   link is no longer active.
    Would it be because I purchased the upgrade last night?
    Shelly Pentico
    Stress Relieving, flight booking, advice giving, vacation planning, Problem Solving Travel Agent
    Travel Simplified
    [email protected]<mailto:[email protected]>
    901 1st Ave
    Perry, IA 50220
    515-465-3465
    Travel Simplified
    www.travelsimplified.net<http://www.travelsimplified.net/>
    https://www.facebook.com/TravelSimplified?ref=hl

  • On discoverer portlets and using a public connection

    I need a quick help please, I've asked our DBA to create a new PUBLIC connection (discoverer connection which the DBA created using the IAS admin).
    When I use this new connection, my worksheet can't be publish because of the following error. I tried to google on it and search in the forums but nothing comes back. Is there something I should ask the DBA to setup for this public connection?
    This is the error:
    An error occurred retrieving the connection details. java.rmi.RemoteException: oracle.discoiv.connections.ConnectionStoreException: deferred connection password missing; nested exception is: oracle.discoiv.beans.ConnectionStoreException: oracle.discoiv.connections.ConnectionStoreExcep

    Hello ,
    On Discoverer 10.1.2 there are no restrictions on password field for PUBLIC connections, this mean that the connection can be also created empty password field. Your exception report the following cause "connection password missing". So, I assume that if the PUBLIC connection is created correctly and the password is provided, you should be able to connect without any exceptions.
    On the other hands, if the password is not provided during the PUBLIC connection creation, you shouldn't get an exception but you should be prompted to enter the password.
    By the way, this is not a bug, I guess this is more an issue in your environment, which probably you could be able to workaround to re-associating the Middle Tier with the Infrastructure :
    http://download-west.oracle.com/docs/html/B13918_03/assoc.htm#sthref114
    Best Regards,
    Gianluca

Maybe you are looking for

  • Adding to a string

    hi is there a function in java that lets you add a certain number of characters to a string like string.add( number of occureences, character to add) eg string = "abc" string.add(5,'d') then the string would equal "abcddddd" is there anyway to do thi

  • Elements10 install - rolling back

    I have downloades Elements10, and tried to install on 3 different Windows XP (32bit) machines. But i get the same resault. Installation rolls back. The troubleshooting document says: •PROBLEM: Photoshop Elements 10 installation rolls back after some

  • Files Missing When Printing, i.e.x2utilkd.dll (Xerox)

    We are seeing an issue pop up and it is occuring more frequently of late.  We have Windows Server 2008 R2 print servers, Windows 7 32 bit clients and Xerox printers.  A user will call with a problem either (1) printing from Office and it prints out s

  • Deploying BPEL process in  web application

    How can I call/invoke a BPEL process in jspx web applications? Thanks in advance, Ahmad Esbita

  • HT4061 i send app to my friend he dont find the app

    my friend is from guatemala i send the gift  he dont find the app