Haricharan Maramraj

Greenhorn
+ Follow
since Dec 19, 2004
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Haricharan Maramraj

Hi:

I am currently using WSAD 5.1.2 and I would like to upgrade Eclipse SDK from 2.x.x to 3.0.1. Could anyone tell me how I can do that? I already tried by downloading the new version of Eclipse SDK into WSAD installed directory but it throws an error log while opening studio. The error stack is as follows:

!SESSION Jan 18, 2005 15:00:18.671 ---------------------------------------------
eclipse.buildId=M200409161125
java.fullversion=J2RE 1.3.1 IBM J9 build 20031201 (JIT enabled)
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.osgi Jan 18, 2005 15:00:18.671
!MESSAGE Error registering XML parser services.
!STACK 0
java.lang.ClassNotFoundException: javax.xml.parsers.SAXParserFactory
at java.lang.Throwable.<init>(Throwable.java:52)
at java.lang.Throwable.<init>(Throwable.java:66)
at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:79)
at java.lang.Class.forName(Class.java:116)
at org.eclipse.core.runtime.adaptor.EclipseAdaptor.registerEndorsedXMLParser(EclipseAdaptor.java:272)
at org.eclipse.core.runtime.adaptor.EclipseAdaptor.frameworkStart(EclipseAdaptor.java:253)
at org.eclipse.osgi.framework.internal.core.SystemBundleActivator.start(SystemBundleActivator.java:61)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleContextImpl.java:958)
at java.security.AccessController.doPrivileged(AccessController.java:189)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:954)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:937)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:553)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:477)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:273)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.launch(StartLevelManager.java:243)
at org.eclipse.osgi.framework.internal.core.SystemBundle.resume(SystemBundle.java:166)
at org.eclipse.osgi.framework.internal.core.Framework.launch(Framework.java:425)
at org.eclipse.osgi.framework.internal.core.OSGi.launch(OSGi.java:51)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:216)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)

!ENTRY org.eclipse.osgi Jan 18, 2005 15:00:18.859
!MESSAGE Startup error
!STACK 1
java.lang.NoClassDefFoundError: org.xml.sax.helpers.DefaultHandler
at java.lang.Throwable.<init>(Throwable.java:52)
at java.lang.Throwable.<init>(Throwable.java:66)
at java.lang.NoClassDefFoundError.<init>(NoClassDefFoundError.java:57)
at java.lang.ClassLoader.defineClassImpl(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:204)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:133)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:320)
at java.net.URLClassLoader.access$400(URLClassLoader.java:93)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:678)
at java.security.AccessController.doPrivileged(AccessController.java:218)
at java.net.URLClassLoader.findClass(URLClassLoader.java:239)
at java.lang.ClassLoader.loadClass(ClassLoader.java:594)
at java.lang.ClassLoader.loadClass(ClassLoader.java:553)
at org.eclipse.core.runtime.adaptor.PluginConverterImpl.parsePluginInfo(PluginConverterImpl.java:557)
at org.eclipse.core.runtime.adaptor.PluginConverterImpl.fillPluginInfo(PluginConverterImpl.java:111)
at org.eclipse.core.runtime.adaptor.PluginConverterImpl.convertManifest(PluginConverterImpl.java:660)
at org.eclipse.core.runtime.adaptor.EclipseBundleData.generateManifest(EclipseBundleData.java:233)
at org.eclipse.core.runtime.adaptor.EclipseBundleData.loadManifest(EclipseBundleData.java:191)
at org.eclipse.core.runtime.adaptor.EclipseBundleData.getManifest(EclipseBundleData.java:159)
at org.eclipse.core.runtime.adaptor.EclipseBundleData.loadFromManifest(EclipseBundleData.java:280)
at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultBundleData.initializeNewBundle(DefaultBundleData.java:77)
at org.eclipse.osgi.framework.internal.defaultadaptor.DefaultAdaptor$1.begin(DefaultAdaptor.java:451)
at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:746)
at org.eclipse.osgi.framework.internal.core.Framework$2.run(Framework.java:664)
at java.security.AccessController.doPrivileged(AccessController.java:189)
at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:715)
at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:659)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:219)
at org.eclipse.core.runtime.adaptor.EclipseStarter.installBundles(EclipseStarter.java:800)
at org.eclipse.core.runtime.adaptor.EclipseStarter.loadBasicBundles(EclipseStarter.java:429)
at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:222)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:127)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:185)
at org.eclipse.core.launcher.Main.run(Main.java:704)
at org.eclipse.core.launcher.Main.main(Main.java:688)

!ENTRY org.eclipse.osgi Jan 18, 2005 15:00:18.921
!MESSAGE Bundle initial@reference:file:e:/IBM/WSSAD5.1.2/eclipse/plugins/org.eclipse.core.runtime_3.0.1/ [1] was not resolved.

I really appreciate your help. Unfortunately, I could never get my questions answered in this forum. I hope someone spares his time to look at my question.
19 years ago
Hi Pundits:

