Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8707755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T03:56:59+00:00 2026-06-13T03:56:59+00:00

I am trying to execute the simplest of tasks and that is to submit

  • 0

I am trying to execute the simplest of tasks and that is to submit a form to a Java Servlet using XForms (orbeon).

<xforms:submission id="login-submit" ref="instance('login-instance')" resource="/Login/login.do" method="urlencoded-post" mediatype="application/xml" replace="all">

When I click the Submit button I get :

Type    class java.lang.NullPointerException
Message null
Location    oxf:/ops/xforms/xforms-server-submit.xpl
Line    73
Column  51
Stack Trace 

java.lang.NullPointerException
..

Along with large stacktrace. I know the servlet works as using a standard HTML form logs me in to the site. I’ve spent a long time on this trying to get it to work and at a loss. I’m using Orbeon v3.9.1 PE and an evaluation license, Tomcat 7.0.32, and v1.7.0_07 of the JRE.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T03:57:00+00:00Added an answer on June 13, 2026 at 3:57 am

    I see some parameters are missing. See the below example which you can understand and accordingly use your parameter values.

    <xforms:submission id="submission-id" ref="instance('form-instance')"
            action="http://localhost:8080/mywebapp/servlets/servlet/TestServlet" 
            method="post" replace="none"
            validate="false">
        <xforms:message ev:event="xforms-submit-done" level="modal" value="'Submission Successful'"/>
        <xforms:message ev:event="xforms-submit-error" level="modal" value="'Submission failed'"/>
    </xforms:submission>
    

    Test the url given in action first to see whether the servlet is configured correctly or not.

    You can test your submission functionality and it is given here. You can add the xforms-submit-done and xforms-submit-error events to check which event is getting thrown.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to execute powershell script in my C# code. Using .NET Framework v. 4.0.30319
I`m trying to execute linux commant 'cat' from java code, but it does not
Here's a little snippet that I'm trying execute: >>> from datetime import * >>>
<?php $output=shell_exec('gcc prog.c'); echo $output; ?> I'm trying execute a c program using php
Trying to execute shell command in background using pythons commands module >>>import commands >>>output
Am trying to execute ssis package using dtexec utility from c# app(Creating New Process,
I'm trying to execute a search in SharePoint 2010 with the FullTextSqlQuery class: using
Im trying to execute a scalar valued function in an insert query. Im using
I am trying to execute a simple program in PHP with Mysql using IF
I'm trying to execute a command within an application. I'm doing it using a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.