[jboss-user] [JBoss jBPM] - Re: WebApp Development

Viegas do-not-reply at jboss.com
Mon Jul 24 09:48:08 EDT 2006


Ok here goes, the console 
  | 14:40:00,163 DEBUG [CommandExecutorThread] waiting for more messages
  | 14:40:00,163 DEBUG [StaticNotifier] going to wait for (CMD_EXECUTOR, java.lang.Object at 12d9844)
  | 14:40:02,944 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
  | 14:40:02,944 DEBUG [JbpmContext] creating JbpmContext
  | 14:40:02,944 INFO  [STDOUT] Servelet
  | 14:40:02,944 INFO  [STDOUT] acþÒo verAccao
  | 14:40:02,944 INFO  [STDOUT] opcao 274
  | 14:40:02,944 DEBUG [HomeBean]  entrou no homeBean
  | 14:40:02,944 DEBUG [DbPersistenceServiceFactory] creating persistence service
  | 14:40:02,944 DEBUG [DbPersistenceService] creating hibernate session
  | 14:40:02,944 DEBUG [DbPersistenceService] beginning hibernate transaction
  | 14:40:02,944 DEBUG [HomeBean] getTaskInstances(ernie)
  | 14:40:03,038 DEBUG [HomeBean] selectTaskInstance(274)
  | 14:40:03,085 DEBUG [HomeBean] TaskInstance[Send Updated Order]
  | 14:40:03,444 INFO  [STDOUT] Controlador nao nulo
  | 14:40:04,022 DEBUG [Converters] adding converter 'D', 'org.jbpm.context.exe.converter.DoubleToStringConverter'
  | 14:40:04,038 DEBUG [Converters] adding converter 'C', 'org.jbpm.context.exe.converter.CharacterToStringConverter'
  | 14:40:04,038 DEBUG [Converters] adding converter 'B', 'org.jbpm.context.exe.converter.BooleanToStringConverter'
  | 14:40:04,038 DEBUG [Converters] adding converter 'Y', 'org.jbpm.context.exe.converter.BytesToByteArrayConverter'
  | 14:40:04,038 DEBUG [Converters] adding converter 'A', 'org.jbpm.context.exe.converter.DateToLongConverter'
  | 14:40:04,038 DEBUG [Converters] adding converter 'R', 'org.jbpm.context.exe.converter.SerializableToByteArrayConverter'
  | 14:40:04,054 DEBUG [Converters] adding converter 'I', 'org.jbpm.context.exe.converter.IntegerToLongConverter'
  | 14:40:04,054 DEBUG [Converters] adding converter 'H', 'org.jbpm.context.exe.converter.ShortToLongConverter'
  | 14:40:04,069 DEBUG [Converters] adding converter 'G', 'org.jbpm.context.exe.converter.FloatToDoubleConverter'
  | 14:40:04,069 DEBUG [Converters] adding converter 'F', 'org.jbpm.context.exe.converter.FloatToStringConverter'
  | 14:40:04,069 DEBUG [Converters] adding converter 'E', 'org.jbpm.context.exe.converter.ByteToLongConverter'
  | 14:40:04,476 DEBUG [TaskBean] initialized availableTransitions null
  | 14:40:04,694 DEBUG [JbpmContextInfo] creating jbpm context with service factories '[message, scheduler, logging, persistence, authentication]'
  | 14:40:04,694 DEBUG [JbpmContext] creating JbpmContext
  | 14:40:04,694 DEBUG [DbPersistenceServiceFactory] creating persistence service
  | 14:40:04,694 DEBUG [DbPersistenceService] creating hibernate session
  | 14:40:04,694 DEBUG [DbPersistenceService] beginning hibernate transaction
  | 14:40:04,694 DEBUG [SchedulerThread] checking for timers
  | 14:40:04,694 DEBUG [JbpmContext] closing JbpmContext
  | 14:40:04,694 DEBUG [Services] closing service 'persistence': org.jbpm.persistence.db.DbPersistenceService at 1816b6e
  |  

and here goes the servlet


  | private void processarAccao(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException
  | 
  |       {
  | 
  |  
  | 
  |             ServletContext context = getServletContext();
  | 
  |             HttpSession session = req.getSession(true);
  | 
  |  
  | 
  |             try
  | 
  |             {
  | 
  |                   System.out.println("Servelet");
  | 
  |                   System.out.println("acção " + req.getParameter("accao"));
  | 
  |                   System.out.println("opcao " + req.getParameter("opcao"));
  | 
  |                   if (req.getParameter("accao").equals("verAccao"))
  | 
  |                   {
  | 
  |                         String id = req.getParameter("opcao");
  | 
  |                         HomeBean hb = new beans.HomeBean(session);
  | 
  |                         List lista = hb.getTaskInstances("ernie");
  | 
  |                         hb.selectTaskInstance(Long.valueOf(id));
  | 
  |                   } else
  | 
  |                   {
  | 
  |                         System.out.println("Falhou");
  | 
  |                   }
  | 
  |             } catch (Exception e)
  | 
  |             {
  | 
  |                   System.out.println(e.getMessage());
  | 
  |                   System.out.println("MP----------");
  | 
  |                   System.out.println(e.getCause());
  | 
  |                   System.out.println("MP----------");
  | 
  |                   e.printStackTrace();
  | 
  |             }
  | 
  |       }

It doesnt return any error, just goes to a blank page, I tried to reproduce the same thing thats in the example.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3960377#3960377

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3960377




More information about the jboss-user mailing list