Error: could not be converted to [class java.lang.Class].

I am newbie to JDeveloper (10.1.2) on winxp and i was trying to setup the example from the following url http://radio.weblogs.com/0129487/2003/09/19.html
It is a how to on "Executing Toplink Queries using JavaBean DataControl "
Any help would be greatly appreciated.
Near the bottom on step "In StrutsPageFlow diagram, select allEmpsDA Data Action, right mouse and chooe Run" i get a the following runtime errors:
Validation Error
You must correct the following error(s) before proceeding:
JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.toplink.exceptions.ConversionException, msg= Exception Description: The object [mypackage.Employees], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager Internal Exception: java.lang.ClassNotFoundException: mypackage.Employees
JBO-29000: Unexpected exception caught: oracle.toplink.exceptions.ConversionException, msg= Exception Description: The object [mypackage.Employees], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager Internal Exception: java.lang.ClassNotFoundException: mypackage.Employees
Exception Description: The object [mypackage.Employees], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager Internal Exception: java.lang.ClassNotFoundException: mypackage.Employees

This error is happening on a read.
Here is the mapping descriptor:
<database-mapping>
<attribute-name>SuppItemCollection</attribute-name>
<read-only>false</read-only>
<reference-class>package.SuppItem</reference-class>
<is-private-owned>false</is-private-owned>
<uses-batch-reading>false</uses-batch-reading>
<indirection-policy>
<mapping-indirection-policy>
<type>oracle.toplink.internal.indirection.NoIndirectionPolicy</type>
</mapping-indirection-policy>
</indirection-policy>
<container-policy>
<mapping-container-policy>
<container-class>java.util.Vector</container-class>
<type>oracle.toplink.internal.queryframework.ListContainerPolicy</type>
</mapping-container-policy>
</container-policy>
<source-key-fields>
<field>SUPP.REQ_NUM</field>
</source-key-fields>
<target-foreign-key-fields>
<field>SUPP_ITEM.REQ_NUM</field>
</target-foreign-key-fields>
<type>oracle.toplink.mappings.OneToManyMapping</type>
</database-mapping>
Object model has a Supp class that has a collection of SuppItem(s). I was allowing the Mapping Workbench to create the Java Source. I'm not to fond of that, but I thought it would be easiest to get things going.
The datamodel is similiar to the class model.
Thanks for the help,
Mike

