Error in ADT class
I have created an ADT class Bus with all the methods necessary. A method in this class will be called in a method in another class 'Terminus'. This method(in 'Terminus') will filter records place of travel wise on any day listing the buses.
But I seem to have a problem in this method (Bus class) when i try to compile the Bus class. The method is shown below:
public boolean isGoing(String place){
for(int i=0; i<places.size(); i++){
if(((String)(places.get(i))).compareTo(place)==0) break;
if(i==places.size()) return false;
else
return true;
The error message that pops up says that this method does not have a return statement.
The whole code for this class(Bus class) is :
* Class to initialize all the variables in bus.
* @param busnum : bus number
* @param s_time : start time
* @param places : places of travel by user
* @param dayorder : To store the dayorder according to String array days
* @author (AIGINI)
* @version (a version number or a date)
import java.util.*;
public class Bus
private String busnum, company;
private Time s_time;
private Vector places;
private String days[] = { "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday" };
private int dayorder;
/**To set an empty constructor in Bus*/
public Bus() { setData (null, null, null, null, 0); }
/**To set a proper constructor for class Bus*/
public Bus (String b, String c, Time st, Vector p, int dy) {
setData(b, c, st,p, dy);
/**To create a set method for class Bus*/
private void setData(String b, String c, Time st, Vector p, int dy)
busnum = b;
company = c;
s_time = st;
places = p;
dayorder = dy;
/**To get the bus number from user*/
public String getBusnum()
return busnum;
/**To get company name from user*/
public String getCompany()
return company;
/**To get start time from user*/
public Time getS_Time()
return s_time;
/**To get places from user*/
public Vector getPlaces(){
return places;
/**To get day order from user*/
public int getDayorder()
return dayorder;
/**to return true or false when moving from one place to another*/
public boolean isGoing(String place){
for(int i=0; i<places.size(); i++){
if(((String)(places.get(i))).compareTo(place)==0) break;
if(i==places.size()) return false;
else
return true;
/**To return output*/
public String toString()
return busnum + "\t" + company + "\t" + dayorder + "\t" + s_time + "\t" + places;
Message was edited by:
Aigini
But I seem to have a problem in this method (Bus
class) when i try to compile the Bus class. The
method is shown below:
public boolean isGoing(String place){
for(int i=0; i<places.size(); i++){
f(((String)(places.get(i))).compareTo(place)==0)
break;
if(i==places.size()) return false;
else
return true;
error message that pops up says that this method
does not have a return statement.
public boolean isGoing(String place) {
for(int i=0; i<places.size(); i++) {
if(((String)(places.get(i))).compareTo(place)==0) break;
if(i==places.size()) // this cannot happen!
return false;
else
return true;
// This is where the code continues if the 'break;' statement is excecuted
// What will be returned?
}Perhaps the following is more appropriate:
public boolean isGoing(String place) {
return places.contains(place);
}
Similar Messages
-
Error while creating class java/util/LinkedHashMap$EntryIterator
ORA-29545: badly formed class: User has attempted to load a class (java.util
.LinkedHashMap$EntryIterator) into a restricted package. Permission can be grant
ed using dbms_java.grant_permission(<user>, LoadClassInPackage...
-----Any Suggestion?
regards,
AnjanAnjan,
Pardon me for stating the obvious, but did you do what the error message suggested? In other words, did you grant the required permission?
Good Luck,
Avi. -
Error while converting class file to exp and jca file
error while converting *.class file to *.exp and *.jca file
=====================================================================================================================
linux-y60u:/home/admin/java_card_kit-2_2_1/samples/src # converter -exportpath "/home/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/HelloWorld 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/HelloWorld.class
parsing /home/admin/java_card_kit-2_2_1/samples/src/com/sun/javacard/samples/HelloWorld/Identity.class
error: com.sun.javacard.samples.HelloWorld.HelloWorld: unsupported class file format of version 50.0.
error: com.sun.javacard.samples.HelloWorld.Identity: unsupported class file format of version 50.0.
conversion completed with 2 errors and 0 warnings.
=====================================================================================================================i compile a file javacard use this command:
===
javac -source 1.3 -target 1.1 -g -classpath ./classes:../lib/api.jar:../lib/installer.jar src/com/sun/javacard/samples/Identity/Identity.java
===
and try to convert this class use this command
===
/home/xnuxerx/admin/java_card_kit-2_2_1/bin/converter -exportpath "/home/xnuxerx/admin/java_card_kit-2_2_1/lib/" com/sun/javacard/samples/Identity 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b 1.0 -v -applet 0x00:0x01:0x02:0x03:0x04:0x05:0x06:0x07:0x0b:0x01 Identity
===
result convert:
===
Java Card 2.2.1 Class File Converter, Version 1.3
Copyright 2003 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
parsing /home/xnuxerx/admin/java_card_kit-2_2_1/samples/classes/com/sun/javacard/samples/Identity/Identity.class
converting com.sun.javacard.samples.Identity.Identity
error: export file framework.exp of package javacard.framework not found.
conversion completed with 1 errors and 0 warnings.
===
why ??
please your comment for this problem.
thank 4 all. -
Post Author: lkamesam
CA Forum: Integrated Solutions
Hi,
I am running Crystal Reports version 10 from IBM Rational 6.0.1 build 20050725_1800 XML data source. When I try to run the report under WAS 6.0.1 I get the following error:
Does any body have any clue how to resolve my problem? Thanks
Error 500: Error while defining class: com.crystaldecisions.data.xml.CRDB_XMLImpl This error indicates that the class: OCA.OCAdbdll.DbDLLOperations could not be located while defining the class: com.crystaldecisions.data.xml.CRDB_XMLImpl This is often caused by having the class at a higher point in the classloader hierarchy Dumping the current context classloader hierarchy: ==> indicates defining classloader *** indicates classloader where the missing class could have been found ==>[0] com.ibm.ws.classloader.CompoundClassLoader@163dd786 Local ClassPath: C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\classes;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\bobj_platform_jsf.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cecore.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\celib.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\ceplugins.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cereports.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\cesession.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\clientlogic.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\Concurrent.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CorbaIDL.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CRDBXMLExternal.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CRDBXMLServer.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalCharting.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalCommon.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalContentModels.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalExporters.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalExportingBase.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalFormulas.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalQueryEngine.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalReportEngine.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\CrystalReportingCommon.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\ebus405.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\icu4j.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\jrcerom.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\jsf_common.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\keycodeDecoder.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\log4j.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\MetafileRenderer.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rasapp.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rascore.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\rpoifs.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\serialization.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\URIUtil.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\webreporting-jsf.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\webreporting.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\xercesImpl.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent\WEB-INF\lib\xmlParserAPIs.jar;C:\Documents and Settings\Administrator\IBM\rationalsdp6.0\workspace\sample1\WebContent; Delegation Mode: PARENT_FIRST [1] com.ibm.ws.classloader.JarClassLoader@338761606 Local Classpath: Delegation mode: PARENT_FIRST [2] com.ibm.ws.classloader.ProtectionClassLoader@38e75786 [3] com.ibm.ws.bootstrap.ExtClassLoader@7e475784 [4] sun.misc.Launcher$AppClassLoader@7e5a5784 [5] sun.misc.Launcher$ExtClassLoader@7e565784 -Original exception- java.lang.NoClassDefFoundError: OCA/OCAdbdll/DbDLLOperations at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java(Compiled Code)) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader._defineClass(CompoundClassLoader.java:576) at com.ibm.ws.classloader.CompoundClassLoader.findClass(CompoundClassLoader.java(Compiled Code)) at com.ibm.ws.classloader.CompoundClassLoader.loadClass(CompoundClassLoader.java(Compiled Code)) at java.lang.ClassLoader.loadClass(ClassLoader.java(Compiled Code)) at com.crystaldecisions.reports.queryengine.driver.i.<init>(Unknown Source) at com.crystaldecisions.reports.queryengine.driver.i.case(Unknown Source) at com.crystaldecisions.reports.queryengine.av.ak(Unknown Source) at com.crystaldecisions.reports.queryengine.av.else(Unknown Source) at com.crystaldecisions.reports.queryengine.av.byte(Unknown Source) at com.crystaldecisions.reports.queryengine.av.do(Unknown Source) at com.crystaldecisions.reports.queryengine.as.new(Unknown Source) at com.crystaldecisions.reports.queryengine.at.long(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.datainterface.j.a(Unknown Source) at com.crystaldecisions.reports.reportdefinition.cy.b(Unknown Source) at com.crystaldecisions.reports.reportdefinition.cy.long(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.a(Unknown Source) at com.crystaldecisions.reports.common.ab.a(Unknown Source) at com.crystaldecisions.reports.common.ab.if(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.if(Unknown Source) at com.crystaldecisions.reports.reportdefinition.a1.o(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.a.a(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSource.a(Unknown Source) at com.crystaldecisions.reports.reportengineinterface.JPEReportSourceFactory.createReportSource(Unknown Source) at com.crystaldecisions.report.web.a.a.K(Unknown Source) at com.crystaldecisions.report.web.event.aa.a(Unknown Source) at com.crystaldecisions.report.web.event.aa.a(Unknown Source) at com.crystaldecisions.report.web.event.bx.a(Unknown Source) at com.crystaldecisions.report.web.event.b1.broadcast(Unknown Source) at com.crystaldecisions.report.web.event.as.a(Unknown Source) at com.crystaldecisions.report.web.WorkflowController.if(Unknown Source) at com.crystaldecisions.report.web.WorkflowController.doLifecycle(Unknown Source) at com.crystaldecisions.report.web.ServerControl.a(Unknown Source) at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ServerControlTag.doEndTag(Unknown Source) at com.crystaldecisions.report.web.viewer.taglib.ReportServerControlTag.doEndTag(Unknown Source) at com.ibm._jsp._sample._jspx_meth_crviewer_viewer_0(_sample.java:135) at com.ibm._jsp._sample._jspService(_sample.java:77) at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:88) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1212) at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:629) at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:117) at com.ibm.ws.jsp.webcontainerext.JSPExtensionServletWrapper.handleRequest(JSPExtensionServletWrapper.java:171) at com.ibm.ws.jsp.webcontainerext.JSPExtensionProcessor.handleRequest(JSPExtensionProcessor.java:230) at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:2837) at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:220) at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:204) at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1681) at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:77) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:421) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:367) at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:276) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:201) at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:103) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:548) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:601) at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:934) at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1021) atFor those who would have the same problem, here is how I could eventually fix it.
Since the Flex Test Drive is sometimes out of sync with flash builder 4, I recreated a project using other help pages on Adobe site :
Entry point :
http://help.adobe.com/en_US/Flex/4.0/AccessingData/WSbde04e3d3e6474c4-668f02f4120d422cf08- 7ffd.html
As suggested, I used the New Project wizard to create a new project, with :
Application server type : J2EE
Check the radio button "Use remote object access service : BlazeDS"
Then, as indicated in following pages (section "Accessing BlazeDS")... :
file:///C:/Mes%20documents%20C/Commun/Developpement/Documentation/HT-Tracks/AccessingData/ help.adobe.com/en_US/Flex/4.0/AccessingData/WSbde04e3d3e6474c4-668f02f4120d422cf08-7ffe.ht ml#WSbde04e3d3e6474c4-19a3f0e0122be55e1b7-8000
...I selected the "Data / Connect to Data/Services..." menu option, which started the Data/service connection wizard.
There, I selected a BlazeDS (and not Web Services) service type, and everything went fine.
Suggestion to adobe staff : maybe it would be useful to update the Flex Test Drive to reflect Flash Builder 4 ?
Very nice product anyway, so far, congratulations...
Rgds
Marc. -
While applying the patch getting an error Failed:xdoloader.class on worker
Hi,
While applying the patch getting an error Failed:xdoloader.class on workerWhile applying the patch getting an error Failed:xdoloader.class on workerPlease post the details of the application release, database version and OS.
What is the patch number you are trying to apply?
Please post the complete error message from adpatch log file.
Thanks,
Hussein -
Run time error while using Class gcl_error
Hi All,
I am getting run time error while using class gcl_error
type REF to zsreport_error_handling:
'' Attempt to access a component using 'NULL' object reference (points to nothing).
An object reference must point to an object ( an instance of a class) before you can use it to access components ( variable : ''GCL_ERROR'').
Either the reference point has not yet been set or it has been reset to 'NULL' by a clear statement."
Can you please suggest any solution for this ?
Thanks in advance.Dear All
Its Resolved Thanks For your Valuable time Support
INCLUDE LV03VFB4 inside below code trigger error.
PERFORM VVBBD_AUFBAUEN USING WA_AVBBD
WA_AVBBD-APOMOBILE
DA_SUBRC
DA_UPDKZ
DA_VVBBD_TABIX
0.
This Was the Error some how 0 was there we are removed the 0 now it is working fine
Rgds
Thomson -
JVM 1.4.2_03 error no main class found
Hello,
A very strange error encountered "main class not found" on running the application written using JDK 1.4.1_01 on JVM 1.4.2_03 on XP OS. The same application works perfectly well on JVM 1.4.1_01 on XP OS.
The said application has not been modified since six month and has been working in live environment under JVM 1.4.1_01.
Any answer to this.
Thanks
bhbmSounds like you're trying to run it from a Jar ?
Eg. java -jar myapp.jar
Trying running "jar -tf myapp.jar" to see if the jar is still valid / not corrupt.
Ensure you use the jar command from 1.4.2_03, to validate whether the jar format, manifest information etc can be read using that version.
regards,
Owen -
Error When Using Class :(
Hey,
Class:
package
import flash.display.MovieClip;
import flash.events.Event;
public class Main extends MovieClip
public var enemyA:Array = [];
public var birdA:Array = [];
public var rowNum:int = 2;
private var gap:int = 100;
private var obj_no = 2;
public var enemy1:mychar = new mychar();
public var TheBird:BirdChar = new BirdChar();
public function Main()
// constructor code
createEnemyF();
createBirdF();
this.addEventListener(Event.ENTER_FRAME,loopF);
public function createEnemyF()
for (var i:int = 0; i < rowNum; i++)
for (var j:int = 0; j < obj_no; j++)
enemy1.x = Math.random() * stage.stageWidth - enemy1.width;
enemy1.y = - i * (gap + enemy1.height) - 30.65;
enemyA.push(enemy1);
addChild(enemy1);
public function createBirdF() {
TheBird.x = 270.95;
TheBird.y = 350.95;
birdA.push(TheBird);
addChild(TheBird);
public function loopF(event:Event) {
updateEnemyPositionsF();
updateBirdPositionsF();
hitTestF();
public function updateEnemyPositionsF() {
enemy1.y += 2;
public function updateBirdPositionsF() {
TheBird.x = mouseX;
public function hitTestF() {
if(TheBird.hitTestObject(enemy1))
gotoAndPlay(5);
trace('The Bird Hit Enemy 1');
This conflicts and causes this error:
1046: Type was not found or was not a compile-time constant: MouseEvent
^ ^ Code repeats to all of my event listeners
Thanks for your time.Thanks, i thought it might be this because of previous problems but i seen i already had : import flash.events.Event; so i thought that would be OK!
Second Error:
1180: Call to an undefined method Timer.
I think this is the same sort of thing but what to import to fix this?
So far these are my imports:
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
Thanks for helping.
Date: Thu, 3 Nov 2011 05:36:22 -0600
From: [email protected]
To: [email protected]
Subject: Error When Using Class
Re: Error When Using Class
created by markerline in Flash Pro - General - View the full discussion
Looks like you imported events.Event but not events.MouseEvent (or some similar syntax) basically you must import MouseEvents separately from other Events.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4005227#4005227
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4005227#4005227. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Flash Pro - General by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
Error about base class not being found in custom class when extending
I have gone through the process of extending the base View Object oracle.apps.icx.lov.server.ExpenditureTypeNoAwardLovVO. My extension object is: snl.oracle.apps.icx.lov.server.SnlExpenditureTypeNoAwardLovVO. The extension was done to change the query used in this LOV. I get the following 3 compile errors when I rebuild my project. Error: can't read: C:\JDevOAframework\jdevhome\jdev\myprojects\oracle\apps\icx\lov\server\ExpenditureTypeNoAwardLovVORowImpl.java
Error(2,35): cannot access class oracle.apps.icx.lov.server.ExpenditureTypeNoAwardLovVORowImpl; file oracle\apps\icx\lov\server\ExpenditureTypeNoAwardLovVORowImpl.class not found
Error(10,60): class ExpenditureTypeNoAwardLovVORowImpl not found in class snl.oracle.apps.icx.lov.server.SnlExpenditureTypeNoAwardLovVORowImpl
I have the oracle.apps.icx.lov.server package in my project and it has the following 3 files in it:
ExpenditureTypeNoAwardLovVO.xml
ExpenditureTypeNoAwardLovVORowImpl.class
ExpenditureTypeNoAwardLovVORowImpl.java
I do not have the last file (the .java one) on my local drive under C:\JDevOAframework\jdevhome\jdev\myprojects\oracle\apps\icx\lov\server.
Is the .java file not supposed to be in the package? I'm not sure how it got there since we don't have access to it on the server, etc.
If anyone has any suggestions your help is greatly appreciated!
Thanks,
PaulaThe second 2 errors were solved by copying the ExpenditureTypeNoAwardLovVORowImpl.class to my myclasses directory under oracle/apps/icx/lov/server and then recompiling.
I'm still not sure why an empty .java file was added to my project causing the first error. I was doing this extension on a machine with Windows 2000 and I had created a new workspace (other than toolbox.jws) when I got this error. When I did the same extension on a machine with Windows XP and in the toolbax.jws workspace, the empty .java file didn't get added to my project and I didn't get the first compile error. Not sure if one of these variables was the cause. -
Compilation Error for import classes not found in generated Proxy Class
Hi,
We are generating java classes for the COM dll using JCOM com2java compiler.
We are getting a compilation error for import class not found when compiling the
generated Proxy java source code. It can't find the com.bea.jcom.Dispatch class that
the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
or com.bea.jcom.Param. These are interfaces or data types or classes used by COM
library.
I added weblogic.jar to my class path and the only Dispatch class i found inside
the weblogic.jar is com.linar.jintegra.Dispatch;
We have com objects for which we want to develop an EJB client to interface with
the COM object using JCOM with Native Mode disabled.
Any help on the compilation error..I tried changing the extends for Dispatch to com.linar.jintegra.Dispatch
but the other errors are still there.
To begin with, I think the generated code should not refer to any of the COM data
types.
Any help please.
Thank you in advance,
Regards,
Rahul Srivastava
[email protected]Hi,
I resolved the other errors by changing all references from com.bea.jcom.Variant
etc to com.linar.jintegra.class name..all were present under the com.linar.jintegra
package.
Thank you all anyways,
Regards,
rahul
"Rahul Srivastava" <[email protected]> wrote:
>
Hi,
We are generating java classes for the COM dll using JCOM com2java compiler.
We are getting a compilation error for import class not found when compiling
the
generated Proxy java source code. It can't find the com.bea.jcom.Dispatch
class that
the generated Proxy java source code extends. It also can't find com.bea.jcom.Variant
or com.bea.jcom.Param. These are interfaces or data types or classes used
by COM
library.
I added weblogic.jar to my class path and the only Dispatch class i found
inside
the weblogic.jar is com.linar.jintegra.Dispatch;
We have com objects for which we want to develop an EJB client to interface
with
the COM object using JCOM with Native Mode disabled.
Any help on the compilation error..I tried changing the extends for Dispatch
to com.linar.jintegra.Dispatch
but the other errors are still there.
To begin with, I think the generated code should not refer to any of the
COM data
types.
Any help please.
Thank you in advance,
Regards,
Rahul Srivastava
[email protected] -
Message Error in classification (class REL_PREQ_ITEM class type 032
Hi gurus,
Can anybody plz explain me to solve the following message. This comes when i hit the classification button in the release strategies step in the release procedure
Error in classification (class REL_PREQ_ITEM class type 032
Thanks
AnushaI made changes to 4 strategies in the development client and they seemed to work fine. so i pushed them to quality system. and now out of the 4 startegies for two strategies i get this message. When i mean i changed the strategy in the development client, i refer to the characteristics on the classification of a release startegy, i replaced a purchasing group and changed the dollar amount out of the chracterisitics doc type, account assignemnt category, total dollar value, purchasing group and plant. I tested to make sure that the release startegy kicks off when all the conditions are met for that startegy in pur req in the development environment. But now this does not happen in the quality system. I get that message and also the release startegy is not getting kicked off in the quality environment
Thanks
Anusha -
Hi All,
while Running Client Proxies from se80 im getting Following error. i already checked all the Services All are active only. can any one suggest me:
SOAP:1.026 SRT: HTTP-Code 500: ("Internal Server Error")
Exception of class CX_AI_SYSTEM_FAULT
RFC Trace:
**** Trace file opened at 20140630 124650 IST, by disp+work
**** Versions SAP-REL 721,0,201 RFC-VER U 3 1460390 MT-SL
XRFC> Begin of user trace
XRFC>
XRFC>
<
XRFC> TRACE SOAP RUNTIME - header
<
XRFC>
<
XRFC>
XRFC> SESSION_ID : 0002425553A5ECFC63B114C4E1000000C0A80141
XRFC> TS_CALL
: 20140630071647.5930180
<
XRFC> SY_UNAME : SAPADMIN
<
XRFC> HOSTNAME : SOLAR-DEV
<
XRFC> SY_SID
: DEV
<
XRFC> SY_MANDT : 001
<
XRFC> SYS_NR
: 01
<
XRFC> APPLSERVER : SOLAR-DEV_DEV_01
<
XRFC> ISPRESCHED : X
<
XRFC> PARENT_ID : ROOT_CALL_ID
<
XRFC> REQ_SIZE : 1821
<
XRFC> RESP_SIZE : 75
<
XRFC> DURATION : 2246
<
XRFC> NETHDRTIME : 2246
<
XRFC> CALL_STATE : 2
<
XRFC> ERRORTYPE : SYSFAIL
<
XRFC> ERRORAREA : COREMSG
<
XRFC> CTXDP_TYPE : SOAP_RUNTIME
<
XRFC> SYNC_ASYNC : S
<
XRFC> LOCATION : C
<
XRFC> DIRECTION : O
<
XRFC> REQ_ID
: 52EDA553B163C414E1000000C0A80141
<
XRFC> RESP_ID
: 00000000000000000000000000000000
<
XRFC> MSG_STATE : 114
<
XRFC> IF_NAME_I : YSCO_SAPORDERS_SOAP
<
XRFC> IF_NS_E
<
XRFC> IF_NAME_E :
<
XRFC> ISSHORTCUT :
<
XRFC> TRC_PATT : WSTEST
<
XRFC> TRC_KEY
: 50EDA553B163C414E1000000C0A80141
<
XRFC> TRC_SSID : DEV_01
<
XRFC> TRC_USER : SAPADMIN
<
XRFC> TRC_TS
: 20140630071647
<
XRFC> TRC_COUNT : 98
<
XRFC> TRC_EXT
<
XRFC> COMPLETE : OK
<
XRFC> CALLEDPROG : YSCO_SAPORDERS_SOAP
<
XRFC> SOAP_APPLI : urn:sap-com:soap:runtime:application:client
<
XRFC> CONF_ID
<
XRFC> BIND_ID
<
XRFC> OP_NAME
: InsertPPOrders_Development
<
XRFC> COMM_PATRN : Method:InsertPPOrders_Development
<
XRFC> OP_NS
: http://microsoft.com/webservices/
<
XRFC> REMADDRESS :
<
XRFC> LP_NAME
: YSLP1
<
XRFC> DT_OBJ
: YSCO_SAPORDERS_SOAP
<
XRFC> MEMCONSUMP : 198
<
XRFC> BONAME
<
XRFC> PROCCOMP :
<
XRFC> DEPLOYUNIT :
<
XRFC> <
XRFC>
<
XRFC> TRACE SOAP RUNTIME - trace records
<
XRFC>
<
XRFC> <
XRFC> E SOAP_RUNTIME 20140630071649.8380110 : CL_SOAP_RUNTIME_CLIENT
<
XRFC> ->EXECUTE_PROCESSING Exception handling in SOAP runtime
<
XRFC>
<
XRFC>
<
XRFC> E SOAP_APPLICATION 20140630071649.8382410 : CL_SOAP_APPLICATION
<
XRFC> _CLIENT ->IF_SOAP_APPLICATION_CS~EXECUTE_PROCESSING Exception
<
XRFC> handling in SOAP runtime
<
XRFC>
<
XRFC>
<
XRFC> E HTTP_TRANSPORT_BINDING 20140630071649.8368980 : CL_SOAP_HTTP
<
XRFC> _TPBND_ROOT ->HANDLE_STATUS_CODE Received return code 500 (
<
XRFC> Internal Server Error )
<
XRFC>
<
XRFC>
<
XRFC> E SOAP_RUNTIME 20140630071649.8379970 : CL_SOAP_RUNTIME_CLIENT
<
XRFC> ->EXECUTE_PROCESSING A SOAP Runtime Core Exception occurred in
<
XRFC> method get_http_headers of class CL_SOAP_HTTP_TPBND_ROOT at
<
XRFC> position id 3 with internal error id 1026 and error text SRT:
<
XRFC> HTTP-Code 500: ("Internal Server Error") (fault location is 1 ).
<
XRFC>
<
XRFC>
<
XRFC> E SOAP_APPLICATION 20140630071649.8382290 : CL_SOAP_APPLICATION
<
XRFC> _CLIENT ->IF_SOAP_APPLICATION_CS~EXECUTE_PROCESSING A SOAP Runtime <
XRFC> Core Exception occurred in method get_http_headers of class
<
XRFC> CL_SOAP_HTTP_TPBND_ROOT at position id 3 with internal error id
<
XRFC> 1026 and error text SRT: HTTP-Code 500: ("Internal Server Error") <
XRFC> (fault location is 1 ).
<
XRFC>
<
Find The Attachment for error:Hi Brahmaji,
i also faced with the above problem, activete the srt services in SICF Transaction.
Regards,
Kumar.
Edited by: kmikkili on Nov 18, 2009 11:39 PM -
Hi Gurus
Can anyone tell me why am getting this error meaage while transporting Business Content Sales Query.
"Error in development class, object ELEM 2BFTY8LWFAIM6KOWLONOC7WYO not saved to the order"
ShreyaShreya,
BW objects should be transported in the following order:
-R/3 objects must be transported in a CTS before BW transports can begin.
-Objects needs to be transported as per their dependencies.
Also use the Transport Connection Tool to analyze your objects.
Hope this helps.
G. -
Dear Forum,
we are developing portlets for Portal 3.0.9.8. We use the default JPDK version, that comes with the standalone Oracle OC4J 9.0.4 bundled with PDK.
We want to improve our portlet by check the userid of the portal user. Therefore, we want to use oracle.portal.provider.v2.ProviderUser.getUser().getName()
in a JSP.
First - even before the method call - we included
<%@ page import="oracle.portal.provider.v2.http.ServletProviderUser" %>
But even this 1 statement gives in JDeveloper 9.0.4 with the libs pdkjava and ptlshare from the OC4J the following error:
Error: cannot access class oracle.security.jazn.realm.RealmUser; file oracle\security\jazn\realm\RealmUser.class not found
What is wrong here? What missing library we must include?
Thank You in advanceProblem solved. Need to include jazn.jar in project's lib-paths.
-
JDeveloper Error(16,8) 'class' or 'interface' expected
I have just installed JDeveloper for 11.5.10 RUP5 OA Framework and extended the Purchase Requisition Lines EO (PoRequisitionLineEO). Everything seemed to work okay. However, in the first step of deployment, to compile the .java class, when I select Make rnPoRequisitionLineEOImpl.java, I receive the following compiler eror:
Error(16,8): 'class' or 'interface' expected
My sense is that this may be an environment setup issue as this is the first time I'm using JDeveloper and the first time I am extending OA Framework.
Any advice on how to resolve?
Edited by: Kit on Jan 29, 2010 2:42 PMThis was an end-user error. Additional code had been added to the .java source code that was not in a class.
Maybe you are looking for
-
Distribution Points properties changing permissions
Hi everybody! How can we use RBA to lock down branch's admins DP properties changing permission....? Branch admin's could change PXE properties and etc.....Could we let them work with DP object only in read mode? In their role permission properties t
-
My question is not shown, though much older posts are still there
how this newsgroup is working? I access it via OutlookExpress I posted a question on October,2d It was there for several days. Now it is not shown, though much older posts are still there
-
I used to be able to do this using paste and match style, but now instead of showing the link name as on the website of origin it is pasting the whole URL. thanks
-
OC4J10g: demo webservice stored procedure on Windows
Hi, I'm running OC4J10g locally on my pc (OS=Windows NT 4.0 SP6a). I'm trying to deploy the demo of a stored procedure web service but when I execute the command "java -jar %ORACLE_HOME%\webservices\lib\WebServicesAssembler.jar -config config.xml" I
-
Deleting Reservations from MCHB
Hi I have an issue related to the batch determination in the process orders. The reason for this known, batch archiving is not done. We tried to archive the batches but were able to archive only 45-50% of the total batches. Most of the errors we rece