Instantiate appender
I am getting an error like this ..Can you Pls help
Response ---> error waiting for process to exit: child process lost (is SIGCHLD ignored or trapped?)log4j:ERROR Could not find
value for key log4j.appender.R
log4j:ERROR Could not instantiate appender named R.
Exception in thread main java.net.SocketException: Connection timed out:could be due to invalid address
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:336)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:201)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:188)
at java.net.Socket.connect(Socket.java:482)
at java.net.Socket.connect(Socket.java:432)
at java.net.Socket.<init>(Socket.java:339)
at java.net.Socket.<init>(Socket.java:150)
at com.ibm.jsse.bv.<init>(Unknown Source)
at com.ibm.jsse.JSSESocketFactory.createSocket(Unknown Source)
at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:93)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:652)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:628)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:497)
at HTTPSTaxClient.main(HTTPSTaxClient.java:87)
Connection timed out:could be due to invalid addressI haven't done much with sockets but I'm betting this is important.
Similar Messages
-
Log4j, appender and InstantiationException
Hi,
I have written my own appender in an Eclipse project that uses log4j. When I try to use the appender I get the following exception:
log4j:ERROR Could not instantiate class [test.appender.NewFileAppender].
java.lang.InstantiationException: test.appender.NewFileAppender
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.apache.log4j.helpers.OptionConverter.instantiateByClassName(OptionConverter.java:329)
at org.apache.log4j.helpers.OptionConverter.instantiateByKey(OptionConverter.java:120)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:629)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:612)
at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:533)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:417)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:316)
at org.apache.log4j.PropertyWatchdog.doOnChange(PropertyConfigurator.java:682)
at org.apache.log4j.helpers.FileWatchdog.checkAndConfigure(FileWatchdog.java:88)
at org.apache.log4j.helpers.FileWatchdog.<init>(FileWatchdog.java:57)
at org.apache.log4j.PropertyWatchdog.<init>(PropertyConfigurator.java:674)
at org.apache.log4j.PropertyConfigurator.configureAndWatch(PropertyConfigurator.java:382)
at se.micronic.argos.main.Main.initLogging(Main.java:305)
at se.micronic.argos.main.Main.<init>(Main.java:272)
at se.micronic.argos.main.Main.main(Main.java:1339)
log4j:ERROR Could not instantiate appender named "argos".My property file looks like this:
log4j.appender.argos=test.appender.NewFileAppender
log4j.appender.argos.file=logs/MArgos.logThe other appenders in the property file work fine.
Any ideas?
Thanks
Markuscould be you don't have a no-args constructor? show us the NewFileAppender class
is that the entire stack trace? there's no other underlying exception being thrown? -
Log4j Error while deploying application in weblogic
Hi All,
I am deploying one web application in weblogic, which uses log4j jar file to write logs. But ahile deploying it shows the following error in weblogic console.
Please help on this.
log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@169e11] whereas object of type
log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [weblogic.utils.classloaders.ChangeAwareClassLoader@169baee finder: weblogic.utils.classloaders.CodeGenClassFinder@44c4a4 annotation: Server@Server].
log4j:ERROR Could not instantiate appender named "log".
log4j:WARN No appenders could be found for logger (com.servion.citigreece.util.LoggerUtil).
log4j:WARN Please initialize the log4j system properly.
Thanks & Regards,
Raja Mohammed.Seems like a classic case of having log4j both in the war and the app-server's own libraries.
At least in JBoss this would be fixed by making sure that common/lib's log4j jar is being used (or alternatively, removing that and using the one in the war, but that might not go as smooth). -
How to set filename into log4j.properties using LogFactory from apache
I'm getting a java.lang.ClassCastException .. Please help. Thanks.
package src;
import java.io.IOException;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.log4j.Category;
import org.apache.log4j.rolling.RollingFileAppender;
public class FileLock {
private static Log log = LogFactory.getLog(FileLock.class);
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
String logFile="C:/TEST123.TXT";
RollingFileAppender apd = (RollingFileAppender) ((Category) log).getAppender("FILELOG");
apd.setFile(logFile);
apd.activateOptions();
log.debug ( "This is a test debug");
log.trace ( "This is a test trace");
log.fatal ( "This is a test fatal");
Snapshot from my log4j.xml.
<appender name="FILELOG" class="org.apache.log4j.RollingFileAppender">
<param name="File" value="C:/a.log" />
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern"
value="[%d{ISO8601}] %-5p %c %m %n" />
</layout>
<filter class="org.apache.log4j.varia.LevelRangeFilter">
<param name="LevelMin" value="DEBUG"/>
<param name="LevelMax" value="INFO"/>
</filter>
</appender>
*************Thanks here's the list:
log4j:INFO Using URL [file:/C:/TEST2/FileLocking/bin/log4j.xml] for automatic log4j configuration of repository named [default].
[2006-08-10 10:52:08,421] DEBUG org.apache.log4j.joran.action.ConfigurationAction Ignoring debug attribute.
[2006-08-10 10:52:08,437] DEBUG org.apache.log4j.joran.action.AppenderAction About to instantiate appender of type [org.apache.log4j.FileAppender]
[2006-08-10 10:52:08,453] DEBUG org.apache.log4j.joran.action.AppenderAction Appender named as [FILELOG]
[2006-08-10 10:52:08,453] DEBUG org.apache.log4j.joran.action.AppenderAction Pushing appender on to the object stack.
[2006-08-10 10:52:08,453] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [File] to value [C:/a.log].
[2006-08-10 10:52:08,484] DEBUG org.apache.log4j.joran.action.LayoutAction About to instantiate layout of type [org.apache.log4j.PatternLayout]
[2006-08-10 10:52:08,531] DEBUG org.apache.log4j.joran.action.LayoutAction Pushing layout on top of the object stack.
[2006-08-10 10:52:08,531] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [ConversionPattern] to value [[%d{ISO8601}] %-5p %c %m %n].
[2006-08-10 10:52:08,593] DEBUG org.apache.log4j.joran.action.LayoutAction Popping layout from the object stack
[2006-08-10 10:52:08,593] DEBUG org.apache.log4j.joran.action.LayoutAction About to set the layout of the containing appender.
[2006-08-10 10:52:08,593] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [LevelMin] to value [DEBUG].
[2006-08-10 10:52:08,593] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [LevelMax] to value [INFO].
[2006-08-10 10:52:08,593] DEBUG org.apache.log4j.FileAppender setFile called: C:/a.log, true
[2006-08-10 10:52:08,609] DEBUG org.apache.log4j.FileAppender setFile ended
[2006-08-10 10:52:08,609] DEBUG org.apache.log4j.joran.action.AppenderAction Popping appender named [FILELOG] from the object stack
[2006-08-10 10:52:08,609] DEBUG org.apache.log4j.joran.action.AppenderAction About to instantiate appender of type [org.apache.log4j.ConsoleAppender]
[2006-08-10 10:52:08,609] DEBUG org.apache.log4j.joran.action.AppenderAction Appender named as [STDOUT]
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.AppenderAction Pushing appender on to the object stack.
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [Target] to value [System.out].
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.LayoutAction About to instantiate layout of type [org.apache.log4j.PatternLayout]
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.LayoutAction Pushing layout on top of the object stack.
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [ConversionPattern] to value [[%d{ISO8601}] %-5p %c %m %n].
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.LayoutAction Popping layout from the object stack
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.LayoutAction About to set the layout of the containing appender.
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [LevelMin] to value [DEBUG].
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [LevelMax] to value [INFO].
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.AppenderAction Popping appender named [STDOUT] from the object stack
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.AppenderAction About to instantiate appender of type [org.apache.log4j.ConsoleAppender]
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.AppenderAction Appender named as [STDERR]
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.AppenderAction Pushing appender on to the object stack.
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [Target] to value [System.err].
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.LayoutAction About to instantiate layout of type [org.apache.log4j.PatternLayout]
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.LayoutAction Pushing layout on top of the object stack.
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [ConversionPattern] to value [[%d{ISO8601}] %-5p %c %m %n].
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.LayoutAction Popping layout from the object stack
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.LayoutAction About to set the layout of the containing appender.
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [LevelMin] to value [WARN].
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [LevelMax] to value [FATAL].
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.AppenderAction Popping appender named [STDERR] from the object stack
[2006-08-10 10:52:08,625] DEBUG org.apache.log4j.joran.action.AppenderAction About to instantiate appender of type [org.apache.log4j.net.SMTPAppender]
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.AppenderAction Appender named as [EMAIL]
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.AppenderAction Pushing appender on to the object stack.
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [BufferSize] to value [512].
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [SMTPHost] to value [exchange.medi.com].
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [From] to value [[email protected]].
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [To] to value [[email protected]].
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [Subject] to value [[SMTPAppender] Application message].
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.LayoutAction About to instantiate layout of type [org.apache.log4j.PatternLayout]
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.LayoutAction Pushing layout on top of the object stack.
[2006-08-10 10:52:08,734] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [ConversionPattern] to value [[%d{ISO8601}]%n%n%-5p%n%n%c%n%n%m%n%n].
[2006-08-10 10:52:08,750] DEBUG org.apache.log4j.joran.action.LayoutAction Popping layout from the object stack
[2006-08-10 10:52:08,750] DEBUG org.apache.log4j.joran.action.LayoutAction About to set the layout of the containing appender.
[2006-08-10 10:52:08,750] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [LevelMin] to value [ERROR].
[2006-08-10 10:52:08,750] DEBUG org.apache.log4j.joran.action.ParamAction In ParamAction setting parameter [LevelMax] to value [FATAL].
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.AppenderAction Popping appender named [EMAIL] from the object stack
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.RootLoggerAction Pushing root logger on stack
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.LevelAction Encapsulating logger name is [root], levelvalue is [all].
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.LevelAction root level set to ALL
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.AppenderRefAction Attaching appender named [FILELOG] to logger named [root].
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.AppenderRefAction Attaching appender named [STDOUT] to logger named [root].
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.AppenderRefAction Attaching appender named [STDERR] to logger named [root].
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.AppenderRefAction Attaching appender named [EMAIL] to logger named [root].
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.action.RootLoggerAction Removing root logger from top of stack.
[2006-08-10 10:52:08,812] DEBUG org.apache.log4j.joran.JoranConfigurator Finished parsing.
java.lang.ClassCastException
at src.FileLock.main(FileLock.java:19)
Exception in thread "main" -
Using log4j in User definied Extension Function java class
Hi
I am having a java class where I defined all the user defined XSL Functions.
I used System.out.println for printing.
But I want to use log4j. But when I use this to debug. It is not recognising only.
Could you please tell me why this is not working in this class?
Regards,
PraveenaHi Anuj,
I can see the below error in the default log file:
09/08/11 16:25:21 log4j:ERROR A "org.apache.log4j.RollingFileAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
09/08/11 16:25:21 log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
09/08/11 16:25:21 log4j:ERROR [global.libraries:1.0] whereas object of type
09/08/11 16:25:21 log4j:ERROR "org.apache.log4j.RollingFileAppender" was loaded by [oracle.bpel.common:10.1.3].
09/08/11 16:25:21 log4j:ERROR Could not instantiate appender named "LOGFILE".
09/08/11 16:25:21 log4j:WARN No appenders could be found for logger (oracle.sample.XSLFunction).
09/08/11 16:25:21 log4j:WARN Please initialize the log4j system properly.
log4j.properties file:
# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, LOGFILE
# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.RollingFileAppender
log4j.appender.LOGFILE.File= C:/product/10.1.3.1/OracleAS_1/opmn/logs/XSLUtilExten.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=INFO,DEBUG
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=<%d>[%t] %p %C: %m%n
log4j.appender.LOGFILE.MaxFileSize=40MB
log4j.appender.LOGFILE.MaxBackupIndex=10
Could you please tell me what is the problem?
Edited by: Jakarta on Aug 11, 2009 4:16 AM -
Coldfusion lockup on some pages
HI,
I have been running coldfusion7 on a linux box (red hat AS3)
for a while now,
but just recently it's been refusing to show some pages some
times, and I am at
a lost as to why. The only error I can find is the one below
which I am not
sure what is causing it.
More offen than not restart coldfusion fixes the problem but
some times it
takes a reboot of the server to fix.
Has any one experience this problem ?
Thanks.
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is
not assignable to a
"org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded
by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@7b7072]
whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
[coldfusion.bootstrap.BootstrapClassLoader@17c96a9].
log4j:ERROR Could not instantiate appender named "CONSOLE".
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is
not assignable to a
"org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded
by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@7b7072]
whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by
[coldfusion.bootstrap.BootstrapClassLoader@17c96a9].
log4j:ERROR Could not instantiate appender named "CONSOLE".Try resetting the zoom level for those pages.
See this:
https://support.mozilla.com/en-US/kb/Page+Zoom -
Log4j.jar issue under Web Service Security Module
I am running into an issue with log4j.jar for WebLogic OES PDP. there is a custom appender class that extends org.apache.log4j.AppenderSkeleton, if we packed into one jar file under \bea\ales32-ssm\webservice-ssm\lib\log4j.jar everthing is fine. if we split this class with another jar file(sth like patch.jar) and add a entry in the config file WLESws.wrapper.conf under bea\ales32-ssm\webservice-ssm\instance\WSSM\config and it failed with this error,
but an error is
generated when starting the WSSM(Web Service Security Module):
log4j:ERROR A "com.foo.AuditJMSQueueAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [com.bea.security.providers.utils.InverseURLClassLoader@5f7d3f] whereas object of type
log4j:ERROR "com.foo.AuditJMSQueueAppender" was loaded by [sun.misc.Launcher$AppClassLoader@a18aa2].
log4j:ERROR Could not instantiate appender named "JMS_AUDIT".
130
ARME is started now
Rendering object type: AuditAtzEvent
I have tried add java option:log4j.ignoreTCL=true. in this WLESws.wrapper.conf file, but does not work.
How to resolve this issue, Thanks for your help!hi
Can anyone help with this... -
I'm trying to test the running test cases available in the Oracle Internet Directory Connector for OIM but I'm failing because it seems that the current release of this connector doesn't have the java class tcUtilTestOID as described in the documentation. This class should be at test\troubleshoot\scripts directory, but there there are only the batch files with the test cases.
while running the testcreate.bat file.....a window prompting user id and password appears for tcUtilTestOID
troubleshoot directory contains two folders named config (config.properties,log.properties) and scripts (testcreate.bat,testmodify.bat and testdelete.bat files)
where do i need to add the code provided in a similar case below
This is the code. Include this in your custom jar file with the same name. You will be done I suppose:
import com.thortech.util.logging.Logger;
import com.thortech.xl.integration.OID.util.tcUtilLDAPOperations;
import java.io.*;
import java.util.Properties;
import javax.naming.directory.BasicAttribute;
import javax.naming.directory.BasicAttributes;
public class tcUtilTestOID
private static String CONFIG_FILEPATH = "global.properties";
public tcUtilTestOID()
public static void main(String args[])
tcUtilLDAPOperations ldapOp = null;
Logger logger = Logger.getLogger("TEST_USER_PROVISION");
logger.info("**********************************");
logger.info("**********************************" + args[0]);
try
FileInputStream configfile = null;
try
configfile = new FileInputStream(CONFIG_FILEPATH);
catch(FileNotFoundException fe)
logger.error("Unable to find configfile(" + CONFIG_FILEPATH + ")");
fe.printStackTrace();
Properties prp = new Properties();
try
prp.load(configfile);
catch(IOException ie)
logger.error("Unable to load configfile(" + CONFIG_FILEPATH + ")");
ie.printStackTrace();
String serverName = prp.getProperty("serverName");
String portNo = prp.getProperty("portNo");
String rootContext = prp.getProperty("rootContext");
String principalDN = prp.getProperty("principalDN");
String principalPass = prp.getProperty("principalPassword");
boolean sslFlag = "true".equalsIgnoreCase(prp.getProperty("sslFlag"));
logger.info("serverName = " + serverName);
logger.info("portNo = " + portNo);
logger.info("rootContext = " + rootContext);
logger.info("principalDN = " + principalDN);
logger.info("sslFlag = " + sslFlag);
logger.info("===================================\n");
ldapOp = new tcUtilLDAPOperations(serverName, portNo, rootContext, principalDN, principalPass, sslFlag);
String ldapUserDNPrefix = "cn";
String ldapObjectClass = "objectclass";
String ldapUserObjectClass = "inetOrgPerson";
String ldapFirstName = "givenName";
String ldapLastName = "sn";
String ldapCommonName = "cn";
String ldapPassword = "userPassword";
String containerDN = prp.getProperty("containerDN");
logger.info("containerDN = " + containerDN);
logger.info("UserOperation selected = " + args[0]);
if(args[0].equalsIgnoreCase("createUser"))
logger.info(" CREATE USER CALLED");
String createUserFName = prp.getProperty("createUser.firstName");
String createUserLName = prp.getProperty("createUser.lastName");
String createUserUserDN = prp.getProperty("createUser.userDN");
String createUserUserPass = prp.getProperty("createUser.userPassword");
logger.info("createUser.firstName = " + createUserFName);
logger.info("createUser.lastName = " + createUserLName);
logger.info("createUser.userDN = " + createUserUserDN);
logger.info("createUser.userPassword = " + createUserUserPass + "\n\n");
BasicAttributes basicattributes = new BasicAttributes(true);
basicattributes.put(new BasicAttribute(ldapObjectClass, ldapUserObjectClass));
basicattributes.put(new BasicAttribute(ldapFirstName, createUserFName));
basicattributes.put(new BasicAttribute(ldapLastName, createUserLName));
basicattributes.put(new BasicAttribute(ldapCommonName, createUserFName + " " + createUserLName));
basicattributes.put(new BasicAttribute(ldapPassword, createUserUserPass));
ldapOp.connectToLDAP();
boolean userCreated = ldapOp.createObject(ldapUserDNPrefix + "=" + createUserUserDN + "," + containerDN, basicattributes);
ldapOp.disconnectFromLDAP();
if(userCreated)
logger.info("\t>> " + createUserUserDN + " - USER_CREATION_SUCCESSFUL");
} else
logger.info("\t>> " + createUserUserDN + " - USER_CREATION_FAILED");
} else
if(args[0].equals("modifyUser"))
logger.info(" MODIFY USER CALLED");
String modifyUserUserDN = prp.getProperty("modifyUser.userDN");
String modifyUserParamName = prp.getProperty("modifyUser.paramName");
String modifyUserParamValue = prp.getProperty("modifyUser.paramValue");
logger.info("modifyUser.userDN = " + modifyUserUserDN);
logger.info("modifyUser.paramName = " + modifyUserParamName);
logger.info("modifyUser.paramValue = " + modifyUserParamValue);
ldapOp.connectToLDAP();
BasicAttributes basicattributes = new BasicAttributes(true);
basicattributes.put(new BasicAttribute(modifyUserParamName, modifyUserParamValue));
boolean isUserModified = ldapOp.modifyAttributesReplace(ldapUserDNPrefix + "=" + modifyUserUserDN + "," + containerDN, basicattributes);
ldapOp.disconnectFromLDAP();
if(isUserModified)
logger.info("\t>> " + modifyUserUserDN + " - USER_UPDATE_SUCCESSFUL");
} else
logger.info("\t>> " + modifyUserUserDN + " - USER_UPDATE_FAILED");
} else
if(args[0].equals("deleteUser"))
logger.info(" DELETE USER CALLED");
String deleteUserUserDN = prp.getProperty("deleteUser.userDN");
logger.info("deleteUser.userDN = " + deleteUserUserDN);
ldapOp.connectToLDAP();
boolean isUserDeleted = ldapOp.deleteObject(ldapUserDNPrefix + "=" + deleteUserUserDN + "," + containerDN);
ldapOp.disconnectFromLDAP();
if(isUserDeleted)
logger.info("\t>> " + deleteUserUserDN + " - USER_DELETION_SUCCESSFUL");
} else
logger.info("\t>> " + deleteUserUserDN + " - USER_DELETION_FAILED");
catch(Exception e1)
e1.printStackTrace();
return;
}hi,
I created a class file in the Jave Task folder mentioned by you,then also I am facing with the same exception.
While prompted to give userid and password by tcUtilTestOID popup screen,which id and pwd should I provide ?
I get the following error while running the testcreate.bat file
C:\oim\xellerate\test\troubleshoot\scripts>testcreate.bat 1
log4j:ERROR Could not find value for key log4j.appender.INFO
log4j:ERROR Could not instantiate appender named "INFO".
user name in Main===
INFO,11 Jan 2010 12:50:25,337,[TEST_USER_PROVISION],***************************
INFO,11 Jan 2010 12:50:25,337,[TEST_USER_PROVISION],***************************
*******createUser
DEBUG,11 Jan 2010 12:50:25,368,[org.jboss.security.SecurityAssociation],Using Th
readLocal: false
ERROR,11 Jan 2010 12:50:25,368,[XELLERATE.JBOSSLOGINHANDLER],Error in creating l
ogin context
javax.security.auth.login.LoginException: java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.
java:85)
at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
at org.jboss.security.ClientLoginModule.initialize(ClientLoginModule.jav
a:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:756)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
86)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
80)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at Thor.API.Security.LoginHandler.jbossLoginHandler.login(Unknown Source
at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
at Thor.API.tcUtilityFactory.<init>(Unknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.loginToXellerate(U
nknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.TestUtility(Unknow
n Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.actionPerformed(Un
known Source)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
at javax.swing.JTextField.postActionEvent(JTextField.java:705)
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:8
20)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja
va:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard
FocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo
ardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo
ardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
usManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:872)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:1
86)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:6
80)
at javax.security.auth.login.LoginContext.login(LoginContext.java:579)
at Thor.API.Security.LoginHandler.jbossLoginHandler.login(Unknown Source
at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
at Thor.API.tcUtilityFactory.<init>(Unknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.loginToXellerate(U
nknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.TestUtility(Unknow
n Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.actionPerformed(Un
known Source)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
at javax.swing.JTextField.postActionEvent(JTextField.java:705)
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:8
20)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja
va:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard
FocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo
ardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo
ardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
usManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: TRACE
at org.jboss.logging.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.
java:85)
at org.jboss.logging.Logger.isTraceEnabled(Logger.java:122)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:660)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.lookup
Home(Unknown Source)
at com.thortech.xl.ejb.interfaces.tcUnauthenticatedOperationsUtil.getHom
e(Unknown Source)
at Thor.API.Security.ClientLoginUtility.getUnauthenticatedOperations(Unk
nown Source)
at Thor.API.Security.ClientLoginUtility.login(Unknown Source)
at Thor.API.tcUtilityFactory.<init>(Unknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.loginToXellerate(U
nknown Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.TestUtility(Unknow
n Source)
at com.thortech.xl.integration.OID.test.tcUtilTestOID.actionPerformed(Un
known Source)
at javax.swing.JTextField.fireActionPerformed(JTextField.java:492)
at javax.swing.JTextField.postActionEvent(JTextField.java:705)
at javax.swing.JTextField$NotifyAction.actionPerformed(JTextField.java:8
20)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2849)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2884)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2812)
at java.awt.Component.processEvent(Component.java:5818)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.ja
va:1848)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboard
FocusManager.java:697)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeybo
ardFocusManager.java:962)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeybo
ardFocusManager.java:834)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFoc
usManager.java:661)
at java.awt.Component.dispatchEventImpl(Component.java:4285)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThre
ad.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.
java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
C:\oim\xellerate\test\troubleshoot\scripts> -
Coldfusion in J2EE configuration
hi,
i m trying to deploy CF7 as a war in JBoss4.0.3 SP1 on Fedora
Core 4.
But the commons-logging.jar and log4j.jar in both JBoss and
CF seem to break the flow.
During JBoss startup, a message that might need attention is
14:16:42,842 INFO [TomcatDeployer] deploy, ctxPath=/cfusion,
warUrl=.../deploy/cfusion.war/
14:16:48,420 INFO [STDOUT] log4j:ERROR A
"org.jboss.logging.appender.FileAppender" object is not assignable
to a "org.apache.log4j.Appender" variable.
14:16:48,423 INFO [STDOUT] log4j:ERROR Could not instantiate
appender named "FILE".
After the startup, on accessing any cfm the error I get is :
14:19:12,166 ERROR [[CfmServlet]] Servlet.service() for
servlet CfmServlet threw exception
java.lang.ExceptionInInitializerError
Caused by:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JLogger does not implement Log
I have tried some of these but with no success:
1. removing the commons-logging.jar and log4j.jar from
cfusion.war.
2. upgrading the above jars in cfusion.war with the ones in
JBoss.
Any help would be appreciated.
Regards,
ZaraIan Skinner wrote:
>And that in multi-server, ColdFusion is placed in a
controlling
>position. I.E. you can easily go the lifetime of a server
never
>working with the JRun Console. At least I have never had
to use it.
>I've done all my administration with the ColdFusion
administration
>console and|or JVM config files.
Since we have used the full JRun 2 CPU license since 2003, we
have kept it separate from the CF deployment, i.e. deploying CF as
an expanded WAR file on 50+ server instances. We are doing a proof
of concept on moving up to 64-bit, so I just need to confirm that
multi-server configuration is indeed host within the built-in JRun
app server at 64-bits.
>That may be where some of this is coming from. I believe
I read
>somewhere that Adobe is no longer developing JRun as a
separate >product from ColdFusion. It is my understanding that
the ColdFusion >team has incorporated the JRun team into their
organization.
Yes, that makes sense. Starting with CF8, I think, is when
JRun was no longer sold as a separate application server.
>If this is true, I would say that 'Yes' you can not buy a
64 bit version
>of JRun on it's own. Rather you get the 64 bit JRun when
you install
>the 64 bit ColdFusion in a JRun based configuration, i.e.
stand-alone or
>multi-home. Thus you would never again use the j2ee
installation option
>to install ColdFusion to an 'existing' JRun because you
can no longer
>get a separate JRun.
That does make sense re. the 64-bit version of JRun being
bundled with CF 8.0.1 for multi-server configuration deployment,
but that a separate 64-bit version of JRun application is _not_
available.
Thanks! -
Create Web Services Through Eclipse
Hi,
Any one can help me , I am creating the web services and facing below error. I am new to create web service.
Apr 25, 2010 7:59:02 AM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Program Files\Intel\WiFi\bin\
Apr 25, 2010 7:59:02 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Apr 25, 2010 7:59:02 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 437 ms
Apr 25, 2010 7:59:02 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Apr 25, 2010 7:59:02 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.14
[INFO] Clustering has been disabled
[INFO] Deploying module: addressing-1.5.1 - file:/D:/rocking/rockprojects/weser01/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/RajWebSer/WEB-INF/modules/addressing-1.5.1.mar
log4j:ERROR A "org.apache.log4j.ConsoleAppender" object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded by
log4j:ERROR [org.apache.catalina.loader.StandardClassLoader@119cca4] whereas object of type
log4j:ERROR "org.apache.log4j.ConsoleAppender" was loaded by [WebappClassLoader
delegate: false
repositories:
/WEB-INF/classes/
----------> Parent Classloader:
org.apache.catalina.loader.StandardClassLoader@119cca4
log4j:ERROR Could not instantiate appender named "CONSOLE".
[ERROR] The mex-1.5.1.mar module, which is not valid, caused org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
org.apache.axis2.deployment.DeploymentException: org.apache.axis2.mex.MetadataExchangeModule cannot be cast to org.apache.axis2.modules.Module
at org.apache.axis2.deployment.repository.util.ArchiveReader.readModuleArchive(ArchiveReader.java:529)
at org.apache.axis2.deployment.ModuleDeployer.deploy(ModuleDeployer.java:71)
at org.apache.axis2.deployment.repository.util.DeploymentFileData.deploy(DeploymentFileData.java:136)
at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:659)
at org.apache.axis2.deployment.RepositoryListener.init(RepositoryListener.java:251)
at org.apache.axis2.deployment.RepositoryListener.init2(RepositoryListener.java:68)
at org.apache.axis2.deployment.RepositoryListener.<init>(RepositoryListener.java:63)
at org.apache.axis2.deployment.DeploymentEngine.loadRepository(DeploymentEngine.java:147)
at org.apache.axis2.deployment.WarBasedAxisConfigurator.getAxisConfiguration(WarBasedAxisConfigurator.java:229)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(ConfigurationContextFactory.java:64)
at org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:525)
at org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:443)
at org.apache.axis2.webapp.AxisAdminServlet.init(AxisAdminServlet.java:56)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4045)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4351)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:516)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
at org.apache.catalina.startup.Catalina.start(Catalina.java:566)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Edited by: JayRajDeep on Apr 24, 2010 8:32 PM
Edited by: JayRajDeep on Apr 24, 2010 8:34 PMCouple of points to note:
1) Mentioned error is not due to web service
2) It sounds like the classpath issue, logger error etc. Fix those error first. -
Log4j conflict???
I am trying to move an app from CFusion Standard MX7 to
CFusion Enterprise MX7. I've copied over all the CF pages and java
classes. The app makes use of log4j and we use the same log4j.jar
that CF does. All works fine on CF Standard. While the app works
fine on CF Enterprise (in its own instance), logging doesn't work.
Looking through the CF log I see this:
log4j:ERROR A "org.apache.log4j.DailyRollingFileAppender"
object is not assignable to a "org.apache.log4j.Appender" variable.
log4j:ERROR The class "org.apache.log4j.Appender" was loaded
by
log4j:ERROR [sun.misc.Launcher$AppClassLoader@53ba3d] whereas
object of type
log4j:ERROR "org.apache.log4j.DailyRollingFileAppender" was
loaded by [coldfusion.bootstrap.BootstrapClassLoader@dc9065].
log4j:ERROR Could not instantiate appender named "A2".
I thought there may be different or multiple versions of
log4j.jar, but the only log4.jar is in the app instances
WEB-INF/cfusion/lib directory.
Any help would be appreciated.Not necesary the file must be named as log4j.properties , right ?
So I think it is bad architecture decision to have this file at the classpath level ... so what about if you deploy another app with the same requirements ?
Cheers !
Jin -
Append data rows to spry dataset
Hello,
Is thre anyway to append data to already loaded spry dataset?
so that the rows displayed in spry area will automatically updated.
ie, my plan is to load and xml to a dataset and again append
some more data to the dataset on request .
please help...
thanks,
devloshHi Devlosh,
Here's a possbile way to accomplish this. You'll need to
write a few lines of code but the steps are as follows.
Intro:
There are currently two datasets types that can be used with
spry:regions. One is the basic DataSet (uses data that a developer
is feeding it) and the other is the XMLDataSet (takes its data from
an XML file, using XPath to filter the rows).
Steps:
1. You'll have to use a basic DataSet for displaying the
records. Instantiate one on the page (don't feed any data to it)
and then build your markup (spry:region / spry:repeat that uses
this DataSet). A basic sample on how a simple DataSet is used is
presented here:
http://labs.adobe.com/technologies/spry/samples/DataSetSample.html
2. Use a second XMLDataSet that points to the server files
that brings chunks of data (5 records at a time):
"getData.cfm?start=1".
3. Register a function as an observer for the XMLDataSet for
the "onPostLoad" event (here's a sample of using observers:
http://labs.adobe.com/technologies/spry/samples/DataSetObserver.html).
This function should get the data from the XMLDataSet and attach it
to the data in the first DataSet. Like this:
//ds1 is the DataSet, ds2 is the XMLDataSet
var start = ds1.data.length;
// get data from XMLDataSet and feed it to the DataSet used
to display in spry:regions
for (var idx = 0; idx < ds2.data.length; idx++)
var row = ds2.data[idx];
row['ds_RowID'] = (start + idx);
ds1.dataHash[row['ds_RowID']] = row;
ds1.data.push(row);
// call loadData on ds1 to trigger the display of data
ds1.loadData();
4. Right after the instantiation of this XMLDataSet, call
ds2.loadData(); in order to trigger the downloading of the first
chunk of data
5. Build a "Get Next Data" button and call a function that
does:
ds2.setURL('getData.cfm?start=[NEXT_START]');
ds2.loadData();
Hope this helps you,
Best regards,
Dragos -
CONS- 10031: Cannot instantiate publication
Hi..
I successfully published an application, and assigned users to this application. in spite the web manager confirms suuccessful assignment, the webtogo console gives the following message:
CONS- 10031: Cannot instantiate publication
Could anyone tell what this means?
I don't have any problem in the synchronization process but I'm worry that it has an effect later on.An Oracle table is limited to 30 characters. But for Oracle Lite it is limited to 26 because Oracle Lite creates mapping and version tables associated to those base tables and has to append CVR$, CEQ$, CFM$, CLG$, or CMP$ to the beginning of those table names. If you already have a data structure in place and you can't easily change those table names, you will have to create synonyms for those tables. So the limitation is valid for Oracle Lite.
-
Appended log files are not well formed XML?
I'm working on a retrofit of our home grown logging class to use the new java.util.logging classes. It works beautifully with one exception. If I need to instantiate the logger in the same day, appending to an existing log file, I get a second (or third, or fourth) <?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE log SYSTEM "logger.dtd"> tag inserted at the beginning of the new log entries. This causes the log file to not be well formed and therefore cannot be parsed.
I've looked and looked, but can't find a method to suppress these extra tags. Anybody know a way? We want to use this on a development server that will be restarted several times a day. If I don't append, it wipes out my previous logs for the day.You'll have to do something to prevent your logger from appending to old logs that have been closed. Sorry if that is not very helpful, but I'm not familiar with the logging features in SDK 1.4. For your interest, though, Log4J (which you can get from Apache) also features XML logging, and it solved that rather obvious problem thus:
"The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file."
In other words, you would have to wrap the output in an XML header and a root node to be able to use it, which is not difficult to do. -
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
Maybe you are looking for
-
T61 with memory leak on XP for driver battc.sys
Hi I have an issue with XP where the battc.sys module that is part of Windows XP and responsible for the kernel side of monitoring the battery status. This module continually leaks memory until I have no more kernel paged resources left and programs
-
hi all, i'm having a problem getting the returnvalue of a storedproc. i'm using oracle database and created an oracle function that returns a clob data. unfortunately in vb.net, it won't accept clob format. if i change the returnvalue to varchar2 for
-
Conditional Master & body page in Adobe Forms
Hi, I have an existing Master and body page in my PDF Form. Based on some value appearing in the internal table, I need to display another Master(with only Content area) and Body page. So in my case I have created two master and two body pages. Only
-
OSX Lion User Application folder missing.
Trying to install an application soley for a user in OS X Lion. Although I don't have an "Applications" folder in my user folder. Did they take this option out of Lion or am I missing something here?
-
Should I use ResourceBundle for this?
I have an app that displays some static data (Earthquakes in California from 1970 to 1980). Right now this data in the form of an ASCII CSV file is read in using a hard coded location /javaprojects/EQ/data/CA.1970-1980.txt. I am wondering if Resource