Methods to atomaticly parse througt an packet/object and print out seqnr?

do anybody know if there is any method (mabe using parse etc.) that reads out the sequensenumber and timestamp from the packetheaders?

wow

Similar Messages

  • Problem With Business Object and printing job

    Hello,
    We are encountering a problem with the application "Business Objects FINANCE", and we would need your help quickly.
    In the application , itu2019s impossible to print Consolidated Subsidiaries nor the Securities Held. If we try so, the application freezes and we can't do anything but killing the application via the task manager.
    Though, other states can be printed without problem.
    We tried on several different PCs, and the problem occured equally on each one.
    The version installed is 10.5, and we can do any tests that you think would be useful to diagnose problem.
    Our society is AUBAY SA, and our credential to enter in your support website are : S0005386617
    In attachment youu2019ll find a screenshot of the event viewer from the server where the application is install.
    Thanks in advance for your answer,
    best regards.

    check the export parameters of the event triggering workflow.
    If there is a problem, try instantiating the object in your wf based on the key.
    Also check if the wf is able to import the data.
    regards,
    Sandeep Josyula

  • How to print out contents of an object

    Hello, I am having a problem printing out the contents of an object I have created.
    ListReturn test = new ListReturn("ADMNTEST", "JUL", "2002", con);
    System.out.println(test);I see this:
    com.home.tools.reporting.ListReturn@6cd7d5
    But my "test" varible should be populated with a collection. How can I print out my object????

    One of the methods in your Object should be public String toString().
    In this method, iterate over the collection in your object and print out the bits of readable data you think would be useful to display and append it to the end of a String that you return.

  • Printing out results in case of object-relational table (Oracle)

    I have made a table with this structure:
    CREATE OR REPLACE TYPE Boat AS OBJECT(
    Name varchar2(30),
    Ident number,
    CREATE OR REPLACE TYPE Type_boats AS TABLE OF Boat;
    CREATE TABLE HOUSE(
    Name varchar2(40),
    MB Type_boats)
    NESTED TABLE MB store as P_Boat;
    INSERT INTO House VALUES ('Name',Type_boats(Boat('Boat1', 1)));
    I am using java to print out all the results by calling a procedure.
    CREATE OR REPLACE package House_boats
    PROCEDURE add(everything works here)
    PROCEDURE results_view;
    END House_boats;
    CREATE OR REPLACE Package.body House_boats AS
    PROCEDURE add(everything works here) AS LANGUAGE JAVA
    Name House_boats.add(...)
    PROCEDURE results_view AS LANGUAGE JAVA
    Name House_boats.resuts_view();
    END House_boats;
    However, I am not able to get Results.view working in case of object-relation table. This is how I do it in the situation of relational table.
    CALL House_boats.results_view();
    House_boats.java file which is loaded using LOADJAVA:
    import java.sql.*;
    import java io.*;
    public class House_boats {
    public static void results_view ()
       throws SQLException
       { String sql =
       "SELECT * from House";
       try { Connection conn = DriverManager.getConnection
    ("jdbc:default:connection:");
       PreparedStatement pstmt = conn.prepareStatement(sql);
       ResultSet rset = pstmt.executeQuery();
      printResults(rset);
      rset.close();
      pstmt.close();
       catch (SQLException e) {System.err.println(e.getMessage());
    static void printResults (ResultSet rset)
       throws SQLException { String buffer = "";
       try { ResultSetMetaData meta = rset.getMetaData();
       int cols = meta.getColumnCount(), rows = 0;
       for (int i = 1; i <= cols; i++)
       int size = meta.getPrecision(i);
       String label = meta.getColumnLabel(i);
       if (label.length() > size) size = label.length();
       while (label.length() < size) label += " ";
      buffer = buffer + label + " "; }
      buffer = buffer + "\n";
       while (rset.next()) {
      rows++;
       for (int i = 1; i <= cols; i++) {
       int size = meta.getPrecision(i);
       String label = meta.getColumnLabel(i);
       String value = rset.getString(i);
       if (label.length() > size) size = label.length();
       while (value.length() < size) value += " ";
      buffer = buffer + value + " ";  }
      buffer = buffer + "\n";   }
       if (rows == 0) buffer = "No data found!\n";
       System.out.println(buffer); }
       catch (SQLException e) {System.err.println(e.getMessage());}  }
    How do I print out the results correctly in my case of situation?
    Thank you in advance

    I have made a table with this structure:
    I am using java to print out all the results by calling a procedure.
    However, I am not able to get Results.view working in case of object-relation table. This is how I do it in the situation of relational table.
    How do I print out the results correctly in my case of situation?
    There are several things wrong with your code and methodology
    1. The code you posted won't even compile because there are several syntax issues.
    2. You are trying to use/test Java in the database BEFORE you get the code working outside the DB
    3. Your code is not using collections in JDBC properly
    I suggest that you use a different, proven approach to developing Java code for use in the DB
    1. Use SIMPLE examples and then build on them. In this case that means don't add collections to the example until ALL other aspects of the app work properly.
    2. Create and test the Java code OUTSIDE of the database. It is MUCH easier to work outside the database and there are many more tools to help you (e.g. NetBeans, debuggers, DBMS_OUTPUT windows, etc). Trying to debug Java code after you have already loaded it into the DB is too difficult. I'm not aware of anyone, even at the expert level, that develops that way.
    3. When using complex functionality like collections first read the Oracle documentation (JDBC Developer Guide and Java Developer's Guide). Those docs have examples that are known to work.
    http://docs.oracle.com/cd/B28359_01/java.111/b31225/chfive.htm
    http://docs.oracle.com/cd/E11882_01/java.112/e16548/oraarr.htm#sthref583
    The main issue with your example is #3 above; you are not using collections properly:
    String value = rset.getString(i);
    A collection is NOT a string so why would you expect that to work for a nested table?
    A collection needs to be treated like a collection. You can even treat the collection as a separate result set. Create your code outside the database and use the debugger in NetBeans (or other) on this replacement code for your 'printResults' method:
    static void printResults (ResultSet rset) throws SQLException {
        try {
           ResultSetMetaData meta = rset.getMetaData();
           while (rset.next()) {
               ResultSet rs = rset.getArray(2).getResultSet();
               rs.next();
               String ndx = rs.getString(1);
               Struct struct = (Struct) rs.getObject(2);
               System.out.println(struct.getSQLTypeName());
               Object [] oa = struct.getAttributes();
               for (int j = 0; j < oa.length; j++) {
                  System.out.println(oa[j]);
        } catch  (SQLException e) {
           System.err.println(e.getMessage());
    That code ONLY deals with column 2 which is the nested table. It gets that collection as a new resultset ('rs'). Then it gets the contents of that nested table as an array of objects and prints out the attributes of those objects so you can see them.
    Step through the above code in a debugger so you can SEE what is happening. NetBeans also lets you enter expressions such as 'rs' in an evaluation window so you can dynamically try the different methods to see what they do for you.
    Until you get you code working outside the database don't even bother trying to load it into the DB and create a Java stored procedure.
    Since your current issue has nothing to do with this forum I suggest that you mark this thread ANSWERED and repost it in the JDBC forum if you need further help with this issue.
    https://forums.oracle.com/community/developer/english/java/database_connectivity
    When you repost you can include a link to this current thread if you want. Once your Java code is actually working then try the Java Stored procedure examples in the Java Developer's Guide doc linked above.
    At the point you have any issues that relate to Java stored procedures then you should post them in the SQL and PL/SQL forum
    https://forums.oracle.com/community/developer/english/oracle_database/sql_and_pl_sql

  • The method creates a new object and initializes it...

    Hello there,
    I just started learn the Java, and can't understand the method declaration in "Parameter Types" example at "[Passing Information to a Method or a Constructor|http://download.oracle.com/javase/tutorial/java/javaOO/arguments.html] " tutorial section.
    public Polygon polygonFrom(Point[] corners) {
    // method body goes here
    Can you explain me please the example above, what does "Polygon polygonFrom" means?
    And can it be " the method creates a new Polygon object and initializes it", isn't it Constructor's and the new operator job?
    Thanks a lot!

    869857 wrote:
    public Polygon polygonFrom(Point[] corners) {
    // method body goes here
    }Can you explain me please the example above, what does "Polygon polygonFrom" means?
    Polygon is the return type of the method polygonForm
    And can it be " the method creates a new Polygon object and initializes it", isn't it Constructor's and the new operator job?We can't say that it is a constructor and new operator job. Because, As the return type is Polygon, the method should return an object of Polygon or null. For that purpose only the method needs to create a new Polygon object and initialize with some values.

  • Find object Names in a file and print all those objects Names

    Hi All,
    I am new to this forum.
    I want to know how to read only objects names in txt file. In the text file i have sql queries, package names, Function Name. I need to read all the objects and display out put. The file contains around 20000 Lines.
    Please suggest me.
    Thanks & Regards
    Suresh.

    Gurram wrote:
    want to read .rex File. The file contains combination of SQL code with table Names, Packages,Functions,There are three basic ways to read an external file.
    You can use UTL_FILE and use standard/basic file I/O calls like fread() and fwrite() - common amongst most (if not all) programming languages.
    You can define an external table for the file, and SQL*Load the contents of the file dynamically via a SQL SELECT statement.
    You can load the file into a CLOB using DBMS_LOB and then process it - quite useful if the text file is XML as the XMLTYPE supports parsing a a CLOB containing XML.
    I want to pick Each object name put in a separate file line by line.That in turn will need to use UTL_FILE to create an external file.
    Keep in mind though that your in a database environment with PL/SQL. The very best place for data is inside the database in SQL tables. Not outside as external files. Thus you need to ask yourself whether dealing this way with external files is the best solution, and a robust and scalable one.
    Granted, many times from the database side we need to deal with external files. The optimal method usually is to load that file's data into a database table as structured data - data that can be accessed via SQL and sorted, filtered, aggregated and analysed.
    To provide a "file" as output - this should ideally be done directly from structured data (SQL tables). And can be done using HTTP (via a web enabled PL/SQL procedure that supplies the file content as a http Mime stream), using FTP (via <i>UTL_TCP</i>) or as a CLOB via a PL/SQL call interface. Using UTL_FILE is not necessarily the only option.

  • How to parse XML to Java object... please help really stuck

    Thank you for reading this email...
    If I have a **DTD** like:
    <!ELEMENT person (name, age)>
    <!ATTLIST person
         id ID #REQUIRED
    >
    <!ELEMENT name ((family, given) | (given, family))>
    <!ELEMENT age (#PCDATA)>
    <!ELEMENT family (#PCDATA)>
    <!ELEMENT given (#PCDATA)>
    the **XML** like:
    <person id="a1">
    <name>
         <family> Yoshi </family>
         <given> Samurai </given>
    </name>
    <age> 21 </age>
    </person>
    **** Could you help me to write a simple parser to parse my DTD and XML to Java object, and how can I use those objects... sorry if the problem is too basic, I am a beginner and very stuck... I am very confuse with SAXParserFactory, SAXParser, ParserAdapter and DOM has its own Factory and Parser, so confuse...
    Thank you for your help, Yo

    Hi, Yo,
    Thank you very much for your help. And I Wish you are there...I'm. And I plan to stay - It's sunny and warm here in Honolulu and the waves are up :)
    A bit more question for dear people:
    In the notes, it's mainly focus on JAXB,
    1. Is that mean JAXB is most popular parser for
    parsing XML into Java object? With me, definitely. There are essentially 3 technologies that allow you to parse XML documents:
    1) "Callbacks" (e.g. SAX in JAXP): You write a class that overrides 3 methods that will be called i) whenever the parser encounters a start tag, ii) an end tag, or iii) PCDATA. Drawback: You have to figure out where the heck in the document hierarchy you are when such a callback happens, because the same method is called on EACH start tag and similarly for the end tag and the PCDATA. You have to create the objects and put them into your own data structure - it's very tedious, but you have complete control. (Well, more or less.)
    2) "Tree" (e.g. DOM in JAXP, or it's better cousin JDOM): You call a parser that in one swoop creates an entire hierarchy that corresponds to the XML document. You don't get called on each tag as with SAX, you just get the root of the resulting tree. Drawback: All the nodes in the tree have the same type! You probably want to know which tags are in the document, don't you? Well, you'll have to traverse the tree and ask each node: What tag do you represent? And what are your attributes? (You get only strings in response even though your attributes often represent numbers.) Unless you want to display the tree - that's a nice application, you can do it as a tree model for JTree -, or otherwise don't care about the individual tags, DOM is not of much help, because you have to keep track where in the tree you are while you traverse it.
    3) Enter JAXB (or Castor, or ...): You give it a grammar of the XML documents you want to parse, or "unmarshall" as the fashion dictates to call it. (Actually the name isn't that bad, because "parsing" focuses on the input text while "unmarshalling" focuses on the objects you get, even though I'd reason that it should be marshalling that converts into objects and unmarshalling that converts objects to something else, and not vice versa but that's just my opinion.) The JAXB compiler creates a bunch of source files each with one (or now more) class(es) (and now interfaces) that correspond to the elements/tags of your grammar. (Now "compiler" is a true jevel of a misnomer, try to explain to students that after they run the "compiler", they still need to compile the sources the "compiler" generated with the real Java compiler!). Ok, you've got these sources compiled. Now you call one single method, unmarshall() and as a result you get the root node of the hierarchy that corresponds to the XML document. Sounds like DOM, but it's much better - the objects in the resulting tree don't have all the same type, but their type depends on the tag they represent. E.g if there is the tag <ball-game> then there will be an object of type myPackage.BallGame in your data structure. It gets better, if there is <score> inside <ball-game> and you have an object ballGame (of type BallGame) that you can simply call ballGame.getScore() and you get an object of type myPackage.Score. In other words, the child tags become properties of the parent object. Even better, the attributes become properties, too, so as far as your program is concerned there is no difference whether the property value was originally a tag or an attribute. On top of that, you can tell in your schema that the property has an int value - or another primitive type (that's like that in 1.0, in the early release you'll have to do it in the additional xjs file). So this is a very natural way to explore the data structure of the XML document. Of course there are drawbacks, but they are minor: daunting complexity and, as a consequence, very steep learning curve, documentation that leaves much to reader's phantasy - read trial and error - (the user's guide is too simplicistic and the examples too primitive, e.g. they don't even tell you how to make a schema where a tag has only attributes) and reference manual that has ~200 pages full of technicalities and you have to look with magnifying glas for the really usefull stuff, huge number of generated classes, some of which you may not need at all (and in 1.0 the number has doubled because each class has an accompanying interface), etc., etc. But overall, all that pales compared to the drastically improved efficiency of the programmer's efforts, i.e. your time. The time you'll spend learning the intricacies is well spent, you'll learn it once and then it will shorten your programming time all the time you use it. It's like C and Java, Java is order of magnitude more complex, but you'd probably never be sorry you gave up C.
    Of course the above essay leaves out lots and lots of detail, but I think that it touches the most important points.
    A word about JAXB 1.0 vs. Early Release (EA) version. If you have time, definitively learn 1.0, they are quite different and the main advantage is that the schema combines all the info that you had to formulate in the DTD and in the xjs file when using the EA version. I suggested EA was because you had a DTD already, but in retrospect, you better start from scratch with 1.0. The concepts in 1.0 are here to stay and once your surmounted the learning curve, you'll be glad that you don't have to switch concepts.
    When parser job is done,
    what kind of Java Object we will get? (String,
    InputStream or ...)See above, typically it's an object whose type is defined as a class (and interface in 1.0) within the sources that JABX generates. Or it can be a String or one of the primitive types - you tell the "compiler" in the schema (xjs file in EA) what you want!
    2. If we want to use JAXB, we have to contain a
    XJS-file? Something like:In EA, yes. In 1.0 no - it's all in the schema.
    I am very new to XML, is there any simpler way to get
    around them? It has already take me 4 days to find a
    simple parser which give it XML and DTD, then return
    to me Java objects ... I mean if that kind of parser
    exists....It'll take you probably magnitude longer that that to get really familiar with JAXB, but believe me it's worth it. You'll save countless days if not weeks once you'll start developing serious software with it. How long did it take you to learn Java and it's main APIs? You'll either invest the time learning how to use the software others have written, or you invest it writing it yourself. I'll take the former any time. But it's only my opinion...
    Jan

  • While trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'

    Hi,
    Our PI is getting data from WebSphere MQ and pushing to SAP. So our sender CC is JMS and receiver is Proxy. Our PI version is 7.31.
    Our connectivity between the MQ is success but getting the following error while trying to read the payload.
    Text: TxManagerFilter received an error:
    [EXCEPTION]
    java.lang.NullPointerException: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'payload'
           at com.sap.aii.adapter.jms.core.channel.filter.ConvertJmsMessageToBinaryFilter.filter(ConvertJmsMessageToBinaryFilter.java:73)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
           at com.sap.aii.adapter.jms.core.channel.filter.InboundDuplicateCheckFilter.filter(InboundDuplicateCheckFilter.java:348)
           at com.sap.aii.adapter.jms.core.channel.filter.MessageFilterContextImpl.callNext(MessageFilterContextImpl.java:204)
    I have searched SDN but couldn't fix it. Please provide your suggestion.
    With Regards
    Amarnath M

    Hi Amarnath,
    Where exactly you are getting this error?
    If you are getting at JMS Sender communication channel, try to stop and start the JMS communication channel and see the status, also use XPI Inspector to get the exact error log.
    for reference follow below blogs:
    Michal's PI tips: ActiveMQ - JMS - topics with SAP PI 7.3
    Michal's PI tips: XPI inspector - help OSS and yourself
    XPI Inspector

  • Approval task SP09: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'

    Hi everyone,
    I just installed SP09 and i was testing the solution. And I found a problem with the approvals tasks.
    I configured a simple ROLE approval task for validate add event. And when the runtime executes the task, the dispatcher log shows a error:
    ERROR: Evaluation of approvalid failed with Exception: while trying to invoke the method java.lang.String.length() of an object loaded from local variable 'aValue'
    And the notifications configured on approval task does not start either.
    The approval goes to the ToDO tab of the approver, but when approved, also the ROLE stays in "Pending" State.
    I downgraded the Runtime components to SP08 to test, and the approvals tasks works correctly.
    Has anyone passed trough this situation in SP09?
    I think there is an issue with the runtime components delivered with this initial package of SP09.
    Suggestions?

    Hi Kelvin,2016081
    The issue is caused by a program error in the Dispatcher component. A fix will be provided in Identity Management SP9 Patch 2 for the Runtime component. I expect the patch will be delivered within a week or two.
    For more info about the issue and the patch please refer to SAPNote 2016081.
    @Michael Penn - I might be able to assist if you provide the ticket number
    Cheers,
    Kristiyan
    IdM Development

  • The method getBean() is not valid for metadata object /ex/model/remittance/client/common/bc4j.xcfg

    Hi,
    I am getting bellow error when i am running my application. I am using JDeveloper 11.1.2.3
    <Nov 6, 2013 9:52:57 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Nov 6, 2013 9:52:57 AM AST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <BC4JConfigLifeCycleCallBack> <contextInitialized> MDS-01702: The method getBean() is not valid for metadata object /ex/model/remittance/client/common/bc4j.xcfg - it is allowed on only bean metadata objects.
    oracle.mds.exception.MDSRuntimeException: MDS-01702: The method getBean() is not valid for metadata object /ex/model/remittance/client/common/bc4j.xcfg - it is allowed on only bean metadata objects.
      at oracle.mds.core.MetadataObject.getBean(MetadataObject.java:327)
      at oracle.adf.share.jndi.MDSBackingStore.getMOBean(MDSBackingStore.java:558)
      at oracle.bc4j.mbean.RuntimeMXBeanImpl.init(RuntimeMXBeanImpl.java:120)
      at oracle.bc4j.mbean.RuntimeMXBeanImpl.<init>(RuntimeMXBeanImpl.java:110)
      at oracle.bc4j.mbean.RuntimeMXBeanImpl.<init>(RuntimeMXBeanImpl.java:101)
      at oracle.bc4j.mbean.BC4JConfigLifeCycleCallBack.contextInitialized(BC4JConfigLifeCycleCallBack.java:114)
      at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
      at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
      at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
      at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
      at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
      at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
      at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
      at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
      at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
      at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
      at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
      at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
      at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
      at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
      at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
      at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
      at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
      at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
      at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
      at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
      at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
      at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
      at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
      at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
      at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
      at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
      at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
      at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    <Nov 6, 2013 9:53:11 AM AST> <Notice> <LoggingService> <BEA-320400> <The log file C:\Users\maroof\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain\servers\DefaultServer\logs\DefaultDomain.log will be rotated. Reop
    I seen oracle docs solution
    MDS-01702: The method getBean() is not valid for metadata object {0} - it is allowed on only bean metadata objects.
    Cause: An attempt was made to access the metadata object using the bean API but the metadata object was not a bean metadata object. The schema for the root element may not have been registered with MDS, or the beans were not available on the classpath.
    Action: Regenerate the beans from the schema definitions and ensure that the correct versions are on the classpath. Check that the schemas are registered with the MDS instance.
    Level: 1
    Type: ERROR
    Impact: Configuration
    But i am not getting what i do in my application for removing this error.
    Maroof

    Do you use MDS in your application?
    It's possible that you see a leftover of an earlier deployment.
    Do you get the same error if you only start the integrated server (application server navigator->integrated server->debug or run)?
    IF you don't get it when you only start the server without running your application, the problem is somewhere in your app. If you get the error it's probably an old deployment or a configuration error of your server. In this case stop jdev, rename the DefaultDomain folder C:\Users\maroof\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\DefaultDomain tp C:\Users\maroof\AppData\Roaming\JDeveloper\system11.1.2.3.39.62.76.1\xxxDefaultDomain and start jdev again. Then use hte application server navigator to create a new integrated server (you should see this option as the DefaultDomain folder is not present) and once the new integrated server is created test again.
    Timo

  • Parse a WDDX packet using httpservice

    Hi,
    Can anyone tell me how to parse a wddx packet in flex using
    httpservice,
    - <wddxPacket version='1.0'>
    <header/>
    <data>
    <struct>
    <var
    name='Firstname'><string>Henry</string></var>
    <var
    name='Email'><string>[email protected]</string></var>
    </struct>
    </data>
    </wddxPacket>
    How is the result handled? ------------event.result. ??
    Thanks in Advance!!
    Lama

    "lama56" <[email protected]> wrote in
    message
    news:gfme47$4ht$[email protected]..
    > Hi,
    >
    > Can anyone tell me how to parse a wddx packet in flex
    using httpservice,
    > - <wddxPacket version='1.0'>
    > <header/>
    > <data>
    > <struct>
    > <var
    name='Firstname'><string>Henry</string></var>
    > <var
    name='Email'><string>[email protected]</string></var>
    > </struct>
    > </data>
    > </wddxPacket>
    >
    > How is the result handled? ------------event.result. ??
    http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_12.html
    http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_11.html
    http://livedocs.adobe.com/flex/3/html/13_Working_with_XML_02.html
    It seems like you're having trouble mastering the Flex help
    system, so I'd
    suggest this as well:
    http://flexdiary.blogspot.com/2008/07/getting-help-in-flex-builder.html

  • Methods of OLE-objects with IN OUT parameter

    How can I invoke a method of an OLE-object with IN OUT parameter?
    Trying
    obj := CREATE_OLEOBJ(localobject VARCHAR2, TRUE);
    INIT_OLEARGS (n+1);
    ADD_OLEARG (newvar_1 NUMBER/VARCHAR2, vtype VT_TYPE := VT_R8/VT_BSTR);
    ADD_OLEARG (newvar_n NUMBER/VARCHAR2, vtype VT_TYPE := VT_R8/VT_BSTR);
    CALL_OLE(obj OLEOBJ, memberid PLS_INTEGER);
    newvar_x := GET_OLEARG_<type>(x);
    I get the old value of newvar_x, but it must be changed
    Methods with only IN parameter work fine.
    I've tried this with OLE2-package, but it hasn't worked too
    Can somebody help
    Thanks

    Hi Gurus
    I know this is very old post.
    but dose anybody know the answer.
    thanks

  • Regarding Business Objects and Methods

    Hi ,
    I need to create LSMW with BAPO for to create PO.
       Where shoud I found Business Objects and their method.
        Could you please suggest abt this.
    Regards,
    Sai.

    sai,
      "BAPI_PO_CREATE "  ( OR )  "BAPI_PO_CREATE1 "
    Goto SE37>Enter above bapi name>select where used list>it will show list>
    select prog RBUS2012
      or directly se38>RBUS2012>Press F7  or Display.
    Pls. reward if useful

  • Need to restrict base classes method to be accessed by child class object

    class Sample
    public void setValue(String sval)
    System.out.println("sValue is : "+sval);
    class ChildClass extends Sample
    public void fnsetValue(String sval)
    super.setValue(sval);
    class check
    public static void main(String arg[])
    ChildClass chld=new ChildClass();
    chld.fnsetValue("pavan");
    chld.setValue("pavan");
    Note : {color:#ff0000}Kindly don't change the access specifiers.{color}
    I need that the "setValue" method should not be accessed by "ChildClass" object.
    Thanks u

    hi
    Thank u for replying and I have solved the issue in the following manner
    class Sample
         public void setValue(String sval)
              System.out.println("sValue is : "+sval);
    class ChildClass
         InnerClass iclass;
         private Childclass()
              iclass = new InnerClass();
         public static ChildClass getIstance()
              new ChildClass();
         public void fnsetValue(String sval)
              iclass.setValue(sval);
         private class InnerClass extends Sample
              public Innerclass()
                   super();
    class check
         public static void main(String arg[])
              ChildClass chld=chld.getIstance()
              chld.fnsetValue("pavan");
              chld.setValue("pavan"); //No this not visible mark the statement comment
    }

  • I can't seem to Print out the Object I made in this Map. Any ideas?

    Well here's my problem I'm trying to print out the Key's and Value's associated in the following MutliMap.
    The code formating seems to screw up < and >. My datastructure is a Multi Map, the Key is a String Object and
    the Value associated with that String Key is an ArrayList of an object of type Message I defined below.
    Map<String,List<Message>> = new HashMap<String,List<Message>>();
    Here's my code for where I try to Print everything (in the function print() ) .
    The Print just either prints out the KEY and no value, if I take out my ((Message)value) cast, it will print the Message class, like
    43343@Message because I'm assuming its wondering how to Print something that is an object I defined.
    Thats why I defined my own print function and I also override the toString() function but both don't work it seems.
    package parser;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.io.*;
    //this class should store all the Messages or "Events" and
    //you can access them based on their Serial key.
    public class MessageDB
         //database to hold the information
         //     holds the Alerts/messages
         Map<String, List<Message>> AlertMap;
         //Constructor
         MessageDB()
              AlertMap = new HashMap<String, List<Message>>();
         //print, outputs the contents of the hashMap
         public void print()
            //want to print out the Key and all the Messages
              //associated with that key
              Set keys = AlertMap.keySet();          // The set of keys in the map.
              Iterator keyIter = keys.iterator();
              System.out.println("The map contains the following associations:");
              while (keyIter.hasNext()) {
                    Object key = keyIter.next();  // Get the next key.
                    Object value = AlertMap.get(key);  // Get the value for that key.
                    System.out.println( "Serial (key): " + key + "\n");
                    System.out.println("value: " + ((Message)value).toString() + "\n");
                    //((Message)value).print();
         //overloaded print to print to user screen.
         public  void print(PrintWriter out)
              //want to print out the Key and all the Messages
              //associated with that key
              Set keys = AlertMap.keySet();          // The set of keys in the map.
              Iterator keyIter = keys.iterator();
              out.println("The map contains the following associations:");
              out.flush();
              while (keyIter.hasNext()) {
                    Object key = keyIter.next();  // Get the next key.
                    Object value = AlertMap.get(key);  // Get the value for that key.
                   //out.flush();
                   /* out.println( "   (" + key + "," + value + ")" );
                   out.flush();*/
                   // out.println("------------------\n");
                   out.println("EntityID: " + key + "\n"
                                 + "Message: " + value + "\n");
                   //out.println("------------------\n");
                   out.flush();
         void add(Message msg)
              //getting the position of the List by EntityID if avaiable
              List<Message> AlertList = AlertMap.get(msg.Serial);
              //checking to see if there is a unique Key already in the Map.
              if (AlertList == null)
                   //if there isnt a key in the map, add a new key, and a new List mapping
                   //to the key EntityID;
                     AlertList = new ArrayList<Message>();
                     AlertMap.put(msg.Serial, AlertList);
                     AlertList.add(msg);
              else
              //adding message to List
                   AlertList.add(msg);
    }Here's my message class:
    package parser;
    //this class will hold the Event/Message
    import java.util.List;
    import java.util.HashMap;
    import java.util.Map;
    import java.util.ArrayList;
    import java.util.Set;
    import java.util.Iterator;
    public class Message {
         String Identifer;
         String Serial;
         String Node;
         String NodeAlias;
         String Manager;
         String Agent;
         String AlertGroup;
         String AlertKey;
         String Severity;
         String Summary;
         String StateChange;
         String FirstOccurance;
         String LastOccurance;
         String InternalLast;
         String EventId;
         String LocalNodeAlias;
         Message()
               Identifer = "";
               Serial = "";
               Node = "";
               NodeAlias = "";
               Manager = "";
               Agent = "";
               AlertGroup = "";
               AlertKey = "";
               Severity = "";
               Summary = "";
               StateChange = "";
               FirstOccurance = "";
               LastOccurance = "";
               InternalLast = "";
               EventId = "";
               LocalNodeAlias = "";
         void print()
              System.out.println("Identifer: " + this.Identifer + '\n'
                        + "Serial: " + this.Serial + '\n'
                        + "Node: " + this.Node + '\n'
                        + "NodeAlias: " + this.NodeAlias + '\n'
                        + "Manager: "  + this.Manager + '\n'
                        + "Agent: " + this.Agent + '\n'
                        + "AlertGroup: " + this.AlertGroup + '\n'
                        + "AlertKey: " + this.AlertKey + '\n'
                        + "Severity: " + this.Severity + '\n'
                        + "Summary: " + this.Summary + '\n'
                        + "StateChange: " + this.StateChange + '\n'
                        + "FirstOccurance: " + this.FirstOccurance + '\n'
                        + "LastOccurance: " +      this.LastOccurance + '\n'
                        + "InternalLast: " + this.InternalLast + '\n'
                        + "EventId: " + this.EventId + '\n'
                        + "LocalNodeAlias: " + this.LocalNodeAlias + '\n');
         public String toString()
              return ("Identifer: " + this.Identifer + '\n'
                        + "Serial: " + this.Serial + '\n'
                        + "Node: " + this.Node + '\n'
                        + "NodeAlias: " + this.NodeAlias + '\n'
                        + "Manager: "  + this.Manager + '\n'
                        + "Agent: " + this.Agent + '\n'
                        + "AlertGroup: " + this.AlertGroup + '\n'
                        + "AlertKey: " + this.AlertKey + '\n'
                        + "Severity: " + this.Severity + '\n'
                        + "Summary: " + this.Summary + '\n'
                        + "StateChange: " + this.StateChange + '\n'
                        + "FirstOccurance: " + this.FirstOccurance + '\n'
                        + "LastOccurance: " +      this.LastOccurance + '\n'
                        + "InternalLast: " + this.InternalLast + '\n'
                        + "EventId: " + this.EventId + '\n'
                        + "LocalNodeAlias: " + this.LocalNodeAlias + '\n');
    }I'm correctly populating my Messages sent to me from the client, I tested it and it works but iterating over them once the messages are inserted into the map is my issue.
    I'm not getting an error, just no output for the values
    here's how I'm adding the Messages to the MessageDB
    //This string is coming from a client
    String str = in.readLine();
    // creating a scanner to parse
    Scanner scanner = new Scanner(str);
    Scanner scannerPop = new Scanner(str);
    //Creating a new message to hold information
    Message msg = new Message();
    //place Scanner object here:
    MessageParser.printTokens(scanner);
    MessageParser.populateMessage(scannerPop, msg);
    System.out.println("-------PRINTING MESSAGE------\n");
    msg.print();
    System.out.println("----------END PRINT----------\n");
    System.out.println("-------Accessing data from Map----\n");
    MessageDB testDB = new MessageDB();
    testDB.add(msg);
    testDB.print();I know this code is ugly, I should make accessor and modifer functions for my Message class but for now I'm just trying to see if I this method is even going to work then I'm going to go about making it more protected.
    Also here is my output:
    that long mess is the incoming string from the client, and im parsing it up into tokens and assigning my message object certain values.
    Address of server: 0.0.0.0/0.0.0.0
    Server is bound to port: 2222
    Echo :UPDATE: "GATEWAY:@barneyfifedisconnectedMon Jun 11 16:46:12
    2007",446,"barneyfife","","ConnectionWatch","","Gateway","GATEWAY:",0,"A
    GATEWAY process  running on barneyfife has disconnected as username
    gateway",06/11/07 16:50:12,06/11/07 16:46:12,06/11/07 16:46:12,06/11/07 16:46:12,0,1,1,0,0,"",65534,0,0,0,"",0,0,0,"","",0,0,"",0,"",0,0,"","","","","","","","",0,
    0,"","","NCOMS",446,""
    Token [0]UPDATE: "GATEWAY:@barneyfifedisconnectedMon Jun 11 16:46:12 2007"
    Token [1]446
    Token [2]"barneyfife"
    Token [3]""
    Token [4]"ConnectionWatch"
    Token [5]""
    Token [6]"Gateway"
    Token [7]"GATEWAY:"
    Token [8]0
    Token [9]"A GATEWAY process  running on barneyfife has disconnected as username gateway"
    Token [10]06/11/07 16:50:12
    Token [11]06/11/07 16:46:12
    Token [12]06/11/07 16:46:12
    Token [13]06/11/07 16:46:12
    Token [14]0
    Token [15]1
    Token [16]1
    Token [17]0
    Token [18]0
    Token [19]""
    Token [20]65534
    Token [21]0
    Token [22]0
    Token [23]0
    Token [24]""
    Token [25]0
    Token [26]0
    Token [27]0
    Token [28]""
    Token [29]""
    Token [30]0
    Token [31]0
    Token [32]""
    Token [33]0
    Token [34]""
    Token [35]0
    Token [36]0
    Token [37]""
    Token [38]""
    Token [39]""
    Token [40]""
    Token [41]""
    Token [42]""
    Token [43]""
    Token [44]""
    Token [45]0
    Token [46]0
    Token [47]""
    Token [48]""
    Token [49]"NCOMS"
    Token [50]446
    Token [51]""
    Entering populate mssage inside case 0
    case 0: UPDATE: "GATEWAY:@barneyfifedisconnectedMon Jun 11 16:46:12 2007"
    case 1: 446
    case 2: "barneyfife"
    case 3: ""
    case 4: "ConnectionWatch"
    case 5: ""
    case 6: "Gateway"
    case 7: "GATEWAY:"
    case 8: 0
    case 9: "A GATEWAY process  running on barneyfife has disconnected as username gateway"
    case 10: 06/11/07 16:50:12
    case 11: 06/11/07 16:46:12
    case 12: 06/11/07 16:46:12
    case 13: 06/11/07 16:46:12
    DEFAULT: 0
    DEFAULT: 1
    DEFAULT: 1
    DEFAULT: 0
    DEFAULT: 0
    DEFAULT: ""
    DEFAULT: 65534
    DEFAULT: 0
    DEFAULT: 0
    DEFAULT: 0
    case 24: ""
    DEFAULT: 0
    DEFAULT: 0
    DEFAULT: 0
    DEFAULT: ""
    DEFAULT: ""
    DEFAULT: 0
    DEFAULT: 0
    DEFAULT: ""
    DEFAULT: 0
    DEFAULT: ""
    DEFAULT: 0
    DEFAULT: 0
    case 37: ""
    DEFAULT: ""
    DEFAULT: ""
    DEFAULT: ""
    DEFAULT: ""
    DEFAULT: ""
    DEFAULT: ""
    DEFAULT: ""
    DEFAULT: 0
    DEFAULT: 0
    DEFAULT: ""
    DEFAULT: ""
    DEFAULT: "NCOMS"
    DEFAULT: 446
    DEFAULT: ""
    -------PRINTING MESSAGE------
    Identifer: UPDATE: "GATEWAY:@barneyfifedisconnectedMon Jun 11 16:46:12 2007"
    Serial: 446
    Node: "barneyfife"
    NodeAlias: ""
    Manager: "ConnectionWatch"
    Agent: ""
    AlertGroup: "Gateway"
    AlertKey: "GATEWAY:"
    Severity: 0
    Summary: "A GATEWAY process  running on barneyfife has disconnected as username gateway"
    StateChange: 06/11/07 16:50:12
    FirstOccurance: 06/11/07 16:46:12
    LastOccurance: 06/11/07 16:46:12
    InternalLast: 06/11/07 16:46:12
    EventId: ""
    LocalNodeAlias: ""
    ----------END PRINT----------
    -------Accessing data from Map----
    The map contains the following associations:
    Serial (key): 446As you see it is printing the correct Serial, but it seems like it isn't even entering into the printing the value associated with that key.
    NOTE: if you need more code I can supply my parsing functions as well.
    Thanks!
    Message was edited by:
    lokie
    NOTE: the code formating screws up the < >
    it should be HashMap<String,List<Message>>();
    Message was edited by:
    lokie
    Message was edited by:
    lokie
    Message was edited by:
    lokie

    Thanks Good Idea :)
    Heres a small version of the same problem:
    MainTest
    package ds;
    public class MainTest {
         public static void main(String []args)
              //create a new message object, assign it some values.
              //note: Serial is the key to the map.
              Message m1 = new Message();
              m1.Identifer = "Test Message";
              m1.Serial = "222";
              m1.Agent = "AgentTest";
              m1.Identifer = "IdentiferTest";
              //test to see if it assigned right.
              m1.print();
              //insert into a map
              MessageDB dbTest = new MessageDB();
              dbTest.add(m1);
              //print key/values
              dbTest.print();
    }Here is the 2 classes that I use, Message and MessageDB.
    The problem is in the MesesageDB i'm getting the following error:
    Exception in thread "main" java.lang.ClassCastException: java.util.ArrayList cannot be cast to ds.Message
         at ds.MessageDB.print(MessageDB.java:43)
         at ds.MainTest.main(MainTest.java:28)
    package ds;
    import java.util.ArrayList;
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.Set;
    import java.io.*;
    //this class should store all the Messages or "Events" and
    //you can access them based on their Serial key.
    public class MessageDB
         //database to hold the information
         //     holds the Alerts/messages
         Map<String, List<Message>> AlertMap;
         //Constructor
         MessageDB()
              AlertMap = new HashMap<String, List<Message>>();
         //print, outputs the contents of the hashMap
         public void print()
            //want to print out the Key and all the Messages
              //associated with that key
              Set keys = AlertMap.keySet();          // The set of keys in the map.
              Iterator keyIter = keys.iterator();
              System.out.println("The map contains the following associations:");
              while (keyIter.hasNext()) {
                    Object key = keyIter.next();  // Get the next key.
                    Object value = AlertMap.get(key);  // Get the value for that key.
                    System.out.println( "Serial (key): " + key + "\n");
                    System.out.println("value: " + ((Message)value) + "\n");
                    //((Message)value).print();
         ///adds a message (value) to the map, along with the key.
         void add(Message msg)
              //getting the position of the List by EntityID if avaiable
              List<Message> AlertList = AlertMap.get(msg.Serial);
              //checking to see if there is a unique Key already in the Map.
              if (AlertList == null)
                   //if there isnt a key in the map, add a new key, and a new List mapping
                   //to the key EntityID;
                     AlertList = new ArrayList<Message>();
                     AlertMap.put(msg.Serial, AlertList);
                     AlertList.add(msg);
              else
              //adding message to List
                   AlertList.add(msg);
    }Here is the message class you'll need to use to compile:
    package ds;
         public class Message {
              String Identifer;
              String Serial;
              String Node;
              String NodeAlias;
              String Manager;
              String Agent;
              Message()
                    Identifer = "";
                    Serial = "";
                    Node = "";
                    NodeAlias = "";
                    Manager = "";
                    Agent = "";
              void print()
                   System.out.println("Identifer: " + this.Identifer + '\n'
                             + "Serial: " + this.Serial + '\n'
                             + "Node: " + this.Node + '\n'
                             + "NodeAlias: " + this.NodeAlias + '\n'
                             + "Manager: "  + this.Manager + '\n'
                             + "Agent: " + this.Agent + '\n');
              public String toString()
                   return ("Identifer: " + this.Identifer + '\n'
                             + "Serial: " + this.Serial + '\n'
                             + "Node: " + this.Node + '\n'
                             + "NodeAlias: " + this.NodeAlias + '\n'
                             + "Manager: "  + this.Manager + '\n'
                             + "Agent: " + this.Agent + '\n');
         }It doesn't like this line as I suspected:
    System.out.println("value: " + ((Message)value) + "\n");

Maybe you are looking for

  • Help! - Installing Oracle 8.1.7 on Linux on Pentium 4

    I believe the installation bug also occurs when trying to install 8.1.7 on Linux. Can anyone advise how to get round the problem please?

  • Using a Canvas in a Panel

    Im doing a programming project for uni, and I need to know how to use the Graphics class, even although we have never covered it. The task is to create a game of hangman, and I am fine with every aspect of the program except when it comes to showing

  • Mac Newbie looking for short answers to multiple questions...

    My computer experience started with the Commodore 64 in the 1980's and progressed to building my own Core Duo PC with 4 GIG RAM running 64 bit Vista Ultimate and several flavors of Linux. My only Mac experiences happened when I visited my elderly par

  • SD copy control (routines) in ECC6 executed more than once.

    We're upgrading from ECC5 to ECC6. An SD custom "copy routine" in VA01 (SAPMV45A) is being called twice in ECC6 (incorrect) but only once in ECC5 (correct). The result is that the same informational message displays repeatedly and users have to press

  • Qadministrator asking for passwords

    OK, long story, compressor 4, I'm on 10.6.8, set up a cluster WITHOUT ANY PASSWORDS but  when I try to administer cluster qadministrator has set an admin and user password??? I didn't set any passwords at all, I'm the only one in my studio. I can't g