aspose file tools*
The moose likes Distributed Java and the fly likes Error in Running Servlet from Client Side Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Distributed Java
Reply locked New topic
Author

Error in Running Servlet from Client Side

Dishant Verma
Greenhorn

Joined: Feb 09, 2012
Posts: 27

when I run my servlet from client side, I get the output on GlassFish 2.1 as:

"IOP01210246: (BAD_OPERATION) Bad operation from _invoke: fullSave"
org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 246 completed: No



Can someone help me in fixing this...?

Thanks in advance...
Dishant Verma
Greenhorn

Joined: Feb 09, 2012
Posts: 27

from a Servlet I am invoking a remote interface:
RemoteBean rb= (remoteBean)ic.lookup("BeanName");
rb.fullSave(demoDto);
if(demoDto != null )
{
out.println("<h3> Name :" +demoDto.getName() +"<br>");
out.println("Row Updted By :" +demoDto.getRowUpdatedBy()+"<br>");
out.println("Row Created Date :" +demoDto.getRowCreatedDate()+"<br>");
out.println("Row Status :" +demoDto.getRowStatus()+"<br>");
}

RemoteBean Interface:
public void fullSave(DemoDTO demoDto);

RemoteBean Implementation:
public void fullSave(DemoDTO demoDto)
{
Demo demo = null;
Mapper mapper = DozerBeanMapperSingletonWrapper.getInstance();
mapper.map(demoDto, demo);

DemoDao dd = new DemoDao();
dd.fullSave(demo);
}

DemoDao Interface:
void fullSave(Demo demo);

DemoDao Implementation:
{
EntityManager entityManager = null;
System.out.println("-------------Saving Workpackage-------------");
entityManager = JPAEntityManagerProvider.getEntityManager();
entityManager.getTransaction().begin();
entityManager.persist(workpackage);
entityManager.getTransaction().rollback();
System.out.println("-------------Transaction has been aborted-------------");
}


Now when I run Servlet:


I get the output on GlassFish 2.1 as:

"IOP01210246: (BAD_OPERATION) Bad operation from _invoke: fullSave"
org.omg.CORBA.BAD_OPERATION: vmcid: SUN minor code: 246 completed: No
Roberto Perillo
Bartender

Joined: Dec 28, 2007
Posts: 2246

Dishant, you didn't need to create a new topic for this one.

Let's continue this discussion here.


Cheers, Bob "John Lennon" Perillo
SCJP, SCWCD, SCJD, SCBCD - Daileon: A Tool for Enabling Domain Annotations
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error in Running Servlet from Client Side
 
Similar Threads
Error in Running Servlet from Client Side
something related to request.getAttribute("user") in servlet
remote JFileChooser or similar?
Error in Running Servlet from Client Side
JSP-is it required?