Unbound Class Variable Error
Hi All,
I am doing a webdynpro application. while deploying, it gives me an error
"Unbound class Variable:'KMC_LIBS/bc.srf.framework_api.jar'.
What is this error?
Regards,
Divya
Hi,
A Classpath Variable is just a variable which points to a directory in your file system.
Useful when 1st developer has external jars on path1 and 2nd developer has external jars on path2 (the two paths are different) and the developers want to prevent classpath issues.
In NWDS go to:
Window -> Preferences -> Java -> Classpath Variables and check if 'KMC_LIBS' points to a directory.
Also, you can delete this entry from your project's classpath and add the file 'bc.srf.framework_api.jar'' manually (without classpath variable).
Regards,
Omri
Similar Messages
-
hello all i am trying to load an old files of my application
the files was written ,read using XMLDecoder ,XMLEncoder
trying to support the old version ,but i am getting some errors
i can only imagine , that some required classes are not suitable since the version change
but how can i know exactly witch class and witch method ?
this is the loading code
ClassLoader cl = new JARClassLoader();
ExceptionListener el = new ExceptionListener() {
public void exceptionThrown(Exception e) {
e.printStackTrace();
log.error("XMLDecoder error: " + mes + " -- " + e.getCause());
XMLDecoder dec = new XMLDecoder(read, null, el, cl);
Object obj = dec.readObject();///THIS LINE I GET THE ERRORthis is the error i am getting
java.lang.NoSuchMethodException: <unbound>=Class.new(ArrayList, AttributeMap, ConnectionSet);
at java.beans.Statement.invoke(Unknown Source)
at java.beans.Expression.getValue(Unknown Source)
at com.sun.beans.MutableExpression.getValue(Unknown Source)
at com.sun.beans.ObjectHandler.getValue(Unknown Source)
at com.sun.beans.ObjectHandler.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at java.beans.XMLDecoder.getHandler(Unknown Source)
at java.beans.XMLDecoder.readObject(Unknown Source)
at com.tenlevels.flowlevel.util.ver_1_2_0_load.LoadGraph.loadGraph1(LoadGraph.java:100)
at com.tenlevels.flowlevel.util.ver_1_2_0_load.LoadGraph.loadGraph(LoadGraph.java:61)
at com.tenlevels.flowlevel.action.OpenFlow.doAction(OpenFlow.java:86)
at com.tenlevels.flowlevel.action.ActionRouter.performAction(ActionRouter.java:79)
at com.tenlevels.flowlevel.action.ActionRouter.access$0(ActionRouter.java:70)
at com.tenlevels.flowlevel.action.ActionRouter$1.run(ActionRouter.java:64)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.NullPointerException
at org.jgraph.graph.AbstractCellView.getCellAttributes(Unknown Source)
at org.jgraph.graph.AbstractCellView.refresh(Unknown Source)
at org.jgraph.graph.GraphLayoutCache.refresh(Unknown Source)
at org.jgraph.graph.GraphLayoutCache.refresh(Unknown Source)
at org.jgraph.graph.GraphLayoutCache.insertViews(Unknown Source)
at org.jgraph.graph.GraphLayoutCache.<init>(Unknown Source)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.beans.Statement.invoke(Unknown Source)
at java.beans.Expression.getValue(Unknown Source)
at com.sun.beans.MutableExpression.getValue(Unknown Source)
at com.sun.beans.ObjectHandler.getValue(Unknown Source)
at com.sun.beans.ObjectHandler.eval(Unknown Source)
at com.sun.beans.ObjectHandler.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(Unknown Source)
at java.beans.XMLDecoder.getHandler(Unknown Source)
at java.beans.XMLDecoder.readObject(Unknown Source)
at com.tenlevels.flowlevel.util.ver_1_2_0_load.LoadGraph.loadGraph1(LoadGraph.java:100)
at com.tenlevels.flowlevel.util.ver_1_2_0_load.LoadGraph.loadGraph(LoadGraph.java:61)
at com.tenlevels.flowlevel.action.OpenFlow.doAction(OpenFlow.java:86)
at com.tenlevels.flowlevel.action.ActionRouter.performAction(ActionRouter.java:79)
at com.tenlevels.flowlevel.action.ActionRouter.access$0(ActionRouter.java:70)
at com.tenlevels.flowlevel.action.ActionRouter$1.run(ActionRouter.java:64)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.NullPointerException: target should not be null
at java.beans.Statement.invoke(Unknown Source)
at java.beans.Expression.getValue(Unknown Source)
at com.sun.beans.MutableExpression.getValue(Unknown Source)
at com.sun.beans.ObjectHandler.getValue(Unknown Source)
at com.sun.beans.ObjectHandler.eval(Unknown Source)
at com.sun.beans.ObjectHandler.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
...thank youshay_te wrote:
ClassLoader cl = new JARClassLoader();
ExceptionListener el = new ExceptionListener() {
public void exceptionThrown(Exception e) {
e.printStackTrace();
log.error("XMLDecoder error: " + mes + " -- " + e.getCause());
XMLDecoder dec = new XMLDecoder(read, null, el, cl);
Object obj = dec.readObject();///THIS LINE I GET THE ERROR
I'd have to start out by saying: look in the API under object. readObject() is not an implemented method. Do you have an extension of Object that contains readObject()? -
Assign a value to class variable
I want to define a class variable in class. And I want all subclasses of that class ot have a different value for that class variable. How can I do that?
public class BaseClass {
public static String tableName = "";
}Now if I have a ClassA and I want to assign a value like this :
public class ClassA extends BaseClass {
tableName = "location";
} I got an error message.
I can move it in a static initializer block but then it will only work when the class is loaded. In my case its possible i want to get this value without loading the class.
Ditto if i move it to constructor.
Any input? ThanksAre you saying that if i have 2 classes ClassA and
ClassB inherited from BaseClass, then both are
sharing the same copy of 'tableName' staticvariable?
If yes then I should go with an instance variable.No, I am saying that you can easily declare a
tablName in A and another tableName in B.
A.tableName will be shared between all the instances
s of A. B.tableName will be shared between all the
instances of B. And BaseClass.tableName is
irelevant. I think you try to use
BaseClass.tableName as some kind of template for
sub-classes, but this does not happen: you need to
declare tableName again and again in each subclass.
IThanks for clarifying. Each class needs to have a variable "tableName" and it needs to have one copy of this variable for all of that class's objects. 2 classes will not have the same value of this tableName variable.
Thats why I was defining it as static variable. And I define it in BaseClass so that I dont have to define it again in each subclass.
Is there any better way? Thanks -
Create an instance of my class variable
Hello all,
I'm a newbie to iPhone/iPad programming and am having some trouble, I believe the issue is that I'm not creating an instance of my class variable. I've got a class that has a setter and a getter, I know about properties but am using setters and getters for the time being. I've created this class in a View-based application, when I build the program in XCode 3.2.6 everything builds fine. When I step through the code with the debugger there are no errors but the setters are not storing any values and thus the getters are always returning 0 (it's returning an int value). I've produced some of the code involved and I was hoping someone could point out to me where my issue is, and if I'm correct about not instantiating my variable, where I should do that. Thanks so much in advance.
<p>
Selection.h
@interface Selection : NSObject {
int _choice;
//Getters
-(int) Choice;
//Setters
-(void) setChoice:(int) input;
Selection.m
#import "Selection.h"
@implementation Selection
//Getters
-(int)Choice {
return _choice;
//Setter
-(void)setChoice:(int)input{
_choice = input;
RockPaperScissorsViewController.m
#import "RockPaperScissorsViewController.h"
@implementation RockPaperScissorsViewController
@synthesize rockButton, paperButton, scissorsButton, label;
//@synthesize humanChoice, computerChoice;
-(void)SetLabel:(NSString *)selection{
label.text = selection;
-(IBAction)rockButtonSelected {
// [self SetLabel:@"Rock"];
[humanChoice setChoice:1];
</p>
So in the above code it's the [humanChoice setChoice:1] that is not working. When I step through that portion with the debugger I get no errors but when I call humanChoice.Choice later on in the code I get a zero.
-NifflerXIt worked, thank you so much. I put
humanChoice = [[Selection alloc]init];
In viewDidLoad and it worked like a charm. Thank you again.
-NifflerX -
How to access the parent class variable or object in java
Hi Gurus,
I encounter an issue when try to refer to parent class variable or object instance in java.
The issue is when the child class reside in different location from the parent class as shown below.
- ClassA and ClassB are reside in xxx.oracle.apps.inv.mo.server;
- Derived is reside in xxx.oracle.apps.inv.mo.server.test;
Let say ClassA and ClassB are the base / seeded class and can not be modified. How can i refer to the variable or object instance of ClassA and ClassB inside Derived class.
package xxx.oracle.apps.inv.mo.server;
public class ClassA {
public int i=10;
package xxx.oracle.apps.inv.mo.server;
public class ClassB extends ClassA{
int i=20;
package xxx.oracle.apps.inv.mo.server.test;
import xxx.oracle.apps.inv.mo.server.ClassA;
import xxx.oracle.apps.inv.mo.server.ClassB;
public class Derived extends ClassB {
int i=30;
public Derived() {
System.out.println(this.i); // this will print 30
System.out.println(((ClassB)this).i); // error, but this will print 20 if Derived class located in the same location as ClassB
System.out.println(((ClassA)this).i); // error, but this will print 20 if Derived class located in the same location as ClassA
public static void main(String[] args) {
Derived d = new Derived();
Many thanks in advance,
FendyHi ,
You cannot access the controller attribute instead create an instance of the controller class and access the attribute in the set method
OR create a static method X in the controller class and store the value in that method. and you can access the attribute by
Call method class=>X
OR if the attribute is static you can access by classname=>attribute.
Regards,
Gangadhar.S
Edited by: gangadhar rao on Mar 10, 2011 6:56 AM -
There may be more errors in here besides the static variable error. I made the methods static for the method call in my constructor Product(name, price). The purpose of this Class is to the the name and price of a product from user input, subtract 5.00 from the price, and return the new price. Please help!!!
public class Product
public Product(String name, double price)
String product;
price = Product.getPrice(price);
Double.toString(price);
//this.product = product;
product = Product.getName(name) + Product.getPrice(price);
public static String getName(String name)
System.out.println("What is their name?: ");
name = in.nextLine(); // I GET A NONSTATIC VARIABLE ERROR FOR variable "in" HERE.
return name;
public static double getPrice(double price)
this.price = price;
System.out.println("What is the price?: ");
price = in.nextDouble();
return price;
public double reducePrice()
price = price - 5.00;
return price;
public String getProduct()
product = new Product(name, price);
return product;
Scanner in = new Scanner(System.in);
public static String name;
//public double price;
}you not define the class member properly.
the class member is define before the constructor as
public class Product {
static Scanner in = new Scanner(System.in);
String product;
double price;
public static String name;
public Product(String name, double price) {
price = Product.getPrice(price);
Double.toString(price);
// this.product = product;
product = Product.getName(name) + Product.getPrice(price);
} -
Folks:
I am little confused by static class variables in Java. Since Java doesn't have global varaibles it uses static variables instead. Please take a look at the following code and please tell me what goes wrong.
/********** CONTENT OF Stack.java ***********/
import java.util.Stack;
public class StackClass
{ static Stack stack = new Stack (); }
/********** CONTENT OF Test1 .java ***********/
public class Test1
public static void main( String[] args )
StackClass.stack.push("Hello World");
/********** CONTENT OF Test2.java ***********/
public class Test2
public static void main( String[] args )
System.out.println( "Top on stack is " + StackClass.stack.peek() );
I execute the above programs in the sequence of StackClass.java, Test1.java and Test2.java. I think in Test1.java after I push one element to the stack it should still be in the stack in Test2.java But I got :
java.util.EmptyStackException
at java.util.Stack.peek(Unknown Source)
at Test2.main(Test2.java:16)
Exception in thread "main"
Can anybody give me a hint?
Thanks a lot !After you run StackClass, the JVM (java.exe) ends and all the classes are unloaded including StackClass
When you run Test1, StackClass is loaded, an item is pushed on the stack, and then the JVM exits and all classes are unloaded including StackClass
When you run Test2, StackClass is loaded, and you get an error because the StackClass which was just loaded has no items in it. -
Class variables don't exist at initialize() time?
Excerpt of Slam.mxml (default package):
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
xmlns:components="components.*"
minWidth="955" minHeight="600" width="1000" height="720"
initialize="Initialize()"
creationPolicy="auto">
<fx:Script>
<![CDATA[
protected function Initialize():void
Global.app = this;
]]>
</fx:Script>
</s:Application>
Excerpt of Global.mxml (default package):
<?xml version="1.0" encoding="utf-8"?>
<fx:Object xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
public static var app:Slam = null;
]]>
</fx:Script>
</fx:Object>
When I run the app I get an error in Initialize() because Global is null. Global is a class name and Global.app is a class variable, a static. How can they not exist at initialize time? Suggestions for how to deal with this? Thanks.No, running just these files doesn't exhibit the issue for me. I'm using Flex 4.1. However, I was able to come up with a minimal set of files that does show the problem. Slam.mxml is the same as before. Global.mxml becomes:
<?xml version="1.0" encoding="utf-8"?>
<fx:Object xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx">
<fx:Script>
<![CDATA[
public static var app:Slam = null;
public static const WIDGET_COLOR:uint = 0x987654;
public static var widgets:Widgets = new Widgets();
]]>
</fx:Script>
</fx:Object>
and add an additional file, Widgets.as:
package
public class Widgets
public function Widgets()
wColor = Global.WIDGET_COLOR;
protected var wColor:int;
This blows up with Global == null at the wColor initialization in Widgets.as. I suspect there is some sort of chicken-and-egg issue going on here. That Global isn't fully setup until it has initialized its widgets member, but initializing the widgets member needs Global fully setup.
Moving the initialization of the widgets member to a separate Initialize function in Global, called from Slam.Initialize(), fixes the problem. -
I have noticed that class variable initialization occurs AFTER the constructor is called.
Why is this, and is this intentional?
It has caused strange behaviour in my SE java applications I am porting to MIDP.
Thanks
- AdamHi,
Error 1:
The problem only arises if you use the unassigned variable:
int i;
int y = i; // Use of unassigned variable here
you can just assign a value to i to solve this:
int i = 0;
int y = i; // Use of unassigned variable here
Error 2 and 3 have to do with static and non-static, not with the initialization per se. This is how it works:
static members (e.g. fields) can be accessed using this syntax: <Classname>.<FieldName>, e.g:
public static class Helpers
public static int SomeDataValue { get; set; }
class Program
static void Main(string[] args)
Helpers.SomeDataValue = 22;
On the other hand, non-static members are accessed like this: <instance>.<fieldname>. So you always need an instance of a class to access the field:
public class Order
public int OrderNumber { get; set; }
class Program
static void Main(string[] args)
Order o = new Order();
o.OrderNumber = 12;
Rgds MM -
NWDS - Unbound classpath variable PORTALAPPS / SAP_SERVER_BIN / SAPSERVERB
Hi there,
i have a problem. i am new to the NWDS... i have a project here and i know what i have to change... then export it to PAR and import it to the portal.. thats all not the problem.. but i`ve never worked with the NWDS...
After i imported the Project the NWDS comes with the following error message:
Description
The project was not built due to classpath errors (incomplete or involved in cycle).
Unbound classpath variable: 'PORTALAPPS/lib/aliases.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/lib/prtapi.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/portalapps/com.sap.netweaver.bc.rf/lib/bc.rf.framework_api.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/portalapps/com.sap.netweaver.bc.rf.service/lib/bc.rf.global.service.urlgenerator_api.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/portalapps/com.sap.netweaver.bc.sf/lib/bc.sf.framework_api.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/portalapps/com.sap.netweaver.bc.util/lib/bc.util.public_api.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/portalapps/com.sap.portal.navigation.AliasService/lib/com.sap.portal.navigation.AliasService_api.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/portalapps/com.sap.portal.navigation.api_service/lib/com.sap.portal.navigation.api_service_api.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/portalapps/com.sap.portal.navigation.helperservice/lib/com.sap.portal.navigation.helperservice_api.jar'.
Unbound classpath variable: 'PORTALAPPS/portal/portalapps/com.sap.portal.usermanagement/lib/com.sap.security.api.ep5.jar'.
Unbound classpath variable: 'SAP_SERVER_BIN/ext/tckmcbc.uwl~api/bc.uwl.service.api_api.jar'.
Unbound classpath variable: 'SAPSERVERBIN/ext/com.sap.security.api.sda/com.sap.security.api.jar'.
Unbound classpath variable: 'SAPSERVERBIN/ext/servlet/servlet.jar'.
Unbound classpath variable: 'SAPSERVERBIN/ext/webservices_lib/jaxrpc-api.jar'.
Unbound classpath variable: 'SAPSERVERBIN/ext/webservices_lib/webservices_lib.jar'.
So my NWDS runs on my Local Windows Client.. Our Portals are on Linux Machines
What do i have to do know?
I searched the whole SDN and google.. but found nothing... Hope someone can help here?
RegardsOK.. i found the whole PORTALAPPS JAR Files... but i cannot find the JAR Files from SAP_SERVER_BIN and SAPSERVERBIN
Unbound classpath variable: 'SAP_SERVER_BIN/ext/tckmcbc.uwl~api/bc.uwl.service.api_api.jar'.
Unbound classpath variable: 'SAPSERVERBIN/ext/com.sap.security.api.sda/com.sap.security.api.jar'.
Unbound classpath variable: 'SAPSERVERBIN/ext/servlet/servlet.jar'.
Unbound classpath variable: 'SAPSERVERBIN/ext/webservices_lib/jaxrpc-api.jar'.
Unbound classpath variable: 'SAPSERVERBIN/ext/webservices_lib/webservices_lib.jar'.
Where in the Browse Deployment can i find them?
Or can someone send me the files with e-mail?
Regards
Bjoern
Edited by: Bjoern Bayerschmidt on Nov 2, 2010 9:05 AM -
Initial values to instance & class variable
I read in the book that instance & class variable definitions are given an initial value depending on the type of information they hold:
Numeric variable - 0
Characters - '\0'
Boolean - false
Objects - null
But when I try to compile a class without giving explict value to the variable I get error.
So why do I need this initial value - if it can't be used any way?Sorry� I'll try to make my question clearer.
As I wrote in my previous message, I read in the book that instance & class variable definitions are given an initial value depending on the type of information they hold:
Numeric variable - 0
Characters - '\0'
Boolean - false
Objects - null
From the above I understand that whenever I declare a variable without assigning it a value, it automatically has an initial value.
For example:
Class Myclass(){
Int x;
Static int z;
Void fooMyClass(){
Int y;
I understand from what I read in the book, both x, y & z - get default values of zero. Is that correct?
if it is correct, why can't I use these values that were assign as default? -
Error building project using kXML2 - "Class loading error: Wrong name"
Hi,
I'm testing the XML-Parser KXML2 and downloaded the latest package, but the minimal version (kxml2-min.zip). I put this file into the directory "%j2mewtk%\apps\KxmlTest\lib" and wrote the lines
import org.kxml2.io.*;
import org.xmlpull.v1.*;
When I try to build the project with the Wireless Toolkit (v1.04) it spits out the following error:
Error preverifying class kxml2.io.KXmlParser
Class loading error: Wrong name
com.sun.kvem.ktools.ExecutionException: Preverifier returned 1
Build failed
I also tried the full package "kxml2.zip" but the same error occurs.
How can I get rid of this? Thanks in advance!Okay, finally worked it out (hopefully). I unpacked the archive to a directory (say "%J2MEWTK%\apps\KxmlTest\tmpclasses") and then preverified them "manually":
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.kxml2.io.KXmlParser
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParser
%J2SDK%\bin\preverify.exe -classpath "%J2MEWTK%\apps\KxmlTest\tmpclasses";"%J2MEWTK%\lib\midpapi.zip" org.xmlpull.v1.XmlPullParserException
Then I packed them again to a jar-file:
%J2SDK%\bin\jar.exe -cvf kxml2-min.jar %J2MEWTK%\apps\KxmlTest\tmpclasses\output\.
That was all! -
Getting a bad bind variable error while compiling a custom form in R12
Hi,
I am getting a bad bind variable error while compiling a custom form.
I tried setting the forms_path variable and I am still getting the error. Can anyone please suggest what can be done?
DECLARE
BEGIN
IF :parameter.p_line_ship_to = 'T'
THEN
IF :SYSTEM.cursor_item = 'LINE.SHIP_TO'
THEN
:parameter.lov_num_param1 := :line.ship_to_customer_id;
oe_lines.ship_to ('WHEN-VALIDATE-ITEM');
:parameter.lov_num_param1 := :line.ship_to_customer_id;
END IF;
:parameter.p_line_ship_to := 'F';
END IF;
END;
I am getting this error:
Bad bind variable 'parameter.p_line_ship_to'The Parameter is not defined in the form.. But, this form is already been compiled and deployed.. I have to make some changes to the form and tried to compile it, when i am getting this error. Is it possible that the parameter would be defined in some other form or can this error be due to some other reasons?
Thanks in Advance. -
How to access class variables in anonymous class??.
I have a boolean class level variable. Fom a button action , this boolean will set to true and then it used in anonymous class. In anonymous class, I am getting default value instead of true. Could u anyone help in this plzzz.
first of all, you don't want parent because that is something that Containers use to remember their containment hierarchy. you are thinking of super which is also incorrect, because that has to do with inheritance.
the problem here is a scoping problem. you generally would use final if you were accessing variables in an anonymous class that are in the local scope. in this case, you just need to create some test code and play with it. snip the code below and play with it. it shows both the given examples and some additional ways to change/display class variables.
good luck, hackerx
import javax.swing.*;
import java.awt.event.*;
public class Foo extends JPanel
private boolean the_b = true;
public static void main(String[] args)
Foo f = new Foo();
JFrame frame = new JFrame();
frame.getContentPane().add(f);
frame.pack();
frame.show();
public Foo()
// get your button
JButton b = new JButton("Not!");
b.addActionListener(new ActionListener()
public void actionPerformed(ActionEvent ae)
// *** uncomment these to play around ***
// Foo.this.the_b = false; // this will work, but unnecessary
// the_b = false; // this works fine too
notFoo();
this.add(b);
// something to show the value that accesses a class variable
// using an inner class instead of final nonsense
DisplayThread t = new DisplayThread();
t.start();
private void notFoo()
the_b = !the_b;
class DisplayThread extends Thread
public void run()
while(true)
System.err.println("boolean value: " + the_b);
try {
sleep(1000);
} catch(InterruptedException ie) {}
} -
Getting "Must declare the scalar variable" Error
Hello All,
I have write following query to block invoice which has Prices not equal to PriceList as below.
-- To Block Invoices which has Prices not equal to PriceList
IF (@transaction_type='A' OR @transaction_type = 'U') AND CAST(@OBJECT_TYPE = '18')
BEGIN
SELECT T1.ItemCode,
T1.Price AS PO_Price,
T2.U_ListPrice AS Listed_Price
FROM OPCH AS T0
INNER JOIN
PCH1 AS T1 ON
T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
[dbo].[@PRICELISTS] AS T2 ON
T1.ItemCode = T2.U_ItemNo
WHERE
T1.DocEntry = @list_of_cols_val_tab_del) AND
(T1.Price <> T2.U_ListPrice)
BEGIN
SET @error = 123
SET @error_message = 'Deviation in price'
END
END
But after Execution got following Errors
Msg 137, Level 15, State 2, Line 2
Must declare the scalar variable "@transaction_type".
Msg 137, Level 15, State 2, Line 19
Must declare the scalar variable "@list_of_cols_val_tab_del".
Msg 137, Level 15, State 1, Line 22
Must declare the scalar variable "@error".
Msg 137, Level 15, State 1, Line 23
Must declare the scalar variable "@error_message".
Please Help
Regards
HitulHi Hitul,
Please check Snapshot.
Please see Red Lines for SBO_SP_TransactionNotification Procedure.
Paste your code below ADD YOUR CODE HERE.
Hope this help
Regards::::
Atul Chakraborty
Maybe you are looking for
-
Urgent!!! cut function in JTextArea is not working
In my project, I am using a JTextArea. To remove a particular text in text area, i was selecting the text and I was using cut() function to cut the selected text. This functionality was working fine when I was running the the project on JBuilder. But
-
Syncing apps from iPhone to new computer
I have a new computer and want to sync my phone and all it's apps to my new computer. How do I do this without loosing all of my apps?
-
Hi All , I would like to disable the Change and Delete buttons for the Service : Attachment list in GOS. Please let me know how can i achieve this. Helpful answers will surely be rewarded. Thank you Srinivas
-
Got my images online which has been taken and deleted offline
I was performing some online-offline experiment. While experimenting I put my mobile on Airplane mode and took a new picture with default camera application[BB- Z10]. Then I deleted the picture. Then I switched off the Airplane mode. Then I checked m
-
IOS 6 keeps crashing non-native programs
I recently upgraded my iPod touch to iOS 6 and non-native programs keep crashing. Important programs that I need for work!! I took it to that Applestore and an employee told me that I just have to wait for the non-native program writers to send me u