Need help with JSP - Session Bean scenario

I have massive problems with a simple JSP <--> Statefull Session Bean scenario with Server Platform Edition 8.2 (build b06-fcs)
What I do is generating a Collection in session bean returning it to JSP
and giving the List back to Session Bean.
A weird exception happens when giving the List back to Session Bean
(see Exception details below)
The same code runs without any trouble on Jboss Application Server 4.0.3
Any help would be great!
Please see code below
Statefull Session Bean
<code>
package ejb;
import data.Produkt;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import javax.ejb.*;
* This is the bean class for the WarenkorbBean enterprise bean.
* Created 17.03.2006 09:53:25
* @author Administrator
public class WarenkorbBean implements SessionBean, WarenkorbRemoteBusiness, WarenkorbLocalBusiness {
private SessionContext context;
// <editor-fold defaultstate="collapsed" desc="EJB infrastructure methods. Click the + sign on the left to edit the code.">
// TODO Add code to acquire and use other enterprise resources (DataSource, JMS, enterprise bean, Web services)
// TODO Add business methods or web service operations
* @see javax.ejb.SessionBean#setSessionContext(javax.ejb.SessionContext)
public void setSessionContext(SessionContext aContext) {
context = aContext;
* @see javax.ejb.SessionBean#ejbActivate()
public void ejbActivate() {
* @see javax.ejb.SessionBean#ejbPassivate()
public void ejbPassivate() {
* @see javax.ejb.SessionBean#ejbRemove()
public void ejbRemove() {
// </editor-fold>
* See section 7.10.3 of the EJB 2.0 specification
* See section 7.11.3 of the EJB 2.1 specification
public void ejbCreate() {
// TODO implement ejbCreate if necessary, acquire resources
// This method has access to the JNDI context so resource aquisition
// spanning all methods can be performed here such as home interfaces
// and data sources.
// Add business logic below. (Right-click in editor and choose
// "EJB Methods > Add Business Method" or "Web Service > Add Operation")
public Collection erzeugeWarenkorb() {
//TODO implement erzeugeWarenkorb
ArrayList myList = new ArrayList();
for (int i=0;i<10;i++)
Produkt prod = new Produkt();
prod.setID(i);
prod.setName("Produkt"+i);
myList.add(prod);
return myList;
public void leseWarenkorb(Collection Liste) {
//TODO implement leseWarenkorb
Iterator listIt = Liste.iterator();
while(listIt.hasNext())
Produkt p = (Produkt)listIt.next();
System.out.println("Name des Produktes {0} "+p.getName());
</code>
<code>
package data;
import java.io.Serializable;
* @author Administrator
public class Produkt implements Serializable {
private int ID;
private String Name;
/** Creates a new instance of Produkt */
public Produkt() {
public int getID() {
return ID;
public void setID(int ID) {
this.ID = ID;
public String getName() {
return Name;
public void setName(String Name) {
this.Name = Name;
</code>
<code>
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@page import="java.util.*"%>
<%@page import="data.*"%>
<%@page import="javax.naming.*"%>
<%@page import="javax.rmi.PortableRemoteObject"%>
<%@page import="ejb.*"%>
<%--
The taglib directive below imports the JSTL library. If you uncomment it,
you must also add the JSTL library to the project. The Add Library... action
on Libraries node in Projects view can be used to add the JSTL 1.1 library.
--%>
<%--
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
--%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<h1>Online Shop Warenkorb Test</h1>
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<%--
<c:if test="${param.sayHello}">
<!-- Let's welcome the user ${param.name} -->
Hello ${param.name}!
</c:if>
--%>
<%
Context myEnv = null;
WarenkorbRemote wr = null;
// Context initialisation
try
myEnv = (Context)new javax.naming.InitialContext();
/*Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
//env.put(Context.PROVIDER_URL, "jnp://wotan.activenet.at:1099");
env.put(Context.PROVIDER_URL, "jnp://localhost:1099");
env.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
myEnv = new InitialContext(env);*/
catch (Exception ex)
System.err.println("Fehler beim initialisieren des Context: " + ex.getMessage());
// now lets work
try
Object ref = myEnv.lookup("ejb/WarenkorbBean");
//Object ref = myEnv.lookup("WarenkorbBean");
WarenkorbRemoteHome warenkorbrhome = (WarenkorbRemoteHome)
PortableRemoteObject.narrow(ref, WarenkorbRemoteHome.class);
wr = warenkorbrhome.create();
ArrayList myList = (ArrayList)wr.erzeugeWarenkorb();
Iterator it = myList.iterator();
while(it.hasNext())
Produkt p = (Produkt)it.next();
%>
ProduktID: <%=p.getID()%><br></br>Produktbezeichnung:
<%=p.getName()%><br></br><%
wr.leseWarenkorb(myList);
catch(Exception ex)
%><p style="color:red">Onlineshop nicht erreichbar</p><%=ex.getMessage()%>
<% }
%>
</body>
</html>
</code>
the exception
CORBA MARSHAL 1398079745 Maybe; nested exception is: org.omg.CORBA.MARSHAL: ----------BEGIN server-side stack trace---------- org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:8101) at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1013) at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879) at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:873) at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_abstract_interface(CDRInputStream_1_0.java:863) at com.sun.corba.ee.impl.encoding.CDRInputStream.read_abstract_interface(CDRInputStream.java:275) at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectDelegate(IIOPInputStream.java:363) at com.sun.corba.ee.impl.io.IIOPInputStream.readObjectOverride(IIOPInputStream.java:526) at java.io.ObjectInputStream.readObject(ObjectInputStream.java:333) at java.util.ArrayList.readObject(ArrayList.java:591) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.sun.corba.ee.impl.io.IIOPInputStream.invokeObjectReader(IIOPInputStream.java:1694) at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1212) at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400) at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:330) at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:296) at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034) at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259) at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl$14.read(DynamicMethodMarshallerImpl.java:333) at com.sun.corba.ee.impl.presentation.rmi.DynamicMethodMarshallerImpl.readArguments(DynamicMethodMarshallerImpl.java:393) at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121) at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:648) at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:192) at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1709) at com.sun.corba.ee.impl.protocol.SharedCDRClientRequestDispatcherImpl.marshalingComplete(SharedCDRClientRequestDispatcherImpl.java:155) at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:184) at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129) at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:150) at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source) at ejb._WarenkorbRemote_DynamicStub.leseWarenkorb(_WarenkorbRemote_DynamicStub.java) at org.apache.jsp.index_jsp._jspService(index_jsp.java:122) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247) at javax.servlet.http.HttpServlet.service(HttpServlet.java:860) at sun.reflect.GeneratedMethodAccessor96.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:517) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83) Caused by: java.lang.ClassNotFoundException ... 69 more ----------END server-side stack trace---------- vmcid: SUN minor code: 257 completed: Maybe