I am trying to create a jsp file in the WebContent folder of the struts web project but encountered this strange Web Region Wizard Error dialogue with the message as follows:

java.lang.NoSuchMethodError: java/lang/StringBuffer.append(Ljava/lang/String Ljava/lang/AbstractStringBuilder;
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.NoSuchMethodError.<init>(NoSuchMethodError.java:56)
at com.ibm.etools.struts.wizards.jsp.templates.JSPActionForm0.generate(JSPActionForm:1124)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.getFileContents(StructuredWebRegionCodeGenContrib.java:999)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.createNewFile(StructuredWebRegionCodeGenContrib.java:710)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.createFiles(StructuredWebRegionCodeGenContrib.java:588)
at com.ibm.etools.struts.wizards.jsp.codegen.AbstractStrutsWebRegionCodeGenContrib.createFiles(AbstractStrutsWebRegionCodeGenContrib.java:40)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.doExecutions(StructuredWebRegionCodeGenContrib.java:810)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.execute(StructuredWebRegionCodeGenContrib.java:795)
at com.ibm.etools.webtools.wizards.webfilewizard.WebFileRegionCodeGenContrib.execute(WebFileRegionCodeGenContrib.java:42)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.run(StructuredWebRegionCodeGenContrib.java:835)
at com.ibm.etools.webtools.wizards.cgen.WebRegionCodeGenOp.execute(WebRegionCodeGenOp.java:93)
at com.ibm.etools.webtools.wizards.cgen.WebRegionCodeGenOp.run(WebRegionCodeGenOp.java:67)
at com.ibm.etools.j2ee.common.ui.WorkspaceModifyComposedOperation.execute(WorkspaceModifyComposedOperation.java:56)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
at com.ibm.etools.webtools.wizards.WebRegionWizard.performFinish(WebRegionWizard.java:531)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:608)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:321)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:583)
at org.eclipse.jface.window.Window.open(Window.java:563)
at org.eclipse.ui.internal.NewWizardShortcutAction.run(NewWizardShortcutAction.java:96)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:583)

Could anyone please help me solve this problem? I am stuck with this in my development. I really appreciate your help.


Thankyou
Haricharan M.
19 years ago
Hi Everyone:

I am trying to run my first struts example using WSAD 5.1.2
(WebSphere Studio Application Developer)
that I found at ://www.webagesolutions.com/knowledgebase/waskb/waskb003/ site. I have encountered a problem in creating a JSP in Web-Content folder of web project. I followed the steps as described in that site. The description of the error is as follows:

Title of error dialogue: Web Region Wizard Error
Description of Error:
An internal error has occured
java.lang.NoSuchMethodError: java/lang/StringBuffer.append(Ljava/lang/String Ljava/lang/AbstractStringBuilder;
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.Throwable.<init>(Throwable.java)
at java.lang.NoSuchMethodError.<init>(NoSuchMethodError.java:56)
at com.ibm.etools.struts.wizards.jsp.templates.JSPActionForm0.generate(JSPActionForm:1124)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.getFileContents(StructuredWebRegionCodeGenContrib.java:999)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.createNewFile(StructuredWebRegionCodeGenContrib.java:710)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.createFiles(StructuredWebRegionCodeGenContrib.java:588)
at com.ibm.etools.struts.wizards.jsp.codegen.AbstractStrutsWebRegionCodeGenContrib.createFiles(AbstractStrutsWebRegionCodeGenContrib.java:40)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.doExecutions(StructuredWebRegionCodeGenContrib.java:810)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.execute(StructuredWebRegionCodeGenContrib.java:795)
at com.ibm.etools.webtools.wizards.webfilewizard.WebFileRegionCodeGenContrib.execute(WebFileRegionCodeGenContrib.java:42)
at com.ibm.etools.webtools.wizards.cgen.StructuredWebRegionCodeGenContrib.run(StructuredWebRegionCodeGenContrib.java:835)
at com.ibm.etools.webtools.wizards.cgen.WebRegionCodeGenOp.execute(WebRegionCodeGenOp.java:93)
at com.ibm.etools.webtools.wizards.cgen.WebRegionCodeGenOp.run(WebRegionCodeGenOp.java:67)
at com.ibm.etools.j2ee.common.ui.WorkspaceModifyComposedOperation.execute(WorkspaceModifyComposedOperation.java:56)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:71)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1595)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:85)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:302)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:252)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:758)
at com.ibm.etools.webtools.wizards.WebRegionWizard.performFinish(WebRegionWizard.java:531)
at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:608)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:321)
at org.eclipse.jface.dialogs.Dialog$1.widgetSelected(Dialog.java:423)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:89)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java)
at org.eclipse.jface.window.Window.runEventLoop(Window.java)
at org.eclipse.jface.window.Window.open(Window.java:563)
at org.eclipse.ui.internal.NewWizardShortcutAction.run(NewWizardShortcutAction.java:96)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:842)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:456)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:403)
at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:397)
at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:72)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1402)
at org.eclipse.ui.internal.Workbench.run(Workbench.java:1385)
at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:858)
at org.eclipse.core.boot.BootLoader.run(BootLoader.java:461)
at java.lang.reflect.AccessibleObject.invokeL(AccessibleObject.java:207)
at java.lang.reflect.Method.invoke(Method.java:271)
at org.eclipse.core.launcher.Main.basicRun(Main.java:291)
at org.eclipse.core.launcher.Main.run(Main.java:747)
at org.eclipse.core.launcher.Main.main(Main.java:58

I appreciate your help.

Thankyou
Haricharan M.
Nashville, US
19 years ago
Hi Everyone:

I have been struggling to find the root cause of the following error in my application:

could not insert: [com.averitt.DataLayout#1000]
at net.sf.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:63)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:30)
at net.sf.hibernate.persister.AbstractEntityPersister.convert(AbstractEntityPersister.java:1332)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:474)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:438)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:37)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2438)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2391)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2260)
at com.averitt.EventManager.testCreateAndRead(EventManager.java:294)
at com.averitt.EventManager.setUp(EventManager.java:195)
at com.averitt.EventManager.main(EventManager.java:307)
Caused by: com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null

