0% found this document useful (0 votes)
246 views

Java Excepcion

An error occurred when committing a transaction in OracleConnection.php on line 157. The error was ORA-00018: maximum number of sessions exceeded. This occurred when executing a prepared statement in Factory.php which led to checking if a user's account was locked in PreguntaController.php during the login process in SiteController.php.

Uploaded by

hildelen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
246 views

Java Excepcion

An error occurred when committing a transaction in OracleConnection.php on line 157. The error was ORA-00018: maximum number of sessions exceeded. This occurred when executing a prepared statement in Factory.php which led to checking if a user's account was locked in PreguntaController.php during the login process in SiteController.php.

Uploaded by

hildelen
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 7

CustomException

ocicommit(): ORA-00018: maximum number of sessions exceeded

/opt/www/pattern_produccion/OracleConnection.php(157)

145 $this->EndProcess();
146 $this->Parameters = array();
147 return $Result;
148 }
149
150 protected function BeginTrans()
151 {
152
153 }
154
155 protected function CommitTrans()
156 {
157 ocicommit($this->Conn);
158 }
159
160 protected function RollBackTrans()
161 {
162 ocirollback($this->Conn);
163 }
164
165 public function __construct($pDSN = false)
166 {
167 parent::__construct();
168 if (is_object($pDSN))
169 $this->DSN = $pDSN;

Stack Trace
#0 unknown(0): PatternErrorHandler(2, "ocicommit(): ORA-00018: maximum number of sessions exceeded", "/opt/www/pattern_produccion

#1 –
/opt/www/pattern_produccion/OracleConnection.php(157): ocicommit(resource)

152
153 }
154
155 protected function CommitTrans()
156 {
157 ocicommit($this->Conn);
158 }
159
160 protected function RollBackTrans()
161 {
162 ocirollback($this->Conn);


/opt/www/pattern_produccion/DBConnection.php(91): OracleConnection->CommitTrans()

86 $this->Transaction = false;
87 }
88 else
89 if ($this->Transaction != $this->InitiatedState)
90 {
91 $this->CommitTrans();
92 $this->Close();
93 $this->Transaction = false;
94 }
95 }
96
#2


/opt/www/pattern_produccion/OracleConnection.php(145): DBConnection->EndProcess()

140 {
141 $pObject = func_get_arg(0);
142 $pMethod = func_get_arg(1);
143 $Result = parent::ExecutePrepared($pObject, $pMethod);
144 }
145 $this->EndProcess();
146 $this->Parameters = array();
147 return $Result;
148 }
149
150 protected function BeginTrans()
#3

#4 –
/opt/www/pattern_produccion/DBConnection.php(269): OracleConnection->ExecutePrepared()

