Fórumok
Source Not Found
anand gopalan, módosítva 11 év-val korábban
Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
when I put the breakpoint in below code in EmployeePortlet.java
com.bc.od.model.Employee empDetails = EmployeeLocalServiceUtil.findByEmailAddress(user.getEmailAddress());
it showing Source not Fount, see the screenshot: Do I need to add the Entire Project or what I need to do? - Please help me.
com.bc.od.model.Employee empDetails = EmployeeLocalServiceUtil.findByEmailAddress(user.getEmailAddress());
it showing Source not Fount, see the screenshot: Do I need to add the Entire Project or what I need to do? - Please help me.
Mellékletek:
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Edit source lookup path --> Add the entire project
Bart Simpson, módosítva 11 év-val korábban
RE: Source Not Found
Liferay Master Bejegyzések: 522 Csatlakozás dátuma: 2011.08.29. Legújabb bejegyzések
The image you indicated show the ThreadPoolExcutor, to get rid of this, uncheck "Suspend on Uncaught Exception" box in you eclipse debug preferences.
People should at least look at the image before replying
Hope that helps.
People should at least look at the image before replying
Hope that helps.
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Bart/Anand,
Sorry for the confusion.
@Anand Please do my step if the same error occurs for a class inside the Employee project.
@Bart Thanks for the preferences tip. Do you know why its suspending in ThreadPoolExecutor ?
Thanks,
Siby
Sorry for the confusion.
@Anand Please do my step if the same error occurs for a class inside the Employee project.
@Bart Thanks for the preferences tip. Do you know why its suspending in ThreadPoolExecutor ?
Thanks,
Siby
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
sorry Siby I didn't understand.
@Anand Please do my step if the same error occurs for a class inside the Employee project.
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Anand,
Your current open window was ThreadPoolExecutor class.
So you can first do the steps mentioned by Bart.
If you still get 'Source not found' for any class inside your portlet, add your project to the source as well.
Thanks,
Siby
Your current open window was ThreadPoolExecutor class.
So you can first do the steps mentioned by Bart.
If you still get 'Source not found' for any class inside your portlet, add your project to the source as well.
Thanks,
Siby
Vishal Panchal, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 289 Csatlakozás dátuma: 2012.05.20. Legújabb bejegyzésekanand gopalan:
when I put the breakpoint in below code in EmployeePortlet.java
com.bc.od.model.Employee empDetails = EmployeeLocalServiceUtil.findByEmailAddress(user.getEmailAddress());
it showing Source not Fount, see the screenshot: Do I need to add the Entire Project or what I need to do? - Please help me.
Hi anand ,
As Bart Simpson told.
You should uncheck Suspend execution on uncaught exceptions.
For follow below steps.
In your eclipse,
1) Goto Windo w menu
2) choose preferences
3) than select debug under Java from left
4) un check Suspend execution on uncaught exceptions.
5) click Ok.
Thats it..!
for more details check the snap shot attached.
Thanks&Regards,
Vishal R. Panchal
Mellékletek:
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Thank you so much Vishal for your effect and others. Now I didn't get that error.
I put the break point below line
com.bc.od.model.Employee empDetails = EmployeeLocalServiceUtil.findByEmailAddress(user.getEmailAddress());
but it is not break any where,
I am getting error in the console
Inside do view method
Inside do view() try
06:30:28,760 WARN [EmployeePersistenceImpl:479] No Employee exists with the key {emailaddress=test@liferay.com}
com.bc.od.NoSuchEmployeeException: No Employee exists with the key {emailaddress=test@liferay.com}
at com.bc.od.service.persistence.EmployeePersistenceImpl.findByEmailAddress(EmployeePersistenceImpl.java:482)
Vishal, siby and other do you have any idea. Please help me.
I put the break point below line
com.bc.od.model.Employee empDetails = EmployeeLocalServiceUtil.findByEmailAddress(user.getEmailAddress());
but it is not break any where,
I am getting error in the console
Inside do view method
Inside do view() try
06:30:28,760 WARN [EmployeePersistenceImpl:479] No Employee exists with the key {emailaddress=test@liferay.com}
com.bc.od.NoSuchEmployeeException: No Employee exists with the key {emailaddress=test@liferay.com}
at com.bc.od.service.persistence.EmployeePersistenceImpl.findByEmailAddress(EmployeePersistenceImpl.java:482)
Vishal, siby and other do you have any idea. Please help me.
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
and also I am getting this error
com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: java.lang.IllegalStateException: The com.bc.od.model.impl.EmployeeImpl Cache is not alive.
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:193)
Is it help to identify the error?
com.liferay.portal.kernel.exception.SystemException: com.liferay.portal.kernel.dao.orm.ORMException: java.lang.IllegalStateException: The com.bc.od.model.impl.EmployeeImpl Cache is not alive.
at com.liferay.portal.service.persistence.impl.BasePersistenceImpl.processException(BasePersistenceImpl.java:193)
Is it help to identify the error?
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello All,
After i add the source folder and also again I am getting same error."Source not found"
See the screenshot I have add the source Folder.
vishal,siby and Bart any idea.
After i add the source folder and also again I am getting same error."Source not found"
See the screenshot I have add the source Folder.
vishal,siby and Bart any idea.
Mellékletek:
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
After Press F6 for debugging code by code. I getting below error(see the screenshot ). all jar files are there in
liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\lib
liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\lib\ext.
Let me know any jar file's are missing.
or
I want place any .jar fiels in eclipse in myportlet - Workspace lib folder i mean( \liferay-plugins-sdk-6.1.0-ce-ga1\portlets\MyEmployeLeave-portlet\docroot\WEB-INF\lib )
Please clarify.
liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\lib
liferay-portal-6.1.0-ce-ga1\tomcat-7.0.23\lib\ext.
Let me know any jar file's are missing.
or
I want place any .jar fiels in eclipse in myportlet - Workspace lib folder i mean( \liferay-plugins-sdk-6.1.0-ce-ga1\portlets\MyEmployeLeave-portlet\docroot\WEB-INF\lib )
Please clarify.
Mellékletek:
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Siby,Vishal,Bart any idea!!!!!!!!!!!!!
Priyanka Dhingra, módosítva 11 év-val korábban
RE: Source Not Found
Liferay Master Bejegyzések: 501 Csatlakozás dátuma: 2011.12.20. Legújabb bejegyzések
As i see theres no error in the code
and in your process too
you try reindexing the database once
control panel->server Administration
try clearing cache and all
if you still face the problem
better start afresh again
with a different entity name and model class
and in your process too
you try reindexing the database once
control panel->server Administration
try clearing cache and all
if you still face the problem
better start afresh again
with a different entity name and model class
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Anand,
The way you are debugging is wrong. Your code flow is as follows :
1. You call EmployeeLocalServiceUtil.findByEmailAddress(user.getEmailAddress())
2. This internally invokes EmployeePersistenceImpl.findByEmailAddress()
3. This will call EmployeePersistenceImpl.fetchByEmailAddress()
You are putting your breakpoint after findByEmailAddress() code. This will not stop the internal execution.
Please put a breakpoint at step 2 and 3. Go step-by-step.
Thanks,
Siby
The way you are debugging is wrong. Your code flow is as follows :
1. You call EmployeeLocalServiceUtil.findByEmailAddress(user.getEmailAddress())
2. This internally invokes EmployeePersistenceImpl.findByEmailAddress()
3. This will call EmployeePersistenceImpl.fetchByEmailAddress()
You are putting your breakpoint after findByEmailAddress() code. This will not stop the internal execution.
Please put a breakpoint at step 2 and 3. Go step-by-step.
Thanks,
Siby
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Siby,
i tried but again same error source not found, i am literally tired up.
what to do siby......... some where I couln'd catch that.... error.
i tried but again same error source not found, i am literally tired up.
what to do siby......... some where I couln'd catch that.... error.
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Anand,
Which source not found are you talking about ?
You said you pressed F6 --> The exception was thrown by EmployeePersistenceImpl --> This invoked the JasperException (as code is in JSP page).
You will see source not found for jasperException as you dont have jasper source code (This is not included in Liferay).
Either you :
1. Start over ---> Keep all your code in your portlet class --> Invoke it using a button from page --> See result.
2. Put breakpoints starting from findByEmailAddress of EmployeeLocalServiceUtil.java class
(Attach some screenshot)
Thanks,
Siby
Which source not found are you talking about ?
You said you pressed F6 --> The exception was thrown by EmployeePersistenceImpl --> This invoked the JasperException (as code is in JSP page).
You will see source not found for jasperException as you dont have jasper source code (This is not included in Liferay).
Either you :
1. Start over ---> Keep all your code in your portlet class --> Invoke it using a button from page --> See result.
2. Put breakpoints starting from findByEmailAddress of EmployeeLocalServiceUtil.java class
(Attach some screenshot)
Thanks,
Siby
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Siby,
I have attached the word Document(screenshot). It will help you to what exactly I have done.
Please let me know where I am doing the mistake.
its flow issue,or i missed to implement the code.
Regards
Anand
I have attached the word Document(screenshot). It will help you to what exactly I have done.
Please let me know where I am doing the mistake.
its flow issue,or i missed to implement the code.
Regards
Anand
Mellékletek:
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Anand,
Can you please attach your portlet so that it will be easy to analyse.
Thanks,
Siby
Can you please attach your portlet so that it will be easy to analyse.
Thanks,
Siby
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Siby,
Here I have attahced the MyEmployeeLeave-portlet.
Here I have attahced the MyEmployeeLeave-portlet.
Mellékletek:
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Anand,
In your service.xml you dont have primary="true" attribute for empId.. Can you please add like this and build services again:
Thanks,
Siby
In your service.xml you dont have primary="true" attribute for empId.. Can you please add like this and build services again:
<column name="empId" type="long" primary="true"></column>
Thanks,
Siby
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
thank you vishal for effort. I will put into eclipse and i will check wheather it work in my system.
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hitoshi Ozawa, módosítva 11 év-val korábban
RE: Source Not Found
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
What's showing in the error console? Probably about missing build classes because you probably haven't setup your eclipse environment correctly.
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Hitoshi,
now how can I fix this eclipse enviornment issue.
My enviornment:
Liferay6.1.0 CE
Eclipse-Version: Helios Service Release 2
Lliferay-plugins-sdk-6.1.0-ce-ga1
Please tell me what I have to do.
now how can I fix this eclipse enviornment issue.
My enviornment:
Liferay6.1.0 CE
Eclipse-Version: Helios Service Release 2
Lliferay-plugins-sdk-6.1.0-ce-ga1
Please tell me what I have to do.
Hitoshi Ozawa, módosítva 11 év-val korábban
RE: Source Not Found
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
In the first place, why aren't you just using Liferay IDE instead of just plain eclipse?
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE#section-Liferay+IDE-Installation+/+Releases
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE#section-Liferay+IDE-Installation+/+Releases
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Anand ,
You haven't specifically written what the error is. (Maybe something to do with the employee-portlet-service.jar ?).
Basically incorporate the change by comparing your code with Vishal's.
@Vishal Env of Anand is Liferay 6.1, will that create any problem with the one you created with 6.0 ?
@Hitoshi I think he is having Liferay IDE. I am guessing with the L (Liferay project) on his project name .
Thanks,
Siby
You haven't specifically written what the error is. (Maybe something to do with the employee-portlet-service.jar ?).
Basically incorporate the change by comparing your code with Vishal's.
@Vishal Env of Anand is Liferay 6.1, will that create any problem with the one you created with 6.0 ?
@Hitoshi I think he is having Liferay IDE. I am guessing with the L (Liferay project) on his project name .
Thanks,
Siby
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Vishal,Siby
I have attached detailed error in the attachment which i am getting after adding into my eclipse.
@vishal, do u think i am missing any jar file.
As I informed earlier.
My enviornment:
Liferay6.1.0 CE
Eclipse-Version: Helios Service Release 2
Lliferay-plugins-sdk-6.1.0-ce-ga1
Mysql:5.5
I have attached detailed error in the attachment which i am getting after adding into my eclipse.
@vishal, do u think i am missing any jar file.
As I informed earlier.
My enviornment:
Liferay6.1.0 CE
Eclipse-Version: Helios Service Release 2
Lliferay-plugins-sdk-6.1.0-ce-ga1
Mysql:5.5
Mellékletek:
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Hitoshi,
yes, i am having Liferay IDE.
yes, i am having Liferay IDE.
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Hitoshi,
do you have any clue, want wrong in my eclipse environment?
y missing build classes?
do you have any clue, want wrong in my eclipse environment?
y missing build classes?
Hitoshi Ozawa, módosítva 11 év-val korábban
RE: Source Not Found
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
You haven't set your build path.
How did you import the file? Did you follow the following instructions?
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Importing+Existing+Projects
Check the following page on how to setup liferay ide.
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Getting+Started+Tutorial
How did you import the file? Did you follow the following instructions?
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Importing+Existing+Projects
Check the following page on how to setup liferay ide.
http://www.liferay.com/community/wiki/-/wiki/Main/Liferay+IDE+Getting+Started+Tutorial
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello Hitoshi,
what ever you suggested me i already done the setup and import the project, but it still same condition.
did u check my attachment (Error.doc).
what ever you suggested me i already done the setup and import the project, but it still same condition.
did u check my attachment (Error.doc).
Siby Mathew, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 268 Csatlakozás dátuma: 2011.03.04. Legújabb bejegyzések
Hi Anand,
You have to just rebuild your services.
- Open service.xml
- As you are using Liferay 6.1, change the DOCTYPE to 6.1 (copy from your old portlet)...
- Run servicebuilder again.
The errors will go ...
Thanks,
Siby
You have to just rebuild your services.
- Open service.xml
- As you are using Liferay 6.1, change the DOCTYPE to 6.1 (copy from your old portlet)...
- Run servicebuilder again.
The errors will go ...
Thanks,
Siby
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hello All,
finally I succed.........................
Thank you for all your support .
Special thanks to Siby,Vishal,Priyanka,Hitoshi & Bart.
thank u so much...............................................
finally I succed.........................
Thank you for all your support .
Special thanks to Siby,Vishal,Priyanka,Hitoshi & Bart.
thank u so much...............................................
Vishal Panchal, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 289 Csatlakozás dátuma: 2012.05.20. Legújabb bejegyzésekanand gopalan:
Hello All,
finally I succed.........................
Thank you for all your support .
Special thanks to Siby,Vishal,Priyanka,Hitoshi & Bart.
thank u so much...............................................
Hi Anand,
Good to here ..!
Feel free to ask ..
Thanks&Regards,
Vishal R. Panchal
Bella fernandis, módosítva 11 év-val korábban
RE: Source Not Found
New Member Bejegyzések: 15 Csatlakozás dátuma: 2012.11.06. Legújabb bejegyzések
anand gopalan:
Will you please write the solution how did you solved the issue. I am facing a bit like that, and needed to know how did you came up with a solution.
Will you please write the solution how did you solved the issue. I am facing a bit like that, and needed to know how did you came up with a solution.
Vishal Panchal, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 289 Csatlakozás dátuma: 2012.05.20. Legújabb bejegyzésekanand gopalan:
Hello Siby,
Here I have attahced the MyEmployeeLeave-portlet.
Hi Anand,
Please find the working portlet attached.
The portlet is made as same as your requirement is.
please find the snapshots of consol output and employee table.
Enjoy..!
Thanks&Regards,
Vishal R. Panchal
anand gopalan, módosítva 11 év-val korábban
RE: Source Not Found
Expert Bejegyzések: 442 Csatlakozás dátuma: 2012.03.02. Legújabb bejegyzések
Hi,
Do you want to fetch the records from existing database based on the some condition?please let me know your liferay version.
Do you want to fetch the records from existing database based on the some condition?please let me know your liferay version.