Hi,
I have found a way out by passing the reference of my EJB in the HttpSession object and using it inside the javabean..

Similar Messages

  • Need help with the session state value items.

    I need help with the session state value items.
    Trigger is created (on After delete, insert action) on table A.
    When insert in table B at least one row, then trigger update value to 'Y'
    in table A.
    When delete all rows from a table B,, then trigger update value to 'N'
    in table A.
    In detail report changes are visible, but the trigger replacement value is not set in session value.
    How can I implement this?

    You'll have to create a process which runs after your database update process that does a query and loads the result into your page item.
    For example
    SELECT YN_COLUMN
    FROM My_TABLE
    INTO My_Page_Item
    WHERE Key_value = My_Page_Item_Holding_Key_ValueThe DML process will only return key values after updating, such as an ID primary key updated by a sequence in a trigger.
    If the value is showing in a report, make sure the report refreshes on reload of the page.
    Edited by: Bob37 on Dec 6, 2011 10:36 AM

  • Help with jsp session validation

    i've build up a page that only users wil 'administrator' as the session is variable can access. if they don't they will be directed to the login page.
    However, I'm getting a null pointer exception.
    my code is as follows:
    <%@ page import="java.io.*"%>
    <%
         if (session.getAttribute("id").equals(null) || !(session.getAttribute("id").equals("administrator")))
              response.sendRedirect("adminlogin.htm");
    %>
    Error Message:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
    root cause
    java.lang.NullPointerException
    any pros please help? i know it's something to do with my jsp session validation. thanks in advance.

    one more thing, with regrads to the solution evnafets provided. I tried it out on all my pages that requires administrator rights and found that the code only redirects when it's not expecting any parameters. Else, it just display an error message there. Is there a way around this? Or I should let let my end user suffer?
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.NullPointerException
         at org.apache.jsp.view_jsp._jspService(view_jsp.java:177)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
         at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
         at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
         at java.lang.Thread.run(Thread.java:534)

  • Need help with fillling backing bean w/info

    I am new to JSP and have some very basic questions regarding filling a JSF with data from the database and then allowing the user to edit and save the data back to the database.
    I am using JDeveloper 10.1.3 developer preview
    This is what I have so far (which may be suspect in itself):
    1. A method called DatabaseUtil.getProductApproval(productApprovalNbr) which creates and returns a ProductApprovalBean
    2. A JSF called search.jsp with backing bean Search.java.
    3. Another JSF called productApproval.jsp with backing bean ProductApproval.java
    4. Successful navigation defined from search.jsp to productApproval.jsp
    5. The backing bean Search.java has a SearchButton_action that returns success if productApprovalNbr specified is OK (edit currently hard-coded)
    6. The productApproval.jsp has a component called productApprovalNbr with binding to backing_search.productApprovalNbr
    This is want I want to do but don’t know how:
    1. Make a call to create the ProductApprovalBean and fill the productApproval.jsp backing bean with info from ProductApprovalBean before the productApproval.jsp is displayed to the user.
    2. Allow the user to change values and save them back to the db after clicking on the save command button.
    How do I wire this stuff up?
    Any advice will be greatly appreciated because I am stuck big time.
    Regards,
    Al Malin

    Thanks for the reply Brian.
    I’ve looked at directly binding to the ProductApprovalBean and that looks like a good approach to take in other cases but for the UI design I currently have I am not sure.
    Basically, the ProductApprovalBean is a master entity with several related detail entities. This is so because the user wants to see all of the related data on a single page instead of showing one page for a master, another for a detail, another for another detail, etc. So I am designing a JSF form that consists of multiple sections, each section presenting an entity. Each detail section would have its own command buttons for editing, adding, and deleting rows.
    Since my first post I have figured out how to fire an event in search.jsp and catch it in an event handler in the backing_bean. (This was great progress --- only took me 9 hours to write 6 lines of code. :-) From here I figured I could access the db and load up the fields for the first screen and do updates with the subsequent screens.
    After looking through the documentation, I not sure I’m up to the task. New problem, I don’t know the JSF classes well enough to load up the fields, and after they are loaded, how do I get the data out. (At first, JSF looked really slick but there has been a steep leaning curve associated with it, I'm real close to reverting to JSPs and servlets.)
    If I am on the wrong path and this approach is all wet, please say so.
    Regards,
    Al Malin

  • Need help with Sync/Async BPM Scenario

    I have an R/3 RFC -> XI -> HTTP (to vendor A) scenario that is working fine.  It is a totally synchronous call event.  The Integration Directory pieces sit in a scenario named HotkeyOutbound.
    Now I need to create a process for RFC -> XI -> HTTP (to vendor Panduit).  The R/3 RFC is the same sender, but vendor Panduit only supports an asynchronous HTTP connection.  I followed the Sriram Vasudevan weblog on Sync/Async Bridge and created my BPM.  I am stuck on trying to determine what to set up in the Integration Directory. 
    First off, should I be able to use the same HotkeyOutbound scenario as with vendor A so all hotkey stuff can stay together?  Or do I have to create a new scenario with a copy of the R/3 business system for the sender?  I moved forward with a new scenario (PanduitHotkeyOutbound).
    I also need to know how many config Agreements and Determinations to use.  The image at http://webpages.charter.net/kpwendel/keith1.html shows what I have so far.  Which are not needed?  What is missing?
    And I tried setting up an HTTP communication channel for outbound async to vendor Panduit and another for inbound async from vendor Panduit.  XI won't let me set up a sender HTTP channel.  Why not?
    Thank you in advance.

    I have yet to figure this out, and probably need to go back to my Integration Repository setup since my problems may start there.  This screenshot shows my Repository objects.
    http://webpages.charter.net/kpwendel/intProcess.jpg
    HELP!  These are the steps I took, with questions embedded.
    (1) Created data type and message type for xml document (note that same format is used for request and reply).
    (2) Created PANRequestAbstractInterfaceSync (abstract and sync) for first part of Integration Process.  Should the input message be the RFC or XML message type?
    (3) Created PANRequestAbstractInterfaceAsync (abstract and async) for 2nd part of Integration Process.
    (4) Created PANResponseToBPM_MessageInterface (outbound async) for interface back into XI from partner. Is this needed?
    (5) Created PANHotkeySync_to_Async_IntProc Integration Process to handle sync to async bridge.
    - Wondering why PANRequestAbstractInterfaceAsync is the only message interface available when I make container object (PANMessage)?
    (6) Created two Message Mappings to handle RFC data to XML mappings (outbound RFC-> XML and inbound XML -> RFC).
    (7) Created Interface Mapping that includes both the Request and Response message mapping programs from step six.  Source is the RFC and Target is PANRequestAbstractInterfaceSync.
    - Do I need another interface mapping with Source being PANRequestAbstractInterfaceAsync and Target being the RFC?
    Link to these steps and app diagram:
    http://webpages.charter.net/kpwendel/PAN_Hotkey_Diagram.jpg
    Thank you very much for your time.

  • Need Help with JSP and Soap

    Trying to write a JSP page that pulls information from a Soap Call. Below is the JSP page and the Soap Code. Any Help would be great:
    The soap call needs to come back with a variable in the line: <td class="detail-item-value" colspan="2"><%= request.getobject %>
    The JSP Page:
    <%@page import="java.sql.DriverManager, java.sql.Connection, java.sql.ResultSet, java.sql.Statement"%>
    <nested:define id="recordId" property="detailId" />
    <%
    //String payorId = (String) recordId;
    String payorId = "1001850";
    Set objgetobject = Server.CreateObject("soapdemo.SoapServer")
    getobject = objgetobject.GetPayorByIdRequest(payorId)
    %>
    <table id="detailTable" class="detail-outer-table">
    <tr>
    <td colspan="4"
    class=
    "detail-inner-group-header" >
    <center>Party Attributes</center></td></tr>
    <tr>
    <td colspan="2" class="detail-item-prompt">Test Field</td>
    <td class="detail-item-value" colspan="2"><%= request.getobject %>
    </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Customer Name</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(stdName1)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">PO Box</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(poBox)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Address 1</td>
    <td class="detail-item-value"><nested:write property="detailValue(stdAddr1)" filter="false"/></td>
    <td class="detail-item-prompt">PO Box City</td>
    <td class="detail-item-value"><nested:write property="detailValue(poBoxCity)" filter="false"/></td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Address 2</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(stdAddr2)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">PO Box Region/State</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(poBoxState)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">City</td>
    <td class="detail-item-value"><nested:write property="detailValue(stdCity)" filter="false"/></td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Region State</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(stdState)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Party ID</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(entId)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Zip Code</td>
    <td class="detail-item-value"><nested:write property="detailValue(stdZipCode)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Last Published</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(lastPublished)" filter="false"/></td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Telephone</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(phone)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Last Changed By</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(lastChangeUserName)" filter="false"/></td>
    </tr>
    <tr>
    <td colspan="4"
    class=
    <nested:equal property="isSourceItem" value="false">"detail-first-group-header"</nested:equal>
    <nested:equal property="isSourceItem" value="true">"detail-inner-group-header"</nested:equal>
    <center>Reference Data</center></td></tr>
    <tr>
    <td colspan="2" class="detail-item-prompt" bgcolor="e9eef4"><center>Dun and Bradstreet</center></td>
    <td colspan="2"class="detail-item-prompt" bgcolor="e9eef4"><center>Verispan</center></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">D&B DUNS</td>
    <td class="detail-item-value"><nested:write property="detailValue(dnbDunsNumber)" filter="false"/></td>
    <td class="detail-item-prompt">SMG Business Type</td>
    <td class="detail-item-value"><nested:write property="detailValue(smgBusType)" filter="false"/></td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Trade Style</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(tradestyle)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">SMG ID</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(smgId)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Line Of Business</td>
    <td class="detail-item-value"><nested:write property="detailValue(lineOfBusiness)" filter="false"/></td>
    <td class="detail-item-prompt">HIN_ID</td>
    <td class="detail-item-value"><nested:write property="detailValue(hinId)" filter="false"/></td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Status Code</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(statusCode)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">DEA_ID</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(deaId)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Subsidiary Code</td>
    <td class="detail-item-value"><nested:write property="detailValue(subsidiaryCode)" filter="false"/></td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-value"> </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    <td BGcolor="e4f2f5" class="detail-item-value"> </td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Domestic Ultimate DUNS</td>
    <td class="detail-item-value"><nested:write property="detailValue(dnbDomUltimateDuns)" filter="false"/></td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Domestic Ultimate Name</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(domUltimateBusinessName)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-value"> </td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Global Ultimate DUNS</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(dnbGlobalUltimateDuns)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Global Ultimate Name</td>
    <td class="detail-item-value"><nested:write property="detailValue(globalUltimateBusinessName)" filter="false"/></td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-prompt"> </td>
    </tr>
    <tr><td colspan="4" class="detail-inner-group-header"><center>Database Details</center></td></tr>
    <tr><td class="detail-item-prompt">Created</td>
    <td class="detail-item-value"><nested:write property="detailValue(creationTimestamp)" filter="false"/></td>
    <td class="detail-item-prompt">Last Changed</td>
    <td class="detail-item-value"><nested:write property="detailValue(lastChangeTimestamp)" filter="false"/></td></tr>
    <!-- Future: display creation and last change username after editing is implemented -->
    <nested:equal property="isSourceItem" value="false">
    <tr><td class="detail-item-prompt">Purisma Composite Id</td>
    </nested:equal>
    <nested:equal property="isSourceItem" value="true">
    <tr><td class="detail-item-prompt">Purisma Id</td> </nested:equal>
    <td class="detail-item-value"><nested:write property="detailId" filter="false"/></td>
    <td class="detail-item-prompt"><nested:write property="detailSourceName" filter="false"/></td>
    <td class="detail-item-value"><nested:write property="detailExternalId" filter="false"/></td></tr>
    <!--
    <tr><td colspan="4" class="detail-inner-group-header"><center>Family Tree Information</center></td></tr>
    <tr><td class="detail-item-prompt">Linkage Last Changed</td>
    <td class="detail-item-value"><nested:write property="detailValue(linkageChangeTimestamp)" filter="false"/></td>
    <td class="detail-item-prompt">Linkage Last Edited</td>
    <td class="detail-item-value"><nested:write property="detailValue(linkageEditTimestamp)" filter="false"/></td>
    </tr>
    <tr><td class="detail-item-prompt">Linkage Edited by</td>
    <td class="detail-item-value"><nested:write property="detailValue(linkageEditUserName)" filter="false"/></td></tr>
    -->
    </table>
    SOAP CALL
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:purisma-pcr:CUSTOMER">
    <soapenv:Header/>
    <soapenv:Body>
    <urn:GetPayorByIdRequest urn:registryId="?" urn:sourceStartIndex="0" urn:sourcePageSize="0">
    <!--Zero or more repetitions:-->
    <fieldName>?</fieldName>
    </urn:GetPayorByIdRequest>
    </soapenv:Body>
    </soapenv:Envelope>

    Trying to write a JSP page that pulls information from a Soap Call. Below is the JSP page and the Soap Code. Any Help would be great:
    The soap call needs to come back with a variable in the line: <td class="detail-item-value" colspan="2"><%= request.getobject %>
    The JSP Page:
    <%@page import="java.sql.DriverManager, java.sql.Connection, java.sql.ResultSet, java.sql.Statement"%>
    <nested:define id="recordId" property="detailId" />
    <%
    //String payorId = (String) recordId;
    String payorId = "1001850";
    Set objgetobject = Server.CreateObject("soapdemo.SoapServer")
    getobject = objgetobject.GetPayorByIdRequest(payorId)
    %>
    <table id="detailTable" class="detail-outer-table">
    <tr>
    <td colspan="4"
    class=
    "detail-inner-group-header" >
    <center>Party Attributes</center></td></tr>
    <tr>
    <td colspan="2" class="detail-item-prompt">Test Field</td>
    <td class="detail-item-value" colspan="2"><%= request.getobject %>
    </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Customer Name</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(stdName1)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">PO Box</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(poBox)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Address 1</td>
    <td class="detail-item-value"><nested:write property="detailValue(stdAddr1)" filter="false"/></td>
    <td class="detail-item-prompt">PO Box City</td>
    <td class="detail-item-value"><nested:write property="detailValue(poBoxCity)" filter="false"/></td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Address 2</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(stdAddr2)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">PO Box Region/State</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(poBoxState)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">City</td>
    <td class="detail-item-value"><nested:write property="detailValue(stdCity)" filter="false"/></td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Region State</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(stdState)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Party ID</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(entId)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Zip Code</td>
    <td class="detail-item-value"><nested:write property="detailValue(stdZipCode)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Last Published</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(lastPublished)" filter="false"/></td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Telephone</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(phone)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Last Changed By</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(lastChangeUserName)" filter="false"/></td>
    </tr>
    <tr>
    <td colspan="4"
    class=
    <nested:equal property="isSourceItem" value="false">"detail-first-group-header"</nested:equal>
    <nested:equal property="isSourceItem" value="true">"detail-inner-group-header"</nested:equal>
    <center>Reference Data</center></td></tr>
    <tr>
    <td colspan="2" class="detail-item-prompt" bgcolor="e9eef4"><center>Dun and Bradstreet</center></td>
    <td colspan="2"class="detail-item-prompt" bgcolor="e9eef4"><center>Verispan</center></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">D&B DUNS</td>
    <td class="detail-item-value"><nested:write property="detailValue(dnbDunsNumber)" filter="false"/></td>
    <td class="detail-item-prompt">SMG Business Type</td>
    <td class="detail-item-value"><nested:write property="detailValue(smgBusType)" filter="false"/></td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Trade Style</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(tradestyle)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">SMG ID</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(smgId)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Line Of Business</td>
    <td class="detail-item-value"><nested:write property="detailValue(lineOfBusiness)" filter="false"/></td>
    <td class="detail-item-prompt">HIN_ID</td>
    <td class="detail-item-value"><nested:write property="detailValue(hinId)" filter="false"/></td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Status Code</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(statusCode)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt">DEA_ID</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(deaId)" filter="false"/></td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Subsidiary Code</td>
    <td class="detail-item-value"><nested:write property="detailValue(subsidiaryCode)" filter="false"/></td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-value"> </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    <td BGcolor="e4f2f5" class="detail-item-value"> </td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Domestic Ultimate DUNS</td>
    <td class="detail-item-value"><nested:write property="detailValue(dnbDomUltimateDuns)" filter="false"/></td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Domestic Ultimate Name</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(domUltimateBusinessName)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-value"> </td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td BGcolor="e4f2f5" class="detail-item-prompt">Global Ultimate DUNS</td>
    <td BGcolor="e4f2f5" class="detail-item-value"><nested:write property="detailValue(dnbGlobalUltimateDuns)" filter="false"/></td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    <td BGcolor="e4f2f5" class="detail-item-prompt"> </td>
    </tr>
    <tr>
    <td class="detail-item-prompt">Global Ultimate Name</td>
    <td class="detail-item-value"><nested:write property="detailValue(globalUltimateBusinessName)" filter="false"/></td>
    <td class="detail-item-prompt"> </td>
    <td class="detail-item-prompt"> </td>
    </tr>
    <tr><td colspan="4" class="detail-inner-group-header"><center>Database Details</center></td></tr>
    <tr><td class="detail-item-prompt">Created</td>
    <td class="detail-item-value"><nested:write property="detailValue(creationTimestamp)" filter="false"/></td>
    <td class="detail-item-prompt">Last Changed</td>
    <td class="detail-item-value"><nested:write property="detailValue(lastChangeTimestamp)" filter="false"/></td></tr>
    <!-- Future: display creation and last change username after editing is implemented -->
    <nested:equal property="isSourceItem" value="false">
    <tr><td class="detail-item-prompt">Purisma Composite Id</td>
    </nested:equal>
    <nested:equal property="isSourceItem" value="true">
    <tr><td class="detail-item-prompt">Purisma Id</td> </nested:equal>
    <td class="detail-item-value"><nested:write property="detailId" filter="false"/></td>
    <td class="detail-item-prompt"><nested:write property="detailSourceName" filter="false"/></td>
    <td class="detail-item-value"><nested:write property="detailExternalId" filter="false"/></td></tr>
    <!--
    <tr><td colspan="4" class="detail-inner-group-header"><center>Family Tree Information</center></td></tr>
    <tr><td class="detail-item-prompt">Linkage Last Changed</td>
    <td class="detail-item-value"><nested:write property="detailValue(linkageChangeTimestamp)" filter="false"/></td>
    <td class="detail-item-prompt">Linkage Last Edited</td>
    <td class="detail-item-value"><nested:write property="detailValue(linkageEditTimestamp)" filter="false"/></td>
    </tr>
    <tr><td class="detail-item-prompt">Linkage Edited by</td>
    <td class="detail-item-value"><nested:write property="detailValue(linkageEditUserName)" filter="false"/></td></tr>
    -->
    </table>
    SOAP CALL
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:purisma-pcr:CUSTOMER">
    <soapenv:Header/>
    <soapenv:Body>
    <urn:GetPayorByIdRequest urn:registryId="?" urn:sourceStartIndex="0" urn:sourcePageSize="0">
    <!--Zero or more repetitions:-->
    <fieldName>?</fieldName>
    </urn:GetPayorByIdRequest>
    </soapenv:Body>
    </soapenv:Envelope>

  • Need help with CSV to JDBC scenario

    Hi experts,
    We have a CSV file with data which has to be inserted into a SQL server database.
    The sender data type is:
    snd_dt  complex type
    row element 0..unbounded
    name element  xsd:string 0..1
    date element xsd:string 0...1
    ratio element xsd:string 0...1
    The receiver data type is :
    rcv_dt complex type
    STATEMENT element
    ROW element
    action Attribute
    TABLE element
    access element  0...unbounded
    name element xsd:string 0...1
    date element xsd:string 0...1
    ratio element xsd:string 0...1
    Now I did the mapping and also did the steps in ID.
    In the database, for the table in the SQL server, the datatype for name is "char(3)", for date is "date" and for ratio is "decimal(9,2)"
    When I run the scenario, this gives me an error saying:
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'NAME' (structure 'STATEMENT'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.
    I am doing a direct "INSERT" action into the table.
    How do I resolve this error?
    ANy help mwould be greatly appreciated.

    This is the exact error I am running into.
    SQL log statement:
    INSERT INTO  NAME() VALUES ()
    Error:
    Unable to execute statement for table or stored procedure. 'NAME' (Structure 'STATEMENT') due to com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near ')'.
    When I put this SQL statement in SQL server, there are field names inside the parantheses of VALUES. Is this the reason why there is error??
    Also, the receiver pay load looks like this:
      <?xml version="1.0" encoding="UTF-8" ?>
    - <ns0:MT_NAME_TABLE xmlns:ns0="http://jdbc2jdbc">
    - <STATEMENT>
    - <ROW action="INSERT">
      <TABLE>NAME</TABLE>
      <access />
      <access />
      <access />
    </ROW>
      </STATEMENT>
      </ns0:MT_NAME_TABLE>
    Regards.

  • Help with JSP, session, login, JDBC.

    This is the template login.jsp file I have at the moment.
    <%@ page errorPage="errorPage.jsp" %>
    <%
      String login = (String)request.getParameter("loginname");
      if (login == null || login.equals("")) {
    %>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Final//EN">
    <HEAD>
    <TITLE>Login Page</TITLE>
    <STYLE>
    <!--
    font.loginhead {
      font-family: Arial,Helvetica,sans-serif;
      font-size:12pt; font-weight: 600; color: #000000;
    font.loginform {
      font-family: Arial,Helvetica,sans-serif;
      font-size:10pt; font-weight: 600; color: #ffffff;
    -->
    </STYLE>
    </HEAD>
    <BODY>
    <jsp:include page="debug.jsp" flush="true" />
    <CENTER>
    <FONT CLASS="loginhead">
    LOGIN REQUIRED:
    </FONT>
    <BR>
    <FORM NAME="loginform" METHOD=post>
    <TABLE BGCOLOR=#990022 BORDER=0 CELLPADDING=5 CELLSPACING=0>
    <TR><TD ALIGN=right>
    <FONT CLASS="loginform">
    Login Name:
    </FONT>
    </TD><TD ALIGN=left>
    <FONT CLASS="loginform">
    <INPUT TYPE=text NAME="loginname" SIZE=10>
    </FONT>
    </TD></TR>
    <TR><TD ALIGN=right>
    <FONT CLASS="loginform">
    Password:
    </FONT>
    </TD><TD ALIGN=left>
    <FONT CLASS="loginform">
    <INPUT TYPE=password NAME="loginpassword" SIZE=10>
    </FONT>
    </TD></TR>
    <TR><TD COLSPAN=2 ALIGN=center>
    <FONT CLASS="loginform">
    <INPUT TYPE=SUBMIT VALUE="Login">
    </FONT>
    </TD></TR>
    </TABLE>
    </FORM>
    </CENTER>
    </BODY>
    </HTML>
    <%
      } else {
       Checking against database that username and password are correct.
        session.putValue("login", login);
        session.setMaxInactiveInterval(600);
        String loginpoint
           = (String)session.getValue("loginpoint");
        if (loginpoint == null) {
          StringBuffer defaultpoint = new StringBuffer();
          defaultpoint.append(request.getScheme())
                      .append("://")
                      .append(request.getServerName())
                      .append("/");
          loginpoint = defaultpoint.toString();
        } else {
          session.removeValue("loginpoint");
        response.sendRedirect(loginpoint); 
      }I know as much as how connect to the database, create a statement and check to see if the username and password are correct, I dont know how to actually take what the user has typed in and put it in an mysql query. I have an idea that maybe I can convert Login and Loginpassword to Strings but I don't know how to do this.
    This is how I plan to connect to the database above
    //here I need to have login and loginpasword in separate Strings so I can use them in a query.
    Connection connection;
    Class.forName("com.mysql.jdbc.Driver").newInstance();
    connection = DriverManager.getConnection("jdbc:mysql://localhost/Users");
    Statement statement=connection.createStatement();
    String qry="select PassWord from customers where UserName='"+stringLogin+"'";
    ResultSet rs= statement.executeQuery(qry);In my login.jsp file above I don't understand the following code, and why it is needed. Can someone explain please.
    session.putValue("login", login);
        session.setMaxInactiveInterval(600);
        String loginpoint
           = (String)session.getValue("loginpoint");
        if (loginpoint == null) {
          StringBuffer defaultpoint = new StringBuffer();
          defaultpoint.append(request.getScheme())
                      .append("://")
                      .append(request.getServerName())
                      .append("/");
          loginpoint = defaultpoint.toString();
        } else {
          session.removeValue("loginpoint");
        response.sendRedirect(loginpoint); 
      }Hope you can understand what I'm trying to explain what my problems are.

    Im not sure what your exact question is. However, I can
    throw a few things out there.
    1) You need an action to handle the form request
    <FORM NAME="loginform" METHOD=post ACTION="login.jsp">2) Then get the username and password from the request
    String uname = (String)request.getParameter("loginname");
    String pass = (String)request.getParameter("loginpassword");3)Then you can just add them to the query string
    String qry="select PassWord from customers where UserName='"+uname+"'";4) Also check for valid password
    ResultSet rs= statement.executeQuery(qry);
    if(rs.next()) {
        String p = res.getString("PassWord");
             if (p.equals(pass)) {
                //valid user
                session.setAttribute("valid_user", "true");
                // now you can get valid_user from session at top of login.jsp
    }5) I cant find where loginpoint is set in the session, but the idea
    of the code below appears to be the logic of where to direct the user
    which I think would be dependent upon the validation of the user.
    session.putValue("login", login);
        session.setMaxInactiveInterval(600);
        String loginpoint
           = (String)session.getValue("loginpoint");
        if (loginpoint == null) {
          StringBuffer defaultpoint = new StringBuffer();
          defaultpoint.append(request.getScheme())
                      .append("://")
                      .append(request.getServerName())
                      .append("/");
          loginpoint = defaultpoint.toString();
        } else {
          session.removeValue("loginpoint");
        response.sendRedirect(loginpoint); 
      }You might try splitting the login into two pages to start out if you are having
    some difficulty.

  • Need help with sliding sessions on SharePoint 2013

    My setup uses claims based authentication with an SQL membership provider.
    I'm trying to get sliding expiration to work.  
    I added the the following method in global.asax file  based on http://michael-mckenna.com/blog/the-problem-with-absolute-token-expiration-in-windows-identity-foundation-wif
    protected void SessionAuthenticationModule_SessionSecurityTokenReceived(object sender, SessionSecurityTokenReceivedEventArgs e)
    DateTime now = DateTime.UtcNow;
    DateTime validFrom = e.SessionToken.ValidFrom;
    DateTime validTo = e.SessionToken.ValidTo;
    if ((now < validTo) && (now > validFrom.AddMinutes((validTo.Minute - validFrom.Minute) / 2)))
    SessionAuthenticationModule sam = sender as SessionAuthenticationModule;
    e.SessionToken = sam.CreateSessionSecurityToken(e.SessionToken.ClaimsPrincipal, e.SessionToken.Context,
    now, now.AddMinutes(SLIDING_TIMEOUT_VALUE), e.SessionToken.IsPersistent);
    e.ReissueCookie = true;
    I used Fiddler to monitor the connection and see a new FedAuth cookie sent to the browser whenever the "if" condition is satisfied.  The problem is that the session still times out.  When I compared the value of re-issued FedAuth to that
    of the earlier FedAuth, the values were identical even though the times for ValidFrom and ValidTo of the session token should be different.
    Why does the value not change?  What am I missing?
    Update: According to  https://msdn.microsoft.com/en-us/library/hh446526.aspx,
    A cookie (usually named FedAuth) that can exist either as a persistent or in-memory cookie represents the SharePoint session token. This cookie contains a reference to the SAML token that SharePoint
    stores in its token cache. The SAML token contains the claims issued to the user by any external identity and federation providers, and by the internal SharePoint security token service (STS).
    It looks like my assumption that FedAuth should change was wrong.
    Unfortunately, when I set the cookie lifetime to 20 minutes then start uploading a bunch of files that take more than 20 minutes, the POST requests still get redirected the login page at 20 minutes. That's despite Fiddler showing that a "new" FedAuth
    cookie is set.

    Have a look here: http://forums.adobe.com/message/2186661#2186661
    Ben

  • To JDev expert. Need help with JSP, pls.

    Hi all.
    I have a strange problem. Only one JSP in my entire application fails to appear when I debug with local (embeded) OC4J. These are the first lines of the exception message:
    Exception:
    java.lang.NoClassDefFoundError: _addFile
    java.lang.Class java.lang.ClassLoader.defineClass0(java.lang.String, byte[], int, int, java.security.ProtectionDomain)
    native code
    The class _addFile is generated from addFile.jsp and is available in the output directory. Production application doesn't display the same behavior, this only happens in DEBUG mode in JDeveloper.
    OS: win2000
    JDK: 1.3.1
    JDevaloper is 9.0.2.. something.
    Struts
    Thanks people.

    1) The main page should have a <f:view> tag which wraps any of the JSF tags.
    2) The include page should have a <f:subview> tag with an unique ID (thus, this should not be placed in the main page!).
    3) The UIInput and UICommand elements have to be placed in a <h:form> tag.
    Considering those facts, your structure should rather look like:
    main.jsp<f:view>
        <jsp:include page="menu.jsp" />
    </f:view>menu.jsp<f:subview id="menu">
        <h:form>
            <h:commandLink value="Salir" action="salir" />
        </h:form>
    </f:subview>

  • Need help with jsp that uses a java program

    Hi, sorry for my english but i am italian.
    I've got a problem: i use java builder and i have a java program(this program has got a main and includes libraries) about graphich on tree, this program visualizes these trees and makes operations on these.
    Now i must use JSP so that a client can see this program (this program is on the server) and can interact with it.
    I can't use applet.I must use only jsp.
    Who can tell me how can i start???
    Thanks.

    If you are not allowed to use an applet, then you are limited by what can be achieved with HTML in a browser.
    You would have to figure out how to render it with HTML, then program your jsp to write out this html programatically.

  • Need help with a CUP workflow scenario

    Dear Experts,
    I'm sure it is not just me encountered this required scenario (or something similar).  I would like some pointers how to transcript it to a CUP workflow:
    Application admin logs a provisioning request.
    Security creates a user account and provisioning the roles on QA.
    Application admin ensures that the user undergoes training on QA.
    Upon passing the training, security replicates the user account and role assignment on PRD.
    The esoteric solution would be one request, two paths, two provisions. Is it somehow possible?
    Client doesn't use CUA.
    The security requirements are higher on PRD, where SoD handling will be required.
    Kind Regards,
    Vit Vesely
    Edited by: Vit Vesely on Apr 29, 2010 3:29 PM

    Hii Vit,
    If you want to have two paths for a single request than only possible solution will be to create role based initiator's.
    Role Based Initiatator's can be created by following Configuration -> Workflow-> Initiator-> create.
    Here Select the attibute as roles.
    For example create two Initiator
    Intiator1 -> having Role1 attribute -> Path1
    Intiator2 -> having Role2 attribute -> Path2
    Now in the request if u select Role 1 & Role 2, than request will follow the parallel path ( path1 & path 2)
    Else it is not possible to have parrallel workflow path for any other attribute.
    In Case you can have provisioning at end of the paths as well as end of the request.
    Kind Regards,
    Srinivasan

  • Need help with session sharing in WebCenter Portal

    Hi, How can I share session between a WebCenter Portal application and the portlets it is consuming?
    Basically I want this for authentication. In the portal framework application, I'm setting a user object in the session, How can I get the object in a portlet?
    Regards,
    Navaneet

    IN the second page, you have to make sure that the session
    has been started.
    Put this at the very top of the page -
    <?php if (!isset($_SESSION)) session_start(); ?>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Alidad" <[email protected]> wrote in
    message
    news:g184i4$jgf$[email protected]..
    > have created a login page (php/mysql) with username and
    password boxes.
    > when
    > the form is submitted the mainpage loads up.
    >
    > i want the main page to be specific to that user, so i
    want their name to
    > appear in the first line. eg.. Welcome back 'David'
    >
    > I read a tutorial in the past that tought me to send the
    users id in the
    > URL
    > and then create a record set on the mainpage that was
    filtered by the URL
    > parameter.
    >
    > I have forgotten how to do this and the tutorial is no
    longer available on
    > Adobe's site.
    >
    > I tried that with
    > $_SESSION['MM_Username'] = $loginUsername; \\ in first
    page then
    > echo $_SESSION["MM_username"]; \\in second page, but
    > the
    > problem is that is not showing user name.
    >
    > i need help with that please!
    >
    > can anyone tell me how to do this? Thanks in advance,
    >
    > AM
    >

  • Need help with session using dreamweaver

    have created a login page (php/mysql) with username and
    password boxes. when the form is submitted the mainpage loads up.
    i want the main page to be specific to that user, so i want
    their name to appear in the first line. eg.. Welcome back 'David'
    I read a tutorial in the past that tought me to send the
    users id in the URL and then create a record set on the mainpage
    that was filtered by the URL parameter.
    I have forgotten how to do this and the tutorial is no longer
    available on Adobe's site.
    I tried that with
    $_SESSION['MM_Username'] = $loginUsername; \\ in first page
    then
    echo $_SESSION["MM_username"]; \\in second page, but the
    problem is that is not showing user name.
    i need help with that please!
    can anyone tell me how to do this? Thanks in advance,
    AM

    IN the second page, you have to make sure that the session
    has been started.
    Put this at the very top of the page -
    <?php if (!isset($_SESSION)) session_start(); ?>
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Alidad" <[email protected]> wrote in
    message
    news:g184i4$jgf$[email protected]..
    > have created a login page (php/mysql) with username and
    password boxes.
    > when
    > the form is submitted the mainpage loads up.
    >
    > i want the main page to be specific to that user, so i
    want their name to
    > appear in the first line. eg.. Welcome back 'David'
    >
    > I read a tutorial in the past that tought me to send the
    users id in the
    > URL
    > and then create a record set on the mainpage that was
    filtered by the URL
    > parameter.
    >
    > I have forgotten how to do this and the tutorial is no
    longer available on
    > Adobe's site.
    >
    > I tried that with
    > $_SESSION['MM_Username'] = $loginUsername; \\ in first
    page then
    > echo $_SESSION["MM_username"]; \\in second page, but
    > the
    > problem is that is not showing user name.
    >
    > i need help with that please!
    >
    > can anyone tell me how to do this? Thanks in advance,
    >
    > AM
    >

  • Help with JSP/Weblogic/Tomcat Discrepencies

    Hi,
              I have something very strange happening. I recently did some JSP stuff on
              WLS60SP1 and all went quite well. I then took those same JSP pages and tried
              them out on the latest release of TOMCAT. I was really impressed that
              everything seemed to be completely transparent and working just fine until
              the following situation:
              When I reference, within a JSP page, an object that has previously been
              added to the request scope that has just been created, but not messed with
              in anyway...meaning all the attributes in this bean have their default
              values set...and they are all Strings with the exception of one Integer
              using this format:
              <%= custVal.getCustomerNumber() %>
              - In WLS, what shows in the text field on the form is nothing, because
              customer number in the custVal object is null (default for a String)..this
              is what I want.
              - In Tomcat, what shows it the word "null".
              ...here is the weird part, by changing from scriptlet references to the
              <jsp:getProperty....> format such as....
              <jsp:getProperty name="custVal" property="customerNumber"/>
              -In WLS, he is still a happy camper and works just fine regardless of how I
              reference the bean
              -In Tomcat, I also get the correct results that I want.
              So, unlike most postings, I found out how to fix it but I would like to know
              why...any ideas?
              Thanks in advance,
              Paul Reed
              www.jacksonreed.com
              object training and mentoring
              Jackson-Reed, Inc. 888-598-8615
              www.jacksonreed.com
              Author of "Developing Applications with Visual Basic and UML"
              http://www.amazon.com/exec/obidos/ASIN/0201615797/jackreedinc/104-0083168-31
              95939
              Author of "Developing Applications with Java
              

              Try http://localhost:7001/HelloWorld.jsp
              "b. patel" <[email protected]> wrote:
              >
              >I need help with running a simple JSP. I created a WLS domain using the
              >WebLogic
              >Configuration Wizard. I am trying to access HelloWorld.jsp which is
              >located under
              >C:\bea\user_projects\wlsdomainex\applications\DefaultWebApp.
              >I type
              >http://localhost:7001/DefaultWebApp/HelloWorld.jsp. I get 404 - Page
              >Not Found
              >Error. The weblogic server starts Succesfully. I am trying this in Win
              >2K environment.
              >
              >I am new to WebLogic. Thanks for your Help in advance.
              >
              

Maybe you are looking for

  • Migrating portal from 10g to 11g

    Hi, We are in the process of upgrading oracle mid tier from 10gAS to OFMW 11g and also migrating it from Solaris to Linux. With regard the portal migration from OAS 10g to OFMW 11g 1) Is it possible to migrate portal objects from 10g (solaris) to a n

  • Help Needed For Report creation

    Hi i am new to flex and i want to know that how we can create the simple grid/freeform reports in flex 2. Please help me. Jayesh

  • Hide columns with internal ID's in af:table using af:panelcollection

    Hi, I use a af:table within a af:panelcollection based on view object. The default menu of panelcollection "View --> Columns --> Show more columns ..." allow the end-user to add all columns of the view object. The view object contains internal ID's (

  • Is there any time out in a Data Federation connection?

    Hi, I have a multi source universe on SQL Server and BW, the query against SQL Server times out exactly after 10 mins, the time out setting in the universe connection and database have been bumped to 30 min but my query still times out after 10 mins,

  • How to identify line and paragraph breaks on word enumeration

    Hi, I am using PDWordFinder to extract text from the PDF document and then enumerate each word. I need to identify the line breaks and replace them with white space and paragraph breaks should be replaced with "/r". I use the following to identify th