Strange problems on using selectmany_checkboxlist with selectitems

Hello all.
I try to get selectmany_checkboxlist (JSF 1.0 Beta) working with selectitems but it seems
that there are several conversions problems. My JSP page is defined as follows:
<h:form id="registrationForm">
  <h:selectmany_checkboxlist id="credentials"  value="#{UserAccount.credentials}" required="true">
     <f:selectitems value="#{UserAccount.credentialItems}"/>
  </h:selectmany_checkboxlist>
  <h:messages styleClass="message-validation" for="credentials"/>                     
  <h:command_button id="submit" action="success" value="Submit">
<h:form id="registrationForm">Minimum one checkbox has to be selected. The messages tag shows
- if nothing is selected : Validation-Error: No Values (This is OK)
- if one is selected : Conversion Error : Value 'null' for Modell 'expression'.
- after submit : Conversion-Error: Value'[Ljava.lang.String;@ed3e63' forModell 'expression'
My Managed-Bean is as follows:
[code]
public class UserAccountBean {
private ArrayList m_CredentialList = null;
public void setCredentialItems(Collection items) {
System.out.println("setCredentialItems " + items);
// Not needed
public Collection getCredentialItems() {
String[] options = {"ERPLOGIN", "CRLUPLOAD", "ADMIN"};
ArrayList items = new ArrayList(options.length);
for (int i = 0; i < options.length; i++) {
items.add(new SelectItem(options, options[i], options[i]));
System.out.println("getCredentialItems " + items);
return items;
public void setCredentials(Object[] credentials) {      
if ((credentials != null) && (credentials.length > 0)) {
int len = credentials.length;
m_CredentialList.clear();
m_CredentialList = new ArrayList(len);
for (int i = 0; i < len; i++) {
m_CredentialList.add(credentials[i]);
System.out.println("setCredentials " + m_CredentialList);
} else {          
System.out.println("setCredentials " + null);
public Object[] getCredentials() {
System.out.println("getCredentials " + m_CredentialList);
try {
return m_CredentialList.toArray();
} catch (NullPointerException e) {return null; }
My faces-config.xml:
<managed-bean>
  <description>Data model containing data of a user account</description>
    <managed-bean-name>UserAccount</managed-bean-name>
    <managed-bean-class>model.UserAccountBean</managed-bean-class>
    <managed-bean-scope>session</managed-bean-scope>
</managed-bean>What is wrong about this? Any idees?
Heinz

I believe the problem is a bug in the beta RI that chokes on "Object[]" as the type of the selectmany's value, and that "String[]" will work. I also believe this has been fixed since the beta.
-- Adam Winer

Similar Messages

  • NIO: Strange problem when using ByteBuffer with non-blocking SocketChannel

    Hi,
    I have a server that uses multiplexed, non-blocking I/O with java.nio. When a client connects, the server waits for the message: <system cmd="knock"/>, returns a message and disconnects the client. The clients are shortly serviced in less than a second.
    But the server newer receive anything from about 20% of the clients - even though it is sent. Or with other words: it is received and the data is contained in the ByteBuffer - SocketChannel.read(ByteBuffer) - but a call to ByteBuffer.remaing() returns 0 !!
    ByteBuffer receiveBuf = ByteBuffer.allocate(65536);
    receiveBuf.clear(); // the code is elsewhere used for longer living clients
    int readBytes = channel.read(receiveBuf);
    receiveBuf.flip();
    StringBuffer sb = new StringBuffer();
    System.out.println(" * Remaining: "+receiveBuf.remaining()); // writes: ' * Remaining: 0'
    System.out.println(" * Received: "+new String(receiveBuf.array())); // writes: ' * Received: <system cmd="knock"/>'
    while(receiveBuf.remaining() >= 2) {
      byte b = receiveBuf.get();
      sb.append((char)b);
    System.out.println(" * sb content: "+sb.toString()); // writes: ' * sb content: 'The ByteBuffer clearly receives the correct data, but the ByteBuffer.remaining() returns 0 and therefore the StringBuffer will never have any content.
    The problem seems to occur randomly and for about 20% of the clients (simulated from the same computer and therefore has the same bandwidth and so on).
    Anyone knows what is going on, and how to solve the problem !?

    It's always possible in any read that the number of bytes read is less than the number of bytes requested. You need to keep reading until you have got everything you expected, and cope with every possible error condition on each iteration.
    EJP

  • Strange problem about using JSTL

    Dear all,
    I've got a strange proble when using JSTL with tomcat.
    I've got two strings as the following:
         String id_string = (String)session.getAttribute("user_id");
         System.out.println(id_string);
         String valid_user = (String)session.getAttribute("valid_user");
    The "println" call tells me that "id_string" has a valid value.
    But when I use it like this in the same page:
    <a href="springapp/blog.htm?id=<c:out value=${ id_string " /><c:out value="${ valid_user }" />" >test
    I can only get "valid_user"'s value.
    "id_string" is not print out to the page.
    Would anyone please help me out?
    Any help would appreciated and thanks in advance.
    Edited by: haoniukun on Sep 15, 2007 9:57 PM

    haoniukun wrote:
         String id_string = (String)session.getAttribute("user_id");
    <a href="springapp/blog.htm?id=<c:out value=${ id_string " /><c:out value="${ valid_user }" />" >test
    I can only get "valid_user"'s value.
    "id_string" is not print out to the page.Your session attribute is called "user_id" which you're fetching correctly earlier. But in the <c:out> tag, you're trying to read "id_string" which is the name of your local variable and not in any scope. "valid_user" works because you've named your local variable the same as your scope attribute, so the value being printed out is from the scope and not your local variable. As far as I know, JSTL doesn't work with local scriptlet variables, it only access variables in the four scopes: page, request, session and application
    You should use the <c:set> tag to set a variable value. Try not to mix scriptlets and tags, it's frowned upon and will probably cause you problems later.

  • Problem in using 6670 with T-Mobile.. need urgent ...

    hiya there
    ive got a strange problem with my 6670
    the problem is specifically with using T-Mobile uk
    when i put my T-Mobile sim in the phone i can make phone calls and recieve txts but it just only recieve phone calls from the same network i.e T-Mobile not from even landline the message ppl get is "the phone is currently unavailable" it dont even go to the voice mail.
    on the other hand if i put my orange sim the phone work totally normal i can make calls and i can recieve calls from any network or landlines.
    i have tried alot of ppl even car phone warehouse but they said they will charge 100£ which i cant afford
    so if somebody can help me out in this situation
    ill be grateful
    cheers
    chekoo

    Since you said it works fine with an Orange SIM card, it sounds more like it's a network issue than a handset issue. I'd give T-Mobile a call and see what they can do for you - Your SIM may have call barring setup.
    Aubs
    Aubs

  • Strange problem of Pdf downloading  with Web Dynpro

    Hi, experts, I have to setup a project to realize pdf downloading with web dynpro. But unluckily, I have tried all the methods in this froum ,there's really strange problem .Because when I click the link of Download UI link, there's no reaction at all, I really don't know why.Below is the codes I used , can anyone help me ? thank you very much!
    public void wdDoInit()
        //@@begin wdDoInit()
              IWDAttributeInfo attInfo =
                   wdContext
                        .currentContextElement()
                        .node()
                        .getNodeInfo()
                        .getAttribute(
                        "Pdfsource");
              ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
              IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
              binaryType.setFileName("test.pdf");
              binaryType.setMimeType(WDWebResourceType.PDF);
              try {
                   int length =
                        (int) wdContext.currentPdfdownloadElement().getBin_Filesize();
                   byte b[] = new byte[length];
                   b = wdContext.currentPdfdownloadElement().getBin_File();
                   wdContext.currentContextElement().setPdfsource(b);
              } catch (Exception ex) {
    "Pdfsource" is the context value attribute of type binary.And Bin_File is the xstring type parameter from my RFC contains pdf content.
    I used two views and one customer-controller . I put some value in the first view to set search condition.and the second then appears and have the download UI element. Are there any additional codes I should use? pls help!

    Hi Hao,
    Try this out
    Suppose the file name is test.doc in c drive in server
    create a context attribute filedata of binary type
    bind it to data property
    write the following code
    try
       File input = new File("C:
    test.doc");
       int length =(int)input.length();
       //Create a byte array b to hold the file
       byte b[] = new byte[length];
       FileInputStream in = new FileInputStream(input);
       //Reading the file to a byte array b
       in.read(b);            
       in.close();
       //Setting the data from the byte array to the context element.
       wdContext.currentContextElement().setfiledata(b);
    catch(Exception ex)
      wdComponentAPI.getMessageManager().reportSuccess("Error in File 
      IO"+ex.toString());
    // Structure information of the context attribute
    IWDAttributeInfo attinfo = wdContext.getNodeInfo().getAttribute("filedata");
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attinfo.getModifiableSimpleType();
    // Default File name which appears when opened on client machine
    binaryType.setFileName("testing.doc");
    //Explicitly setting the file type
    binaryType.setMimeType(WDWebResourceType.DOC);

  • Navigation problem when using tiles with JSF

    Hi all,
    I m using tiles with JSF. i have included all the libraries and jsp page is rendered properly. but when i use <h:commandLink> in the body part of the JSP , i cannot go to the specified link. when we use tiles, what changes need to be done in faces-config file?? i mean what navigation rule we need to specify ??

    Hello, I have the same problem; JSF+Tiles = No navigation.
    One basic question is should I reference the parent jsp or the included body jsp in the faces-config.xml file.
    For example: The login.jsp is a main tiles page that includes a menu.jsp, header.jsp & a loginBody.jsp.
    Hence the faces-config could have this rule;
    <navigation-rule>
    <from-view-id>/login.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    (I've left the outcome tag out to simplify this post)
    Or, I could refer loginBody.jsp in the navigation rule;
    <navigation-rule>
    <from-view-id>/loginBody.jsp</from-view-id>
    <navigation-case>
    <to-view-id>/catalog.jsp</to-view-id>
    </navigation-case>
    </navigation-rule>
    The loginBody.jsp has a commandbutton which a user clicks which starts the navigation.
    Neither seems to work unfortunately & I'm a stuck.
    Thanks

  • Problem while using XML with Oracle

    I have a problem using XML with oracle applications
    The process I am following
    1. Making a XML string.
    2. Parsing it to get a document
    3. Free the parser using xmlparser.freeparser
    4. Traversing through nodes .
    5. Freeing the document.
    The whole Process is executed in batch mode.
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")
    Can you please help me out to overcome this problem
    It's urgent
    I have
    Oracle version 8.1.7.0.0
    XML version 1.2
    OS Windows NT
    To resolve the problem I have increase shared memory size and java initialization parameters ,which seems OK
    Looking forward for your answer.

    Hello, Reena
    Your process flow seems to be correct in term of getting/freeing memory.
    Following error
    The problem occurs after executing the procedure for 5000 records and I get the error
    ORA-04031: unable to allocate 4176 bytes of shared memory ("shared pool","unknown object","sga
    heap","library cache")may be caused by memory leaks in xdk or memory fragmentation(due to get/free memory cycle)
    To find out if this is an memory leak issue you could try to monitor V$SGASTAT from one session while running your batch process in another session.
    To prevent (or lower its impact) fragmentation issues try to PIN objects, and adjust java_pool_size and shared_pool_reserved_size.
    Anyway, counsult your Oracle DBA.
    Oracle version 8.1.7.0.0I think, you should apply database patch first of all. The latest one (8.1.7.4.x) could be accured from Metalink.

  • Problems tethering using wifi with Twist laptop and iphone

    Hello,
    I have a Twist and works fine, although I have recently moved to an iphone 6.  The phone and laptop combination has problem tethering over wifi, with tethering enabled on the phone, the laptop does not find the wifi signal.  Asking a colleague to see if my phone is broadcasting an SSID, which it was.  The laptop just doesn't want to find my iphone wifi signal.  However, finding any wifi broadcast from a router, it finds it first time!
    Since it was a new phone, I have been speaking with apple a lot and have even replaced the iphone, although problems still persist.
    I am starting to think it is the lenovo twist laptop.  I have checked the drivers and I have the latest ones which are on the lenovo website because the program used to update the software doesn't ask me to install a new driver, but looking at the wifi driver within the device manager it is dated: 13/08/2012. with driver version #: 6.20.55.55.
    I have the 2x2 11a/b/g/n Wireless LAN PCI Express Half Mini Card Adapter and is based on the Broadcom chipset.
    Do any of you have this problem?  Also, where can I obtain the very latest driver for this as I would suspect it is likely to be a driver issue or I would like to rule this out first.
    Many thanks.
    Solved!
    Go to Solution.

    Thanks for the progress report.
    If things remaIn stable, please do come back and mark you post as the solution. It may help other members.
    Thanks.
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество
    Community Resources: Participation Rules • Images in posts • Search (Advanced) • Private Messaging
    PM requests for individual support are not answered. If a post solves your issue, please mark it so.
    X1C3 Helix X220 X301 X200T T61p T60p Y3P • T520 T420 T510 T400 R400 T61 Y2P Y13
    I am not a Lenovo employee.

  • Problems in using Msync with  IPAQ 3760 and Active SYnc 3.5

    Hi,
    Environment :-
    IPAQ 3760
    Windows NT workstation
    Active Sync 3.5
    I am using Active Sync 3.5 which does not need RAS
    configuration on the machine.
    I am unable to run msync.exe. It does not give any errors
    messages.
    The 9i lite documentation talks about RAS settings.
    If anyone has faced similar prob coudl you please let me know
    the solution.
    regards,
    Sonal

    You do not need to make a RAS connection with Pocket PC 2002,
    because now ActiveSync itself makes an IP connection, and
    Oracle9i Lite just needs an IP connection for synchronization no
    matter how you establish it. Hi, I also experience the same problem. Using PocketPC 2002 I have a pasthru connection. Ik kan browse on the Internet with Internet Explorer, so the connections works.
    mSync just seems to do nothing. When I press the Sync button, nothing happens (not even a progress bar).
    Any idea?
    Thanks,
    Bas.

  • Problem in using FilenameFilter with FileDialog

    perhaps, i dont know how to use FilenameFilter with FileDialog because the following approach doesn' work
    FileDialog fd=new FileDialog(myframe,"Select an image");
    fd.setFilenameFilter(new filefilter());                                                                                                                           
                                                                                                             class filefilter implements FilenameFilter{
        public boolean accept(File dir, String name) {
            if(name.endsWith("jpg")||name.endsWith("gif")||name.endsWith("png")){
                          return true; 
                 return false;
    }if anyone have compatible idea then please let me know.
    thanks

    Did you print out the value of "dir" and "name" to make sure they contain what you expect?
    If you need further help then you need to create a "Short, Self Contained, Compilable and Executable, Example Program (SSCCE)", that demonstrates the incorrect behaviour.
    http://homepage1.nifty.com/algafield/sscce.html

  • Strange problem when using custom authentication schema

    Hello,
    I'm building a custom authentication system for the application. Basically, I followed the blog post from Martin: http://www.talkapex.com/2009/03/custom-authentication-status.html
    However, the authentication seems working fine at the beginning when running the page 101 from Application Builder and log in, but when I log out from the application (redirect back to page 101) and try to log in with the same credentials, it gives error message "Invalid Login Credentials ". Also, when the application is accessed from public (open page 101 directly using another computer), the authentication doesn't work at all.
    Furthermore, I checked the table apex_workspace_access_log and found out that it has "AUTH_SUCCESS" even if using the fake credentials and the login failed (I use "apex_util.set_authentication_result (p_code => 3);" when auth function return false).
    I couldn't find the cause of the problem, then I created the same custom authentication in apex.oracle.com. The problem doesn't appear anymore. To make sure they are same, I have double checked the custom authentication in both the development environment and the apex.oracle.com.
    This is very strange to me and I don't know where to looking for the problem. Could you give me some advice of what may cause this problem. Thanks in advance!

    I found the problem myself. The cause is the VPD, the account table has VPD policy applied, which prevented public access.

  • Strange error while using ActionListener with RichCommandLink

    Hi,
    I am using Technology preview 3.
    I have RichTable bound to af:table in my JSF page.
    I am showing database contents inside richTable.
    Inside richTable i have one extra column in which i am showing remove link. So every row of table will have remove link. I have added ActionListener as inner class for the backing bean. and this actionlistener i am adding into RichCommandLink(remove link)
    But when i click on remove link I am getting weired exception. And i am not able to get why this error is coming.
    This problem occures whenever I use contentDelivery parameter with <af:table>
    Here is the stack trace of the error.
    java.lang.InstantiationException: com.backingBean.UpdateSampleTypeB
    ackingBean$MyLinkActionListener
    at java.lang.Class.newInstance0(Class.java:335)
    at java.lang.Class.newInstance(Class.java:303)
    at org.apache.myfaces.trinidad.bean.util.StateUtils$Saver.restoreState(S
    tateUtils.java:286)
    at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreStateHolder(S
    tateUtils.java:202)
    at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreList(StateUti
    ls.java:257)
    at org.apache.myfaces.trinidad.bean.PropertyKey.restoreValue(PropertyKey
    .java:231)
    at org.apache.myfaces.trinidad.bean.util.StateUtils.restoreState(StateUt
    ils.java:148)
    at org.apache.myfaces.trinidad.bean.util.FlaggedPropertyMap.restoreState
    (FlaggedPropertyMap.java:194)
    at org.apache.myfaces.trinidad.bean.FacesBeanImpl.restoreState(FacesBean
    Impl.java:358)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.restoreState(U
    IXComponentBase.java:881)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:861)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponent
    Base.java:1154)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at org.apache.myfaces.trinidad.component.TreeState.restoreState(TreeStat
    e.java:96)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.processRestore
    State(UIXComponentBase.java:855)
    at javax.faces.component.UIComponentBase.processRestoreState(UIComponent
    Base.java:1154)
    at org.apache.myfaces.trinidadinternal.application.StateManagerImpl.rest
    oreView(StateManagerImpl.java:487)
    at com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl
    .java:287)
    at javax.faces.application.ViewHandlerWrapper.restoreView(ViewHandlerWra
    pper.java:193)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.resto
    reView(ViewHandlerImpl.java:258)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._restoreView(Li
    fecycleImpl.java:438)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(L
    ifecycleImpl.java:229)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(Lifecyc
    leImpl.java:155)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterC
    hain.java:65)
    at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilte
    r(SharedLibraryFilter.java:135)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
    istChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter
    (RegistrationFilter.java:69)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
    istChain.doFilter(TrinidadFilterImpl.java:284)
    at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter
    .java:74)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterL
    istChain.doFilter(TrinidadFilterImpl.java:284)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invoke
    DoFilter(TrinidadFilterImpl.java:208)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilt
    erImpl(TrinidadFilterImpl.java:165)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilte
    r(TrinidadFilterImpl.java:138)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFi
    lter.java:92)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterC
    hain.java:15)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:1
    18)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:611)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:362)
    at com.evermind.server.http.HttpRequestHandler.doDispatchRequest(HttpReq
    uestHandler.java:915)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequ
    estHandler.java:821)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:626)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:599)
    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpReque
    stHandler.java:383)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:161)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:142)
    at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(Server
    SocketReadHandler.java:275)
    at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(Server
    SocketAcceptHandler.java:237)
    at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocket
    AcceptHandler.java:29)
    at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(
    ServerSocketAcceptHandler.java:878)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
    utor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
    .java:675)
    Can anybody please provide any help on this?
    Regards,
    Hiren

    Hi Simon,
    I am using addActionListener method of RichCommandLink
    Here is how i am trying to use it.
    public class backingBean {
         private RichTable table;
         public backingBean() {
         RichColumn rc = new RichColumn();
         RichCommandLink cmd = new RichCommandLink();
         MyActionListener listener = new MyActionListener();
         cmd.addActionListener(listener);
         public RichTable getTable() {
         return table;
         class MyActionListener implements ActionListener {
              public void processAction (ActionEvent actionEvent) throws AbortProcessingException {
              // Processing related to edit components of backing bean
    Hiren

  • Problem in Using Log4J with Weblogic 9.2

    I am using Weblogic 9.2 and Log4j.
    By using Admin console I set the Severity Level to WARNING and inside my java code is given below:
    Logger logger = Log4jLoggingHelper.getLog4jServerLogger();
    if (logger.isEnabledFor(Priority.DEBUG)){
    logger.debug("DEBUG - Test Debug message");
    logger.info("DEBUG - Test Info Message");
    logger.warn("DEBUG - Test Warning Message");
    logger.error("DEBUG - Test Error Message");
    logger.fatal("DEBUG - Test Fatal Message");          
    Somehow the logger.isEnabledFor(Priority.DEBUG) returning 'TRUE' and the follwoing message is displayed.
    <Nov 29, 2006 2:44:04 PM EST> <Warning> org.apache.log4j.Category> <000000> <DEBUG - Test Warning Message>
    <Nov 29, 2006 2:44:04 PM EST> <Error> <org.apache.log4j.Category> <000000> <DEBUG - Test Error Message>
    <Nov 29, 2006 2:44:04 PM EST> <Info> <org.apache.log4j.Category> <000000> <DEBUG - Test Fatal Message>
    <b><i>NOTE - The logger.debug() and logger.info() methods are not invoked because of the severity level to 'WARNING' in the console.</i></b>
    <b>I would like to know why the Somehow the logger.isEnabledFor(Priority.DEBUG) is having a value of 'TRUE'.</b>
    I expected only the Somehow the logger.isEnabledFor(Priority.ERROR) will have the value of 'TRUE'.

    Did you get an answer to your question? I have the same problem with WebLogic 10.0.

  • Problem in using createStatement with parameters

    Hi,
    I have a peculiar problem using JDBC-ODBC bridge driver. With this driver I am able to make a connection to the database (Oracle/SQL Server/MS-Access). But when I try to create a statement using the connection, I get an error. The code written by me is below :-
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection conn = DriverManager.getConnection("jdbc:odbc:tsvt","sa","");
    Statement stmt = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_UPDATABLE);
    If I use this constructor fo createStament, I get the following Runtime Exception
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
    java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Optional feature not implemented
         at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031)
         at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188)
         at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(JdbcOdbc.java:2494)
         at sun.jdbc.odbc.JdbcOdbcStatement.execute(JdbcOdbcStatement.java:314)
         at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(JdbcOdbcStatement.java:229)
         at accs2oracl.<init>(accs2oracl.java:39)
         at accs2oracl.main(accs2oracl.java:166)
    If I use just conn.createStatement(), I dont get any error.
    Some one help me out where I am going wrong

    Some - or most? - ODBC driver, especially MS for SQLServer and Access, don't support these advanced JDBC features.
    Like the messages says: they are optional features, and the driver doesn't implement them.
    A good news:
    you don't need them.
    Just go through your ResultSets only forward by next(), and do all inserts, updates and deletes with executeUpdate() and SQL commands.

  • Strange problem when using table of object (plsql as webservice)

    Hello..
    I have created this type of package with user "A" which has privilege to create db types and other things
    CREATE OR REPLACE package INIS_PROD.OZP_SKLEP_INTEGRACIJA AS
    procedure p_vrni_predloge
    ( p_vvl_id             in number
    , p_predloga           out t_predloga);
    end OZP_SKLEP_INTEGRACIJA;
    =============================
    procedure p_vrni_predloge
    ( p_vvl_id             in number
    , p_predloga           out t_predloga) is
        l_tab           t_predloga := t_predloga();
        l_obj           o_predloga := o_predloga(null,null,null,null);
    begin
        for pod in
            select  to_number(zia.isk_id) id
            ,       to_number(voz.vvl_id) VRSTA_VOZILA_ID
            ,       to_char(vka_tip.vrednost) opis
            ,       to_char(vka_tip.sifra) sifra
            from    ......
        loop
            print(pod.id);
            l_tab.extend(1);
            l_tab(l_tab.LAST) := o_predloga(pod.id, pod.vrsta_vozila_id, pod.opis, pod.sifra);
        end loop;
        p_predloga := l_tab;
    end;When I expose this package as webservice with user/password from user "A" all works fine..
    When I change the username and password in jdev connection and running (invoke) the webservice I get this exception
    arget URL -- http://pujsapepa:8991/WsIntegracija-WsIntegracija-context-root/wsIntegracijaSoapHttpPort
    11/01/27 12:53:40 Oracle Containers for J2EE 10g (10.1.3.4.0)  initialized
    11/01/27 12:53:40 Web service wsIntegracija has been started on the embedded server
    27.1.2011 12:53:43 oracle.wireless.its.ra.TelnetResourceAdapter run
    INFO: Industrial Telnet Server version: Version 10.1.3.0.0 started-up successfully.
    11/01/27 12:54:03 java.sql.SQLException: Internal Error
    11/01/27 12:54:03      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    11/01/27 12:54:03      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
    11/01/27 12:54:03      at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:240)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeCOLLECTION.initCollElemTypeName(OracleTypeCOLLECTION.java:985)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeCOLLECTION.getAttributeType(OracleTypeCOLLECTION.java:1015)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleNamedType.getFullName(OracleNamedType.java:96)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeADT.createStructDescriptor(OracleTypeADT.java:2108)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeADT.unpickle81(OracleTypeADT.java:1414)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeUPT.unpickle81UPT(OracleTypeUPT.java:422)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeUPT.unpickle81rec(OracleTypeUPT.java:383)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody_elems(OracleTypeCOLLECTION.java:915)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81_imgBody(OracleTypeCOLLECTION.java:882)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeCOLLECTION.unpickle81(OracleTypeCOLLECTION.java:702)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeCOLLECTION._unlinearize(OracleTypeCOLLECTION.java:227)
    11/01/27 12:54:03      at oracle.jdbc.oracore.OracleTypeCOLLECTION.unlinearize(OracleTypeCOLLECTION.java:199)
    11/01/27 12:54:03      at oracle.sql.ArrayDescriptor.toOracleArray(ArrayDescriptor.java:563)
    11/01/27 12:54:03      at oracle.sql.ARRAY.getOracleArray(ARRAY.java:526)
    11/01/27 12:54:03      at oracle.jpub.runtime.MutableArray.getLazyOracleArray(MutableArray.java:1239)
    11/01/27 12:54:03      at oracle.jpub.runtime.MutableArray.length(MutableArray.java:1167)
    11/01/27 12:54:03      at in2.TPredloga.getArray(TPredloga.java:81)
    11/01/27 12:54:03      at in2.WsIntegracijaUser.pVrniPredloge(WsIntegracijaUser.java:25)
    11/01/27 12:54:03      at in2.runtime.WsIntegracijaSoapHttp_Tie.invoke_pVrniPredloge(WsIntegracijaSoapHttp_Tie.java:111)
    11/01/27 12:54:03      at in2.runtime.WsIntegracijaSoapHttp_Tie.processingHook(WsIntegracijaSoapHttp_Tie.java:234)
    11/01/27 12:54:03      at oracle.j2ee.ws.server.StreamingHandler.handle(StreamingHandler.java:297)
    11/01/27 12:54:03      at oracle.j2ee.ws.server.JAXRPCProcessor.doEndpointProcessing(JAXRPCProcessor.java:413)
    11/01/27 12:54:03      at oracle.j2ee.ws.server.WebServiceProcessor.invokeEndpointImplementation(WebServiceProcessor.java:349)
    11/01/27 12:54:03      at oracle.j2ee.ws.server.JAXRPCProcessor.doRequestProcessing(JAXRPCProcessor.java:277)
    11/01/27 12:54:03      at oracle.j2ee.ws.server.WebServiceProcessor.processRequest(WebServiceProcessor.java:114)
    11/01/27 12:54:03      at oracle.j2ee.ws.server.JAXRPCProcessor.doService(JAXRPCProcessor.java:134)
    11/01/27 12:54:03      at oracle.j2ee.ws.server.WebServiceServlet.doPost(WebServiceServlet.java:194)
    11/01/27 12:54:03      at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
    11/01/27 12:54:03      at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    11/01/27 12:54:03      at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
    11/01/27 12:54:03      at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    11/01/27 12:54:03      at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    11/01/27 12:54:03      at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    11/01/27 12:54:03      at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
    11/01/27 12:54:03      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
    11/01/27 12:54:03      at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
    11/01/27 12:54:03      at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    11/01/27 12:54:03      at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:234)
    11/01/27 12:54:03      at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:29)
    11/01/27 12:54:03      at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:879)
    11/01/27 12:54:03      at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
    11/01/27 12:54:03      at java.lang.Thread.run(Thread.java:595)
    27.1.2011 12:54:03 oracle.webservices.serviceI have made all grants and public synonym from A to user B.. but the problem still exists..
    What can be a problem?

    Huh..
    after two days...
    The problem is in wrapper Class for T_PREDLOGA...
    There was not specified the schema where the "T_PREDLOGA" was created.. The strange thing is that i have a public synonym for T_PREDLOGA for all users.. (not just for INIS_PROD).
    Here is the solution (adding schema name)
    __sJT_st.registerOutParameter(2, 2003, "INIS_PROD.T_PREDLOGA");
    instead of
    __sJT_st.registerOutParameter(2, 2003, "T_PREDLOGA");
      public void _pVrniPredloge (
        java.math.BigDecimal P_VVL_ID,
        TPredloga P_PREDLOGA[], Connection __onnScopeMethod)
      throws java.sql.SQLException
        java.sql.Connection __sJT_cc = null;
        oracle.jdbc.OracleCallableStatement __sJT_st=null;
        __sJT_cc = __onnScopeMethod;
        __sJT_st = (oracle.jdbc.OracleCallableStatement) __sJT_cc.prepareCall("BEGIN \"OZP_SKLEP_INTEGRACIJA\".P_VRNI_PREDLOGE(:1 ,:2 ); END;");
        if (P_VVL_ID==null) __sJT_st.setNull(1, 2); else __sJT_st.setBigDecimal(1, P_VVL_ID);
        __sJT_st.registerOutParameter(2, 2003, "INIS_PROD.T_PREDLOGA");
        __sJT_st.executeUpdate();
        P_PREDLOGA[0] = (TPredloga) __sJT_st.getORAData(2, TPredloga.getORADataFactory());
        try { __sJT_st.close(); } catch (Exception e) {}
      }Edited by: Peterv6i on Jan 28, 2011 1:59 PM

