Urgent: Catalog BOM in initialization class

Hi All,
I am using SAP R/3  internet Sales 5.0. I am trying to initialize some class with the application startup.
I have modified init-config.xml to call my customized class.
I am facing problem in getting creating metaBOM or BOM. It throws an exception saying
"An exception occurred in extended configuration management .#1#Error reading configuration information for [key]='null'"
and
"Error#1#/Applications/BusinessLogic#Java###Business Object Manager Type unknown. "
What i am trying to achieve is to call the Catalog BOM with the metaBOM object.
MetaBusinessObjectManager metaBOM = new MetaBusinessObjectManager(
env.getMessageResources(),
mbomProps);
//get catalog business object managers
//via the meta business object manager
CatalogBusinessObjectManager catBOM = (CatalogBusinessObjectManager)metaBOM.getBOMbyName(
CatalogBusinessObjectManager.CATALOG_BOM);
Does anybody has any idea how can i get the BOM object in the intialization classes.
Thanks in anticipation!!!!
Prashil

You could do this:
File f = new File("c:/saira/NewMessages/saira2.wav");
URL u = f.toURL();

Similar Messages

  • Java.lang.NoClassDefFoundError:Couldnot initialize class com.sap.mw.jco.JCO

    Hi,
    I am having an issue with SAP adapter configuration. It throws below error in log files :
    java.lang.ExceptionInInitializerError: JCO.classInitialize(): Could not load middleware layer 'com.sap.mw.jco.rfc.MiddlewareRFC'
    JCO.nativeInit(): Could not initialize dynamic link library sapjcorfc [no sapjcorfc in java.library.path]. java.library.path [opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/lib/i386/client:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/lib/i386:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/../lib/i386:/opt/apps/Oracle/patch_wls1032/profiles/default/native:/opt/apps/Oracle/patch_jdev1111/profiles/default/native:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/lib/i386/client:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/lib/i386:/opt/apps/Oracle/jdk160_14_R27.6.5-32/jre/../lib/i386:/opt/apps/Oracle/patch_wls1032/profiles/default/native:/opt/apps/Oracle/patch_jdev1111/profiles/default/native:/opt/apps/Oracle/wlserver_10.3/server/native/linux/i686:/opt/apps/Oracle/wlserver_10.3/server/native/linux/i686/oci920_8:/opt/apps/Oracle/wlserver_10.3/server/native/linux/i686:/opt/apps/Oracle/wlserver_10.3/server/native/linux/i686/oci920_8:/opt/apps/Oracle/Oracle_SOA1/soa/thirdparty/edifecs/XEngine/bin:/opt/apps/Oracle/Oracle_SOA1/soa/thirdparty/edifecs/XEngine/bin]
    java.lang.NoClassDefFoundError: Could not initialize class com.sap.mw.jco.JCO
    Invoking SAP targets from bpel or iwafjca test servlet fails with "java.lang.NoClassDefFoundError: Could not initialize class com.sap.mw.jco.JCO."
    I am able to connect from Application Explorer(AE) and browse through idocs and bapis. I tried to check the class loading pattern for AE using Jconsole :
    1. Started the AE
    2. /opt/apps/Oracle/jdk1.6.0_19/bin/jps
    15279 BseFlashScreen
    3. /opt/apps/Oracle/jdk1.6.0_19/bin/jconsole 15279
    Enabled verbose output on class loading page and connected to SAP target from AE
    4. The verbose output shows below :
    Loaded com.sap.mw.jco.JCO from file:/opt/apps/Oracle/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib/sapjco.jar
    I have added the above path to my LD_LIBRARY_PATH
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/linux/${arch}:${MW_HOME}/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib:${MW_HOME}/user_projects/domains/base_domain/lib:${WL_HOME}/server/native/linux/${arch}/oci920_8
    I also added the path to WEBLOGIC_CLASSPATH in commEnv.sh file.
    The sapjco.jar, libsapjcorfc.so and librfccm.so files are also available under below directories
    WL_HOME/server/lib
    MW_HOME/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib
    MW_HOME/user_projects/domains/base_domain/lib
    Any suggestions will be really helpful.
    Regards
    Subhankar

    Hi Manoj,
    I have added the libsapjcorfc.so and librfccm.so files to below locations:
    WL_HOME/server/lib
    MW_HOME/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib
    MW_HOME/user_projects/domains/base_domain/lib
    And also set the LD_LIBRARY_PATH and WEBLOGIC_CLASSPATH in commEnv.sh file.
    Eg:
    LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:${WL_HOME}/server/native/linux/${arch}:${MW_HOME}/Oracle_SOA1/soa/thirdparty/ApplicationAdapters/lib:${MW_HOME}/user_projects/domains/base_domain/lib:${WL_HOME}/server/native/linux/${arch}/oci920_8
    Is there any other location where these need to be added ? I hope library path/system path refers to the WEBLOGIC_CLASSPATH ?
    Regards
    Subhankar

  • Could not initialize class com.bea.security.quark.ASIParserProxy in ADF

    Hi Everyone,
    I am trying to learn ADF Skinning.I am using Jdeveloper 11.1.2.3.0 version.I am practicing ADF Skinning Doc, "Changing an Application's Look and Feel by Using Skins" in Jdeveloper tutorials.
    While i am downloaded ADF Skin Sample Example and running Home.jspx page i am getting the following error and it is fail to deploy into integrated weblogic server.
    <LoggerHelper> <log> Error during preRegister for MBean oracle.mds.lcm:name=MDSAppRuntime,type=MDSAppRuntime,Application=ADFSkinSample
    java.lang.RuntimeException: java.lang.NoClassDefFoundError: Could not initialize class com.bea.security.quark.ASIParserProxy
         at oracle.as.jmx.framework.generic.spi.interceptors.LoggingMBeanInterceptor.internalPreRegister(LoggingMBeanInterceptor.java:663)
         at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doPreRegister(AbstractMBeanInterceptor.java:180)
         at oracle.as.jmx.framework.standardmbeans.spi.OracleStandardEmitterMBean.preRegister(OracleStandardEmitterMBean.java:619)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.preRegisterInvoke(DefaultMBeanServerInterceptor.java:1010)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerDynamicMBean(DefaultMBeanServerInterceptor.java:938)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerObject(DefaultMBeanServerInterceptor.java:917)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.registerMBean(DefaultMBeanServerInterceptor.java:312)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.registerMBean(JmxMBeanServer.java:482)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:714)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
         at weblogic.management.mbeanservers.internal.JMXContextInterceptor.registerMBean(JMXContextInterceptor.java:445)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$27.run(WLSMBeanServerInterceptorBase.java:712)
         at java.security.AccessController.doPrivileged(Native Method)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.registerMBean(WLSMBeanServerInterceptorBase.java:709)
         at weblogic.management.jmx.mbeanserver.WLSMBeanServer.registerMBean(WLSMBeanServer.java:462)
         at oracle.as.jmx.framework.wls.spi.security.PrivilegedMBeanServerInterceptor$1.run(PrivilegedMBeanServerInterceptor.java:55)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
         at oracle.as.jmx.framework.wls.spi.security.PrivilegedMBeanServerInterceptor.registerMBean(PrivilegedMBeanServerInterceptor.java:60)
         at oracle.mds.internal.lcm.MDSLifecycleListenerImpl.start(MDSLifecycleListenerImpl.java:163)
         at oracle.mds.lcm.weblogic.WLLifecycleListener.preStart(WLLifecycleListener.java:73)
         at weblogic.application.internal.flow.BaseLifecycleFlow$PreStartAction.run(BaseLifecycleFlow.java:282)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.application.internal.flow.BaseLifecycleFlow$LifecycleListenerAction.invoke(BaseLifecycleFlow.java:199)
         at weblogic.application.internal.flow.BaseLifecycleFlow.preStart(BaseLifecycleFlow.java:62)
         at weblogic.application.internal.flow.HeadLifecycleFlow.prepare(HeadLifecycleFlow.java:283)
         at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
         at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
         at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
         at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
         at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
         at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
         at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
         at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
         at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
         at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
         at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
         at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
         at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.bea.security.quark.ASIParserProxy
         at oracle.security.jps.az.internal.runtime.entitymanager.ExtensionsManagerImpl.init(ExtensionsManagerImpl.java:227)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initWithAppPolicyEntry(ApplicationPolicyImpl.java:322)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initAppPolicy(ApplicationPolicyImpl.java:274)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyMap.get(ApplicationPolicyMap.java:110)
         at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.getApplicationPolicy(PDPServiceImpl.java:575)
         at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.getApplicationPolicy(PDPServiceImpl.java:556)
         at oracle.security.jps.internal.policystore.PolicyUtil.getGrantedAppRoles(PolicyUtil.java:2876)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver$5.run(JpsAbsSubjectResolver.java:497)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver$5.run(JpsAbsSubjectResolver.java:487)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.getApplicationRoles(JpsAbsSubjectResolver.java:487)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.createJpsSubject(JpsAbsSubjectResolver.java:334)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.getAuthenticatedSubject(JpsAbsSubjectResolver.java:328)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.resolveJpsSubject(JpsAbsSubjectResolver.java:263)
         at oracle.security.jps.internal.jaas.JpsAbsSubjectResolver.resolveSubject(JpsAbsSubjectResolver.java:214)
         at oracle.security.jps.ee.jmx.JpsJmxInterceptor.internalPreRegister(JpsJmxInterceptor.java:461)
         at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doPreRegister(AbstractMBeanInterceptor.java:180)
         at oracle.as.jmx.framework.generic.spi.interceptors.DefaultMBeanInterceptor.internalPreRegister(DefaultMBeanInterceptor.java:81)
         at oracle.as.jmx.framework.generic.spi.interceptors.ContextClassLoaderMBeanInterceptor.internalPreRegister(ContextClassLoaderMBeanInterceptor.java:150)
         at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doPreRegister(AbstractMBeanInterceptor.java:180)
         at oracle.as.jmx.framework.generic.spi.interceptors.DefaultMBeanInterceptor.internalPreRegister(DefaultMBeanInterceptor.java:81)
         at oracle.as.jmx.framework.generic.spi.interceptors.AbstractMBeanInterceptor.doPreRegister(AbstractMBeanInterceptor.java:180)
         at oracle.as.jmx.framework.generic.spi.interceptors.BasePublicMBeanInterceptor.internalPreRegister(BasePublicMBeanInterceptor.java:110)
         at oracle.as.jmx.framework.generic.spi.interceptors.LoggingMBeanInterceptor.internalPreRegister(LoggingMBeanInterceptor.java:633)
         ... 45 more
    <Jan 17, 2013 12:33:46 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1358406226826' for task '9'. Error is: 'java.lang.NoClassDefFoundError: Could not initialize class com.bea.security.quark.ASIParserProxy'
    java.lang.NoClassDefFoundError: Could not initialize class com.bea.security.quark.ASIParserProxy
         at oracle.security.jps.az.internal.runtime.entitymanager.ExtensionsManagerImpl.init(ExtensionsManagerImpl.java:227)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initWithAppPolicyEntry(ApplicationPolicyImpl.java:322)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initAppPolicy(ApplicationPolicyImpl.java:274)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyMap.get(ApplicationPolicyMap.java:110)
         at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.getApplicationPolicy(PDPServiceImpl.java:575)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NoClassDefFoundError: Could not initialize class com.bea.security.quark.ASIParserProxy
         at oracle.security.jps.az.internal.runtime.entitymanager.ExtensionsManagerImpl.init(ExtensionsManagerImpl.java:227)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initWithAppPolicyEntry(ApplicationPolicyImpl.java:322)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initAppPolicy(ApplicationPolicyImpl.java:274)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyMap.get(ApplicationPolicyMap.java:110)
         at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.getApplicationPolicy(PDPServiceImpl.java:575)
         Truncated. see log file for complete stacktrace
    >
    <Jan 17, 2013 12:33:47 PM IST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating deploy task for application 'ADFSkinSample'.>
    <Jan 17, 2013 12:33:47 PM IST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004
    java.lang.NoClassDefFoundError: Could not initialize class com.bea.security.quark.ASIParserProxy
         at oracle.security.jps.az.internal.runtime.entitymanager.ExtensionsManagerImpl.init(ExtensionsManagerImpl.java:227)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initWithAppPolicyEntry(ApplicationPolicyImpl.java:322)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initAppPolicy(ApplicationPolicyImpl.java:274)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyMap.get(ApplicationPolicyMap.java:110)
         at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.getApplicationPolicy(PDPServiceImpl.java:575)
         Truncated. see log file for complete stacktrace
    Caused By: java.lang.NoClassDefFoundError: Could not initialize class com.bea.security.quark.ASIParserProxy
         at oracle.security.jps.az.internal.runtime.entitymanager.ExtensionsManagerImpl.init(ExtensionsManagerImpl.java:227)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initWithAppPolicyEntry(ApplicationPolicyImpl.java:322)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyImpl.initAppPolicy(ApplicationPolicyImpl.java:274)
         at oracle.security.jps.az.internal.runtime.policy.ApplicationPolicyMap.get(ApplicationPolicyMap.java:110)
         at oracle.security.jps.az.internal.runtime.service.PDPServiceImpl.getApplicationPolicy(PDPServiceImpl.java:575)
         Truncated. see log file for complete stacktrace
    >
    [12:33:47 PM] Deployment cancelled.
    [12:33:47 PM] ---- Deployment incomplete ----.
    [12:33:47 PM] Remote deployment failed (oracle.jdevimpl.deploy.common.Jsr88RemoteDeployer)
    #### Cannot run application ADFSkinSample due to error deploying to IntegratedWebLogicServer.
    [Application ADFSkinSample stopped and undeployed from Server Instance IntegratedWebLogicServer]
    Could any one help on this.
    Best Regards

    I have deployed CF 9 on WebLogic 10.3.4. 
    The K2Encrypt error occured when I was accessing the CF Admin page and I would get blank pages.  The workaround to that was to change the adminconfig.xml setting of <unsetupwizard> to false.  Everything seemed to work, but then when I accessed the Coldfusion Collections page then I would again see a blank page and the K2Encrypt error in the exception log.
    The K2Encrypt class is provided by the verity.jar which was being picked up, although not properly it seems, by ColdFusion in its class path.
    As of 8/15, support at Adobe confirmed that this was an issue after they replicated the same problem.  They stated that they have escalated this to their engineering department.

  • SOAP Axis - Could not initialize class OperationDesc error in Receiver SOAP

    Hi,
    We are facing a issue in receiver soap scenario with NTLM Authentication.
    We have deployed the necessary jar files needed for Axis framework. But we are geting an error 'Could not initialize class org.apache.axis.description.OperationDesc'.
    Any idea how to overcome this error?
    Edited by: Aarthi on Apr 27, 2010 8:29 AM

    Yes. I checked.
    In addition to the mandatory files, we have deployed the below 3 files for NTLM.
    Jakarta-Commons Codec
    Found: org.apache.commons.codec.Encoder at D:\usr\sap\DGX\DVEBMGS00\j2ee\cluster\bin\ext\com.sap.aii.af.axisproviderlib\lib\commons-codec-1.3.jar
    Jakarta-Commons Net
    Found: org.apache.commons.net.SocketFactory at D:\usr\sap\DGX\DVEBMGS00\j2ee\cluster\bin\ext\com.sap.aii.af.axisproviderlib\lib\commons-net-1.0.0-dev.jar
    Jakarta-Commons HttpClient
    Found: org.apache.commons.codec.Encoder at D:\usr\sap\DGX\DVEBMGS00\j2ee\cluster\bin\ext\com.sap.aii.af.axisproviderlib\lib\commons-codec-1.3.jar

  • Linux Issue  - Could not initialize class sun.print.CUPSPrinter

    Afternoon All,
    I am using the latest CR4Ev2.
    Java 1.6 (Am very sure but will double check)
    My Windows enviroment is all working perfectly and so have moved my application over to a Linux setup.
    After solving all my case-sensitivity issues I have managed to get my reports almost working. (I hope almost)
    When the following code is run:
    reportClientDocument = new ReportClientDocument();
    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
    reportClientDocument.open(reportFilePath,OpenReportOptions._openAsReadOnly);
    I get the below error messages in my logging.
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not initialize class sun.print.CUPSPrinter---- Error code:-2147467259 Error code name:failed
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.<init>(SourceFile:286)
         at com.businessobjects.sdk.erom.jrc.a.<init>(SourceFile:43)
         at com.businessobjects.sdk.erom.jrc.ReportAgentFactory.createAgent(SourceFile:46)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.<init>(SourceFile:703)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:662)
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:632)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.if(SourceFile:504)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(SourceFile:669)
    Now it could just be as simple as we dont have a printer setup on that box.
    Is this a definate requirement. Does the server have to have a printer setup, even if we are only exporting to PDF files.
    I am still doing some testing and since it is the first time getting this far on Linux it might be mistakes on my side,
    but thought I would ask the wide world and see what replies I get back.
    Cheers
    Darren
    Edited by: Darren Jackson on Mar 10, 2010 11:12 AM
    Sorry for the bump but wanted to change the subject to something more enticing

    After many many hours of reading and pulling my hair out I have found a solution to my problem,
    Whether it is a valid solution or a workaround or a cheat I am hoping someone can tell me.
    If I run my application with the switch
    java -jar -Djava.awt.headless=true MyApp.jar
    It works.
    Now I am still doing some investigation on what exactly this headless switch is doing. But it works so I am happy.
    If anyone can give me a technical and or a laymans explanation that would be great.
    All I have to do now is solve my Font issue
    Cheers
    Darren

  • Could not initialize class sun.awt.X11.XToolkit

    hi all
    String fileName = "c:/test/one.jpg";
    Image imgg = Toolkit.getDefaultToolkit().getImage(fileName);
         ImageIcon img = new ImageIcon(imgg);
         imgDim = ""+img.getIconHeight();
    when i run this code in linux machine am getting the error Could not initialize class sun.awt.X11.XToolkit....but its runnig on windows machine.. is there anything wrong wiht my code........pl help me any1 out of dis

    here http://rapid-i.com/rapidforum/index.php?topic=366.0
    they talk about adding to the JVM options a "-Djava.awt.headless=true"

  • HOW-TO initialize class variable

    How can an annotation initialize a class variable? For example, JEE5 has an annotation called @EJB that initializes a class variable with a remote or local interface:
    @Stateless class Foo
    @EJB bar;
    bar.scoobyDoobyDoo(); // I can use bar seemingly before it was initialized!
    In general terms, how can annotation be used to initialize class variables?

    It can't.
    What it can do is tell something else that this needs to be done, and that something else can do it.
    That something else might be an annotation processor running at build / compile time, which might generate some code to do it, or might generate some configuration file that causes it to be done later.
    That something else might alternatively be a runtime artifact, that can look at the annotation and carry out the requested operation. For example a container could do it.
    So an annotation cannot do anything, including initailizing a class variable, but it can declare that the class variable needs to be initialized in some way.
    Bruce

  • Could not initialize class coldfusion.runtime.report.Report

    I have inherited an application that contains a number of
    reports. This application was developed on our CF7 server, and when
    we upgraded, the application was copied to 8, but not fully tested.
    Now, when we request the reports, we get the following errors (this
    is a Flex application):
    (mx.rpc::Fault)#0
    errorID = 0
    faultCode = "Server.Processing"
    faultDetail = (null)
    faultString = "Could not initialize class
    coldfusion.runtime.report.Report"
    message = "faultCode:Server.Processing faultString:'Could
    not initialize class coldfusion.runtime.report.Report'
    faultDetail:'null'"
    name = "Error"
    rootCause = (null)
    My searching for a solution has not been successful on
    Google. Has anyone experienced this error and been able to fix it?
    I'm at a loss on what to do next, and as the app is in production,
    I have some upset clients over this.
    Thanks!!
    Jenn

    I can't find anything further on this error after much
    research. I'm getting the problem when I try to run any report on a
    live web server (hosted site), even though it runs fine in the
    development environment. My hosting company could only suggest that
    the problem could lie with the fact they have RDS disabled;
    however, although the Report Builder requires RDS, running uploaded
    .cfr reports from the cfreport tag shouldn't. If anyone solves this
    I'd be most grateful for the information to be posted.

  • Could not initialize class com.verity.security.k2.K2Encrypt

    I have error message see below when select Verity collections in the Data and Services coldfusion menu.
    My config:
    window 2008, IIS 7, Coldfusion MX 7,0,2,142559
    Java Home                        C:\Program Files (x86)\Java\jdk1.6.0_22\jre
    Java Class  Path
    CF Classpath
    ;C:/CFusionMX7/runtime/../lib/ant-launcher.jar;   C:/CFusionMX7/runtime/../lib/ant.jar;   C:/CFusionMX7/runtime/../lib/axis.jar;   C:/CFusionMX7/runtime/../lib/backport-util-concurrent.jar;   C:/CFusionMX7/runtime/../lib/bcel.jar;   C:/CFusionMX7/runtime/../lib/cdo.jar;   C:/CFusionMX7/runtime/../lib/cdohost.jar;   C:/CFusionMX7/runtime/../lib/cf4was.jar;   C:/CFusionMX7/runtime/../lib/cf4was_ae.jar;   C:/CFusionMX7/runtime/../lib/cfmx-ssl.jar;   C:/CFusionMX7/runtime/../lib/cfusion.jar;   C:/CFusionMX7/runtime/../lib/commons-beanutils-1.5.jar;   C:/CFusionMX7/runtime/../lib/commons-collections-2.1.jar;   C:/CFusionMX7/runtime/../lib/commons-digester-1.7.jar;   C:/CFusionMX7/runtime/../lib/commons-discovery-0.2.jar;   C:/CFusionMX7/runtime/../lib/commons-discovery.jar;   C:/CFusionMX7/runtime/../lib/commons-logging-1.0.2.jar;   C:/CFusionMX7/runtime/../lib/commons-logging-api-1.0.2.jar;   C:/CFusionMX7/runtime/../lib/commons-net-1.2.2.jar;   C:/CFusionMX7/runtime/../lib/crystal.jar;   C:/CFusionMX7/runtime/../lib/flashgateway.jar;   C:/CFusionMX7/runtime/../lib/flashremoting_update.jar;   C:/CFusionMX7/runtime/../lib/flex-assemblerservice.jar;   C:/CFusionMX7/runtime/../lib/flex-messaging-common.jar;   C:/CFusionMX7/runtime/../lib/flex-messaging-opt.jar;   C:/CFusionMX7/runtime/../lib/flex-messaging-req.jar;   C:/CFusionMX7/runtime/../lib/flex-messaging.jar;   C:/CFusionMX7/runtime/../lib/httpclient.jar;   C:/CFusionMX7/runtime/../lib/ib61patch.jar;   C:/CFusionMX7/runtime/../lib/ib6addonpatch.jar;   C:/CFusionMX7/runtime/../lib/ib6core.jar;   C:/CFusionMX7/runtime/../lib/ib6swing.jar;   C:/CFusionMX7/runtime/../lib/ib6util.jar;   C:/CFusionMX7/runtime/../lib/im.jar;   C:/CFusionMX7/runtime/../lib/iText.jar;   C:/CFusionMX7/runtime/../lib/iTextAsian.jar;   C:/CFusionMX7/runtime/../lib/izmado.jar;   C:/CFusionMX7/runtime/../lib/jakarta-oro-2.0.6.jar;   C:/CFusionMX7/runtime/../lib/java2wsdl.jar;   C:/CFusionMX7/runtime/../lib/jaxrpc.jar;   C:/CFusionMX7/runtime/../lib/jdom.jar;   C:/CFusionMX7/runtime/../lib/jeb.jar;   C:/CFusionMX7/runtime/../lib/jintegra.jar;   C:/CFusionMX7/runtime/../lib/ldap.jar;   C:/CFusionMX7/runtime/../lib/ldapbp.jar;   C:/CFusionMX7/runtime/../lib/log4j.jar;   C:/CFusionMX7/runtime/../lib/macromedia_drivers.jar;   C:/CFusionMX7/runtime/../lib/mail.jar;   C:/CFusionMX7/runtime/../lib/msapps.jar;   C:/CFusionMX7/runtime/../lib/pbclient42RE.jar;   C:/CFusionMX7/runtime/../lib/pbembedded42RE.jar;   C:/CFusionMX7/runtime/../lib/pbserver42RE.jar;   C:/CFusionMX7/runtime/../lib/pbtools42RE.jar;   C:/CFusionMX7/runtime/../lib/poi-2.5.1-final-20040804.jar;   C:/CFusionMX7/runtime/../lib/poi-contrib-2.5.1-final-20040804.jar;   C:/CFusionMX7/runtime/../lib/ri_generic.jar;   C:/CFusionMX7/runtime/../lib/saaj.jar;   C:/CFusionMX7/runtime/../lib/smack.jar;   C:/CFusionMX7/runtime/../lib/smpp.jar;   C:/CFusionMX7/runtime/../lib/STComm.jar;   C:/CFusionMX7/runtime/../lib/tools.jar;   C:/CFusionMX7/runtime/../lib/tt-bytecode.jar;   C:/CFusionMX7/runtime/../lib/vadmin.jar;   C:/CFusionMX7/runtime/../lib/verity.jar;   C:/CFusionMX7/runtime/../lib/vparametric.jar;   C:/CFusionMX7/runtime/../lib/vsearch.jar;   C:/CFusionMX7/runtime/../lib/wc50.jar;   C:/CFusionMX7/runtime/../lib/webchartsJava2D.jar;   C:/CFusionMX7/runtime/../lib/wsdl2java.jar;   C:/CFusionMX7/runtime/../lib/wsdl4j-1.5.1.jar;   C:/CFusionMX7/runtime/../lib/wsdl4j.jar;   C:/CFusionMX7/runtime/../lib/xalan.jar;   C:/CFusionMX7/runtime/../lib/xercesImpl.jar;   C:/CFusionMX7/runtime/../lib/xml-apis.jar;   C:/CFusionMX7/runtime/../lib/;   C:/CFusionMX7/runtime/../gateway/lib/examples.jar;   C:/CFusionMX7/runtime/../gateway/lib/flex-messaging-gateway.jar;   C:/CFusionMX7/runtime/../gateway/lib/;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/batik-awt-util.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/batik-css.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/batik-ext.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/batik-transcoder.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/batik-util.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/commons-discovery.jar;    C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/commons-logging.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/concurrent.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/flex.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/jakarta-oro-2.0.7.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/jcert.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/jnet.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/jsse.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/oscache.jar;   C:/CFusionMX7/runtime/../wwwroot/WEB-INF/cfform/jars/;  C:/Program  Files (x86)/Java/jdk1.6.0_22/src.zip;  C:/Program Files  (x86)/Java/jdk1.6.0_22/; 
    Server Classpath
    C:\CFusionMX7\runtime\servers\lib; 
    C:\CFusionMX7\runtime\servers\lib\jrun-patch.jar;
    C:\CFusionMX7\runtime\..\lib\macromedia_drivers.jar; 
    C:\CFusionMX7\runtime\lib\cfmx_mbean.jar;
    C:\CFusionMX7\runtime\lib; 
    C:\CFusionMX7\runtime\lib\cfmx_mbean.jar;
    C:\CFusionMX7\runtime\lib\instutil.jar; 
    C:\CFusionMX7\runtime\lib\java2wsdl.jar;
    C:\CFusionMX7\runtime\lib\jrun-ant-tasks.jar; 
    C:\CFusionMX7\runtime\lib\jrun-xdoclet.jar;
    C:\CFusionMX7\runtime\lib\jrun.jar; 
    C:\CFusionMX7\runtime\lib\jspc.jar;
    C:\CFusionMX7\runtime\lib\migrate.jar; 
    C:\CFusionMX7\runtime\lib\oem-xdoclet.jar;
    C:\CFusionMX7\runtime\lib\sniffer.jar; 
    C:\CFusionMX7\runtime\lib\webservices.jar;
    C:\CFusionMX7\runtime\lib\wsconfig.jar; 
    C:\CFusionMX7\runtime\lib\wsdl2java.jar;
    C:\CFusionMX7\runtime\lib\xmlscript.jar; 
    C:\CFusionMX7\runtime\lib\jrun.jar
    Java Ext Dirs
    C:\Program Files  (x86)\Java\jdk1.6.0_22\jre\lib\ext;C:\Windows\Sun\Java\lib\ext 
    Error Message:
    Could not initialize class com.verity.security.k2.K2Encrypt The specific  sequence of files included or processed is:  C:\inetpub\wwwroot\CFIDE\administrator\verity\index.cfm, line: 227
    Do you have the solution.
    Thanks

    I have deployed CF 9 on WebLogic 10.3.4. 
    The K2Encrypt error occured when I was accessing the CF Admin page and I would get blank pages.  The workaround to that was to change the adminconfig.xml setting of <unsetupwizard> to false.  Everything seemed to work, but then when I accessed the Coldfusion Collections page then I would again see a blank page and the K2Encrypt error in the exception log.
    The K2Encrypt class is provided by the verity.jar which was being picked up, although not properly it seems, by ColdFusion in its class path.
    As of 8/15, support at Adobe confirmed that this was an issue after they replicated the same problem.  They stated that they have escalated this to their engineering department.

  • RDS server message: could not initialize class com.adobe.rds.core.services.Messages

    I just moved to a new host with my own dedicated cloud server.  Using CF9.  Everything seems to be working fine with the server, but i get the following error when connecting to it via RDS through CF Builder 2.
    RDS server message: could not initialize class com.adobe.rds.core.services.Messages
    I get it when i first connect to the server, then if i try to access it again, it will let me in.  I also get an error when i try to open the first file.  Then its ok.
    I have no idea what it can be, i have not run into this on any other server that I have connected to.

    Hello,
    After 2 months of it not working for love or money.  I got a new machine and ColdFusion Builder 2 and started over.  It worked for a while.  Then when the trial version timed out a few days ago it killed it again.  With the same error.  So it is definitely something that gets “switched” within the code or configuration settings.   Rebooting about 3x seemed to fix it this time after entering the license number. 
    Yes to answer your questions below.  Yes, I did all those things below. Re-checked and checked numerous times.  Keep in mind the installation there worked for over a year then all of a sudden stopped.   I hadn’t changed anything at all.  And it just stopped dead, started throwing up that error. 
    I asked all the experts in my office.  One guy knows CF and Java inside and out and could not figure it out.  I searched the web and the issue is listed many times but with no real answers. 
    Thanks for getting back to me.  I am up and running with new machine.  But since I’ve seen the error on this machine now, I live in fear it will reappear and stop working.  So if you come up with any thoughts I would appreciate it. 
    Thanks,
    -Lyle

  • Jdeveloper - Could not initialize class javax.swing.KeyStroke

    I am trying to install jdeveloper on a new machine, I have installed latest JDK from sun and downloaded the jdevstudiobase101033.zip file, however once I have followed the instructions to install on linux (Fedora core 11 - 64bit) and try to fire jdev up using jdev/bin/jdev I get the following error message:
    Oracle JDeveloper 10g 10.1.3.3
    Copyright 1997, 2007 Oracle. All Rights Reserved
    java.lang.NoClassDefFoundError: Could not initialize class javax.swing.KeyStroke
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at oracle.ide.IdeCore.class$(IdeCore.java:98)
         at oracle.ide.IdeCore.startupImpl(IdeCore.java:816)
         at oracle.ide.Ide.startup(Ide.java:674)
         at oracle.ideimpl.Main.start(Main.java:49)
         at oracle.ideimpl.Main.main(Main.java:25)
    I have trawled through google and forums at oracle with no joy, could someone kindly give me some pointers as to what I have missed or what may be wrong ?
    Thanks
    Ian

    It is running the 32 bit JDK, the 64 bit threw up errors even earlier in the startup porcedure.
    Ian

  • Could not initialize class com.crystaldecisions.reports.dataengine.DataSour

    Dear All,
    I am getting nuts and frustrated with Crystal Reports currently. One day or the other some problem
    is coming where there is no reference how to solve it. The support is very slow for java developers.
    Anyhow, i made to work the formula, i was working on yesterday with the PREVIEW inside Eclipse
    Helios.
    Now when i generated the JSP for it, i have started getting strange error, here is it given
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Could not initialize class com.crystaldecisions.reports.dataengine.DataSourceManager---- Error code:-2147467259 Error code name:failed
    I dont now what to do, i am in fix, please help.
    Prithvi

    That file is found in CrystalReportsRuntime.jar

  • Could not initialize class com.crystaldecisions.reports.formatter.export2.E

    i m using Eclipse 3.4.1 Crystal Reports development tool. I have tried to develop a report. On preview it's working fine. when i host the application into tomcat6.0 and tried to open the link, web page provides an Error like "Could not initialize class com.crystaldecisions.reports.formatter.export2.ExportSupervisorEx"
    1 hr before it was worked but not now. i had tried in all the way but getting same problem.
    Anyone help me to solve this issue.
    Thanks in advance.
    Regards,
    Ram

    Thanks Ted. Can u help me on changing the datasource.
    Actually i need to change the datasource from development environment to production server. i had configured the JNDI informations like the following:
    <Context path="/RFT" docBase="RFT" reloadable="true">
            <Resource
              auth="Container"
              type="javax.sql.DataSource"
              driverClassName="com.microsoft.jdbc.sqlserver.SQLServerDriver"
              validationQuery="select 1"
              name="jdbc/datasource"
              username="sa"
              password="$m1sbag$"
              maxIdle="-1"
                     maxActive="0"
              maxWait="5000"
                url="jdbc:microsoft:sqlserver://172.24.151.149:1433;databaseName=Projectgold" />
               <WatchedResource>WEB-INF/web.xml</WatchedResource>
    </Context>
    and mentioned the JNDI Connection Name as 'jdbc/datasource'. but still getting the same connection which one is configured during the report design. need your help to resolve this...
    Thanks,
    Ram

  • Could not initialize class weblogic.wsee.jaxws.spi.WLSProvider

    Hi,
    I'm new in WebLogic . I created some jee projects (usually simple) before, but only in glassfish or tomcat. I read simple netbeans tutorial http://netbeans.org/kb/docs/websvc/jax-ws.html , but when i run this project in WebLogic i had the error:
    java.lang.NoClassDefFoundError: Could not initialize class weblogic.wsee.jaxws.spi.WLSProvider
    - WebLogic 12c, Java 7.0_15
    Any ideas?

    Do I have to add wseeclient.jar to classpath when i create web service ? It is not a client appplication.

  • Could not initialize class DataSourceManager

    Could not initialize class com.crystaldecisions.reports.dataengine.DataSourceManager
    i'm getting that exception running the next code on a servlet:
    try{
    String REPORT_NAME = "C:\\test.rpt";
    ReportClientDocument reportClientDoc = new ReportClientDocument();
    reportClientDoc.open(REPORT_NAME, 0);
    // set up a viewer
    CrystalReportViewer viewer = new CrystalReportViewer();
    viewer.setOwnPage(true);
    viewer.setOwnForm(true);
    viewer.setPrintMode(CrPrintMode.PDF);
    // pass it the report source
    viewer.setReportSource(reportClientDoc.getReportSource());
    //Render the report.
    viewer.processHttpRequest(request, response, getServletConfig().getServletContext(), null);
            }catch(Exception ex){
                out.print("error: "+ex.getMessage());
    i already downloaded and imported(only these) the lastest runtime jars for eclipe(i'm using netbeans 6.8, JDK 1.6.0), copied the crystalreportsviewers to webapp directory and created this crconfig.xml on web-inf/classes folder:
    <?xml version="1.0" encoding="utf-8" ?>
    - <CrystalReportEngine-configuration>
      <reportlocation>../reports</reportlocation>
      <timeout>0</timeout>
    - <ExternalFunctionLibraryClassNames>
      <classname />
      </ExternalFunctionLibraryClassNames>
      </CrystalReportEngine-configuration>
    that's all i have set up
    my rpt(bult on CR2008 12.0.0.683 developer edition), just shows a "hello world test" message...
    thanks
    Edited by: TheJez on Nov 5, 2010 8:19 PM

    Thanks so much D Pavan K.
    It's work now. 

Maybe you are looking for

  • Opatch issue while applying the patch 6400501

    upgrading the database with R12.0.6 for database from 10g to 11g. as per pre-requisites we have to apply the iAS patch 6400501 According to the doc id 1058763.1 we are applying the 10.1.0.5 version of patch 6400501 to the 10.1.2 Oracle Home This inve

  • Appletv will not repeat a video playlist more than 3 times via AirPlay

    Trying to AirPlay a video playlist from my laptop to apple tv and have it repeat. It repeats on laptop but will only repeats a few times on apple tv then stops and goes to appletv menu

  • After one year, why will CS3 not let me include commas in file names?

    For nearly a year, we have been scanning obits and opening the scans in CS3 on a Windows Vista laptop.  We change the mode from bitmap to grayscale in order to save them as a JPG. We then save the file in the manner as follows:  JONES, Kathryn Lillis

  • Adope acrobat 9 - font problem

    Hallo all of you out there. I get this error when trying to edit a pdf document using adope acrobat 9. I use the Touchup tool, mark the text and when trying to delete or write anything i get the error below (dropbox link, Danish) Dropbox - adope acro

  • Split dynamic sql

    Hi All, I hve a different Requirement, i'm creating a rfc which execute the sql which is given by the client side n these r  long  single dynamic sql. MY work is to write a (dynamic)code which split this sql in different small sql acc to their join c