ClassNotFoundException while instantiating ReportClientDocument

We have a very simple requirement to integrate CR within our web application. Our server side code is based on the Java platform (Struts/Spring/Hibernate). As a first iteration we want to simply use a pre-generated RPT file (itu2019s not even dependent on any DB right now) to render a report in a HTML page. 
As of now we are just using an action class that creates a ReportClientDocument object, opens the RPT file, stores the object as a request attribute and forwards it to a JSP page for rendering. Much of the code is really a cut-n-paste job from the sample codes in the dev guide documentation. Below is the crux of the action class:
      final String REPORT_NAME = "/info/ADTestReport1.rpt";
      public ActionForward execute(ActionMapping pMapping,
                                                ActionForm pForm,
                                                HttpServletRequest pRequest,
                                                HttpServletResponse pResponse) throws ReportSDKException{
            ReportClientDocument rcd = new ReportClientDocument();
            //rcd.setReportAppServer(ReportClientDocument.inprocConnectionString);
            rcd.open(REPORT_NAME, 0);
            pRequest.setAttribute("ReportSource", rcd.getReportSource());
            return pMapping.findForward("success");
On successful execution, as is obvious from the above code, it forwards the request to a logical mapping called u201Csuccessu201D that points to the view component a JSP file. The JSP file is an exact copy of the sample code provided in dev guide except for the fact that instead of accessing the forwarded source object from session object we are accessing it from request object.
<%@ page contentType="text/html; charset=utf-8"
         import="com.crystaldecisions.report.web.viewer.CrystalImageCleaner,
                 com.crystaldecisions.report.web.viewer.CrystalReportViewer,
                 com.crystaldecisions.report.web.viewer.CrPrintMode"
%><%
Object reportSource;
CrystalReportViewer crystalReportViewer;
Retrieve ReportSource from HTTP Session and pass to CrystalReportViewer.
//reportSource = session.getAttribute("ReportSource");
reportSource = request.getAttribute("ReportSource");
crystalReportViewer = new CrystalReportViewer();
crystalReportViewer.setOwnPage(true);
crystalReportViewer.setPrintMode(CrPrintMode.ACTIVEX);
crystalReportViewer.setReportSource(reportSource);
crystalReportViewer.processHttpRequest(request, response, getServletContext(), null);
%><%!
Start image clieanup thread on JSP load.
Scan temp folder every 10 minutes to delete viewer-generated images 20 minutes or older.
public void jspInit() {
    CrystalImageCleaner.start(getServletContext(),  10 * (60 * 1000), 20 * (60 * 1000));
Stop the image cleanup thread on JSP unload.
public void jspDestroy() {
    CrystalImageCleaner.stop(getServletContext());
%>
The above is essentially the whole solution that we are using to get the RPT file and render a crystal report within a HTML page. However, the code throws the following exception at the point it tries to instantiate a ReportClientDocument object.
2010-12-06 11:19:10,325 ERROR org.apache.catalina.core.StandardWrapperValve.invoke - Servlet.service() for servlet action threw exception
java.lang.NoClassDefFoundError: com/businessobjects/foundation/logging/LoggerManager
      at com.crystaldecisions.xml.serialization.CrystalSAXParserHandler.<clinit>(SourceFile:44)
      at com.crystaldecisions.xml.serialization.XMLObjectSerializer.<init>(SourceFile:42)
      at com.crystaldecisions.proxy.remoteagent.ClientSDKOptions.readClientSDKOptions(SourceFile:147)
      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.n(SourceFile:1129)
This obviously points to a dependency on a class com.businessobjects.foundation.logging.LoggerManager class that doesnu2019t exist in the SDK. Has anyone faced this situation? Or can anyone help us in understanding the problem and what we need to do to rectify this issue?
Much thanks in advance.

The class you are looking for is contained in the jar file u201Clogging.jaru201D, which is part of the default jar files for crystal reports.  It can be found in the folder C:\Program Files\Business Objects\common\4.0\java\lib
Shawn
Edited by: Shawn Penner on Dec 7, 2010 7:41 PM  (Thanks for the correction Ted)

Similar Messages

  • Error while instantiating report Z_RD_ABSENCE_REPORT

    Hi Guys,
    we have just patched BWD, and while testing the broadcast setting i came across the following error.
    Error while instantiating report Z_RD_ABSENCE_REPORT 
    Notification Number RSBOLAP 014 
    I am opening report designer and when i publish via Bex Broadcaster this message is shown. I have checked SDN and sap market place but most of the soultion seem to focus on WAD.
    My feeling is that it is a JAVA error and is somethng basis might be able to fix.
    Please can anyone let me know if they have come across this problem before, and help would be much appriciated.
    Thanks
    Forhad

    Hello Forhad,
    RSBOLAP 014 is a issue regarding communication between ABAP (backend ) VS BI Java side.
    Read the note 937697 and follow his manual instructions.
    This note will start the BI Diagnostics. There you will see a red mark with RSBOLAP issue. COrrect this red mark following the recommendation on "Action" field.
    Good luck.
    Edward S. John

  • Getting status as ERROR while instantiating Business Object in work flow?

    Hi,
    Getting status as ERROR while instantiating Business Object in work flow.
    How to rectify it.
    Tahnks in Advance.
    Moderator message: please have a look at the dedicated Workflow forum on SCN.
    Edited by: Thomas Zloch on Jan 19, 2012

    Hi,
    Go to SWDD and create a new workflow. This workflow will have two steps. This is just for test purpose so we are not going to define any triggering event etc.  First step will instantiate (creating a runtime object) a business object and second step will use that runtime object to execute one of its method. We know that to instantiate any BO we need the object key to be passed. Key uniquely identifies a runtime instance of Business Object (henceforth we will refer it as BO or business object interchangeably). 
    use Business Object SYSTEM and method GENERICINSTANTIATE to instantiate any Business Object in workflow

  • ClassNotFoundException while invoking jax-ws client from OIM 10g

    Hi,
    As part of integrating FoxT with OIM, I've generated stub classes from FoxT wsdl using wsimport of jax-ws RI. While trying to invoke any webservice method from the process task I am getting below error -
    java.lang.reflect.InvocationTargetException
            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:597)
            at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFOXTCREATEUSER.FOXTCREATEUSER(adpFOXTCREATEUSER.java:161)
            at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFOXTCREATEUSER.implementation(adpFOXTCREATEUSER.java:106)
            at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
            at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
            at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.addProcessTaskInstance(Unknown Source)
            at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.addProcessTaskInstance(Unknown Source)
            at com.thortech.xl.ejb.beans.tcProvisioningOperations_b03yxm_EOImpl.addProcessTaskInstance(tcProvisioningOperations_b03yxm_EOImpl.java:1518)
            at Thor.API.Operations.tcProvisioningOperationsClient.addProcessTaskInstance(Unknown Source)
            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:597)
            at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.security.Security.runAs(Security.java:41)
            at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
            at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
            at $Proxy61.addProcessTaskInstance(Unknown Source)
            at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.addTask(Unknown Source)
            at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.dispatchConfirmation(Unknown Source)
            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:597)
            at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
            at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
            at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NoClassDefFoundError: Lcom/foxt/mds/ws/generated/AddUserxRolePars;
            at java.lang.Class.getDeclaredFields0(Native Method)
            at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
            at java.lang.Class.getDeclaredFields(Class.java:1743)
            at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getDeclaredFields(ReflectionNavigator.java:249)
            at com.sun.xml.bind.v2.model.nav.ReflectionNavigator.getDeclaredFields(ReflectionNavigator.java:58)
            at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.findFieldProperties(ClassInfoImpl.java:362)
            at com.sun.xml.bind.v2.model.impl.ClassInfoImpl.getProperties(ClassInfoImpl.java:296)
            at com.sun.xml.bind.v2.model.impl.RuntimeClassInfoImpl.getProperties(RuntimeClassInfoImpl.java:176)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:243)
            at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:98)
            at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:79)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:209)
            at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:93)
            at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:79)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:315)
            at com.sun.xml.bind.v2.model.impl.RegistryInfoImpl.<init>(RegistryInfoImpl.java:99)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.addRegistry(ModelBuilder.java:357)
            at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:327)
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:432)
            at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:286)
            at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:139)
            at com.sun.xml.bind.api.JAXBRIContext.newInstance(JAXBRIContext.java:105)
            at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:153)
            at com.sun.xml.ws.model.AbstractSEIModelImpl$1.run(AbstractSEIModelImpl.java:148)
            at java.security.AccessController.doPrivileged(Native Method)
            at com.sun.xml.ws.model.AbstractSEIModelImpl.createJAXBContext(AbstractSEIModelImpl.java:148)
            at com.sun.xml.ws.model.AbstractSEIModelImpl.postProcess(AbstractSEIModelImpl.java:87)
            at com.sun.xml.ws.model.RuntimeModeler.buildRuntimeModel(RuntimeModeler.java:264)
            at com.sun.xml.ws.client.WSServiceDelegate.buildRuntimeModel(WSServiceDelegate.java:660)
            at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.buildRuntimeModel(WLSProvider.java:407)
            at com.sun.xml.ws.client.WSServiceDelegate.addSEI(WSServiceDelegate.java:648)
            at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:330)
            at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:389)
            at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:313)
            at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:306)
            at javax.xml.ws.Service.getPort(Service.java:92)
            at com.foxt.mds.ws.generated.MDSImplService.getMDSImplPort(MDSImplService.java:68)
            at com.centurylink.identity.adapter.processtask.FoxTUserOperations.CreateUser(FoxTUserOperations.java:351)
            ... 60 more
    Caused by: java.lang.ClassNotFoundException: com.foxt.mds.ws.generated.AddUserxRolePars
            at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:283)
            at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:256)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
            at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:176)
            ... 98 more
    com.thortech.xl.dataobj.util.tcAdapterTaskException: Lcom/foxt/mds/ws/generated/AddUserxRolePars;
            at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFOXTCREATEUSER.FOXTCREATEUSER(adpFOXTCREATEUSER.java:167)
            at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpFOXTCREATEUSER.implementation(adpFOXTCREATEUSER.java:106)
            at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
            at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
            at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
            at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
            at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.addProcessTaskInstance(Unknown Source)
            at com.thortech.xl.ejb.beans.tcProvisioningOperationsSession.addProcessTaskInstance(Unknown Source)
            at com.thortech.xl.ejb.beans.tcProvisioningOperations_b03yxm_EOImpl.addProcessTaskInstance(tcProvisioningOperations_b03yxm_EOImpl.java:1518)
            at Thor.API.Operations.tcProvisioningOperationsClient.addProcessTaskInstance(Unknown Source)
            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:597)
            at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.security.Security.runAs(Security.java:41)
            at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(Unknown Source)
            at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
            at $Proxy61.addProcessTaskInstance(Unknown Source)
            at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.addTask(Unknown Source)
            at com.thortech.xl.webclient.actions.ResourceProfileProvisioningTasksAction.dispatchConfirmation(Unknown Source)
            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:597)
            at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:280)
            at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcActionBase.execute(Unknown Source)
            at com.thortech.xl.webclient.actions.tcAction.execute(Unknown Source)
            at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
            at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
            at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
            at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
            at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
            at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
            at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
            at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.CSRFFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at com.thortech.xl.webclient.security.SecurityFilter.doFilter(Unknown Source)
            at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
            at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(Unknown Source)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
            at weblogic.security.service.SecurityManager.runAs(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.securedExecute(Unknown Source)
            at weblogic.servlet.internal.WebAppServletContext.execute(Unknown Source)
            at weblogic.servlet.internal.ServletRequestImpl.run(Unknown Source)
            at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
            at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    The class file its complaining about AddUserxRolePars exists in FoxTWS.jar (generated from wsimport) in ThirdParty, ext and JavaTasks directory on the server and still it complains for the same.
    I tried running the same class from the command prompt on the same server and it's working fine. Thinking this could be classpath issue, I tried updating the classpath (System.setProperty("java.class.path","<jar file path>+<existing classpath>")) from with in the adapter class file and it still does not help.
    Any thoughts on how to resolve this ??
    Thanks in Advance.

    You can use below policy for 2-way SSL
    Wssp1.2-Https-ClientCertReq.xml
    Two way SSL. The recipient checks for the initiator's public certificate. Note that the client certificate can be used for authentication.
    http://docs.oracle.com/cd/E14571_01/web.1111/e13713/message.htm#i243732
    Please follow below link to invoke standalone client using SSLSocketFactory for 2-way SSL
    http://docs.oracle.com/cd/E14571_01/web.1111/e13713/transport.htm#CIHICEHH
    HTH
    Regards,
    Sunil

  • ClassNotFoundException while deploying ear

    I get the following exception while deploying an ear in weblogic 8.1:
    weblogic.utils.AssertionError: ***** ASSERTION FAILED ***** - with nested exception:
    [java.lang.ClassNotFoundException: com.ual.nvt.ejb.common.SessionFacade_t5vfow_HomeImpl]
    Here com.ual.nvt.ejb.common.SessionFacade is the SessionBean in the ejb jar in the ear.
    What could be the possible reason?

    Hi,
    Check your application libraries. This kind of errors occur when both app and server refer to same/both have same libraries. Either remove(externally) the library from your app after create EAR or remove it from server.
    or
    You can do following modification in the app as a quick solution.
    Put following tag in to application WEB-INF\weblogic.xml file.
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    This tag use to force the server to use only application WEB-INF folder libraries.
    Nilum.

  • ClassNotFoundException while establish connection with mysql

    Hi friends,
    While registering the JDBC driver for MySQL by following statement,
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    It throws Runtime error as ClassNotFoundException for "com.mysql.jdbc.Driver" class.
    I've set the following environment variables in Windows to use MySQL Connector/J,
    C:\j2sdk1.4.2_04\jre\lib\ext\mysql-connector-java-3.0.17-ga-bin.jar\.
    Can anyone tell me whats the coz for this problem?And how i resolved this?
    Regards,
    Sachin Warang.

    it should be:
    Class.forName("org.gjt.mm.mysql.Driver");

  • Clocking wizzard throws error while instantiating in IPI

    Dear community,
    I am using the ZedBoard without the PS side. My Goal is to create a 50MHz clock for my logic. So I use the 100MHz PL clock (the ZedBoard provides a 100MHz clock at Zynq pin Y9).
    To get the 50MHz I am trying to use a MMCM which I would like to create with the clocking wizard. Therefore I do the following steps in Vivado 14.4:
    creating new rtl project without any design files and choosing the zedboard
    create block design
    add ip --> clocking wizard
    Then the following error occurs without instantiating the clock wizard (list of tcl commands):
    create_project clocking_wizard_test C:/Users/abcd/VHDL_Code/Vivado_Testground/clocking_wizard_test -part xc7z020clg484-1
    INFO: [IP_Flow 19-234] Refreshing IP repositories
    INFO: [IP_Flow 19-1704] No user IP repositories specified
    INFO: [IP_Flow 19-2313] Loaded Vivado IP repository 'C:/Xilinx/Vivado/2014.4/data/ip'.
    set_property board_part em.avnet.com:zed:part0:1.2 [current_project]
    set_property target_language VHDL [current_project]
    create_bd_design "design_1"
    Wrote  : <C:/Users/abcd/VHDL_Code/Vivado_Testground/clocking_wizard_test/clocking_wizard_test.srcs/sources_1/bd/design_1/design_1.bd>
    startgroup
    create_bd_cell -type ip -vlnv xilinx.com:ip:clk_wiz:5.1 clk_wiz_0
    ERROR: [#UNDEF] conversion to double from string is failed
    unexpected "," outside function argument list
    in expression "1000 / 10,000"
    ERROR: [IP_Flow 19-3188] Error occurred while initializing 'clk_wiz_0'
    Tcl error in update procedure while setting value 'MMCM' on the parameter 'PRIMITIVE'. unexpected "," outside function argument list
    in expression "1000 / 10,000"
    CRITICAL WARNING: [IP_Flow 19-973] Failed to create IP instance 'design_1_clk_wiz_0_0'. Error during customization.
    ERROR: [#UNDEF] Error occurred while initializing 'clk_wiz_0'
    Tcl error in update procedure while setting value 'MMCM' on the parameter 'PRIMITIVE'. unexpected "," outside function argument list
    in expression "1000 / 10,000"
    ERROR: [BD 5-7] Error: running create_bd_cell.
    ERROR: [Common 17-39] 'create_bd_cell' failed due to earlier errors.
    endgroup
    How can I fix it?

    Thanks first of all for your replies.
    Allright, now I got some results. Or in different words: I can reproduce a strange behavior regarding the clocking wizard:
    Leave the system language (win7) set to German and changing just the decimal separator (,) with (.) it does not work.
    When I got the error message (see initial thread) than I can work around with closing Vivado and reopen it. If I try to instantiate the MMCM with the clocking wizard after reloading Vivado then it works (without error or warning messages). I even can gernerate a bitstream. But everytime I open a synthesized or implemented design I get the above mentioned errors. If I delete the clocking wizard at the IPI and try to add a "new" one then Vivado refuses it again (at least until I close Vivado and reopen it again). With this method I would say it works almost ;-)
    set the system language (win7) globally to US English it works. At least I wasn´t able to reproduce this error.
    Is this issue planned to be fixed in the next version of Vivado?
    Regards!

  • ClassNotFoundException: while exporting data into excel sheet

    Hi Experts,
    While exporting data into excel sheet below error was getting even i am created jar file DC and publicpart AND j2ee
    I have to deployed the JAR files on the server:
    1. Created "External Library DC"
    2. added my JAR files into "Libraries" folder.
    3. Exposed them as Public Part.
    4. Created "J2EE Library DC"
    5. Refered "External Library DC" into J2EE Library DC.
    6. Deployed "J2EE Library DC"
    7. and lastly refered this on my Web Dynpro DC by giving Library Reference.
    but still this is the errro was getting, plz any one can help regarding this what could be the problem
    java.lang.ClassNotFoundException: org.apache.poi.hssf.usermodel.HSSFWorkbook -
    Loader Info -
    ClassLoader name: [ng.com/Reuse_Export_to_Excel] Parent loader name: [Frame ClassLoader] References: common:service:http;service:servlet_jsp service:ejb common:service:iiop;service:naming;service:p4;service:ts service:jmsconnector library:jsse library:servlet common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl library:ejb20 library:j2eeca library:jms library:opensql common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore interface:resourcecontext_api interface:webservices interface:cross interface:ejbserialization sap.com/tcwddispwda sap.com/tcwdcorecomp service:webdynpro service:sld library:tcddicddicservices library:com.sap.aii.proxy.framework library:tcgraphicsigs library:com.sap.mw.jco library:com.sap.lcr.api.cimclient library:sapxmltoolkit library:com.sap.aii.util.rb library:com.sap.util.monitor.jarm library:tcddicddicruntime library:com.sap.aii.util.xml library:com.sap.aii.util.misc library:tccmi Resources: /usr/sap//JC21/j2ee/cluster/server0/apps/ng.com/Reuse_Export_to_Excel/src.zip /usr/sap//JC21/j2ee/cluster/server0/apps/ng.com/Reuse_Export_to_Excel/webdynpro/public/lib/ng.comReuse_Export_to_Excel.jar Loading model: {parent,references,local} -
    Regards,
    Varma

    closed

  • Errors while instantiated a custom java object within jsp pages.

    I'm currently trying to role out a war file created on JavaBeans IDE 3.5.1. I have custom created classes
    that are instantiated by using:
    used.TransactionsHolder p_transactions = (used.TransactionsHolder) session.getAttribute("s_transactions");
    Where used is the package and TransactionsHolder
    is the class I am trying to create an object from. When
    I use this syntax I receive this error:
    __transactionPage.java:90: cannot resolve symbol
    symbol  : class TransactionsHolder 
    location: package used
                    used.TransactionsHolder p_transactions = (used.TransactionsHolder) session.getAttribute("s_transactions"); //[ transactionPage.jsp; Line: 12]
    ;Any suggestions?

    Can you please log a TAR with Oracle Support using Metalink to resolve this issue. They can help you collect all the log and trace files to determine the why this problem is occuring.
    Business Intelligence Beans Product Management Team
    Oracle Corporation

  • Form Upload: Shortdump while instantiating object

    Hello,
    while uploading an interactive form I get a shortdump: CX_FP_RUNTIME_USAGE
    Create PDF Object using destination 'ADS' (<-- this is how it is
    defined in SM59)
      DATA: lo_pdfobj TYPE REF TO if_fp_pdf_object VALUE IS INITIAL.
      lo_pdfobj = lo_fp->create_pdf_object( connection = 'ADS' ).
      DATA: pdf_data TYPE xstring.
    Set document
      lo_pdfobj->set_document( pdfdata = pdf_data ).
    method if_fp_pdf_object~set_document.
    data: l_errstr type string.
      if pdffile is initial and pdfdata is initial.
    =====>    raise exception type cx_fp_runtime_usage   <=====
           exporting
            textid = cx_fp_runtime_usage=>nothing_to_do.
       endif.
    Does anybody know why this parameter pdf_data is empty,
    although I have uploaded the file before  with cl_gui_frontend_services=>gui_upload?
    Thanks
    G

    Total Posts:  440 
    Total Questions:  204 (39 unresolved) 
    Forum Points:  18 
    By the way: How comes you ask so much and answer very little? Why should people help you when you don´t bother to contribute and use others to do your job?
    Otto

  • Problem while instantiating

    I simply wrote this 2 lines of code:
    import flash.display.DisplayObject;
    var testIt:DisplayObject = new DisplayObject();
    And I receive this weird error:
    ArgumentError: Error #2012: DisplayObject$ class cannot be instantiated.
    Any idea? Thanks in advance

    DisplayObject is an abstract base class; therefore, you cannot call DisplayObject directly.
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/DisplayOb ject.html?filter_flash=cs5.5&filter_flashplayer=10.3&filter_air=2.6

  • Error while instantiating...help!!!!

    IAM VERY NEW TO JAVA ....PLZ TELL ME HOW TO ACESS THE STRING DEFINED IN AN ANOTHER CLASS...THNX IN ADVANCE ..THE FOLLOWING ERROR CAME WHEN I TRIED...
    C:\j2sdk1.4.2_08\bin>javac test3.java
    test3.java:9: 'class' or 'interface' expected
    test1 sample =new test1(); // instantiating
    *^*
    *1 error*
    FILE TEST1
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.lang.*;
    public class test1
    String s="check";
    }FILE TEST3
    import java.awt.event.*;
    import javax.swing.*;
    import java.io.*;
    import java.io.FileReader;
    import java.io.IOException;
    import java.io.BufferedReader;
    import java.lang.*;
    test1 sample =new test1(); // instantiating
    public class test3
    System.out.println( sample.s);
    }

    IAM VERY NEW TO JAVA ....PLZ TELL ME HOW TO ACESS THE STRING DEFINED IN AN ANOTHER CLASS...
    THNX IN ADVANCE ..http://www.catb.org/~esr/faqs/smart-questions.html#writewell
    Write in clear, grammatical, correctly-spelled language
    We've found by experience that people who are careless and sloppy writers are usually also careless and sloppy at thinking and coding (often enough to bet on, anyway). Answering questions for careless and sloppy thinkers is not rewarding; we'd rather spend our time elsewhere.
    So expressing your question clearly and well is important. If you can't be bothered to do that, we can't be bothered to pay attention. Spend the extra effort to polish your language. It doesn't have to be stiff or formal ? in fact, hacker culture values informal, slangy and humorous language used with precision. But it has to be precise; there has to be some indication that you're thinking and paying attention.
    Spell, punctuate, and capitalize correctly. Don't confuse ?its? with ?it's?, ?loose? with ?lose?, or ?discrete? with ?discreet?. Don't TYPE IN ALL CAPS; this is read as shouting and considered rude. (All-smalls is only slightly less annoying, as it's difficult to read. Alan Cox can get away with it, but you can't.)
    More generally, if you write like a semi-literate boob you will very likely be ignored. So don't use instant-messaging shortcuts. Spelling "you" as "u" makes you look like a semi-literate boob to save two entire keystrokes. Worse: writing like a l33t script kiddie hax0r is the absolute kiss of death and guarantees you will receive nothing but stony silence (or, at best, a heaping helping of scorn and sarcasm) in return.
    If you are asking questions in a forum that does not use your native language, you will get a limited amount of slack for spelling and grammar errors ? but no extra slack at all for laziness (and yes, we can usually spot that difference). Also, unless you know what your respondent's languages are, write in English. Busy hackers tend to simply flush questions in languages they don't understand, and English is the working language of the Internet. By writing in English you minimize your chances that your question will be discarded unread.

  • ClassNotFoundException while loading a class

    Hello,
    I have an application that having several servlet classes. I specified servlet name and corresponding class name(full) in web.xml
    My problem is , I ended up with an exception when executing the following line of code for some of the files .
    Class theClass = Class.forName(strServletClassname);
    Actually above is working for some classes and not working for some classes in the same package.
    I checked the folder where the class files are get saved. All the files are available there with same structure.
    Here what may be the cause of this exception?
    Any help would be appreciated.
    Thanks.

    thanks for your reply.
    Its working fine for the classes in the same package.
    But I am using two projects. My project name is myPro and it referring another project named superPro .
    If I execute the following line of code in a class in myPro it is working fine. not only, if I replaced class name in the following line by a class name from the superPro, it will work fine without any error.
    But If I execute the same line in a class in the superPro , it will throw ClassNotFound exception.
    SLRegistrationExtractServlet.java - class in superPro
    TestServlet - class in myPro
    Execution is as follows,
    Class In myPro,
    Class.forName("superPro.SLRegistrationExtractServlet"); //no error
    Class.forName("myPro.TestServlet"); //no error
    Class in superPro,
    Class.forName("superPro.SLRegistrationExtractServlet"); //no error
    Class.forName("myPro.TestServlet"); //throws error
    Following is the stackTrace,
    java.lang.ClassNotFoundException: myPro.TestServlet
         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:164)
         at superPro.Test.main(Test.java:13)
    I am using eclipse IDE for my development and in the properties of myPro , I set the project reference as superPro.
    In superPro I can't set project reference as myPro, since superPro is referred by many other projects.
    thanks
    Message was edited by:
    JavaXchanges

  • ClassNotFoundException while invoking EL function during render response

    I wrote a simple EL function to retrieve the clientId of a UIComponentBase object -- I'm generating some javascript. The first time I load the page (without a submit), the page generates just fine, including the javascript output that successfully invoked my EL function from a h:outputText element.
    However, when I submit the form it throws a ClassNotFoundException (for my EL function class) and generally freaks out after that. Now, obviously it should be able to find the class since it managed to find it on the initial rendering of the page.
    Am I missing something about using EL functions in a JSF tag? (I'm using JBoss Seam under the covers, but am not sure if this is a Seam issue or a pure-JSF issue.) Thanks for any light you folks can shed on this.

    The Faces Context is set up by the Faces Servlet, which hasn't run yet in a filter.
    I haven't tried it, but [url http://blog.lightwaysoftware.com/2010/10/accessing-facescontext-from-a-servlet-filter/]this may help you.
    DOH! That's what you are doing already.
    If you're using JDev 11.1.2.x, you could try [url http://ocpsoft.com/java/jsf-java/jsf-20-extension-development-accessing-facescontext-in-a-filter/]this
    John

  • ClassNotFoundException while using readObject.

    I have a servlet that queries a database and creates a object called Notice (an object that implements Serializable), and sends
    it to an applet.
    My problem is that I get a ClassNotFoundException when I try to cast the object back (Notice) when i read the object in the Applet.
    The Notice class is belonging to a package named no.apt.annonse.notice.
    My CLASS_PATH = <my dir>\classes. My packages start in this directory.
    Client routine for reading the object send by the servlet:
    try{
    ObjectInputStream input;
    URL noticeServlet = new URL(getCodeBase(),<my dir>);
    URLConnection servletConnection = noticeServlet.openConnection();
    servletConnection.setUseCaches (false);
    servletConnection.setDefaultUseCaches(false);
    input = new ObjectInputStream(servletConnection.getInputStream());
    notice = (Notice)input.readObject();
    catch(MalformedURLException mfURLe){
    <my message>
    catch(IOException ioe){
    <my message>
    catch(ClassNotFoundException cnfe){
    <my message>
    Servlet routine for sending the object form the servlet:
    ObjectOutputStream outputToApplet;
    try{
    outputToApplet = new ObjectOutputStream(response.getOutputStream());
    outputToApplet.writeObject(notice);
    outputToApplet.close();          
    catch (IOException e){
    <my message>
    catch(Exception ex){
    <my message>
    Please excuse my bad english

    The problem is that the readObject() method of ObjectInputStream needs the class file of Notice to be able to create your Object in the Applet.
    You need to make Notice.class available to the Applet through the Applet's class path.

Maybe you are looking for

  • Can't get artwork and mini itunes to show

    Hi guys... The artwork in my itunes works fine, but i have another user on my computer so I downloaded itunes for them, but when we started putting songs on, it downloaded the artwork but it won't show on itunes or the ipod. Is it something to do wit

  • Populate select list when a date selected from date picker in tabular form

    Hi Guys, I have a situation where user picks a date from a date picker in tabular form. So as soon as he picks a date say 05/31/2011 from the date picker I want to populate a select list with 2 values : Tuesday AM , Tuesday PM. I have gone through th

  • Explan the methods to fill the gaps in abap ?

    Hi I am newly appoined in abap mine role is to fill the gaps between clinet and us  explain me with fine example ? THis is very help ful to me in my life... thanking U

  • HOWTO: get JDev to show the foreign keys in Conn Nav & struct window

    Hi, I have SQL tables with foreign keys but the JDev connections navigator and table editor dont show them. They just look like primary keys in the "PK" column. The structure window shows a bunch of constraints with names like "SYS_C00143114" which i

  • Missing Stored Procedure for SQL Server

    Hello, I'm trying to create the standard TestStand 4 schema for SQL Server. I get the following error when I run multiple numeric test cases: An error occurred calling 'LogResults' in 'ITSDBLog' of 'zNI TestStand Database Logging' An error occurred e