Error in classification (class REQ_RELEASE class type 032)
Hi Guys
I have changed the release codes to 6 release strategys and maintained Charecterstics and moved them to Quality system. Now in Quality i can see those changes applied but when i click on Classification i can't open it and system is throwing a Warning message "Error in classification (class REQ_RELEASE class type 032)"
I am also not able to see those changed 6 release strategys in CL24N.
Can any one tell me what happened.
Thanks
Ronnie
MR Raju
Thanks for your quick Response. Entires in CL24N are bit confusing. The Release Strategys in Dev and Quality are not matching. For the one i changed in Dev are not seen in CL24N of Quality System.
Can you tell me where do we assing these Strategys to Groups so that it will show in CL24N
Thanks
Similar Messages
-
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 -
Error in classification (class CLASS-PLANT class type 032)
Dear,
I am testing Release procedure in Quality client.....There my colleague have created one class in quality manually name as CLASS-PLANT , but when i am clicking in release strategy "Classification" button ..i am getting this error "Error in classification (class CLASS-PLANT class type 032)
Message no. ME179
Procedure
Please check the specified class or class type in Customizing for the release procedure."
i have created class CLASS-PLANT class type 032..
what can be the problem?
UtsavHi
Check the following threads it may help you
Re: error in release config
PR Release : Error in Classification
Classification error
Thanks/Karthik -
PO Release strategy, error: class POCLASS class type 032
All SAP Gurus,
We are configuring new PO release strategy.
When we go to Release strategy - classification
(Release procedure for PO - Define release procedure for PO - Release Strategies - classification)
It gives following error: Error in classification (class POCLASS class type 032).
Where we can maintain the classification?
Regards,Dear,
Please follow bellow detail.
SPRO -> Material Management -> Purchasing -> Purchase Order -> Release Procedure for Purchase Orders.
Three steps involved in release process of purchase order.
1) Edit Characteristic: -
Create characteristic for release purchase order. If you want to release purchase order on purchasing group base. So you can create characteristic for purchasing group. Take reference of CEKKO structure and BKGRP field for purchasing group in additional data of characteristic. E.g :- Purchasing group - BKGRP
2) Edit Class: -
After creation of characteristic, create class for release purchase order. In which you can take reference of
Class Type: - 032,
Status: - Release,
Class group: - Release strategy class,
And put reference of your characteristic, which are created by you in first step.
E.g: - Class - REL_PO
3) Define Release Procedure of purchase order: -
In this step four processes involved.
1) Release Groups
2) Release Codes
3) Release indicator
4) Release Strategies
1) Release Group: - In which you can define release strategy group
For Exa.: - Release group : - 01,Release object: - 01, Class: - REL_PO.
2) Release code: - In which you can define release code. Enter value as
Release group: - 01,release code: -01 - Purchase Head,
Release group: -01, release code: - 02 - Auditor.
3) Release indicator: - In this step you have to define release indicator.
Like X - Blocked, I - Under process, S - Release.
4) Release Strategy: - This is the final step for release strategy.
Assign release code 01, 02.
Click on release prerequisites, select 02 - check box and click on continue.
Click on release status button, enter release indicator X, I, S and click continue
Click on classification button, Enter values of purchasing group for which you want to created release strategy.
Regards,
Mahesh Wagh -
Type conflict error for method of a class
Hi all,
I am getting a type conflict error in method Read of class CL_SWF_REP_ITEM2OBJECT, the error text is
"A type conflict occurred when the program tried to passan actual parameter to the formal parameter 'EX_WI2OBJ_WIHDR' of the method 'READ' of the class'CL_SWF_REP_ITEM2OBJECT'."
I am calling this method from the FM SAP_WAPI_WORKITEMS_TO_OBJECT. I have checked the type and other things and they all seem fine. Funny enough, all the culprits in question are sap standard objects.
Also the same methods and FM work fine for 4.7 and release 640 of Ecc6.0, however doesnt work for release 700 of ECC6.0
kindly guideHi,
If the method is:
'Instance Method' use -> to refer to the method of the class
If the method is :
'Static Method' use => assignment to refer to the method.
Could you specify the class and method details so that if the error can ba analyzed.
Regards,
George -
Error Message like Illegal Start of Type,and Class interface and enum expec
import java.applet.*;
import java.awt.*;
//Inheriting the Applet class with firstApplet class
public class firstApplet extends Applet{
private Button reset,submit;
private TextArea addr;
private TextField name,addr,sex,mar;
Panel p=new Panel();
Choice m_choice = new Choice();
Label namel=new Label("Name");
Label addrl=new Label("Address");
Label sexl=new Label("Sex");
Label marl=new Label("Maital");
//In it function
public void init()
setLayout(new FlowLayout());
add(m_choice);
m_choice.addItem("Select Mode");
m_choice.addItem("Create");
m_choice.addItem("Edit");
m_choice.addItem("Delete");
m_choice.addItem("Search");
add(namel);
name=new TextField(20);
add(name);
add(addrl);
addr=new TextArea(5,20);
add(addr);
add(sexl);
sex=new TextField(10);
add(sex);
add(marl);
mar=new TextField(20);
add(mar);
submit =new Button("Submit");
add(submit);
reset =new Button("Reset");
add(reset);
t=new TextField(30);
add(t);
public boolean action(Event e,Object o){
if (e.target instanceof Button){
String s= (String)o;
if(s.equals ("Submit"))
t.setText("Error Occured While Saving to the database");
else if (s.equals("Reset")){
name.setText("");
addr.setText("");
sex.setText("");
mar.setText("");
t.setText("");}
return true;
else
return false;
}I this program while compiling i am getting the above specified.This is the Code i used.At that Bolded else and return false lines are showing as error lines.Why this error is coming?Pls send help me with some hint,Because i am new to Java.Be consistent about your placement of {} and use of indentation. Sun's code
conventions provide an example: http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html -
How to get instance of Class with its type parameters
Hi,
Have any of you folks been dealing with generics long enough to show me how this should be written? Or point me to the answer (I have searched as well as I could).
I boiled down my situation to the included sample code, which is long only because of the inserted comments. And while boiling I accidentally came across a surprise solution (a bug?), but would obviously prefer a smoother solution.
My Questions (referred to in the code comments):
#1. Is there a way to get my parameterized type (classarg) without resorting to using the bogus (proto) object?
#2. Can anyone understand why the "C" and "D" attempts are different? (All I did was use an intermediate variable????) Is this a bug?
Thanks so much for any input.
/Mel
class GenericWeird
/* a generic class -- just an example */
static class CompoundObject<T1,T2>
CompoundObject(T1 primaryObject, T2 secondaryObject)
/* another generic class -- its main point is that its constr requires its type class */
static class TypedThing<ValueType>
TypedThing(Class<ValueType> valuetypeclass)
// here I just try to create a couple of TypedThings
public static void main(String[] args)
// take it for granted that I need to instantiate these two objects:
TypedThing<String> stringTypedThing = null;
TypedThing<CompoundObject<String,String>> stringstringTypedThing = null;
// To instantiate stringTypedThing is easy...
stringTypedThing = new TypedThing<String>(String.class);
// ...but to instantiate stringstringTypedThing is more difficult to call the constructor
Class<CompoundObject<String,String>> classarg = null;
// classarg has got to be declared to this type
// otherwise there will rightfully be compiler error about the constructor call below
// This method body illustrates my questions
classarg = exploringHowToGetTheArg();
// the constructor call
stringstringTypedThing = new TypedThing<CompoundObject<String,String>>(classarg);
} // end main method
// try compiling this method with only one of A,B,C,D sections uncommented at a time
private static Class<CompoundObject<String,String>> exploringHowToGetTheArg()
Class<CompoundObject<String,String>> classarg = null;
/* Exhibit A: */
//// classarg = CompoundObject.class;
results in compiler error "incompatible types"
found : java.lang.Class<GenericWeird.CompoundObject>
required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
classarg = CompoundObject.class;
^
I understand this. But how to get the type information?
/* It's obnoxious, but it looks like I will have to construct a temporary
prototype instance of type
CompoundObject<String,String>
in order to get an instance of
Class<CompoundObject<String,String>>
(see my Question #1) */
CompoundObject<String,String> proto = new CompoundObject<String,String>("foo", "fum");
/* Exhibit B: */
//// classarg = proto.getClass();
results in compiler error: "incompatible types"
found : java.lang.Class<capture of ? extends GenericWeird.CompoundObject>
required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
classarg = proto.getClass();
^
/* Exhibit C: */
//// classarg = proto.getClass().asSubclass(proto.getClass());
results in compiler error: "incompatible types"
found : java.lang.Class<capture of ? extends capture of ? extends GenericWeird.CompoundObject>
required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
classarg = proto.getClass().asSubclass(proto.getClass());
^
/* Exhibit D: (notice the similarity to C!): */
//// Class tmp1 = proto.getClass();
//// classarg = tmp1.asSubclass(tmp1);
/* It compiles (see my Question #2) */
return classarg;
} // end method exploringHowToGetTheArg()
} // end class GenericWeirdThanks so much, Bruce. (Oh my goodness, how would I have ever come up with that on my own?)
So in summary
This doesn't compile:
classarg = (Class<CompoundObject<String,String>>)CompoundObject.class;but these do compile:
classarg = (Class<CompoundObject<String,String>>)(Class)CompoundObject.class;or
Class coclass = (Class)CompoundObject.class;
classarg = (Class<CompoundObject<String,String>>)coclass;And this doesn't compile:
classarg = proto.getClass().asSubclass(proto.getClass());but this does:
Class tmp1 = proto.getClass();
classarg = tmp1.asSubclass(tmp1); -
Valuation class and movement type
Hi sirs,
What exactly mean by valuation class and is there any sublink to valuation class and movement type.
BSRHi BSR,
Regarding the meaning of valuation class and link between valuation class and movement type, you just have to understand this.
<b>valuation class + movement type = transaction key --> GL account</b>
explanation :
<b>Valuation class</b>
It is a field maintained in the accounting view 1 of Material master. This is nothing but the classification of material like Raw material, Finished goods, WP, stores & spares etc. It is indicated as numerical number.
<b>Movement type</b>
This is a 3 digit numerical code which is used for all material movement in MM module. Say for example movement type 101 is used for Goods receipt from vendor or from production.
<b>Transaction Key</b>
The combination of valuation class and the movement type translates into a transaction key which indicates the type of transaction.
remember:
The combination of Valuation Class + the Movement Type helps in determining the GL accounts automatic updates.
hope it helps and don't forget to assign points.
regards,
Lily -
Need help with generic class with comparable type
Hi. I'm at University, and I have some coursework to do on writing a generic class which offers ordered binary trees of items which implement the comparable interface.
I cant get the code to compile which I have written.
I get the error: OBTComparable.java uses unchecked or unsafe operations
this is the more detailed information of the error when I compile with -Xlint:unchecked
OBTComparable.java:62: warning: [unchecked] unchecked call to insert(OBTType) as
a member of the raw type OBTComparable
left.insert(insertValue);
^
OBTComparable.java:64: warning: [unchecked] unchecked call to insert(OBTType) as
a member of the raw type OBTComparable
right.insert(insertValue);
^
OBTComparable.java:75: warning: [unchecked] unchecked call to find(OBTType) as a
member of the raw type OBTComparable
return left.find(findValue);
^
OBTComparable.java:77: warning: [unchecked] unchecked call to find(OBTType) as a
member of the raw type OBTComparable
return right.find(findValue);
^
and here is my code for the class
public class OBTComparable<OBTType extends Comparable<OBTType>>
// A tree is either empty or not
private boolean empty;
// If the tree is not empty then it has
// a value, a left and a right.
// These are not used it empty == true
private OBTType value;
private OBTComparable left;
private OBTComparable right;
// Create an empty tree.
public OBTComparable()
setEmpty();
} // OBTComparable
// Make this tree into an empty tree.
private void setEmpty()
empty = true;
value = null; // arbitrary
left = null;
right = null;
} // setEmpty
// See if this is an empty (Sub)tree.
public boolean isEmpty()
{ return empty; }
// Get the value which is here.
public OBTType getValue()
{ return value; }
// Get the left sub-tree.
public OBTComparable getLeft()
{ return left; }
// Get the right sub-tree.
public OBTComparable getRight()
{ return right; }
// Store a value at this position in the tree.
private void setValue(OBTType requiredValue)
if (empty)
empty = false;
left = new OBTComparable<OBTType>(); // Makes a new empty tree.
right = new OBTComparable<OBTType>(); // Makes a new empty tree.
} // if
value = requiredValue;
} // setValue
// Insert a value, allowing multiple instances.
public void insert(OBTType insertValue)
if (empty)
setValue(insertValue);
else if (insertValue.compareTo(value) < 0)
left.insert(insertValue);
else
right.insert(insertValue);
} // insert
// Find a value
public boolean find(OBTType findValue)
if (empty)
return false;
else if (findValue.equals(value))
return true;
else if (findValue.compareTo(value) < 0)
return left.find(findValue);
else
return right.find(findValue);
} // find
} // OBTComparableI am unsure how to check the types of OBTType I am comparing, I know this is the error. It is the insert method and the find method that are causing it not to compile, as they require comparing one value to another. How to I put the check in the program to see if these two are of the same type so they can be compared?
If anyone can help me with my problem that would be great!
Sorry for the long post, I just wanted to put in all the information I know to make it easier for people to answer.
Thanks in advance
DavidI have good news and undecided news.
First the good news. Your code has compiled. Those are warnings not errors. A warning is the compiler's way of saying "I understand what you are asking but maybe you didn't fully think through the consequences and I just thought I would let you know that...[something] "
In this case it's warning you that you aren't using generics. But like I said this isn't stopping it from compiling.
The undecided news is the complier is warning you about not using generics. Are you supposed to use generics for this assignment. My gut says no and if that's true then you have no problem. If you are supposed to use generics well then you have some more work. -
What is the diff bet condition class and condition type.
Hello Gurus
What is the diff bet condition class and condition type.
I have seen so many threads on this but not getting the exact usefullness.
Difference between Condition class and Condition Category
What is the difference between condition class and condition category?
Condition class and condition category etc.
As per the knowledge i gained condition class tells the type of the condition ie either price , discount ,taxes etc.
Then please tell me why we require cond category.Please give a business scenario where we can justify it use.Hi shiva
Difference between Condition Category and Condition Class
Condition Category -
It is the Classification of conditions as per the categories ,Say for example Freight condition types you have the same conditon category
Condition class -
It classifies the condition types as price , discounts , taxes , discount etc
Regards
Srinath -
What is the field and Table for "Batch Class" and "Class Type" in QM.
Hi All,
What is the field and Table for "Batch Class" and "Class Type" in QM.
Thanks,Hi,
For batch class the class type value is '023' . This you can find from KLAH table and the fileld for class type is KLART..
And also all the data related to batch class are found in tables INOB, KLAH,KKSK and for the characeteristics of batch materials you can refer AUSP table.
In INOB table, for batch class, you need to give 023 in KLART field and value MCH1 in OBTAB filed.
Please check this and let me know if this you need any more details? -
Whenever I click on firefox, or when a pop-up occurs, I get a java script error that says, "TypeError: Components.classes[TvtPwmComponent_CID] is undefined". I don't know why. It first occurred while I was on ESPN while trying to watch college games live.
This issue can be caused by an extension that isn't working properly.
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode -
ERROR [code=1] Running adjopy.class
Hi DBA's
When i am applying patch 5903765 i got the following error.
i checked the write permission and owner permission, it seems everyting is fine and I run manually following script, i got the same error.
adjava -mx512m -nojit oracle.apps.ad.jri.adjcopy @/s03/CLONE/clnappl/admin/CLN/out/apps.cmd
Kindly help me to resolve the issue.
=============ERROR=============================
About to Write undo archive : Mon Mar 16 2009 14:22:33
Writing undo archive /s03/CLONE/kiranpatches/5903765/backup/CLN/aqherptestdb/java
ERROR: I/O or zip error while attempting to read entry meta-inf/jdev-ext.xml in zip file /s03/CLONE/clncomn/java
Error(s) have occurred; exiting with status 1
AD Run Java Command is complete.
Copyright (c) 2002 Oracle Corporation
Redwood Shores, California, USA
AD Java
Version 11.5.0
NOTE: You may not use this utility for custom development
unless you have written permission from Oracle Corporation.
AutoPatch error:
ERROR [code=1] Running adjopy.class
AutoPatch error:
Error updating master archive
Best Regards,
SGSG,
Please review the following note:
Note: 376096.1 - I/O or ZIP Error While Attempting To Read Entry meta-inf/jdev-ext.xml
https://metalink2.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=376096.1
Regards,
Hussein -
Error in parsing: SAX2 driver class com.sun.xml.parser not found
Hi I have this exception
Error in parsing: SAX2 driver class com.sun.xml.parser not found
when I try to run the examples from the book xml and java
I have added the following jar files to the class path that i have download form java.sun.com
xml.jar
xalan.jar
jaxp.jar
crimson.jar
Please can anyone tell me what is missing or wrong..the code must be right since written by oreilly... please have u any ideA
XMLReaderFactory.createXMLReader(
// "org.apache.xerces.parsers.SAXParser");
"com.sun.xml.parser");//
I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..to com.sun.xml.parser
THIS IS THE ALL CODE
import java.io.IOException;
import org.xml.sax.Attributes;
import org.xml.sax.ContentHandler;
import org.xml.sax.ErrorHandler;
import org.xml.sax.Locator;
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.XMLReader;
import org.xml.sax.helpers.XMLReaderFactory;
import org.xml.sax.*;
* <b><code>SAXParserDemo</code></b> will take an XML file and parse it using SAX,
* displaying the callbacks in the parsing lifecycle.
* @author Brett McLaughlin
* @version 1.0
public class SAXParserDemo {
* <p>
* This parses the file, using registered SAX handlers, and output
* the events in the parsing process cycle.
* </p>
* @param uri <code>String</code> URI of file to parse.
public void performDemo(String uri) {
System.out.println("Parsing XML File: " + uri + "\n\n");
// Get instances of our handlers
ContentHandler contentHandler = new MyContentHandler();
ErrorHandler errorHandler = new MyErrorHandler();
try {
// Instantiate a parser
XMLReader parser =
XMLReaderFactory.createXMLReader(
// "org.apache.xerces.parsers.SAXParser");
"com.sun.xml.parser");// I HAVE ONLY CHANGED THIS LINE FROM THE apache parser..
// Register the content handler
parser.setContentHandler(contentHandler);
// Register the error handler
parser.setErrorHandler(errorHandler);
// Parse the document
parser.parse(uri);
} catch (IOException e) {
System.out.println("Error reading URI: " + e.getMessage());
} catch (SAXException e) {
System.out.println("Error in parsing: " + e.getMessage());
* <p>
* This provides a command line entry point for this demo.
* </p>
public static void main(String[] args) {
// if (args.length != 1) {
// System.out.println("Usage: java SAXParserDemo [XML URI]");
// System.exit(0);
//String uri = args[0];
SAXParserDemo parserDemo = new SAXParserDemo();
parserDemo.performDemo("content.xml");
* <b><code>MyContentHandler</code></b> implements the SAX
* <code>ContentHandler</code> interface and defines callback
* behavior for the SAX callbacks associated with an XML
* document's content.
class MyContentHandler implements ContentHandler {
/** Hold onto the locator for location information */
private Locator locator;
* <p>
* Provide reference to <code>Locator</code> which provides
* information about where in a document callbacks occur.
* </p>
* @param locator <code>Locator</code> object tied to callback
* process
public void setDocumentLocator(Locator locator) {
System.out.println(" * setDocumentLocator() called");
// We save this for later use if desired.
this.locator = locator;
* <p>
* This indicates the start of a Document parse - this precedes
* all callbacks in all SAX Handlers with the sole exception
* of <code>{@link #setDocumentLocator}</code>.
* </p>
* @throws <code>SAXException</code> when things go wrong
public void startDocument() throws SAXException {
System.out.println("Parsing begins...");
* <p>
* This indicates the end of a Document parse - this occurs after
* all callbacks in all SAX Handlers.</code>.
* </p>
* @throws <code>SAXException</code> when things go wrong
public void endDocument() throws SAXException {
System.out.println("...Parsing ends.");
* <p>
* This will indicate that a processing instruction (other than
* the XML declaration) has been encountered.
* </p>
* @param target <code>String</code> target of PI
* @param data <code>String</code containing all data sent to the PI.
* This typically looks like one or more attribute value
* pairs.
* @throws <code>SAXException</code> when things go wrong
public void processingInstruction(String target, String data)
throws SAXException {
System.out.println("PI: Target:" + target + " and Data:" + data);
* <p>
* This will indicate the beginning of an XML Namespace prefix
* mapping. Although this typically occur within the root element
* of an XML document, it can occur at any point within the
* document. Note that a prefix mapping on an element triggers
* this callback <i>before</i> the callback for the actual element
* itself (<code>{@link #startElement}</code>) occurs.
* </p>
* @param prefix <code>String</code> prefix used for the namespace
* being reported
* @param uri <code>String</code> URI for the namespace
* being reported
* @throws <code>SAXException</code> when things go wrong
public void startPrefixMapping(String prefix, String uri) {
System.out.println("Mapping starts for prefix " + prefix +
" mapped to URI " + uri);
* <p>
* This indicates the end of a prefix mapping, when the namespace
* reported in a <code>{@link #startPrefixMapping}</code> callback
* is no longer available.
* </p>
* @param prefix <code>String</code> of namespace being reported
* @throws <code>SAXException</code> when things go wrong
public void endPrefixMapping(String prefix) {
System.out.println("Mapping ends for prefix " + prefix);
* <p>
* This reports the occurrence of an actual element. It will include
* the element's attributes, with the exception of XML vocabulary
* specific attributes, such as
* <code>xmlns:[namespace prefix]</code> and
* <code>xsi:schemaLocation</code>.
* </p>
* @param namespaceURI <code>String</code> namespace URI this element
* is associated with, or an empty
* <code>String</code>
* @param localName <code>String</code> name of element (with no
* namespace prefix, if one is present)
* @param rawName <code>String</code> XML 1.0 version of element name:
* [namespace prefix]:[localName]
* @param atts <code>Attributes</code> list for this element
* @throws <code>SAXException</code> when things go wrong
public void startElement(String namespaceURI, String localName,
String rawName, Attributes atts)
throws SAXException {
System.out.print("startElement: " + localName);
if (!namespaceURI.equals("")) {
System.out.println(" in namespace " + namespaceURI +
" (" + rawName + ")");
} else {
System.out.println(" has no associated namespace");
for (int i=0; i<atts.getLength(); i++)
System.out.println(" Attribute: " + atts.getLocalName(i) +
"=" + atts.getValue(i));
* <p>
* Indicates the end of an element
* (<code></[element name]></code>) is reached. Note that
* the parser does not distinguish between empty
* elements and non-empty elements, so this will occur uniformly.
* </p>
* @param namespaceURI <code>String</code> URI of namespace this
* element is associated with
* @param localName <code>String</code> name of element without prefix
* @param rawName <code>String</code> name of element in XML 1.0 form
* @throws <code>SAXException</code> when things go wrong
public void endElement(String namespaceURI, String localName,
String rawName)
throws SAXException {
System.out.println("endElement: " + localName + "\n");
* <p>
* This will report character data (within an element).
* </p>
* @param ch <code>char[]</code> character array with character data
* @param start <code>int</code> index in array where data starts.
* @param end <code>int</code> index in array where data ends.
* @throws <code>SAXException</code> when things go wrong
public void characters(char[] ch, int start, int end)
throws SAXException {
String s = new String(ch, start, end);
System.out.println("characters: " + s);
* <p>
* This will report whitespace that can be ignored in the
* originating document. This is typically only invoked when
* validation is ocurring in the parsing process.
* </p>
* @param ch <code>char[]</code> character array with character data
* @param start <code>int</code> index in array where data starts.
* @param end <code>int</code> index in array where data ends.
* @throws <code>SAXException</code> when things go wrong
public void ignorableWhitespace(char[] ch, int start, int end)
throws SAXException {
String s = new String(ch, start, end);
System.out.println("ignorableWhitespace: [" + s + "]");
* <p>
* This will report an entity that is skipped by the parser. This
* should only occur for non-validating parsers, and then is still
* implementation-dependent behavior.
* </p>
* @param name <code>String</code> name of entity being skipped
* @throws <code>SAXException</code> when things go wrong
public void skippedEntity(String name) throws SAXException {
System.out.println("Skipping entity " + name);
* <b><code>MyErrorHandler</code></b> implements the SAX
* <code>ErrorHandler</code> interface and defines callback
* behavior for the SAX callbacks associated with an XML
* document's errors.
class MyErrorHandler implements ErrorHandler {
* <p>
* This will report a warning that has occurred; this indicates
* that while no XML rules were "broken", something appears
* to be incorrect or missing.
* </p>
* @param exception <code>SAXParseException</code> that occurred.
* @throws <code>SAXException</code> when things go wrong
public void warning(SAXParseException exception)
throws SAXException {
System.out.println("**Parsing Warning**\n" +
" Line: " +
exception.getLineNumber() + "\n" +
" URI: " +
exception.getSystemId() + "\n" +
" Message: " +
exception.getMessage());
throw new SAXException("Warning encountered");
* <p>
* This will report an error that has occurred; this indicates
* that a rule was broken, typically in validation, but that
* parsing can reasonably continue.
* </p>
* @param exception <code>SAXParseException</code> that occurred.
* @throws <code>SAXException</code> when things go wrong
public void error(SAXParseException exception)
throws SAXException {
System.out.println("**Parsing Error**\n" +
" Line: " +
exception.getLineNumber() + "\n" +
" URI: " +
exception.getSystemId() + "\n" +
" Message: " +
exception.getMessage());
throw new SAXException("Error encountered");
* <p>
* This will report a fatal error that has occurred; this indicates
* that a rule has been broken that makes continued parsing either
* impossible or an almost certain waste of time.
* </p>
* @param exception <code>SAXParseException</code> that occurred.
* @throws <code>SAXException</code> when things go wrong
public void fatalError(SAXParseException exception)
throws SAXException {
System.out.println("**Parsing Fatal Error**\n" +
" Line: " +
exception.getLineNumber() + "\n" +
" URI: " +
exception.getSystemId() + "\n" +
" Message: " +
exception.getMessage());
throw new SAXException("Fatal Error encountered");I have seen this error when I'm executing inside one of the (j2ee sun reference implementation) server containers (either web or ejb). I believe its caused by "something" having previously loaded the "sax 1 driver class". In my case, I think the container or server is loading the sax parser from a jar that contains a sax 1 version. If you can, ensure that nothing is loading the sax 1 parser from another jar on your system. Verify that you are loading the sax parser from a jar containing the latest version so that you get the sax 2 compliant parser. Good luck!
-
Error Message: A main Java class needs to be specified to run the program.
Hi,
I am adding a program object to cms using java program, and trying to run it. I am getting an error message like
Error Message: A main Java class needs to be specified to run the program.
Could you please help me on this., please find the pasted program object pasted below
public class MoveReports {
public void run(IEnterpriseSession enterpriseSession, IInfoStore infoStore,
String[] args) throws SDKException {
int objectSize = ;
String cms = "";
String username = "";
String password = "";
String auth = "";
try {
ISessionMgr sm = CrystalEnterprise.getSessionMgr();
enterpriseSession = sm.logon(username, password, cms, auth);
IInfoStore oInfoStore=(IInfoStore)enterpriseSession.getService("", "InfoStore");
IInfoObjects iObjects = null;
iObjects = oInfoStore.query("Select * from CI_INFOOBJECTS where SI_PARENTID = 44104 AND SI_PROGID LIKE '%CrystalEnterprise.Excel%'");
// Getting total number of reports
objectSize = iObjects.size();
if(objectSize > 0)
for (int count = 0; count < objectSize; count++)
IInfoObject obj = (IInfoObject) iObjects.get(count);
// Specify the Destination parent Id to move the reports
obj.setParentID(44102);
oInfoStore.commit(iObjects);
System.out.println("Reports Moved Successfully");
else
System.out.println("Reports Not Available");
catch (SDKException e) {
e.printStackTrace();
System.out.println("Error : " + e.getMessage());
Thanks&Regards
Damodar
Edited by: Damodaram B on Nov 2, 2009 1:29 PMThere's couple of things at issue here - you've not specified the proper interface (IProgramBase or IProgramBaseEx), and the program job server can't find the class in question (a deployment issue).
You may want to open a support ticket with SAP.
Sincerely,
Ted Ueda
Maybe you are looking for
-
[b]Need to access a file which is not specified in the classpath[/b]
Hi everybody , I need your help to proceed with my application. I've tried accessing a file without setting it in Classpath using getResourceAsStream(..), but i'm getting an error. error : java.lang.NullPointerException at java.io.Reader.<init>(Reade
-
Unable to create a bitmap index
Hi, I want to create a bitmap index on one of the colums on a table. I fired following query and it failed. SQL> CREATE BITMAP INDEX TRANS_N_BITMAPIDX_VEH_PLATFORM ON TRANSACTION_NEW(VEH_PLATFORM) LOCAL; Error starting at line 2 in command: CREATE BI
-
HP Touchsmart Photo isn't working
When I open Touchsmart Photo it has a few pictures in it and a bunch of spaces with no pictures. It won't allow me to open any of the pictures to edit. It says "cannot view the file because the program cannot find it" I think that may be because t
-
Having trouble connecting on Wi fi :( PLEASE help
Hi all I've bought my ipod touch today & I was wondering if anyone can help me connect it to my house's router. My iPod detects the home network and asks me for the password, once I enter the password it just says 'Unable to join the network' . This
-
Need help adding 2nd laptop to router WRT160N
I need to add another laptop to our home network so it can connect to our internet connection. The 2nd laptop shows our home network as an available network connection, however, when I try to connect and enter in the key, the computer gives me a mes