264 public function Execute( $arg0 = "", $arg1 = "", $arg2 = "" )
265 {
266 switch (func_num_args())
267 {
268 case 0:
269 return $this->ExecutePrepared();
270 break;
271 case 1:
272 return $this->ExecuteThisQuery($arg0);
273 break;
274 case 2:


/opt/www/pattern_produccion/Factory.php(57): DBConnection->Execute()

52 {
53
54 switch (func_num_args())
55 {
56 case 0:
57 return $this->Conn->Execute();
58 break;
59 case 1:
60 return $this->Conn->Execute($arg0);
61 break;
62 case 2:
#5


/opt/www/html/tramites/protected/modules/pregunta/controllers/oracle_oci_pregunta.php(65): Factory->Execute()

60 }
61
62 public function countErrores($idRegistroUsuario){
63 //
64 $this->prepare("SELECT identidad.fnrespuestas($idRegistroUsuario) AS erro
65 $res = $this->Execute();
66 return $res[0];
67 }
68
69 public function Convert($row) { return $row; }
70
#6


/opt/www/html/tramites/protected/modules/pregunta/controllers/PreguntaController.php(323): oracle_oci_pregunta->countErrores(23844

318 }
319
320 public function isLocked($idUsuarioRegistro){
321 $oci_pregunta = new oracle_oci_pregunta;
322 // print_r($idUsuarioRegistro);exit;
323 $totalErrores = $oci_pregunta->countErrores((int)$idUsuarioRegistro)
324 if( $totalErrores->ERROR >= 3 ){
325 Yii::app()->user->logout();
326 return true;
327 }
328 else{
#7

#8 –
/opt/www/html/tramites/protected/controllers/SiteController.php(121): PreguntaController->isLocked("23844909")

116
117
118 if ($model->validate() && $model->login()) {
119 if($this->validarCaptcha($model)){
120
121 if (!PreguntaController::isLocked(Yii::app()->user->usuario[0]->
122
123 $user = Yii::app()->user->usuario[0];
124 // print_r($user->IDPERSONA);exit;
125 // $ora = new oracle_oci_comun();
126 // $result = $ora->buscarFlujoAlterno($user->IDPERSONA);


/opt/www/html/yii/framework/web/actions/CInlineAction.php(49): SiteController->actionLogin()

44 $controller=$this->getController();
45 $method=new ReflectionMethod($controller, $methodName);
46 if($method->getNumberOfParameters()>0)
47 return $this->runWithParamsInternal($controller, $method, $params);
48 else
49 return $controller->$methodName();
50 }
51
52 }
#9


/opt/www/html/yii/framework/web/CController.php(308): CInlineAction->runWithParams(array("r" => "site/login"))

303 {
304 $priorAction=$this->_action;
305 $this->_action=$action;
306 if($this->beforeAction($action))
307 {
308 if($action->runWithParams($this->getActionParams())===false)
309 $this->invalidActionParams($action);
310 else
311 $this->afterAction($action);
312 }
313 $this->_action=$priorAction;
#10

#11 –
/opt/www/html/yii/framework/web/CController.php(286): CController->runAction(CInlineAction)

281 * @see runAction


282 */
283 public function runActionWithFilters($action,$filters)
284 {
285 if(empty($filters))
286 $this->runAction($action);
287 else
288 {
289 $priorAction=$this->_action;
290 $this->_action=$action;
291 CFilterChain::create($this,$action,$filters)->run();


/opt/www/html/yii/framework/web/CController.php(265): CController->runActionWithFilters(CInlineAction, array())

260 {
261 if(($parent=$this->getModule())===null)
262 $parent=Yii::app();
263 if($parent->beforeControllerAction($this,$action))
264 {
265 $this->runActionWithFilters($action,$this->filters());
266 $parent->afterControllerAction($this,$action);
267 }
268 }
269 else
270 $this->missingAction($actionID);
#12


/opt/www/html/yii/framework/web/CWebApplication.php(282): CController->run("login")

277 {
278 list($controller,$actionID)=$ca;
279 $oldController=$this->_controller;
280 $this->_controller=$controller;
281 $controller->init();
282 $controller->run($actionID);
283 $this->_controller=$oldController;
284 }
285 else
286 throw new CHttpException(404,Yii::t('yii','Unable to resolve the req
287 array('{route}'=>$route===''?$this->defaultController:$route)));
#13

#14 –
/opt/www/html/yii/framework/web/CWebApplication.php(141): CWebApplication->runController("site/login")

136 foreach(array_splice($this->catchAllRequest,1) as $name=>$value)


137 $_GET[$name]=$value;
138 }
139 else
140 $route=$this->getUrlManager()->parseUrl($this->getRequest());
141 $this->runController($route);
142 }
143
144 /**
145 * Registers the core application components.
146 * This method overrides the parent implementation by registering additional


/opt/www/html/yii/framework/base/CApplication.php(180): CWebApplication->processRequest()

175 public function run()


176 {
177 if($this->hasEventHandler('onBeginRequest'))
178 $this->onBeginRequest(new CEvent($this));
179 register_shutdown_function(array($this,'end'),0,false);
180 $this->processRequest();
181 if($this->hasEventHandler('onEndRequest'))
182 $this->onEndRequest(new CEvent($this));
183 }
184
185 /**
#15


/opt/www/html/tramites/index.php(13): CApplication->run()

08 defined('YII_DEBUG') or define('YII_DEBUG', true);


09 // specify how many levels of call stack should be shown in each log message
10 defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL', 3);
11
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
#16

PHP notice
Undefined index: 00604

/opt/www/pattern_produccion/OracleException.php(25)

13 }
14
15 private $ErrorKeys = array();
16
17 public function __toString()
18 {
19 $msg = $this->getMessage();
20 $val = strpos($msg, "ORA-");
21 $Key = "";
22 if ($val!==false)
23 $Key = substr($msg, $val+4, 5);
24 if ($Key)
25 return $this->ErrorKeys[$Key];
26 return parent::__toString();
27 }
28 }
29
30 ?>

Stack Trace

/opt/www/html/yii/framework/base/CApplication.php(716): OracleException->__toString()

711
712 $category='exception.'.get_class($exception);
713 if($exception instanceof CHttpException)
714 $category.='.'.$exception->statusCode;
715 // php <5.2 doesn't support string conversion auto-magically
716 $message=$exception->__toString();
717 if(isset($_SERVER['REQUEST_URI']))
718 $message.="\nREQUEST_URI=".$_SERVER['REQUEST_URI'];
719 if(isset($_SERVER['HTTP_REFERER']))
720 $message.="\nHTTP_REFERER=".$_SERVER['HTTP_REFERER'];
#0 721 $message.="\n---";

#1 unknown(0): CApplication->handleException(OracleException)

You might also like