Similar Messages

  • Error: Could not read reports properties.  java.lang.NullPointerException

    Hi All,
    I am facing Could not read reports properties. java.lang.NullPointerException while trying to run the report using below string
    String:_
    /rcrmap2/weblogic/bea/ORA_PFRD/bin/rwrun module=/rcrmkr1/exe_dir/CA_PG1_T.rdf CUSTGRPID=''001139'' CANO=104 CACOPY=''F'' OPTION=''W'' CCODE=''KR'' USERID=apl_D_RCRMNIU3/Q5e3C4l1FPjrG6epG6f3C4dqFMgsDP@krcrmd DESTYPE=FILE DESNAME=/rcrmkr1/crms_RG/rep_dir/gcapg1_to_test_20110112_121902.rep BATCH=YES MODE=CHARACTER DESFORMAT=/rcrmap2/weblogic/bea/ORA_PFRD/reports/printers/wide.prt pagesize=132x80
    Environment Variables :*
    export ORACLE_LOCALPREFERENCE=/rcrmap2/weblogic/bea/rcrms/config/FRComponent/frcommon/tools/admin/
    export WIDE_DEF=/rcrmap2/weblogic/bea/ORA_PFRD/reports/printers/hplwide.prt
    export WIDE_VIW=/rcrmap2/weblogic/bea/ORA_PFRD/reports/printers/wide.prt
    export REPORTS_FONT_DIRECTORY=/rcrmap2/weblogic/bea/rcrms/reports/fonts
    export REPORTS_TAGLIB_URI=/WEB-INF/lib/reports_tld.jar
    export REPORTS_NO_DUMMY_PRINTER=TRUE
    export REPORTS_TMP=/tmp
    export RW=/rcrmap2/weblogic/bea/ORA_PFRD/reports
    export LD_LIBRARY_PATH=/rcrmap2/weblogic/bea/ORA_PFRD/jdk/jre/lib/ppc64:/rcrmap2/weblogic/bea/ORA_PFRD/jdk/jre/lib/ppc64/classic:/rcrmap2/weblogic/bea/ORA_PFRD/lib:/usr/dt/lib:
    export LIBPATH=/rcrmap2/weblogic/bea/ORA_PFRD/lib:/usr/dt/lib:/rcrmap2/weblogic/bea/ORA_PFRD/jdk/jre/lib/ppc64:/rcrmap2/weblogic/bea/ORA_PFRD/jdk/jre/lib/ppc64/classic:/usr/lpp/cobol/lib:/oracle/oracle/11.1.0.7/lib:/oracle/oracle/11.1.0.7/lib32:/rcrmkr1/exe_dir/pvcs_12july/pco:.
    export LDR_CNTRL=USERREGS@MAXDATA=0x80000000
    export TK_ICON=/rcrmap2/weblogic/bea/ORA_PFRD/reports/plugins/resource
    export REPORTS_DEFAULT_DISPLAY=NO
    export REPORTS_CLASSPATH=/rcrmkr1/exe_dir:/rcrmap2/weblogic/bea/ORA_PFRD/reports/jlib/rwbuilder.jar:/rcrmap2/weblogic/bea/ORA_PFRD/reports/jlib/rwrun.jar:/rcrmap2/weblogic/bea/ORA_PFRD/jlib/zrclient.jar:/rcrmap2/weblogic/bea/ORA_PFRD/modules/oracle.jsp_11.1.1/ojsp.jar:/rcrmap2/weblogic/bea/ORA_PFRD/javacache/lib/cache.jar:/rcrmap2/weblogic/bea/ORA_PFRD/modules/oracle.javacache_11.1.1/cache.jar
    Please help to provide your inputs
    Regards,
    Harish

    Hi,
    The problem was resolved by setting proper acl's to the corresponding directories (cache directory) in the application server
    Regards,
    Harish

  • UI Error 'Method clone not found in class java.lang.Class'

    When attempting to view an application window in the User Interface error I receive the error 'Method clone not found in class java.lang.Class'. The window will run correctly when I execute the application and other objects on the window are displayed correctly in the UI editor.
    Within the window class I have used the following line of code to clone a reference list of values that is loaded just once when the application starts up: -
    dsDefaultComboBoxModel priorityComboBoxModel = (dsDefaultComboBoxModel) dsReferenceLuLists.priorityComboBoxModel.clone();
    And then this line of code to create a combo box: -
    dsGuiComboBoxRefelu priorityComboBox = new dsGuiComboBoxRefelu(priorityComboBoxModel,ReportWindowSql.priorityCodeBuffer);
    And then later on the combo box is displayed.
    detailsArea.add(priorityComboBox, new XYConstraints(250,10,dsGlobalVariables.gvFieldWidthLarge,-1));
    'dsDefaultComboBoxModel' is defined as follows: -
    public class dsDefaultComboBoxModel extends DefaultComboBoxModel implements Cloneable
    public dsDefaultComboBoxModel()
    public Object clone()
    try
    return super.clone();
    catch ( CloneNotSupportedException e )
    // Shouldn't happen.
    throw new InternalError( e.toString() );
    This error occurs using the latest v903, but was also present in previous versions of JDeveloper.
    At the moment this means that I did to execute the window in order to see all of the GUI elements that are displayed. As on option I could use something other than the clone method, but it seems to be such a nice way of copying the static reference lists.
    Thanks for any help.

    Hi Darren,
    My guess is that since DefaultComboBoxModel doesn't implement Cloneable, you can't call super.clone(). Does your code compile?
    Later.
    Dennis

  • Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'

    I am geting this error when I enter the "java" command:
    "Error: could not open `C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'"
    I have configured the PATH variable (Windows 2000) and "javac" works. I cannot, however, get my programs to run because of the error every time I type "java". Also, I did not install my JDK / SDK to the directory in which the computer is looking for the "java" cammand (ie. it is not in 'Program Files'...). If anyone can help, it would be greatly appreciated. Thank you.

    Try using the -cp switch on the command line. For example:java -cp . MyProgramIf this corrects the problem, you need to set the classpath variable
    as well as the path.
    Mark

  • Could not connect to remote service - java.lang.NullPointerException

    Hi,
    I'm struggling to get RMI to work on two servers. Locally my client and server work fine together although when I deploy I get a null pointer exception the first time I try and invoke a remote method. I've tried stopping the server app to see if it is actually connecting at I get a connection refused exception when its stopped so I'm assuming it must be connecting.
    Could not connect to remote service  - java.lang.NullPointerException
    com.jws.remoteServices.RemoteUpdateServer.addNewReport(RemoteUpdateServer.java:61)
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    java.lang.reflect.Method.invoke(Method.java:616)
    sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
    sun.rmi.transport.Transport$1.run(Transport.java:177)
    java.security.AccessController.doPrivileged(Native Method)
    sun.rmi.transport.Transport.serviceCall(Transport.java:173)
    sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
    sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    java.lang.Thread.run(Thread.java:636)
    sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
    sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
    sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
    java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:195)
    java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:149)
    $Proxy0.addNewReport(Unknown Source)
    jasperserver.ReportHandler.run(ReportHandler.java:81)Any help would be greatly appreciated,
    Regards,
    Dan
    Edited by: danblackhust on Jul 18, 2010 3:54 AM

    Show us the code that threw and caught this exception.

  • -Error: could not open `C:\Program Files\Java\j2re1.4.0_02\lib\i386\jvm.cf

    Using the classpath switch (as advised to an earlier topic message) doesn't work for me. Can you help?! Many thanks
    N

    Solved this problem by deleting java.exe from C:\WINNT
    N

  • Error: could not open...........

    Particulars: New to Java, Windows 98, Java 1.4.0_01.
    My first program has compiled no-problem. However, when i attempt to run the program i get the following messege in the command prompt.
    Error: could not open 'C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg'
    Upon examination, my (jvm.cfg) is in a completely different directory. I don't know if i installed the Java SDK improperly, or if setting the classpath will help. I even uninstalled, then re-installed program. Also, i attempted to create a directory that matched that which is described in the error messege, (only to create a new "could not open" error).
    Could you please help? Thank you in advance, Dan......

    When you install Java it creates 3 directory trees.
    One, which starts at C:\j2sdk1.4.0_01, contains a copy of the JRE runtime (at C:\j2sdk1.4.0_01\jre\) and the additional program tools and librarys/jars that are needed to create and compile programs.
    The second, which is at C:\Program Files\Java\j2re1.4.0_01\, is a copy of the JRE runtime that was installed above.
    (The third, Webstart, is in C:\Program Files\)
    Because there are 2 JRE's, identical except for where they are, if you have one jvm.cfg you can copy it to the other location. The files are identical when installed. The 2 locations are:
    C:\j2sdk1.4.0_01\jre\lib\i386\jvm.cfg
    C:\Program Files\Java\j2re1.4.0_01\lib\i386\jvm.cfg
    Give that a try...
    That said, I've never heard of this. If you tried to install into a directory other than the default, I suggest that you use the defaults. If you used the defaults and are still having trouble, do a full removal using the Control Panel 'Add/Delete Programs' feature. Make sure that Java 2 Runtime, Java 2 SDK, and Java Webstart are removed. Then delete the 3 directory structures that match these and start over.

  • Could Not Establish Connection to AS Java with Available Profiles

    Hi All,
    I am installing AS Java on SAP Netweaver 7.4 SR2.
    OS: Windows Server 2008r2 and DB: MSSQLSever 2012
    During the installation I got the below error on 28th Phase out of 29th.
    "Deploy Java Components"
    Below is the Error Log as extracted from SAPINST Log File
    [ Error ] Could not establish connection to AS Java on [WIN-9OD90N7C:50204]. Cannot establish connection with any of the available profiles:
    url=WIN-9OD90N7C:50204 protocol=p4 (None); Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 192.168.245.130 and port: 50204
    Check if server is started, access point for the protocol is available, and IP/Host name is accessible on network.. Check if the host and port specified are correct and AS Java is up and running.
    [ LOG EXCEPTION ]  :: Could not establish connection to AS Java on [WIN-9OD90N7C:50204]. Cannot establish connection with any of the available profiles:
    url=WIN-9OD90N7C:50204 protocol=p4 (None); Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 192.168.245.130 and port: 50204
    Check if server is started, access point for the protocol is available, and IP/Host name is accessible on network.. Check if the host and port specified are correct and AS Java is up and running.
    javax.naming.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.interfaces.cross.DestinationException: Cannot establish connection with any of the available profiles:
    url=WIN-9OD90N7C:50204 protocol=p4 (None); Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 192.168.245.130 and port: 50204
    Check if server is started, access point for the protocol is available, and IP/Host name is accessible on network.]
      at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:386)
      at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
      at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
      at javax.naming.InitialContext.init(InitialContext.java:223)
      at javax.naming.InitialContext.<init>(InitialContext.java:197)
      at com.sap.engine.services.dc.api.session.impl.SessionImpl.getContext(SessionImpl.java:215)
      at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.reconnectDeployer(DeployProcessorImpl.java:1954)
      at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.waitResultForOfflineDeploy(DeployProcessorImpl.java:1626)
      at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deployItems(DeployProcessorImpl.java:903)
      at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deploy(DeployProcessorImpl.java:259)
      at com.sap.engine.services.dc.api.cmd.deploy.DeployCommand.performOperation(DeployCommand.java:208)
      at com.sap.engine.services.dc.api.cmd.deploy.DeployCommand.executeCommand(DeployCommand.java:540)
      at com.sap.engine.services.dc.api.cmd.AbstractCommand.execute(AbstractCommand.java:197)
      at com.sap.engine.services.dc.api.cmd.Runner.execute(Runner.java:37)
      at com.sap.engine.services.dc.api.cmd.Runner.main(Runner.java:61)
    Caused by: com.sap.engine.interfaces.cross.DestinationException: Cannot establish connection with any of the available profiles:
    url=WIN-9OD90N7C:50204 protocol=p4 (None); Reason: com.sap.engine.services.rmi_p4.P4IOException: Cannot open connection to host: 192.168.245.130 and port: 50204
    Check if server is started, access point for the protocol is available, and IP/Host name is accessible on network.
      at com.sap.engine.interfaces.cross.Destination.getNextAvailableBroker(Destination.java:64)
      at com.sap.engine.interfaces.cross.Destination.getRemoteBroker(Destination.java:39)
      at com.sap.engine.services.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:298)
      ... 14 more
    Thanks and Regards
    Anurag

    Hi Anurag
    Could you refer the SAP Notes for your issue
    1571274 - Cannot connect to server using message server ms://
    1925352 - How to check the access points (or ports) being used by a live SAP J2EE server
    BR
    SS

  • Object of class stdClass could not be converted to string

    Dear all,
    Im very new in PHP development and trying to consume a ASP.NET webservice.
    This is my code:
    <HTML>
    <HEAD>
    <TITLE>New Document</TITLE>
    </HEAD>
    <BODY>
    <?php
    require_once('lib/nusoap.php');
    $soap = new SoapClient('https://testsoap.test.nl:446/Service1.asmx?wsdl');
      try {
        $result = $soap->testPhp();
        echo "$result";
      } catch (SoapFault $e) {
        echo "Error: {$e->faultstring}";
    ?>
    </BODY></HTML>
    When running this, im getting this error:
    PHP Catchable fatal error: Object of class stdClass could not be converted to string . on line 14.
    And this is line 14 in my code:
    echo "$result";
    Can anyone help me with this issue?
    Thanks

    Without knowing what version of PHP you are using and also there does not seem to be an SAP angle, have you tried var_dump() instead of echo.
    e.g. var_dump($result);
    http://php.net/manual/en/function.var-dump.php

  • Jar file error: could not find main class. program will exit

    I have created a jar file using following command
    jar cfm MyProj.jar Manifest.txt richa\*.class
    and I have included main class header in the Manifest.txt. The executable jar file is created but when I double click on it, it prompts an error Could not find the main class. program will exit.
    Please help. Its urgent..
    Thanks in advance

    This simply state that jvm was unable to fine Main Class file.
    I hope you have configured manifest file including your main file information and class path used by the project with proper package hierarchy,
    as described in article
    [https://java.sun.com/docs/books/tutorial/deployment/jar|https://java.sun.com/docs/books/tutorial/deployment/jar]
    Edited by: Deepesh on Jul 13, 2008 4:58 AM

  • Log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErr

    Hi,
    when i run my standalone application i am getting following error:
    I am using log4j-1.2.15.jar file.
    log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErrorHandler].
    java.lang.ClassNotFoundException: org.jboss.logging.util.OnlyOnceErrorHandler
         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 org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)
         at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320)
         at org.apache.log4j.xml.DOMConfigurator.parseErrorHandler(DOMConfigurator.java:302)
         at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:266)
         at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:171)
         at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:184)
         at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:502)
         at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)
         at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)
         at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)
         at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)
         at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
         at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
         at org.apache.log4j.Logger.getLogger(Logger.java:105)
         at com.DSA.common.offline.batchjob.Job.<clinit>(Job.java:37)
    log4j:ERROR Could not create an Appender. Reported error follows.
    java.lang.ClassNotFoundException: org.jboss.logging.appender.DailyRollingFileAppender
         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 org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)

    solved by adding file
    jboss-common.jar. to the classpath

  • ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErrorHand

    Hi,
    when i run my standalone application i am getting following error:
    I am using log4j-1.2.15.jar file.
    log4j:ERROR Could not instantiate class [org.jboss.logging.util.OnlyOnceErrorHandler].
    java.lang.ClassNotFoundException: org.jboss.logging.util.OnlyOnceErrorHandler
         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 org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)
         at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:320)
         at org.apache.log4j.xml.DOMConfigurator.parseErrorHandler(DOMConfigurator.java:302)
         at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:266)
         at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:171)
         at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.java:184)
         at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurator.java:502)
         at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)
         at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)
         at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)
         at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)
         at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
         at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
         at org.apache.log4j.Logger.getLogger(Logger.java:105)
         at com.DSA.common.offline.batchjob.Job.<clinit>(Job.java:37)
    log4j:ERROR Could not create an Appender. Reported error follows.
    java.lang.ClassNotFoundException: org.jboss.logging.appender.DailyRollingFileAppender
         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 org.apache.log4j.helpers.Loader.loadClass(Loader.java:179)

    My property file is given below:
    what i need to change here?
    log4j.rootLogger=FATAL, dest1
    log4j.logger.dsaLogging=DEBUG, dsa
    log4j.additivity.dsaLogging=false
    log4j.appender.dest1=org.apache.log4j.ConsoleAppender
    log4j.appender.dest1.layout=org.apache.log4j.PatternLayout
    log4j.appender.dest1.layout.ConversionPattern=%-5p:%l: %m%n
    log4j.appender.dest1.ImmediateFlush=true
    log4j.appender.dsa=org.apache.log4j.RollingFileAppender
    log4j.appender.dsa.File=./logs/dsa.log
    log4j.appender.dsa.MaxFileSize=2000KB
    # Previously MaxBackupIndex=2
    log4j.appender.dsa.MaxBackupIndex=5
    log4j.appender.dsa.layout=org.apache.log4j.PatternLayout
    log4j.appender.dsa.layout.ConversionPattern=%l:%d: %m%n

  • Error: "Could not find the main class: Files\NetBeans"

    I am working on a WorldWind mapping application but I think this issue is more of a straight Java question. I was attempting to add a web service reference by means of the NetBeans IDE. The reference compiled as it should have but then the application would not run. I deleted the reference, commented out all the code that used the web reference, basically restored all the code to how it was before trying to add the web service. The applicaiton still will not run with the message that it can't find the main class. I do, however, get a clean build. What should I do to fix this?
    Here is the error: "Could not find the main class: Files\NetBeans"
    thanks!

    nigel25840 wrote:
    I am working on a WorldWind mapping application but I think this issue is more of a straight Java question. I was attempting to add a web service reference by means of the NetBeans IDE. The reference compiled as it should have but then the application would not run. I deleted the reference, commented out all the code that used the web reference, basically restored all the code to how it was before trying to add the web service. The applicaiton still will not run with the message that it can't find the main class. I do, however, get a clean build. What should I do to fix this?
    Here is the error: "Could not find the main class: Files\NetBeans"
    thanks!Sounds like something (a .cmd file or .bat file, perhaps) is set up to launch NetBeans with a command line like this:
    java -classpath ... c:\Program Files\NetBeans ...
    So since the path has embedded space(s) in it, it thinks you are wanting to run a class named "Files\NetBeans", which does not exist.
    You need someone there who knows what they are doing to look into it for you.

  • Error: Could not find or load main class

    Hello everyone!
    I have decided to finally start learning Java and am currently, and slowly, making my way through the tutorials. I am only on chapter 2 in the class section. While reading I came uponJava Tutorials Sample Code and wanted to try and compile it in netbeans. This is the code that it contained:
    class BicycleDemo {
        public static void main(String[] args) {
            // Create two different
            // Bicycle objects
            Bicycle bike1 = new Bicycle();
            Bicycle bike2 = new Bicycle();
            // Invoke methods on
            // those objects
            bike1.changeCadence(50);
            bike1.speedUp(10);
            bike1.changeGear(2);
            bike1.printStates();
            bike2.changeCadence(50);
            bike2.speedUp(10);
            bike2.changeGear(2);
            bike2.changeCadence(40);
            bike2.speedUp(10);
            bike2.changeGear(3);
            bike2.printStates();
    I did the following in order:
    1) New project
    2) Select Java under Categories and Java Application under Projects
    3) I type BicycleDemo in the Project Name Field and click finish
    4) I delete all the template code and paste the above code into the field
    5) I click run and get the following error:
    run:
    Error: Could not find or load main class bicycledemo.BicycleDemo
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)
    Any help would be greatly appreciated! Thanks!

    I have decided to finally start learning Java and am currently, and slowly, making my way through the tutorials. I am only on chapter 2 in the class section. While reading I came uponJava Tutorials Sample Codeand wanted to try and compile it in netbeans. This is the code that it contained:
    class BicycleDemo {
    1) New project
    2) Select Java under Categories and Java Application under Projects
    3) I type BicycleDemo in the Project Name Field and click finish
    4) I delete all the template code and paste the above code into the field
    5) I click run and get the following error:
    run:
    Error: Could not find or load main class bicycledemo.BicycleDemo
    Java Result: 1
    BUILD SUCCESSFUL (total time: 0 seconds)
    Thanks for posting ALL of the info - most posters don't do that and it makes it hard to help them.
    Your exception shows it is looking for 'bicycledemo.BicycleDemo' so the 'BicycleDemo' class is expected to be in a package named 'bicycledemo'. The code you posted and the code at the link does NOT use a package statement.
    When you create a new project in NetBeans it will AUTOMATICALLY add a package name to the start of a new class file. So, unknown to you, it created a package named 'bicycledemo' and put the class file in it.
    In step #4 you deleted the template code (which had a 'package bicycledemo' statement in it) and replaced it with the tutorial code.
    Likely you didn't notice the package statement in the template before you deleted the template code.
    package bicycledemo
    .Add that package statement as the first line of the class source code.
    You should generally ALWAYS put your code in a package. For some reasons many of the tutorials do NOT do that.

  • Eclipse give following error :could not find Java 2 runtime environment

    When I try to start eclipse it is giving me following error could not find Java 2 runtime environment.It was working fine untill I installed a new verson of eclipse although I am not whethar that is the source of problem.
    When i give java -version command in command prompt it shows
    Registry key 'Software\JavaSoft\Java Runtime Environment\CurrentVersion'
    has value '1.4', but '1.6' is required.
    Error: could not find java.dll
    Error: could not find Java 2 Runtime Environment.
    My java Home ,classpath , and path are all set as I say it was earliar woking fine.
    Please Help.

    I know this is a relatively old post, but some people can stumble on this page when doing a search for this problem.
    Anyway, I ran into this on my PC after I installed Sybase which had an older jre.
    Solution:
    1. Run regedit
    2. Look for Java Runtime Environment
    You may have to do multiple searches. Eventually you'll find one with the version number.
    3. Modify the value and change it to the correct version number. (in your case, you would have changed it from 1.4 to 1.6).
    This is much quicker than reinstalling Java every time installing something that uses an older version of Java hoses up the registry value.

Maybe you are looking for

  • How to install SMP Kernel on RHEL 4

    Hi all, I am installing 2 Node RAC on VMWare on RHEL 4. For which i need to have SMP Kernel installed. As of now this is what i have. uname -a Linux abc.xyz.com 2.6.9-5.EL #1 Wed Jan 5 19:22:18 EST 2005 i686 i686 i386 GNU/Linux Kindly guide me to the

  • Scroll Bar Action

    Best explained by example: I have 2000 things of data that I need to populate to a table. This table is being refreshed every 5 seconds. You can imagine the slow down of having to do this. Now, I have method that will allow me to pull out only 25 at

  • Count of words in a string

    i have a string "hai oracle tech team" i want to calculate the number of words in it i.e. it should return 4 how to do it

  • OPEN DATASET in ECC6.0

    Hi Guys, We are upgrading from 4.6c to ECC 6.0 and a lot of our programs are giving unicode compliance error on the OPEN DATASET statement. Even though we are moving to a unicode system, the systems we talk to are not unicode compliant yet so we dono

  • Installing support package 16, 17 and 18 for Netwever 7.0 (ECC 6 EHP 3 )

    Hi I just want to know if we can directly load SP for Netweaver 7.00. I just went through some doc but they said we can upload SP directyl from SPAM tcode. can we install it from SPAM tcode i have component SAP_BASIS SP 16, 17 and 18. i downloaded SP