EDIT_CUSTOM_ATTR excpetion

Hi,
I'm trying to update a date value for a custom attribute with this PL/SQL :
siteid := '1351';
wwsbr_api.set_attribute(
p_site_id => 35,
p_thing_id => 448463,
p_attribute_id => siteid,
p_attribute_site_id => 0 ,
p_attribute_value => '30-jun-2007 12:00 AM',
p_language => 'frc'
I have the exception EDIT_CUSTOM_ATTR
Can u please help
Thks in advance

I want to update a custom attributes for an item, i dont find the item id in wwsbr_item_attributes view even if it exists in wwsbr_all_items, wht kind of routine that is responsible for puting the item id in the wwsbr_item_attributes view
Can u help
thks in advance

Similar Messages

  • How to get values from the page excpet pagecontext.getparameter

    i have a requirement wherein i am passing paramteres from the "submit" button.but the problem being that,i have multiple rows in my page.what is happening is that my "submit" button is passing the values of the previous row,instead of the current row.this is i think because "commit" gets called later and params are passed before it.
    how do i solve this problem
    or if i can get to get paramteres in a advance table layout,i l be able to achieve my requirement.beacuse in advance table layout,i am not able to do pagecontext.getparameter("---" of the item

    thanks guys,
    i did try working with row refrence but it returns a null only.
    my requirement was that i had update functionality as well as "add new rows" on the same advtbl bean.an whenevr i click on "add new row" and submit,i was always gettin the parameters for the previous row.
    now,i have got a workaround to that,by having a radio button to select rows to update and whenever i click on "add new rows" ,i disable the radio button,and get the handle based on the value from radio group.
    but still row refrence dint work for me.i will appreciate if sum1 can send me the code

  • How to catch excpetions of function module?

    Hallo everybody,
    how can i catch the exception from function module "exception" and deliver it to call function parameter table --exception table.
    For example,a function module 'RPY_TABLE_INSERT' is called by Call Function (parameter_table)in order to create a new table.When the table exists already, a exception "Already_exist" activated.But it can not be caught,since it is raised by "message raise". Therefore in the exception-table of caller no error is caught.
    How can I deal with it?
    Thanks in advance!
    Message was edited by: Liying Wang

    CALL FUNCTION 'RPY_TABLE_INSERT'
      EXPORTING
      LANGUAGE                = SY-LANGU
        TABLE_NAME              =
      WITH_DOCU               = ' '
      DOCUTYPE                = 'T'
      TRANSPORT_NUMBER        = ' '
      DEVELOPMENT_CLASS       = '$TMP'
        TABL_INF                =
      TABL_TECHNICS           = ' '
      TABLES
        TABL_FIELDS             =
      DOCU_TABLE_USER         =
      DOCU_TABLE_TECH         =
    EXCEPTIONS
      CANCELLED               = 1
      ALREADY_EXIST           = 2
      PERMISSION_ERROR        = 3
      NAME_NOT_ALLOWED        = 4
      NAME_CONFLICT           = 5
      DB_ACCESS_ERROR         = 6
      OTHERS                  = 7
    IF SY-SUBRC <> 0.
      as per the error sy-subrc will be set, you can see in the exceptions ( 1 for cancel, 2 for already exit)
    so using this subrc you can determine the error
    ENDIF.

  • Is it possible to restrict control flow based on the excpetions?

    Hello,
    I am doing a program, in which if any exception is occured, then, program shouldn't continue. It should stop execution and comeout of program and display Exception message.
    Example:
    In the code below, i have one divide method and add method. If divide method throws excption, add method should not be executed.
    How to do this?
    public class Testcatch
    private int a=0;
    private int b=3;
    private int c=0;
    private int d=0;
         public int divide(int x)
                                  try
                                            a=x;
                                            System.out.println("a="+a);
                                            d=6/a;
                                        }catch(Exception e)
                                            System.out.println("Error= "+e);
                                  return d;
    public int add()
              c=a+b;
              System.out.println("b="+b);
              return c;
    public static void main(String args[])
         Testcatch tc=new Testcatch();
         System.out.println("Divided value c= "+tc.divide(0));
         System.out.println("Added Value d= "+tc.add());
    }Please help,Thanks for taking time,
    Regards,
    Ashvini

    Simple, make the divide() method not handle the exception by itself.
    public class Testcatch
        private int a=0;
        private int b=3;
        private int c=0;
        private int d=0;
        public int divide(int x) throws Exception
            a=x;
            System.out.println("a="+a);
            d=6/a;
            return d;
        public int add()
            c=a+b;
            System.out.println("b="+b);
            return c;
        public static void main(String args[])
            try {
                Testcatch tc=new Testcatch();
                System.out.println("Divided value c= "+tc.divide(0));
                System.out.println("Added Value d= "+tc.add());
            catch (Exception e) {
                e.printStackTrace();
    }

  • Jint Throw(JNIEnv *env, jthrowable obj) does not trigger Excpetion?

    Greetings.
    I have the following code. When it triggers, the exception does not fire in my java code. Any ideas?
    Thanks,
    Steve
    <===Begin excerpt===>
    /* Displays the last System Error Message in a pop-up, as well as setting an
    * exception to throw.
    * @param env The current environment
    * @param devID The device ID of the Amber card with the error
    * @param msg The Error Message
    * @param error The current error if possible, the name of the Amber call otherwise.
    void doErrorNotification(JNIEnv env, const char portName, char msg, char error){
    displayLastSystemErrorMessage();
    printf("JNI-ERROR: %s\n", msg);
    //Throw SerialException
    jclass controllerException = env->FindClass("com/blueline/serialcomm/SerialException");
    if (controllerException == NULL) {/*Unable to find the Exception class -- give up as we are about to die*/
    printf("FATAL ERROR: Unable to load class: com/blueline/serialcomm/SerialException");
    return;
    //else
    char zbuf[BC_MSGLEN];
    sprintf(zbuf, "%s error: devid %s error %d",
    error, portName, GetLastError());
    if (com_blueline_serialcomm_WindowsComm_DEBUG)
    printf("%s\n", zbuf);
    jmethodID cid = env->GetMethodID(controllerException, "<init>", "([B[B)V");
    if (cid == NULL) {
    printf("Programer Error --> Constructor for SerialException not found.\n");
    jclass loadError = env->FindClass("java/lang/Error");
    if (loadError == NULL) {/*Unable to find the Error class -- give up as we are about to die*/
    printf("FATAL ERROR: Unable to load class: java/lang/Error");
    return;
    //else
    env->ThrowNew(loadError, "Constructor for SerialException not found.");
    return;
    //else
    if (com_blueline_serialcomm_WindowsComm_DEBUG) printf ("JNI-ERROR: Throwing java exception\n");
    jthrowable exception = static_cast<jthrowable>(env->NewObject(controllerException, cid, zbuf, portName));
    if (0 > env->Throw(exception)){
    printf("WindowsComm.ERROR: Unable to throw ErrorException\n");

    jmethodID cid =
    d = env->GetMethodID(controllerException, "<init>",
    "([B[B)V");Here you are calling a ctor that takes two byte arrays
    as parameter.
    There is a constructor that takes two byte arrays as parameters. I wouldn't have to pass it two jbyte array, would I?
    jthrowable exception =
    n =
    static_cast<jthrowable>(env->NewObject(controllerExcept
    on, cid, zbuf, portName));Is this perhaps failing? You are passing in character
    arrays (zbuf, portName) as parameters to a ctor that
    expects byte arrays (see above). Is this a problem?
    You're not checking to see if the NewObject() call is
    failing.How would I check to see if NewObject was failing, by checking to see if exception was NULL?
    >
    if (0 > env->Throw(exception)){
    printf("WindowsComm.ERROR: Unable to throw
    o throw ErrorException\n");I assume that this message is being printed to the
    console ....
    That is correct. At this point, no where else to dump a message {{{:-(
    -Steve

  • Io Excpetion Connection Reset In OWB Mapping

    Hi,
    While executing a mapping in OWB i am getting an error Io Exception Connection Reset.
    This happens when execution of mapping involves more than 50 lakhs of records.
    Please any one can help.

    You say: "But the connection is taking more than expected time".
    So I am think of a network issue. Check the DNS and/or entries in the HOSTS file if they are according to the prereqs.
    Eric

  • Excpetion after link is clicked for file download on same page

    I have implemented a module in JSF where the page displays a datatable and one the columns is a command link which when clicked opens up a dialog box to save a CLOB from the DB as a csv on the local desktop.
    All this is working fine.
    The problem is that once the user clicks on one link in the datatable and then the user again clicks on any other link on the page or tries to use the Logout link the page is directed to the welcome page.
    The problem is happening because of the <h:commandLink> causes the page to submit and thereafter any click on the page causes the page to go to the homepage.
    // Constants ----------------------------------------------------------------------------------
      private static final int DEFAULT_BUFFER_SIZE = 102400; // 100 KB.
      // Actions ------------------------------------------------------------------------------------
      public void downloadcsv()
        throws IOException, ServiceLocatorException, ReportServiceException
        ReportSummary selectedReportId =
          (ReportSummary) summaryBindingReport.getRowData();
        ReportContent reportObj =
          getReportService().getReportContent(selectedReportId.getReportId());
        // Prepare.
        FacesContext facesContext = FacesContext.getCurrentInstance();
        ExternalContext externalContext = facesContext.getExternalContext();
        HttpServletResponse response =
          (HttpServletResponse) externalContext.getResponse();
        BufferedInputStream input = null;
        BufferedOutputStream output = null;
        try
          // Init servlet response.
          response.reset();
          response.setContentType("plain/text");
          response.setHeader("Content-disposition",
                             "inline; filename=\"" + selectedReportId.getReportName() +
          output =
              new BufferedOutputStream(response.getOutputStream(), DEFAULT_BUFFER_SIZE);
          char[] strReportContent = reportObj.getReportText();
          Utility.logMessage(Constants.SEVERITY_INFO,
                             "**** Report Content ****" +
                             String.valueOf(strReportContent), this);
          // Write the Report Content as Comma Separated values
          output.write(String.valueOf(strReportContent).getBytes(), 0,
                       strReportContent.length);
          // Finalize task.
          output.flush();
        finally
          // Close streams.
          close(output);
          close(input);
    //    ReportCriteria reportSearchCriteria = new ReportCriteria();
    //    reportSearchCriteria.setSubSystemCode("AC");
    //    setManagedBeanValue("reportList",
    //                          getReportService().searchByCriteria(reportSearchCriteria));
        // Inform JSF that it doesn't need to handle response.
        // This is very important, otherwise you will get the following exception in the logs:
        // java.lang.IllegalStateException: Cannot forward after response has been committed.
            facesContext.getRenderResponse();
        facesContext.responseComplete();
    //    return "reportSummary";
      private static void close(Closeable resource)
        if (resource != null)
          try
            resource.close();
          catch (IOException e)
            e.printStackTrace();
      public void setSummaryBindingReport(HtmlDataTable summaryBinding)
        this.summaryBindingReport = summaryBinding;
      public HtmlDataTable getSummaryBindingReport()
        return summaryBindingReport;
      }

    There are two ways to do this.
    1. you create a modern day css-file with the classes for the
    links you want colored, which is preferred in XHTML-environments.
    a. go to Edit, Administer websites, choose your website
    b. Users and roles is selected, pick you role (administrator
    I presume) and choose Edit Role-settings
    c. pick Styles and Fonts
    d. form the drop-down list behind Style-support, choose
    Document level css
    e. pick: Show only CSS styles included in this CSS file
    (pick the file you created)
    f. use the classes in editing mode for your secific links
    g. done
    2. you change the role-settings and do it the old-fashioned
    way make it possible to use font-tags and use HTML for the source
    code
    a. go to Edit, Administer websites, choose your website
    b. Users and roles is selected, pick you role (administrator
    I presume) and choose Edit Role-settings
    c. pick Styles and Fonts
    d. form the drop-down list behind Style-support, choose HTML
    tags (<font etc....
    e. done
    Have fun editing
    Hayo

  • Convert photo to black and white excpet for reds

    I have a photo and I would like to convert it to black and white except for the reds in the image. Is there a way of selecting a color range to be preserved and to convert the rest to black and white?
    thanks

    The problem is that the reds arnt just in one area.
    Is there no way to select a color range?
    I guess I could use the magic wand tool and set it off continuous while varying the tolerance, but this seems a but crude.

  • What does this excpetion mean and how do I fix it?

    Exception in thread "main" java.lang.NoClassDefFoundError: script
    I copied and pasted it from the java tutorials into my own class...i hope that's not illegal but maybe that's why it's apparently having classpath problems?
    Edited by: cubswar on Mar 29, 2008 9:46 PM

    Yep, it's probably a classpath thing.
    How are you compiling and running your code?
    At the command line (recommended) or through an IDE?... and if so then which one?
    Keith/

  • Socket excpetion

    Hi Folks,
    I am getting this exception repeatedly in the logs. I have no idea why it is happening. Can any one help me out of this please?
    Input/output error: java.net.SocketException: Broken pipe
    javax.servlet.jsp.JspException: Input/output error: java.net.SocketException: Broken pipe
    at org.apache.struts.util.ResponseUtils.write(ResponseUtils.java:160)
    at com.bea.wlw.netui.tags.html.Html.doEndTag(Html.java:277)

    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ page import="com.bc.util.BcUtil"%>
    <%@ page import="com.bea.netuix.servlets.controls.portlet.PortletPresentationContext"%>
    <%@ page import="com.bea.portlet.prefs.PortletPreferences"%>
    <%@ page import="portlets.bookmarks.BookmarkBean"%>
    <%@ page import="portlets.bookmarks.BookmarksController"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <%@ taglib uri="netui" prefix="netui0"%>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
    <%@ include file="/jsp/util/imagePathInclude.jspf"%>
    <netui-data:getData resultId="currentMode" value="{pageFlow.currentMode}"/>
    <netui:html>
    <table cellpadding="1" cellspacing="0" width="100%">
    <%
    String definitionLabel = PortletPresentationContext.getPortletPresentationContext(request).getDefinitionLabel();
    PortletPresentationContext portletCtx = PortletPresentationContext.getPortletPresentationContext( request );
    PortletPreferences portletPrefs = portletCtx.getPreferences( request );
    String prefUrl = portletPrefs.getValue( "url", "" );
    String prefName = portletPrefs.getValue( "name", "" );
    String prefDisplayDefault = portletPrefs.getValue( "displayDefault", "" );
    int numBookmarks = 0;
    pageContext.setAttribute("numBookmarks", new Integer(numBookmarks));
    Vector bookmarks = (Vector)request.getAttribute(BookmarksController.BOOKMARKS);
    if ( bookmarks == null || bookmarks.isEmpty()) {
    if (prefDisplayDefault.equalsIgnoreCase("yes")) {
    %>
    <tr>
    <td>
    <netui:anchor href="<%=prefUrl%>" target="_new">
    <netui:label value="<%=prefName%>"/>
    </netui:anchor>
    </td>
    </tr>
    <%
    } else {
    %>
    <tr><td>There are no bookmarks to display.</td></tr>
    <%
    } else {
    numBookmarks = bookmarks.size();
    pageContext.setAttribute("numBookmarks", new Integer(numBookmarks));
    Iterator iter = bookmarks.iterator();
    while (iter.hasNext()) {
    BookmarkBean bookmark = (BookmarkBean)iter.next();
    int id = bookmark.getID();
    String name = bookmark.getValue1();
    String url = bookmark.getValue2();
    int seq = bookmark.getSortOrder();
    pageContext.setAttribute("id", new Integer(id));
    pageContext.setAttribute("name", name);
    pageContext.setAttribute("url", url);
    pageContext.setAttribute("seq", new Integer(seq));
    %>
    <tr>
    <td>
    <%
    if (url.startsWith("http://thetrain")) {
    %>
    <netui:anchor href="<%=url%>">
    <netui:label value="<%=name%>"/>
    </netui:anchor>
    <%
    } else {
    %>
    <netui:anchor href="<%=url%>" target="_new">
    <netui:label value="<%=name%>"/>
    </netui:anchor>
    <%
    %>
    </td>
    <td width="1%">
    <%
    if (seq > 1) {
    %>
    <netui:imageAnchor action="moveUpBookmark" src="{pageContext.trainImagePath}arrow_up.gif" border="0" alt="Move up '{pageContext.name}'">
    <netui:parameter name="id" value="<%=String.valueOf(id)%>"/>
    <netui:parameter name="seq" value="<%=String.valueOf(seq)%>"/>
    </netui:imageAnchor>
    <%
    if (seq < numBookmarks) {
    %>
    <netui:imageAnchor action="moveDownBookmark" src="{pageContext.trainImagePath}arrow_down.gif" border="0" alt="Move down '{pageContext.name}'">
    <netui:parameter name="id" value="<%=String.valueOf(id)%>"/>
    <netui:parameter name="seq" value="<%=String.valueOf(seq)%>"/>
    </netui:imageAnchor>
    <%
    %>
    </td>
    <td width="1">
    <netui:form action="editBookmark">
    <netui:hidden dataSource="{actionForm.id}" dataInput="{pageContext.id}"/>
    <netui:hidden dataSource="{actionForm.name}" dataInput="{pageContext.name}"/>
    <netui:hidden dataSource="{actionForm.url}" dataInput="{pageContext.url}"/>
    <netui:imageButton src="{pageContext.trainImagePath}edit.gif" alt="Edit '{pageContext.name}'"/>
    </netui:form>
    </td>
    <td width="1">
    <netui:form action="deleteBookmark">
    <netui:hidden dataSource="{actionForm.id}" dataInput="{pageContext.id}"/>
    <netui:hidden dataSource="{actionForm.seq}" dataInput="{pageContext.seq}"/>
    <netui:hidden dataSource="{actionForm.numBookmarks}" dataInput="{pageContext.numBookmarks}"/>
    <netui:imageButton src="{pageContext.trainImagePath}delete.gif" alt="Delete '{pageContext.name}'"/>
    </netui:form>
    </td>
    </tr>
    <%
    %>
    </table>
    <%
    String prefMaxBookmarks = portletPrefs.getValue( "maxBookmarks", "" );
    int maxBookmarks = -1;
    try {
    maxBookmarks = new Integer(prefMaxBookmarks).intValue();
    } catch(NumberFormatException nfe) {
    // nfe.printStackTrace();
    String prefHelpText = portletPrefs.getValue( "helpText", "" );
    String mode = (String)pageContext.getAttribute("currentMode");
    if (mode.equals("add")) {
    if (maxBookmarks == -1 || numBookmarks < maxBookmarks) {
    pageContext.setAttribute("newSeq", new Integer(numBookmarks+1));
    %>
    <hr size="1"/>
    <netui:form action="insertBookmark">
    <netui:hidden dataSource="{actionForm.seq}" dataInput="{pageContext.newSeq}"/>
    <table>
    <tr>
    <td valign="top">Name:</td>
    <td valign="top">
    <netui:textBox dataSource="{actionForm.name}" maxlength="80"/>
    <netui:error value="name"/>
    </td>
    </tr>
    <tr>
    <td valign="top">URL:</td>
    <td valign="top">
    <netui:textBox dataSource="{actionForm.url}" maxlength="500"/>
    <netui:error value="url"/>
    </td>
    </tr>
    <tr>
    <td colspan="2"><%=prefHelpText%></td>
    </tr>
    </table>
    <netui:button value="Add" type="submit"/>
    </netui:form>
    <%
    } else if (mode.equals("edit")) {
    %>
    <hr size="1"/>
    <netui:form action="updateBookmark">
    <netui:hidden dataSource="{actionForm.id}"/>
    <table>
    <tr>
    <td>Name:</td>
    <td>
    <netui:textBox dataSource="{actionForm.name}" maxlength="80"/>
    <netui:error value="name"/>
    </td>
    </tr>
    <tr>
    <td>URL:</td>
    <td>
    <netui:textBox dataSource="{actionForm.url}" maxlength="500"/>
    <netui:error value="url"/>
    </td>
    </tr>
    <tr>
    <td colspan="2">Include 'http://' in your URL</td>
    </tr>
    </table>
    <netui:button type="submit" value="Update"/>
    <netui:button type="submit" value="Cancel" action="cancelEdit"/>
    </netui:form>
    <%
    if (request.getAttribute("msg") != null) {
    %>
    <hr size="1"/>
    <%=request.getAttribute("msg")%>
    <%
    %>
    </netui:html>

  • OCI_INVALID_HANDLE excpetion at updating BLOG in PhP

    Hi all,
    We're busy with implementing Typo3 (OpenSource CMS in PhP) on Oracle (XE universal).
    We're running in a OCI_INVALID_HANDLE problem during page refreshes (CTRL-Refresh).
    The actual error is:
    Warning: OCI-Lob::save() http://oci-lob.save: OCI_INVALID_HANDLE in /var/www/sources/typo3_src-4.2.10/typo3/sysext/adodb/adodb/drivers/adodb-oci8.inc.php on line 696
    The piece of code where it refers to is:
    function UpdateBlob($table,$column,$val,$where,$blobtype='BLOB')
    //if (strlen($val) < 4000) return $this->Execute("UPDATE $table SET $column=:blob WHERE $where",array('blob'=>$val)) != false;
    switch(strtoupper($blobtype)) {
    default: ADOConnection::outp("UpdateBlob: Unknown blobtype=$blobtype"); return false;
    case 'BLOB': $type = OCI_B_BLOB; break;
    case 'CLOB': $type = OCI_B_CLOB; break;
    if ($this->databaseType == 'oci8po')
    $sql = "UPDATE $table set $column=EMPTY_{$blobtype}() WHERE $where RETURNING $column INTO ?";
    else
    $sql = "UPDATE $table set $column=EMPTY_{$blobtype}() WHERE $where RETURNING $column INTO :blob";
    $desc = OCINewDescriptor($this->connectionID, OCID_LOB);
    $arr = array($desc,-1,$type);
    if ($this->session_sharing_force_blob) $this->Execute('ALTER SESSION SET CURSOR_SHARING=EXACT');
    $commit = $this->autoCommit;
    if ($commit) $this->BeginTrans();
    $rs = $this->_Execute($sql,$arr);
    if ($rez = !empty($rs)) $desc->save($val); ##################### this is line 696
    $desc->free();
    if ($commit) $this->CommitTrans();
    if ($this->session_sharing_force_blob) $this->Execute('ALTER SESSION SET CURSOR_SHARING=FORCE');
    if ($rez) $rs->Close();
    return $rez;
    I've googled around for some time and also queried this forum, but could not find any suggestions. To me it seems quite ok what is done here. And it is some standard Typo3 code.
    Could you please shine your light upon it and maybe give me some ideas to solve this?
    Thank you very much.
    Regards,
    Martien

    See my answer to your other post, inserting a text file into a clob field

  • Excpetion "You did not specify the transaction currency burden amount".

    Hi,
    When I am running "PRC: Interface Supplier Costs" then its firing another Program i.e., "AUD: Supplier Costs Interface Audit". In the second Program's output I am getting a message "You did not specify the transaction currency burden amount".
    I created and approved an Expense PO and then I created an Invoice (matching that PO) and did the Payment for that Invoice and generated accounting. After that I ran "PRC: Interface Supplier Costs" to transfer the amount to my Project. The Program is ending up with the exception that "You did not specify the transaction currency burden amount".
    What could be the reason and how to solve it.
    Regards,
    Khan.

    Hi
    Check if your project is set up as burdened, and if the expenditure organization & expenditure type of the PO distribution are supposed to be burdened. Verify that burden multiplier is available in te active burden schecule.
    Dina

  • Excpetion while calling NewObjectArray 2 times

    I am calling a C++ method from another C++ code 2 times. First time, it works ok but second time, JVM throws an exception and terminates. Any idea ? It throws an exception while calling
    _env->NewObjectArray 
    I have posted relavant portion of my method
    # An unexpected error has been detected by HotSpot Virtual Machine:
    # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x6d739bf5, pid=3592, tid=2888
    # Java VM: Java HotSpot(TM) Client VM (1.5.0_02-b09 mixed mode)
    # Problematic frame:
    # V [jvm.dll+0x89bf5]
    # An error report file with more information is saved as hs_err_pid3592.log
    # If you would like to submit a bug report, please visit:
    # http://java.sun.com/webapps/bugreport/crash.jsp
    jclass cls;
         jmethodID mid;
         jstring domainString;
         jstring userLogonNameString;
         jstring userCommonNameString;
         jstring userDisplayNameString;
         jstring userDescriptionString;
         domainString = _env->NewStringUTF(domain);
         userLogonNameString = _env->NewStringUTF(userLogonName);
         userCommonNameString = _env->NewStringUTF(userCommonName);
         userDisplayNameString = _env->NewStringUTF(userDisplayName);
         userDescriptionString = _env->NewStringUTF(userDescription);
         printf("After NewStringUTF\n");
         cls=_env->GetObjectClass(_obj);
    printf("After GetObjectClass\n");
    printf("Number of Members %d\n",noOfMembers);
         jobjectArray ret;
         if (noOfMembers > 0)
         ret=(jobjectArray)_env->NewObjectArray(noOfMembers,
    _env->FindClass ("java/lang/String"),
    _env->NewStringUTF(""));
         printf("After NewObjectArray\n");
         for(int i=0;i<noOfMembers;i++) {
         jstring jStr = _env->NewStringUTF(memberOfArr);
         _env->SetObjectArrayElement(ret,i,jStr);
         _env->DeleteLocalRef(jStr);
         mid=_env->GetMethodID(cls, "updateModel",
                   "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;)V");
         if (mid == 0) {
         printf("%s\n","Can't find method updateModel");
         return ;
         _env->ExceptionClear();
         _env->CallVoidMethod(_obj, mid,domainString,userLogonNameString,userCommonNameString,userDisplayNameString,userDescriptionString,ret);
         _env->DeleteLocalRef(domainString);
         _env->DeleteLocalRef(userLogonNameString);
         _env->DeleteLocalRef(userCommonNameString);
         _env->DeleteLocalRef(userDisplayNameString);
         _env->DeleteLocalRef(userDescriptionString);
         _env->DeleteLocalRef(ret);

    Seems like after calling a java method from a native code using JNIEnv*, it is not reusable. How can i achieve my goal ?By keeping instead another structure as a class variable: JavaVM*.
    With that variable you can retrieve JNIEnv* in each C++ method you need it.
    Suppose you want to use JNIEnv* in SomeCppClass::someCppMethod() method:class SomeCppClass {
    private:
        JavaVM * jvm;
    public:
        SomeCppClass();
        ~SomeCppClass();
        void someCppMethod();
    SomeCppClass::SomeCppClass() : jvm(NULL) {
        JavaVMInitArgs vm_args;
        JNIEnv * env;
        if (JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args) != 0) {
            // some error handling
    SomeCppClass::~SomeCppClass() {
        if (jvm != NULL) {
            jvm->DetachCurrentThread();
            jvm->DestroyJavaVM();
        jvm = NULL;
    void SomeCppClass::someCppMethod() {
        JNIEnv * env;
        if (jvm->AttachCurrentThread((void **)&env, NULL) < 0) {
            // some error handling
    }Regards

  • WKLPI Excpetion while calling a public workflow

    Hi,
    I am getting an error as follows
    Cannot identify a unique CA based on selection criterias.
    Exception while creating a subworkflow instance object.....
    I get this error while invoking a public workflow from a task.
    Has anyone encountered a similiar case....aor does anyine know how to rectify
    this error
    Regards
    Raj

    Seems like after calling a java method from a native code using JNIEnv*, it is not reusable. How can i achieve my goal ?By keeping instead another structure as a class variable: JavaVM*.
    With that variable you can retrieve JNIEnv* in each C++ method you need it.
    Suppose you want to use JNIEnv* in SomeCppClass::someCppMethod() method:class SomeCppClass {
    private:
        JavaVM * jvm;
    public:
        SomeCppClass();
        ~SomeCppClass();
        void someCppMethod();
    SomeCppClass::SomeCppClass() : jvm(NULL) {
        JavaVMInitArgs vm_args;
        JNIEnv * env;
        if (JNI_CreateJavaVM(&jvm, (void **)&env, &vm_args) != 0) {
            // some error handling
    SomeCppClass::~SomeCppClass() {
        if (jvm != NULL) {
            jvm->DetachCurrentThread();
            jvm->DestroyJavaVM();
        jvm = NULL;
    void SomeCppClass::someCppMethod() {
        JNIEnv * env;
        if (jvm->AttachCurrentThread((void **)&env, NULL) < 0) {
            // some error handling
    }Regards

  • A page on a website will not open. Most everything else will excpet this one page on the website.

    The page sits and tells me it is loading and never does. The webpage has other places that work fine.

    HAVE had similar experiences:
    1. doubt it is a firefox issue. 2. The server could be having problems finding the page (whose name is valid, thus no 404), but un-retrievable due to OS or hardware problems (infinite search loop). 3. Waiting for a display tool like Adobe Acrobat Reader to be loaded for PDF files; start Acrobat and check your downloads and click on the list item wanted; usually it is automatic unless you turned off the linkage relationship. 4. Same applies to DOC/docx, png/jpg and mp3/mp4 files. WAYS to figure out the problem: 1. drop the last section from the URL, go there and look for a newer link to the file you want. 2. check whois.net to make sure the website is a safe place to visit (some mal-sites fake a stalling search in order to download malware in the backgound). 3. google the same information you want and seek it at another URL. good luck.

Maybe you are looking for

  • Remote and Wireless Router

    Hello All, I installed remote on my iPhone yesterday, and today my wireless router doesn't work, it just seems not to work @ all. Probably just one those things but just want to throw it out there.

  • Adobe Photoshop CC 2014 is marked as "trial" (in the CC manager)

    - and asks me on every start wether I want to continue with my trial - even though my subscription is valid and regular Photshop CC works like a charm. Whats up with that?

  • Powerbook G3 Series production numbers

    I am trying to guess how many Wallstreets, Lombards, Pismos were made. I found numbers in old Apple annual reports but they use a fiscal year reporting that does not sync with product launch dates so it is hard to calculate this way. I also heard the

  • All-day long activities in Calendar don't adjust height

    I have a lot of all-day long activities in Calendar, but it clearly wasn't designed for that because it only shows two or three of them and I have to keep scrolling all the time-which on the iphone and the ipad is a bit tricky. Is there some workarou

  • Flash player upgrade issues

    Windows Vista 64 bit, IE8 32 & 64, Google Chrome, Safari, Firefox after upgrade to Flash Player 11, FP is not working in IE 32bit, Google chrome safari and firefox tried to uninstall after saving file from this site on my desktop remove remaning flas