My Table(DataLayout) in the backend looks:

create table db2admin.datalayout(datalayoutid bigint not null primary key, xslfo varchar(30))

My mapping file looks:

<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN" "hibernate-mapping-2.0.dtd">

<hibernate-mapping>
<class name="com.averitt.DataLayout" table="datalayout">
<id name="id" column="datalayoutid" type="long">
<generator class="assigned">
</generator>
</id>

<property name="xslFO" column="xslfo" type="string"/>
</class>

</hibernate-mapping>
<!-- parsed in 10ms -->

My application code looks:

DataLayout layout = new DataLayout();
Long lon = new Long(1000);
layout.setId(lon.longValue());
layout.setXslFO("Extensible Style Sheet Language Formatting Objects");
------------------------
} else if (Class.forName("com.averitt.DataLayout").isInstance(anObject)) {
sess = sessions.openSession();
tx = sess.beginTransaction();

sess.save((DataLayout)anObject);

Could anyone have any idea what's going wrong in my code? I also made sure that no duplicate keys nor null values were set to the above object. I am baffled with this error. I appreciate your help.


Thankyou
Haricharan M.
Hi Everyone:

Could anyone tell me why I could save an object from java with the help of Hibernate? I am getting the following error message:

Dec 27 15:42:41 ERROR {JDBCExceptionReporter.java:58} - DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null
Dec 27 15:42:41 ERROR {SessionImpl.java:2399} - Could not synchronize database state with session
net.sf.hibernate.exception.ConstraintViolationException: could not insert: [com.averitt.DataLayout#1000]
at net.sf.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:63)
at net.sf.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:30)
at net.sf.hibernate.persister.AbstractEntityPersister.convert(AbstractEntityPersister.java:1332)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:474)
at net.sf.hibernate.persister.EntityPersister.insert(EntityPersister.java:438)
at net.sf.hibernate.impl.ScheduledInsertion.execute(ScheduledInsertion.java:37)
at net.sf.hibernate.impl.SessionImpl.executeAll(SessionImpl.java:2438)
at net.sf.hibernate.impl.SessionImpl.execute(SessionImpl.java:2391)
at net.sf.hibernate.impl.SessionImpl.flush(SessionImpl.java:2260)
at com.averitt.EventManager.testCreateAndRead(EventManager.java:294)
at com.averitt.EventManager.setUp(EventManager.java:195)
at com.averitt.EventManager.main(EventManager.java:307)
Caused by: com.ibm.db2.jcc.b.SqlException: DB2 SQL error: SQLCODE: -302, SQLSTATE: 22001, SQLERRMC: null

There is nothing complicated in my class except few getters and setters. And the corresponding table in DB2 has id which is not null and primary key. I also made sure that I am passing ID which is unique and not null while saving the object.

I appreciate your time and effort.

Thankyou
Haricharan M.
Hi everyone:

I am trying to figure out the way to configure cvs in Websphere Application Developer 5.1. Here is what I did as part of my effort to configure it.
1. Installed CVS for windows successfully.
2. In the CVSNT control panel, I added a repositoty whose name and root
are /Temp/CVSRep, E:/Temp/CVSRep respectively.
3. In the advanced tabbedpane of the control panel, I added the run as
user(VISHWAKSENA\Administrator),default domain(my computer name which is VISHWAKSENA) and left the rest of default settings as it is.
4. In the command prompt, I set CVSROOT environment variable as
set CVSROOT= server:administatro@vishwaksena:/Temp/CVSRep
5. Then I invoked 'cvs login' command in the command prompt after which I supplied password.
Now I am confused as to how I should proceed myself to check if it is properly configured. When I try to add the new repository location in WSAD, it is giving me an error message: "Error validating location. I/O Exception occured.Connection refused:E:\Temp\CVSRep:No such repository" keep location anyway?

Could anyone tell me where I did wrong or what needs to be done in addition to what I already did? I appreciate your time and help.


Thankyou Guys
Haricharan M.