Namespace issue with oracg generated classes

Hi,
I'm having problems generating classes with oracg from the Java Xdk from an XML schema. All classes are generated, but do not compile. In some sources (mostly in the type classes) "public void addSomething(null.Something theSomething)" is generated as the method declaration, and that doesn't compile. When I add a targetnamespace to the xsd file, the generated sources compile (the 'null.' is replaced with 'myPackage.', but when I generate an XML document, I contains a namespace reference (ns1) like this:
<ns1:Note xmlns:ns1 = "http://www.somewhere.org">
<ns1:Form>
<ns1:Reference>
<ns1:ReferenceNbr>1</ns1:ReferenceNbr>
<ns1:ReferenceType>1</ns1:ReferenceType>
</ns1:Reference>
</ns1:Form>
</ns1:Note>
What I want is this:
<Note>
<Form>
<Reference>
<ReferenceNbr>1<ReferenceNbr>
<ReferenceType>1<ReferenceType>
</Reference>
</Form>
</Note>
How can I get this result ?
Kind regards.

Did you try adding the the XmlSeeAlso annotation to the webservice
@XmlSeeAlso({<package.name>.AccountIC.class})
This will add the schema for the data type (AccountIC) to the WSDL.
Hope this helps.
-Ajay

Similar Messages

  • AJAX True Client issue with Load generator and BPM

    Hi every one,
    when i try to run Ajax True Client scrit from controller with Load Generator other than local machine,
    it is failing with an error "cannot find usr file". 
    Root Cause:
    this is because it is missing "webiendp.txt" file while copying the script to Load Generator machine. by placing this file manually in that location, its working fine.
    But in case of BPM we cannot do like that. BPM always make a copy of the script and after execution it clean up the entire folder.
    is there any settings to copy the entire folder to BPM/LG location, with out missing "webiendp.txt"?
    thanks in advance.

    This question seems like it's better suited to the [url http://forums.oracle.com/forums/forum.jspa?forumID=561]JRockit forum
    John

  • Issues with Sequence Generator

    I'm having trouble with Sequence generator not generating continuous numbers starting from 1, each time I run the mapping.
    I want the Sequence to start from 1, each time the mapping is run. For this to happen, I'm using a pre-mapping operator which uses an oracle procedure to reset the sequence.
    But, the sequence generates the numbers from some weird number, say 3508 and then jumps to 5006 and so on. I'm not able to track what's wrong with the sequence. I have stopped the caching in Sequence but still it hasn't helped. I'm sure and have verified that the procedure being used to reset the sequence is running fine.
    Please suggest some additional parameters/properties at OWB level to be checked for the sequence, if any OR any thoughts on why the sequence is not starting from 1. Thanks in advance.
    Thanks,
    Sachin
    Edited by: 850549 on Apr 23, 2011 11:43 AM
    Edited by: 850549 on Apr 23, 2011 11:44 AM

    Could you check whether the sequence you use has a cache value greater than 1 defined in the database. This way if your database regularly should be stoped, e.g for offline backup, you'll loose the sequence values that were unused in memory at that time. That way the gaps in your surrogate ids would be explainable.

  • JBoss Clustering | Issue with sequence generator

    Hi all,
    I am facing a strange issue. I have 2 instances of jboss on the same machine and we have a number of stateless session beans used in our application. Now, I have written a Stateless session bean for sequence generator. I am able to run it on one instance but it is failing on another instance (even if I am only this running this one instance).
    It gives the following error:
    com.proximities.common.utils.SequenceIdGeneratorUtil: Method: getSequence(): Message: TableKey : VENUE
    2005-08-02 11:19:58,406 DEBUG [com.proximities] Class: utils.SequenceIdGeneratorUtil: Method: getSequence(): Message: Fetching from sequence proxy factory: VENUE
    2005-08-02 11:19:58,406 DEBUG [com.proximities] Class: ejb.EJBLookupUtil: Method: getInitialContext: Message: Using JNDI initial context: org.jnp.interfaces.NamingContextFactory
    2005-08-02 11:19:58,406 DEBUG [com.proximities] Class: ejb.EJBLookupUtil: Method: getInitialContext: Message: Using JNDI URL: jnp://localhost:11099
    2005-08-02 11:19:58,406 DEBUG [com.proximities] Class: ejb.EJBLookupUtil: Method: getInitialContext: Message: Using JNDI initial context prefix: org.jboss.naming:org.jnp.interfaces
    2005-08-02 11:19:58,421 DEBUG [com.proximities] Class: ejb.EJBLookupUtil: Method: getSequenceFacade: Message: SequenceStoreFacadeHome - Sequence store facade home returned from ejbHomeFactory isnull
    2005-08-02 11:19:58,421 FATAL [com.proximities] Class: ejb.EJBLookupUtil: Method: getSequenceFacade: Message: Exception during the invoking the remote interface
    2005-08-02 11:19:58,421 INFO [STDOUT] java.lang.NullPointerException
    2005-08-02 11:19:58,421 INFO [STDOUT] ejb.EJBLookupUtil.getSequenceFacade(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] sequence.SequenceProxyFactory.getSequenceStore(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] sequence.SequenceProxyFactory.reserveBlock(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] sequence.SequenceProxyFactory.<init>(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] sequence.SequenceProxyFactory.getSequence(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at common.utils.SequenceIdGeneratorUtil.getSequence(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at dataaccess.VenueDAO.add(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at dataaccess.VenueDAO.update(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at dataaccess.common.GenericDataAccessManager.executeModify(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at business.mediator.ManageVenueMediator.insertIntoVenues(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at business.sessionfacade.VenueManagementFacadeEJBean.insertIntoVenues(Unknown Source)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2005-08-02 11:19:58,421 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.Invocation.performCall(Invocation.java:345)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:214)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:185)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:130)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.webservice.server.ServiceEndpointInterceptor.invoke(ServiceEndpointInterceptor.java:51)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:48)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:105)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:335)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:166)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:139)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:192)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.CleanShutdownInterceptor.invoke(CleanShutdownInterceptor.java:264)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:624)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.ejb.Container.invoke(Container.java:873)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    2005-08-02 11:19:58,421 INFO [STDOUT] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    2005-08-02 11:19:58,421 INFO [STDOUT] at java.lang.reflect.Method.invoke(Method.java:585)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:155)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:104)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:179)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:165)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:55)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:97)
    2005-08-02 11:19:58,421 INFO [STDOUT] at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:86)
    2005-08-02 11:19:58,421 INFO [STDOUT] at $Proxy92.insertIntoVenues(Unknown Source)
    Now within the server logs, I can see that it has loaded and cached the home interface of that bean, but dont know why its not picking it up.
    Here are the logs for the same:
    [org.jboss.ejb.EjbModule] startService, starting container: SequenceStoreFacade
    [org.jboss.system.ServiceController] starting service jboss.j2ee:jndiName=ejb.SequenceStoreFacadeHome,service=EJB
    [org.jboss.ejb.StatelessSessionContainer] Starting jboss.j2ee:jndiName=ejb.SequenceStoreFacadeHome,service=EJB
    [org.jboss.ejb.StatelessSessionContainer] Begin java:comp/env for EJB: SequenceStoreFacade
    [org.jboss.ejb.StatelessSessionContainer] TCL: org.jboss.util.loading.DelegatingClassLoader@188d92e
    [org.jboss.ejb.StatelessSessionContainer] Bound java:comp/ORB for EJB: SequenceStoreFacade
    [org.jboss.ejb.StatelessSessionContainer] Bound java:comp:/HandleDelegate for EJB: SequenceStoreFacade
    [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: SequenceStoreFacade
    [org.jboss.ejb.plugins.local.BaseLocalProxyFactory] SequenceStoreFacade cannot be Bound, doesn't have local and local home interfaces
    [org.jboss.proxy.ejb.ProxyFactory] (re-)Binding Home ejb.SequenceStoreFacadeHome
    [org.jboss.proxy.ejb.ProxyFactory] Bound SequenceStoreFacade to ejb.SequenceStoreFacadeHome
    [org.jboss.system.ServiceController] starting service jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb.SequenceStoreFacadeHome
    [org.jboss.ejb.plugins.StatelessSessionInstancePool] Starting jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb.SequenceStoreFacadeHome
    [org.jboss.ejb.plugins.StatelessSessionInstancePool] Started jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb.SequenceStoreFacadeHome
    [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:service=EJB,plugin=pool,jndiName=ejb.SequenceStoreFacadeHome dependent components: []
    [org.jboss.resource.connectionmanager.CachedConnectionInterceptor] start called in CachedConnectionInterceptor
    [org.jboss.ejb.StatelessSessionContainer] Started jboss.j2ee:jndiName=ejb.SequenceStoreFacadeHome,service=EJB
    [org.jboss.system.ServiceController] Starting dependent components for: jboss.j2ee:jndiName=ejb.SequenceStoreFacadeHome,service=EJB dependent components: []
    BTW, I am using JCS for caching and JBoss 4.0. Any pointers will be most appreciated?
    Thanks,
    Vikrant Verma

    You'll get a lot more help with this by posting this to the JBoss forums. This forum is about the J2EE SDK which uses the Sun Java System Application Server.
    -Ian Evans

  • Issue with ACE HTTP class map

    This is what I want to achieve USING the ACE as a reverse proxy.
    User uses the url https://abc/password - gets to the destination server & the web page
    If user tries to use any thing additional then the connection is dropped at the ACE such as
    https://abc/password/test or any such variation.
    Following is the config I have to achieve this
    class-map type http loadbalance match-any L7-CLASS-TEST
      match http url /password
      match http url /password/
    class-map type http loadbalance match-any L7-CLASS-TEST-deny
      2 match http url .*.*
    policy-map type loadbalance first-match LBP-TEST
      class L7-CLASS-TEST
        serverfarm FARM-TEST
        ssl-proxy client TEST
      class L7-CLASS-TEST-deny
        drop
      class class-default
        serverfarm FARM-TEST
        ssl-proxy client TEST
    The problem with this is when the page opens I get broken links on all the images. If I use the following line
    match http url /password.*
    I get the images to work but the user can use the https://abc/password/test which is not what I want.
    Has any one faced this issue ?
    Any help will be appreciated.
    Thanks in advance
    Prasanna

    Prasanna,
    What about if you try it in HTTP and apply the following change?
    class-map type http loadbalance match-any L7-CLASS-TEST-deny
      2 match http url /.*
    This should work in HTTP but not with HTTPS
    Anyway, it should not work since everything seems to be encrypted, you may require either SSL-termination or END-TO-END SSL for this then the ACE can decrypt the request see what it needs to do and take the load balance decision.
    Jorge

  • Compiler issue with programmer defined class

    I'm trying an example out of a Java book. I'm using jdk vs 5 to compile. In the example there are 2 classes Coin and CountFlips. CountFlips imports a class called Coin. I can use the -classpath statement and compile Coin ok, but when I compile CountFlips, it doesn't like the import statement ie import Coin; it gives me an error saying '.' expected. Since Coin.class is just in that directory and not part of a package, how should I get this to work ? I really would like to understand this.
    Thank you in advance.

    Hi,
    do you deploy the Spring classes with the application ? I suggest to try the OracleAs forum as well to ensure this has to be in a specific path to be loaded. A list of forums is available from here
    http://forums.oracle.com/forums/index.jspa?categoryID=84
    Frank

  • Issue with a Validation Class

    Hello all,
    I have the following validating class that is supposed to check the usernames and passwords held in a file against what the user has typed into a form;
    package bus;
    import java.io.BufferedReader;
    import java.io.FileReader;
    import java.io.IOException;
    import org.springframework.validation.Errors;
    import org.springframework.validation.Validator;
    import bus.Credentials;
    public class LogonValidator implements Validator {
        public boolean supports(Class clazz) {
            return clazz.equals(Credentials.class);
        public void validate(Object obj, Errors errors) {
             Credentials credentials = (Credentials) obj;
             String usernameCompare = credentials.getUsername();
             String passwordCompare = credentials.getPassword();
             String username;
              String password;
              String[] data;
             try {
                BufferedReader in = new BufferedReader(new FileReader("C:/Documents and Settings/Jaz/workspace/OBS/war/LoginInfo.txt"));
                String inLine = null;
                while ((inLine = in.readLine()) != null) {
                     data = inLine.split(",");
                     username = data[0];
                     password = data[1];
                   if (((username.toString()).equals(usernameCompare))== false){
                         errors.rejectValue("username", "error.login.invalid-user",
                                   null, "Value required.");
                   else{
                   if (((password.toString()).equals(passwordCompare)) == false){
                              errors.rejectValue("password", "error.login.invalid-pass",
                                        null, "Incorrect Password.");     
               in.close();
          }catch (IOException e){
    }the file the class is to read from (LogonInfo.txt) intially contained only;
    guest,guestand the app worked perfectly fine. However when more entries were added as such;
    guest,guest
    vip,vip
    someone,someone
    nobody,nobodythe form did not validate anything anymore. When I enter a valid username and password that is found in the txt file it simply says value required. Even if I use the initial entries of guest. Im completely lost with this one. Can anyone help?
    Thank You

    Thank you very much for your help. I have amended the code as such;
    while ((inLine = in.readLine()) != null) {
                     data = inLine.split(",");
                     username = data[0];
                     password = data[1];
                   if (username.equals(usernameCompare) && password.equals(passwordCompare)) {
                       break;
                if (username.equals(usernameCompare)== false && password.equals(passwordCompare)){
                             errors.rejectValue("username", "error.login.invalid-user",
                                       null, "Value required.");
                 else{
                 if (password.equals(passwordCompare) == false && username.equals(usernameCompare)){
                             errors.rejectValue("password", "error.login.invalid-pass",
                                       null, "Incorrect Password.");
               } I thought this would have worked, however it validates the username and password even if both are incorrect. What I would have expected it to do is to validate only if both username and password were correct.
    Also if the username was correct and password incorrect display the appropriate error message. Again if the password was incorrect and the username correct display the error message.
    I dont understand why this is not working.
    Message was edited by:
    Jazman

  • Issues with Weblogic - Offending class: javax/servlet/Servlet.class

    Hi,
    I've been working on a servlet that calls EJB objects and I'm having problems deploying it under Tomcat. It prints the following error message when I try to deploy the app:
    INFO: validateJarFile(/home/xxxxx/tomcat/webapps/hello/WEB-INF/lib/wlfullclient.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
    For reference, here is how my web.xml file looks like:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>Hell World Servlet</display-name>
    <description>
    A Hello World servlet example for Entity Beans.
    </description>
    <servlet>
    <servlet-name>HelloWorldServletEJB</servlet-name>
    <description>
    A Hello World servlet example for Entity Beans.
    </description>
    <servlet-class>examples.helloworld.HelloWorldServletEJB</servlet-class>
    <load-on-startup>5</load-on-startup>
    </servlet>
    <servlet-mapping>
    <servlet-name>HelloWorldServletEJB</servlet-name>
    <url-pattern>/HelloWorldServletEJB</url-pattern>
    </servlet-mapping>
    <session-config>
    <session-timeout>30</session-timeout> <!-- 30 minutes -->
    </session-config>
    </web-app>and here is my directory tree structure:
    hello/
    `-- WEB-INF
    |-- classes
    | `-- examples
    | `-- helloworld
    | |-- Hello.class
    | |-- HelloHome.class
    | `-- HelloWorldServletEJB.class
    |-- jsp
    |-- lib
    | `-- wlfullclient.jar
    |-- web.xml
    `-- web.xml.oldI've been dealing with this problem for the past 3 days and I'm really stuck at this point. Any help would be much appreciated.
    Thanks
    Edited by: spinth on May 19, 2009 9:19 PM
    Edited by: spinth on May 19, 2009 9:20 PM

    I'm not sure what your code does but Tomcat doesn't support EJBs.

  • 3.3EA1 Issues with report generator interfaces

    Trying to build out a few reports in the EA version and noticing a few issues:
    1. When you first launch the report wizard the template drop down and manage button are greyed out. If you click another option from the available reports tab then they become active.
    2. If I pick a Template, then select a Report Configuration, the Template gets blanked out and disappears from the drop down list. So I can't use a report configuration (having selected a few sub views or specific tables) and a custom template? I have to exit the report builder and re-enter to get the Template drop down to re-appear.
    Thanks.

    Hi Kent,
    We saw this bug and it's already fixed.
    Thanks.

  • Issue with Generate Create Script in new ODT 11.1.0.5.10 beta

    So I'm trying to determine if there's an issue with the Generate Create Script option in the new ODT 11.1.0.5.10 beta (when you right click on a table in Server Explorer).
    The SQL create script that it generates lacks the slash between lines. For example I generated the create script for my User table and this is what was generated:
    CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
    CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
    BEFORE
    INSERT
    ON "DEV"."SYSTEM_USER_TB"
    FOR EACH ROW
    begin
         select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
    end;
    In my new Oracle Database Project, if I right click on the script and select "Run" or "Run On", the script fails saying:
    Connected.
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ERROR at line 2:
    ORA-00922: missing or invalid option
    If I then add, a slash between lines, the script runs successfully and creates the table/trigger and whatever else just fine. For example, I changed the above generated code to look as follows:
    CREATE TABLE "DEV"."SYSTEM_USER_TB" ("RID" NUMBER(10,0),"USER_NAME" VARCHAR2(256 CHAR),"APPLICATION_RID" NUMBER(10,0),"FIRST_NAME" VARCHAR2(256 CHAR),"LAST_NAME" VARCHAR2(256 CHAR),"PW" VARCHAR2(128 CHAR),"PW_FORMAT" NUMBER,"PW_SALT" VARCHAR2(128 CHAR),"LAST_ACTIVITY_DT" DATE,"EXPIRATION_DT" DATE,"EMAIL" VARCHAR2(256 CHAR),"PW_QUESTION" VARCHAR2(256 CHAR),"PW_ANSWER" VARCHAR2(256 CHAR),"APPROVED_FLG" NUMBER(1,0),"LOCKED_OUT_FLG" NUMBER(1,0),"LAST_LOGIN_DT" DATE,"LAST_PW_CHANGED_DT" DATE,"LAST_LOCKOUT_DT" DATE,"FAILED_PW_ATTEMPT_CNT" NUMBER(6,0),"FAILED_PW_ATTEMPT_WINSTART" DATE,"FAILED_PW_ANSW_ATTEMPT_CNT" NUMBER(8,0),"FAILED_PW_ANSW_ATTEMPT_WINSTRT" DATE,"CREATED_BY_RID" NUMBER(10,0),"CREATED_DT" DATE,"MODIFIED_BY_RID" NUMBER(10,0),"MODIFIED_DT" DATE) TABLESPACE "USERS" PCTFREE 10 INITRANS 1 MAXTRANS 255 STORAGE ( INITIAL 131072 MAXEXTENTS 2147483645 MINEXTENTS 1 )
    CREATE UNIQUE INDEX "DEV"."XPKSTAFF" ON "DEV"."SYSTEM_USER_TB" ("RID" ) TABLESPACE "USERS"
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033033" PRIMARY KEY ("RID") USING INDEX "DEV"."XPKSTAFF" ENABLE VALIDATE )
    ALTER TABLE "DEV"."SYSTEM_USER_TB" ADD ( CONSTRAINT "SYS_C0033032" CHECK ("RID" IS NOT NULL) ENABLE VALIDATE )
    CREATE TRIGGER "DEV"."SYSTEM_USER_TRG1"
    BEFORE
    INSERT
    ON "DEV"."SYSTEM_USER_TB"
    FOR EACH ROW
    begin
         select SYSTEM_USER_SEQ.nextval into :new.RID from dual;
    end;
    So, does anyone know if this is a bug? Could I be missing an option to add in the slashes to the generated code? Is there an option to not require the slashes? Could there be another way to execute these scripts?
    Seriously, I think I'm having deja vu from the last release of the Dev Tools: Generate Create Script creates scripts that won't run: ORA-00922: missing..
    ...except this time the documentation says I should be able to use the "Run" and "Run On" commands in the Oracle Database Project (see page 8): http://www.oracle.com/technology/tech/dotnet/pdf/ODT11_whatsnew.pdf
    null

    There are 2 issues in the generated script :
    1. Missing semicolons at the end of the create stmts
    2. Missing slashes
    Both of these fixes will be available in the ODT 11.1 release.

  • Issue with GregorianCalendar class

    Hi I'm having issues with the GregorianCalender class. I am trying to enable daylight savings time but it doesn't seem to be working properly for. As a test I have taken the difference of time (in milliseconds) between a date where daylight savings causes a shift in time (April 4, 2004 for example). The two sample dates I have chosen are April 5, 2004 and April 4, 2004, ideally the time difference should be 23 hrs (since one hour is lost due to daylight savings) but I am getting 24hrs. I have a sample program in C++ which gives me the correct answer so I know the result am I getting here is wrong. Anybody have any suggestions?
    String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
         if (ids.length == 0)
         System.exit(0);
         // create a Pacific Standard Time time zone
         SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
         // set up rules for daylight savings time
         pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 60 * 60 * 1000, true);
         pdt.setEndRule(Calendar.OCTOBER, 31, Calendar.SUNDAY, 60 * 60 * 1000, false);
         pdt.setDSTSavings( 60*60*1000 );
         GregorianCalendar cal = new GregorianCalendar(2004, 4, 4);
         GregorianCalendar cal1 = new GregorianCalendar(2007, 4, 5);
         cal1.setTimeZone ( pdt );
         cal.setTimeZone( pdt );
    //This values is incorrect
         long diff = cal1.getTimeInMillis() - cal.getTimeInMillis();     
    //I have also tried the following
    String[] ids = TimeZone.getAvailableIDs(-8 * 60 * 60 * 1000);
         if (ids.length == 0)
         System.exit(0);
         // create a Pacific Standard Time time zone
         SimpleTimeZone pdt = new SimpleTimeZone(-8 * 60 * 60 * 1000, ids[0]);
         // set up rules for daylight savings time
         pdt.setStartRule(Calendar.APRIL, 1, Calendar.SUNDAY, 60 * 60 * 1000, true);
         pdt.setEndRule(Calendar.OCTOBER, 31, Calendar.SUNDAY, 60 * 60 * 1000, false);
         pdt.setDSTSavings( 60*60*1000 );
         GregorianCalendar cal = new GregorianCalendar(pdt);
         GregorianCalendar cal1 = new GregorianCalendar(pdt);
         cal1.set(2004, 4, 5 );
         cal.set( 2004, 4, 4 );
    //This values is incorrect
         long diff = cal1.getTimeInMillis() - cal.getTimeInMillis();     
    Thanks

    There may be any of several issues:
    Daylight savings time moves from year to year. Maybe last year, it was not on the same week number.
    Daylight savings time officially occurs at 2am. Java date's default to midnight if explicitly initialized. So, try calculating from after 2-3 am, depending on which way time was shifted.- Saish
    "My karma ran over your dogma." - Anon

  • Webservices: jwsc is unable to compile wsdlc-generated classes

    Hello,
    I'm trying to generate JAXWS web service classes using WebLogic 10.0 MP1 wsdlc and jwsc Ant tasks, following the steps described in [Creating a Web Service from a WSDL File|http://edocs.bea.com/wls/docs100/webserv/use_cases.html#wp220705].
    I'm using the WSRP WSDL which I have in my local system and which is also available at [http://docs.oasis-open.org/wsrp/v2/wsrp-service.wsdl]. The only change I made is to remove all the references to "v1" specification of WSRP in there.
    It seems that wsdlc can only work with a single service and single port so I'm currently trying to generate just the classes for WSRP_v2_Markup_Service port.
    Here are my ant tasks:
    <wsdlc type="JAXWS" srcWsdl="${wsdl.path}" srcPortName="WSRP_v2_Markup_Service" destJwsDir="${target.jws.dir}" destImplDir="${target.impl.dir}" />
    <jwsc srcdir="${target.impl.dir}" destdir="target/wls-wsrp-ws.ear">
    <jws type="JAXWS" file="oasis/names/tc/wsrp/v2/wsdl/WSRPV2ServiceImpl.java" compiledWsdl="target/compiledWsdl/wsrp-2_0-service_wsdl.jar">
    <WLHttpTransport contextPath="${contextPath}" serviceUri="WSRP_v2_Markup_Service" />
    </jws>
    "wsdlc" part succeeds but jwsc part fails with the following error message:
    [jwsc] C:\DOCUME~1\zachcial\LOCALS~1\Temp\_970x54\oasis\names\tc\wsrp\v2\wsdl\WSRPV2MarkupPortType.java 263:28
    [jwsc] *[ERROR] - Method contains javax.jws.WebResult annotation but is not a WebMethod. Add the javax.jws.WebMethod annotation to the method definition.*
    [jwsc] C:\DOCUME~1\zachcial\LOCALS~1\Temp\_970x54\oasis\names\tc\wsrp\v2\wsdl\WSRPV2MarkupPortType.java 290:28
    [jwsc] *[ERROR] - Method contains javax.jws.WebResult annotation but is not a WebMethod. Add the javax.jws.WebMethod annotation to the method definition.*
    [jwsc] C:\home\hp\WsrpTake5\wls-wsrp-ws\target\impl\oasis\names\tc\wsrp\v2\wsdl\WSRPV2ServiceImpl.java 17:8
    [jwsc] [ERROR] - javax.jws.WebService.endpointInterface oasis.names.tc.wsrp.v2.wsdl.WSRPV2MarkupPortType is invalid.
    Looking at the interface class and line I find both WebMethod and WebResult annotations for the methods above, e.g.:
    *@WebMethod(action = "urn:oasis:names:tc:wsrp:v2:releaseSessions")*
    *@WebResult(name = "extensions", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types")*
    @RequestWrapper(localName = "releaseSessions", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", className = "oasis.names.tc.wsrp.v2.types.ReleaseSessions")
    @ResponseWrapper(localName = "releaseSessionsResponse", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types", className = "oasis.names.tc.wsrp.v2.types.ReturnAny")
    public List<Extension> releaseSessions(
    @WebParam(name = "registrationContext", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types")
    RegistrationContext registrationContext,
    @WebParam(name = "sessionIDs", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types")
    List<String> sessionIDs,
    @WebParam(name = "userContext", targetNamespace = "urn:oasis:names:tc:wsrp:v2:types")
    UserContext userContext)
    throws AccessDenied, InvalidRegistration, MissingParameters, ModifyRegistrationRequired, OperationFailed, OperationNotSupported, ResourceSuspended
    I found the following post of somebody having a similar problem: [http://forums.bea.com/thread.jspa?threadID=600014665]. Unfortunately for me both interface and implementation method declarations look exactly the same except the @Web... annotations not present in the implementation class.
    Can you think about anything I'm doing wrong?
    Thanks in advance for any help.
    /Slawek

    I figured that out.
    It turns out that the order of exceptions in the interface class and in the generated implementation class are not the same. Even though this is fine from the Java perspective, jwsc gets confused by this. Putting the exceptions in the method signatures of the implementation class in the same order as in the interface fixes this issue.
    Now, I hit another problem:
    jwsc error: Response wrapper bean names must be unique and must not clash with other generated classes. Class: oasis.names.tc.wsrp.v2.wsdl.WSRPV2MarkupPortType method initCookie(oasis.names.tc.wsrp.v2.types.RegistrationContext,oasis.names.tc.wsrp.v2.types.UserContext)
    Let's see how long will it take to find a fix for this one ...
    /Slawek

  • Issues with multiple things since Mavericks update

    I installed the Mavericks update and since, I have been having multiple problems with different things on my MacBook Pro 13"
    1. Printer issues: I have an HP officejet 6500 wireless printer (Officejet 6500 E709n Series), and now it's having major issues with printing, yet was working perfect prior to update. It will either cut out pages when printing PDF documents, or printing so slow that it has to take a break in between printing each document (an issue that all never occurred until update), to print documents back to back, it will stop after one document as though I have no other documents in queue to print, and pauses for an extremely long time (nearly a full minute, no exaggeration here, literally almost a full 60 seconds), something it's never done before this update. My Apps update even did an update to the HP software that is inside the Mac already to use printing (in other words, the mac doesn't need to have the HP software manually installed for it to work, it automatically sees the printer because it is connected to my wireless network just as my Macbook Pro which is also connected wirelessly to my network).
    2. Internet issues: am now unable to click on certain links in safari that I was able to use prior to the update, yet they will open fine inside of firefox with no issues, yet I cannot always switch between two different browsers to perform task online (literally have to start all over inside firefox while in the middle of something in safari). Also lots of websites no longer work correctly and I have to constantly clear history and cookies to attempt to use certain sites, at times it will help, other times it wont work period, yet the same exact site will work perfect in firefox (which I do not use, only on my system for use on certain sites for school because in safari prior to the update, I would have issues with only the class site and some links not working at all, no spinning wheel, no errors, just nothing, no response of any kind, basically worse than what it was before the update). Another issue, hit Ctrl+a to select inside Safari and it highlights, but then when you click out of the highlight, it comes back on it's own several times without you hitting anything, just click inside the screen on a blank space (no links, etc) with touchpad.
    3. System issues:  My system is way slower than what it was prior to the update, click on things and it wont respond at all, then minutes later will eventually respond or pops up the spinning color wheel, which it either never responds or takes an extremely long time to respond. And no matter how much I restart, it doesn't help anything. Even just to sit doing nothing, no clicking or usage on the system, and the color wheel pops up.
    4. Mail issues: Mail is now popping up completely blank messages that I have sent out, the person receives it with no issues, yet I cannot look at the message I sent neither in the inbox or the sent items when I need to look at them again, an issue not present prior to update. Also I an now having issues when receiving mail, sometimes it will check for mail and sometimes I have to manually click to make it check the server for mail, an issue not present prior to update as well.
    As of now, since I have had the chance to used the system since the update, these are the issues I have had, yet haven't had the chance to check other things, so there may be other issues that are occurring that I'm not aware of at the moment. I knew it would be a mistake to do this "free" update and did so anyway and now having one issue after the next with each application I open to use.
    Mac general info:
    Mac is one year old, purchased brand new, no shareware programs of any kind installed.
    Use for school and basic web surfing use.
    Do not install any programs onto system that I'm unsure are safe (basically programs for/from school/school websites only, or from the Mac Apps store only), not even programs like Skype, nor any windows based programs of any kind.
    Lots of free memory avail because I save everything onto external hard drives (purchased brand new as well, only 4months old) in case system crash occurs, only things on the system is Itunes music or pics from photo stream that sync to the system when Iphone connected.
    Mac system info:
    - Processor  2.5 GHz Intel Core i5
    - Memory  4 GB 1600 MHz DDR3
    - Graphics  Intel HD Graphics 4000 1024 MB
    - Software  OS X 10.9
    - Number of Processors:          1
    - Total Number of Cores:          2
    - L2 Cache (per Core):          256 KB
    - L3 Cache:          3 MB

    For those needing help fixing their system and putting it back to Lion or Mountain Lion, this is what I have done to eliminate all my issues in about an hour (depending on your internet connection).
    Amazing thing, I just restored my computer back to Mountain Lion, and she's working perfect again, as I knew she would. E-mail popping into mailbox instantly as it should and did before the update, printer working fast as it was before update, no more freezing or glitches of any kind thankfully and finally. Here is the link that is through the Apple site to direct you on how to put your system back and get rid of Maverick's, that is assuming that is what you would like to do and also includes link for those wanting to try fixing the issue if that is your preference (most of this info is for those with mountain lion and some with the previousverisoin of OS X lion).
    If you want to keep Maverick's here is a good post on the apple discussion board to help you out:
    https://discussions.apple.com/docs/DOC-6161
    If you just want to totally get rid of it and put back what you had before, this is the short version of how to do so:
    https://discussions.apple.com/docs/DOC-3353
    NOTE: This particular link has a lot of info on what to do for different situations, it is a bit lengthy, yet still very helpful.
    OS X Mountain Lion: Reinstall OS X (direct from Apple support site, not someone else):
    http://support.apple.com/kb/PH10763?viewlocale=en_US
    OS X: About OS X Recovery (also from apple support directly and includes some instructions just the same as previous links above):
    http://support.apple.com/kb/HT4718
    Just in case you aren't sure what it will all look like as you are doing things, this is a link to show you a few pics of what you will see  as you as you are going through the process, it can be helpful for those who aren't sure what they are doing or how to do things at all:
    http://www.apple.com/osx/recovery/
    This is a way to download the Mountain Lion disk info from the server
    http://support.apple.com/kb/DL1433
    I hope this helps someone, it was amazing for me and my system is working perfect again like it was, battery life is way better went from like 3 hours to like 5 (not on full charge by the way, after it sat for a while doing the online update which took a while so that's saying something alone, huge improvement). I plan to wait a while before attempting to reinstall Maverick's, long enough for them to fix the bugs.

  • User defined data type generated class

    Hi
    When defining a new data type in the local dictionary, one has to option of generating a representation class.
    I have done this and indeed received the class in my app.
    However, I fail to understand how I can use this class to retrieve values set in the data type.
    Thank you for your assistance
    Regadrs
    yuval

    Hello Y PEERY
    I am not clear which context you are talking about .
    Are you taking about simple type inside local dictonary ?
    or
    A project with data dictonary type ?
    (for webdynpro only)
    In both the case no need to deal with internal generated class, this is somethig which is requrired to framework itself , end developer not at all using /modifiying it.
    or
    Might you are dealing with EJB so in this case representation class is generated once we provide the basic(name , package etc) to it , further you can modify it according to your use.
    Please clarify
    BR
    Satish Kumar

  • Calling Stored Procedure w/JPublisher generated classes

    Hi,
    We are trying to pass Oracle nested tables as input/output parameters to several of our stored procedures to support bulk binding operations in the database from our applications. We have some database defined types and stored procedures that use these as input/output parameters which have been tested and working at the database level. I managed to get JPublisher to create these classes and compile fine, but I am not sure exactly how to register these classes as parameters with the stored procedure Java call. Any assistance is appreciated.
    Here is a sample of the db types/procedures:
    TYPE USER_APP_TYPE IS OBJECT
        User_ID             VARCHAR2(50), -- input fields
        App_ID              VARCHAR2(50),
        App_Type            VARCHAR2(50),
        App_Obj_ID          VARCHAR2(50),
        Status              VARCHAR2(30),   -- output fields
        Desc_String         VARCHAR2(255),
        Comments            VARCHAR2(255)
    TYPE USER_APP_LIST IS TABLE OF USER_APP_TYPE;
    CREATE OR REPLACE
    PACKAGE BODY PKG_MOD_BULK
    AS
        PROCEDURE LOOKUPAPPBYUSER_BULK(
            p_InOutRS   IN OUT  USER_APP_LIST)
        IS
            BEGIN
            ... do work - fill in output fields ...
            END LOOKUPAPPBYUSER_BULK;
    END PKG_MOD_BULK;So using JPublisher 3 classes were generated with constructors and getter/setter methods:
    UserAppType.java
    UserAppTypeRef.java
    UserAppList.java
    My consumer POC code looks like this:
    public class BulkBindingDemo
        @SuppressWarnings("CallToThreadDumpStack")
        public static void main(String[] args) 
            Connection conn = null;
            try
                String UserName = "user";
                String Password = "pass";
                // Load JDBC driver
                Class.forName("oracle.jdbc.OracleDriver");
                conn = DriverManager.getConnection("jdbc:oracle:thin:@mydatabse.com:1521:mysid", UserName, Password);           
                // Create instances of custom database UDT classes.
                UserAppList myAppList = new UserAppLicList();
                UserAppType[] myAppArr = new UserAppType[2];
                // Populate UDTs          
                myAppArr[0] = new UserAppType("bob" ,"acct","fiscal","1FG452ABC",null,null,null,null,null,null,null);
                myAppArr[1] = new UserAppType("joe","hr","benefits","89JTYG671",null,null,null,null,null,null,null);
                myAppList.setArray(myAppArr);                                               
                // Not sure how to set parameter as input/output.
                CallableStatement cs = conn.prepareCall("BEGIN MY_SCHEMA.PKG_MOD_BULK.LOOKUPAPPBYUSER_BULK(?); END;");
                cs.setObject("p_InOutRs", myAppLicList);
                cs.execute();
                ResultSet rs = cs.getResultSet();
                // Get results - null fields from above should be populated
                if (rs.first())
                    myAppList = (UserAppList)rs.getObject("p_InOutRs");
                    myAppArr = myAppList.getArray();
                    System.out.println("status:   " + myAppArr[0].getStatus());
                    System.out.println("desc str: " + myAppArr[0].getDescString());
                    System.out.println("comments: " + myAppArr[0].getComments());
                    // additional fields here..
                //MyObject[] myObjectAry = (MyObject[])p_myObjectArray.getArray();
                //cs.registerOutParameter(1,Types.CHAR);                      
            catch (Exception e)
                e.printStackTrace();
            finally
                if (conn != null)
                try { conn.close(); }
                catch (Exception e) {}
    }So this code will compile and run up to the stored procedure call itself, but I'm not sure how to set the parameters for in/out with these generated classes. Any ideas?

    Anyone? Still haven't figured this one out...

Maybe you are looking for

  • How can I acquire data in a PCI DAQ board using a SCXI rack?

    Hello. I have an acquisition system that consists in: · 3 PCI DAQ boards: - PCI-MIO-16-E-1 - PCI-6052-E - PCI-6034-E · 3 cables to connect PCI boards and SCXI modules · 1 SCXI chassis: - SCXI-1001 · SCXI modules + terminal blocks: - 4x SCXI_1121 + SC

  • Arch Linux running on Asus Transformer T100/T100TA... sort of.

    I'm not really asking for help here (can't find an appropriate place to put this post), but more to show off my accomplishment with this tablet. As the thread title says, I've gotten Arch Linux to run on the Asus T100TA which is a quite annoying litt

  • Myriad Pro font with Dreamweaver 8

    Hello ! Im making a web site, all the text are in myriad pro font...It looks realy nice in web browser on mac, but not on widows machines because there is no font like myriad pro, and for default it uses arial font. Is any chance to join html with my

  • I have issues with 2 websites, they are not loading need help

    This is so frustrating, i have 2 new clients whos websites are working when i use the http://caesars.businesscatalyst.com/index http://caesars.businesscatalyst.com/index I have used business catalyst for other clients and i have set them up exactly t

  • Plz help me, how do I delete my chat history

    How do i delete my chat history. Please help. This post was transferred from its previous location to create its own new topic. The subject/title has been amended to distinguish this topic from others. A link to this post appears at its previous loca