File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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: 2264
    
    3

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
 
 
subject: Error in Running Servlet from Client Side