Maybe you are looking for

  • Does mxctrllib provide a call which returns a reference to all the logical names in MAX?

    I'm looking for a call that returns all the MAX logical names on a system. I would populate a drop-down box with those names to allow the user to select a name at program run-time. Currently I hard code a particular logical name as a string and init

  • Ex cel to Internal Table

    hello friends i have written this piece of code, it dose not have any error but when ececuted it gives a dump. tables : zash. DATA : BEGIN OF it_table OCCURS 0,          vbeln LIKE zash-vbeln,          posnr LIKE zash-posnr,          uepos LIKE zash-

  • IOS 7 icon support still not available in air 3.9

    I am using Flash Builder 4.7 with Air 3.9 (with IOS 7 icon support) running on Win 8. I have been battling to get a simple app on the Apple App Store because although the latest AIR 3.9 (with IOS 7 icon support) does not give an error when exporting

  • Automatic answer? or just too lazy to read question?

    I came across this post in ABAP Dictionary: How to make custom append search help tab default for all users? The poster was asking a question about search help defaults, but did mention the word "Append" in the title. The first response posted to the

  • Why the empty form is showing?

    Friends, OAS - 10gR2 in RHEL AS 4.8 Client PC - winxp sp2 I have set the userid in the formsweb.cfg like below for my configuration part. userid=username/password@db why this "userid=username/password@db" in formsweb.cfg is not working in oracle appl